Skip to content

test: add e2e tests for https option #3776

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

Merged
merged 3 commits into from
Sep 2, 2021
Merged

Conversation

snitin315
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes

Motivation / Use-Case

add e2e tests for https option.

Breaking Changes

No

Additional Info

puppeteer having issues accepting SSL with requestCert: true, throwing error net::ERR_BAD_SSL_CLIENT_AUTH_CERT, hence testing with supertest for this case.

@@ -20,6 +20,7 @@ function runBrowser(config) {
puppeteer
.launch({
headless: true,
ignoreHTTPSErrors: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due invalid localhost cert? Let's add comment about it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, done 👍🏻

@codecov
Copy link

codecov bot commented Sep 2, 2021

Codecov Report

Merging #3776 (64684b5) into master (d0e0940) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3776   +/-   ##
=======================================
  Coverage   93.03%   93.03%           
=======================================
  Files          14       14           
  Lines        1321     1321           
  Branches      463      463           
=======================================
  Hits         1229     1229           
  Misses         85       85           
  Partials        7        7           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0e0940...64684b5. Read the comment docs.

alexander-akait
alexander-akait previously approved these changes Sep 2, 2021
Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge when it will be green

@alexander-akait
Copy link
Member

Note, coverage should be not changed when we rewrite tests, because we can missing something from old tests

@snitin315
Copy link
Member Author

All green ✅

@alexander-akait alexander-akait merged commit e8bbace into master Sep 2, 2021
@alexander-akait alexander-akait deleted the test-e2e-https branch September 2, 2021 14:04
@alexander-akait
Copy link
Member

Thanks

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.

2 participants