Skip to content
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

Conversation

MaartendeKruijf
Copy link
Collaborator

No description provided.

@MaartendeKruijf MaartendeKruijf self-assigned this May 6, 2024
@MaartendeKruijf MaartendeKruijf linked an issue May 6, 2024 that may be closed by this pull request
RabbITCybErSeC
RabbITCybErSeC previously approved these changes May 8, 2024
.github/workflows/ci.yml Show resolved Hide resolved

response, err := httpRequest.Request(httpOptions)
t.Log(string(response))
if err == nil {
Copy link
Collaborator Author

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 {
Copy link
Collaborator Author

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) {
Copy link
Collaborator Author

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

@RabbITCybErSeC RabbITCybErSeC merged commit 7460eff into development May 8, 2024
9 checks passed
@RabbITCybErSeC RabbITCybErSeC deleted the feature/146-allow-self-signed-certificate-from-environment-variables branch May 8, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow self signed certificate from environment variables
2 participants