Skip to content

Commit

Permalink
add tests to option -> auth processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ameske committed Dec 20, 2024
1 parent 6ff7b9e commit d1620b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/config/remote/service/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ func TestAuthKeys(t *testing.T) {
{rcKey: generateKey(t, 2, "datadoghq.com", ""), err: true},
{rcKey: generateKey(t, 2, "", "app_Key"), err: true},
{rcKey: generateKey(t, 0, "datadoghq.com", "app_Key"), err: true},
{parJWT: "myJWT", err: false, output: remoteConfigAuthKeys{
parJWT: "myJWT",
}},
{parJWT: "myJWT", apiKey: "myAPIKey", err: false, output: remoteConfigAuthKeys{
parJWT: "myJWT",
apiKey: "myAPIKey",
}},
}
for _, test := range tests {
t.Run(fmt.Sprintf("%s|%s", test.apiKey, test.rcKey), func(tt *testing.T) {
Expand Down

0 comments on commit d1620b9

Please sign in to comment.