Skip to content

Commit

Permalink
Fix failing test (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkacz authored May 24, 2019
1 parent bf67c3a commit 2a91980
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/kudoctl/util/github/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a91980

Please sign in to comment.