Skip to content

Commit

Permalink
add missing valid api key tests (#274)
Browse files Browse the repository at this point in the history
Signed-off-by: Russell Troxel <[email protected]>
  • Loading branch information
rtrox authored Mar 2, 2024
1 parent 582c279 commit 793371b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/arr/config/arr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,24 @@ func TestValidate(t *testing.T) {
},
valid: true,
},
{
name: "good-api-key-32-len",
config: &ArrConfig{
URL: "http://localhost",
ApiKey: "abcdefABCDEF0123456789abcdef0123",
ApiVersion: "v3",
},
valid: true,
},
{
name: "good-api-key-32-len",
config: &ArrConfig{
URL: "http://localhost",
ApiKey: "abcdefABCDEF01234567",
ApiVersion: "v3",
},
valid: true,
},
{
name: "bad-api-key",
config: &ArrConfig{
Expand Down

0 comments on commit 793371b

Please sign in to comment.