Skip to content

Commit

Permalink
NO-SNOW Fix bogus hostname on Jenkins (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pfus authored Oct 24, 2024
1 parent 3d7a06c commit e9c6704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ func invalidUserPassErrorTests(invalidDNS string, expectedErr int, t *testing.T)

func TestBogusHostNameParameters(t *testing.T) {
invalidDNS := fmt.Sprintf("%s:%s@%s", username, pass, "INVALID_HOST:1234")
invalidHostErrorTests(invalidDNS, []string{"no such host", "verify account name is correct", "HTTP Status: 403", "Temporary failure in name resolution", "server misbehaving"}, t)
invalidHostErrorTests(invalidDNS, []string{"no such host", "verify account name is correct", "HTTP Status: 403", "Temporary failure in name resolution", "server misbehaving", "connection broken"}, t)
invalidDNS = fmt.Sprintf("%s:%s@%s", username, pass, "INVALID_HOST")
invalidHostErrorTests(invalidDNS, []string{"read: connection reset by peer", "EOF", "verify account name is correct", "HTTP Status: 403", "Temporary failure in name resolution", "server misbehaving", "failed to auth"}, t)
invalidHostErrorTests(invalidDNS, []string{"read: connection reset by peer", "EOF", "verify account name is correct", "HTTP Status: 403", "Temporary failure in name resolution", "server misbehaving", "failed to auth", "connection broken"}, t)
}

func invalidHostErrorTests(invalidDNS string, mstr []string, t *testing.T) {
Expand Down

0 comments on commit e9c6704

Please sign in to comment.