diff --git a/pkg/kudoctl/util/github/client_test.go b/pkg/kudoctl/util/github/client_test.go index 365c02cfe..bff5e3074 100644 --- a/pkg/kudoctl/util/github/client_test.go +++ b/pkg/kudoctl/util/github/client_test.go @@ -29,14 +29,14 @@ func TestNewGithubClient(t *testing.T) { {"", "", "", "no credentials or user environment variable provided"}, // 1 // {"username:", "", "", "missing github password"}, // Not tested in favor of OTP {"username:", "", "", "client test: GET https://api.github.com/user: 401 Requires authentication []"}, - {":password", "", "", "missing github user"}, // 3 - {"anything", "", "", "wrong credentials file format"}, // 4 - {"username:password", "", "", "client test: GET https://api.github.com/user: 401 Bad credentials []"}, // 5 - {"", "username", "", "no credentials or password environment variable provided"}, // 6 - {"", "", "password", "no credentials or user environment variable provided"}, // 7 - {"username:", "", "password", "client test: GET https://api.github.com/user: 401 Bad credentials []"}, // 8 - {"anything", "user", "", "wrong credentials format"}, // 9 - {"", "user", "password", "client test: GET https://api.github.com/user: 403 Maximum number of login attempts exceeded. Please try again later. []"}, // 10 + {":password", "", "", "missing github user"}, // 3 + {"anything", "", "", "wrong credentials file format"}, // 4 + {"username:password", "", "", "client test: GET https://api.github.com/user: 401 Bad credentials []"}, // 5 + {"", "username", "", "no credentials or password environment variable provided"}, // 6 + {"", "", "password", "no credentials or user environment variable provided"}, // 7 + {"username:", "", "password", "client test: GET https://api.github.com/user: 401 Bad credentials []"}, // 8 + {"anything", "user", "", "wrong credentials format"}, // 9 + {"", "user", "password", "client test: GET https://api.github.com/user: 401 Bad credentials []"}, // 10 } for i, tt := range tests {