-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added HTTP_SKIP_CERT_VALIDATION and http implementation to http util #147
Added HTTP_SKIP_CERT_VALIDATION and http implementation to http util #147
Conversation
…ng a insecure endpoint
|
||
response, err := httpRequest.Request(httpOptions) | ||
t.Log(string(response)) | ||
if err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use assert here
httpRequest.SkipCertificateValidation(true) | ||
response, err := httpRequest.Request(httpOptions) | ||
t.Log(string(response)) | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert err equals nil
@@ -34,6 +34,61 @@ type httpBinResponseBody struct { | |||
} | |||
|
|||
// Test general http options, we do not check responses body, as these are variable for the general connection tests | |||
|
|||
func TestInsecureHTTPConnection(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move test to integration tests
No description provided.