Conversation
APS-4346 add e2e tests for email notifications
* changes to get docker compose to launch cleanly * fix group issue by upgrading admin client * fix group issue by upgrading admin client * refactor keycloak admin client * try to build with openssl legacy provider * try to build with openssl legacy provider * upd all build steps with ssl flag * fix dockerfile * fix cypress * add some output to cypress automation logs * upd cypress log * use nightly keycloak and use 2 isntances in docker compose * use kc-upgrade gwa for cypress e2e * add data plane info as gwa needs for upstream validation check * fix group mgmt * Test api-key plugin with kong 3.9.0 * fix for kong-spec-expose and kong-upstream-jwt * remove commented out cypress tests * use our latest Kong 3 docker image * upgrade gwa-api version in e2e tests workflow * Fix expected error response for IP restriction * update gwa-cli to 3.0.6 for e2e * provide DECK_CLI env var, eliminate docker compose warnings * replace test host httpbin.org with httpbun.com * accept 97 to 99 * correct name of template * Retry if product/dataset fails to publish * exclude `gwa status` from e2e tests * Expect 200 when using allowed methods (POST/PUT) * add retry for `gwa apply` for two-tiered * Only enable code coverage in CI (GitHub Actions) * remove it.onlys - oops * Clear redis rate limit key before new rate limiting test * move clear redis timing * upgrade local postgres to 12.8 > 15 * bump actions/cache v2 > v4 * use postgres 14 in e2e * Changes to get docker compose to run (with authz issues) * use updated gwa-api, only run cypress tests 01 and 02 * update cypress logout action * fixes for updated keycloak ui * fix expected state for scope not found * run all tests * test 01 02 * run all tests * update node version in nvmrc and ci-feat-sonar GHA * fix decision strategy for default permission * fix and cleanup keycloak tests * more test fixes * bump postgres to 14 in docker compose * parameterize in docker compose * set rate limit to 1 for expected one successful call * add wait before Kong requests after updating auth plugin * remove echo from local kong dockerfile * merge consecutive RUN calls * add Namespace.View on Namespace creation * Add explicit pagination for Keycloak group retrieval with max 1000 * Update Jest setup with polyfills for Web APIs and updated mocks for Keycloak. Refactor error handling in BatchService. * adjust depenencies * fix UMA permission assertion * remove Namespace.View (return to previous state) * update SonarCloud Scan action * remove project from sonar arg * add api-services-portal project * restore sonar * upgrade keycloak-connect * Replacing local keycloak-admin-client package with official @keycloak/keycloak-admin-client. * stop copying keycloak-admin-client in dockerfiles * fix sonar scan action * code cleanup: use find instead of filter * code cleanup: remove await on non-promise * Add test to verify authorization scope enforcement (for ds/api) * Add ForbiddenError class and update authorization handling to use it for permission denials * cypress: update expected response code * cypress: disable documentation tests * restore cypress to v13 * cypress: add necessary role for Janis for activity tests * cypress: fix error message * Cypress: add permissions for Janis in client cred ns * cypress: force click * enable keycloak metrics and health * Cypress: add missing fixture * cypress: update expected error code to 401 for service account disabled * cypress: visit admin access page * Optimize calls to Keycloak * Fix test for keycloak optimization * kc26 logout fix * fix Missing parameters: id_token_hint when logging out * fix2: Missing parameters: id_token_hint when logging out * remove backend_logout_url * Fix redirect to home page, fix signout page typo * Portal attempt fix to redirect to /signout * Remove comment that's no longer applicable * use latest cli * better handle errors for getOrganization + getOrganizationUnit * guard gql error if org-unit is null * fix logout assertion * Few more merge conflicts, couple remaining * Another merge conflict, just package-lock remaining * fix merge conflict package-lock.json, yarn.lock update * Add skipLibCheck. This is a standard way to avoid dependency type-definition issues and is recommended when using older TypeScript with newer @types packages. * Fix portal build * Fix portal build 2 * Fix portal build 3 * Fix portal build 4 * Fix portal build 5 * Fix portal build 6 * Fix portal build 7 * Upgrade babel/core * Fix sonar tests * Fix last remaining test * Fix last remaining test 2 * Fix scope loading issue with cypress * Fix for 14/04 cypress tests * accept Namespace.Manage or View for /activity endpoints * use gwa-api `dev` branch for e2e * kc bump + minor tweaks --------- Co-authored-by: James Elson <james.elson@gov.bc.ca> Co-authored-by: Russell Vinegar <russell.vinegar@gov.bc.ca>
KC26, Cypress tests for email notifications
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.