Skip to content

Commit

Permalink
Re-recording tests and miscellaneous testing fixes (#859)
Browse files Browse the repository at this point in the history
* Rerecording tests

* Fixing unit test

* Removing console log

---------

Co-authored-by: Will Vedder <[email protected]>
  • Loading branch information
willvedd and willvedd authored Oct 30, 2023
1 parent eb1db63 commit 2d42e4b
Show file tree
Hide file tree
Showing 12 changed files with 4,560 additions and 4,822 deletions.
2 changes: 1 addition & 1 deletion test/context/context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ chai.use(sinonChai);

const config = {
AUTH0_INPUT_FILE: path.resolve(testDataDir, 'notexist'),
AUTH0_DOMAIN: 'tenant.auth0.com',
AUTH0_DOMAIN: 'test.auth0.com',
AUTH0_ACCESS_TOKEN: 'fake',
};

Expand Down
1 change: 1 addition & 0 deletions test/e2e/e2e-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function decodeBuffer(recordingResponse: Definition['response']) {
if (!isArray) return recordingResponse; // Some Auth0 Management API endpoints aren't gzipped, we can tell this if they are an array or not
if (recordingResponse.length === 0) return []; // Empty arrays can be piped through as-is too

if (recordingResponse[0] === 'all-applications') return recordingResponse;
const decoded = Buffer.from(recordingResponse.join(''), 'hex');
const unzipped = zlib.gunzipSync(decoded).toString('utf-8');
return JSON.parse(unzipped);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"enable_public_signup_user_exists_error": true,
"enable_sso": true,
"enforce_client_authentication_on_passwordless_start": true,
"new_universal_login_experience_enabled": true,
"universal_login": true,
"use_scope_descriptions_for_consent": false,
"revoke_refresh_token_grant": false,
Expand Down Expand Up @@ -110,6 +111,7 @@
"enable_public_signup_user_exists_error": true,
"enable_sso": true,
"enforce_client_authentication_on_passwordless_start": true,
"new_universal_login_experience_enabled": true,
"universal_login": true,
"use_scope_descriptions_for_consent": false,
"revoke_refresh_token_grant": false,
Expand Down Expand Up @@ -170,6 +172,7 @@
"enable_legacy_logs_search_v2": false,
"enable_public_signup_user_exists_error": true,
"enable_sso": true,
"new_universal_login_experience_enabled": true,
"universal_login": true,
"use_scope_descriptions_for_consent": false,
"revoke_refresh_token_grant": false,
Expand All @@ -192,6 +195,7 @@
"mode": "non-persistent"
},
"sandbox_versions_available": [
"18",
"16",
"12"
]
Expand Down
Loading

0 comments on commit 2d42e4b

Please sign in to comment.