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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions test/e2e/__snapshots__/https.test.js.snap.webpack4
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
52 changes: 52 additions & 0 deletions test/e2e/__snapshots__/https.test.js.snap.webpack5
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;

exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;

exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;

exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;

exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
Loading