-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #760 from bcgov/test
Create Latest Release
- Loading branch information
Showing
149 changed files
with
2,964 additions
and
888 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
.github/workflows/scripts/feeder-init/platform-authz-profile-shared.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
entity: CredentialIssuer | ||
record: | ||
id: 'Shared IdP' | ||
namespace: platform | ||
description: 'Shared IdP Authorization Profile' | ||
flow: client-credentials | ||
mode: auto | ||
clientAuthenticator: client-secret | ||
authPlugin: jwt-keycloak | ||
clientRoles: [] | ||
owner: api-owner@local | ||
isShared: true | ||
environmentDetails: | ||
- environment: prod | ||
issuerUrl: '{OIDC_ISSUER}' | ||
clientId: '{OIDC_CLIENT_ID}' | ||
clientSecret: '{OIDC_CLIENT_SECRET}' | ||
clientRegistration: managed |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM cypress/included:9.2.0 | ||
FROM cypress/included:12.4.0 | ||
|
||
WORKDIR /e2e | ||
|
||
RUN apt-get install curl | ||
RUN apt-get -y update; apt-get -y install curl | ||
|
||
COPY cypress.json /e2e | ||
COPY cypress.config.ts /e2e | ||
COPY tsconfig.json /e2e | ||
COPY package.json /e2e | ||
COPY package-lock.json /e2e | ||
COPY entrypoint.sh /tmp | ||
ADD cypress /e2e/cypress | ||
|
||
RUN npm install --production | ||
RUN npm install | ||
|
||
ENTRYPOINT ["npm", "run", "cy:run:html"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import cypress, { defineConfig } from 'cypress' | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
// require('@cypress/code-coverage/task')(on, config) | ||
// // include any other plugin code... | ||
|
||
// // It's IMPORTANT to return the config object | ||
// // with any changed environment variables | ||
config.specPattern=['./cypress/tests/01-*/*.ts', | ||
'./cypress/tests/02-*/*.ts', | ||
'./cypress/tests/03-*/*.ts', | ||
'./cypress/tests/04-*/*.ts', | ||
'./cypress/tests/05-*/*.ts', | ||
'./cypress/tests/06-*/*.ts', | ||
'./cypress/tests/07-*/*.ts', | ||
'./cypress/tests/08-*/*.ts', | ||
'./cypress/tests/09-*/*.ts', | ||
'./cypress/tests/10-*/*.ts', | ||
'./cypress/tests/11-*/*.ts', | ||
'./cypress/tests/12-*/*.ts', | ||
'./cypress/tests/13-*/*.ts', | ||
'./cypress/tests/14-*/*.ts' | ||
] | ||
return config | ||
}, | ||
baseUrl: 'http://oauth2proxy.localtest.me:4180', | ||
specPattern: 'cypress/tests/**/*.cy.ts', | ||
screenshotOnRunFailure: true, | ||
screenshotsFolder: 'results/report/assets', | ||
video: false, | ||
testIsolation: false, | ||
watchForFileChanges: false, | ||
reporter: 'mochawesome', | ||
reporterOptions: { | ||
reportDir: 'results', | ||
html: false, | ||
json: true, | ||
overwrite: false, | ||
}, | ||
chromeWebSecurity: false, | ||
env: { | ||
CLIENT_ID: 'aps-portal', | ||
CLIENT_SECRET: '8e1a17ed-cb93-4806-ac32-e303d1c86018', | ||
OIDC_ISSUER: 'http://keycloak.localtest.me:9080', | ||
TOKEN_URL: | ||
'http://keycloak.localtest.me:9080/auth/realms/master/protocol/openid-connect/token', | ||
GWA_API_URL: 'http://gwa-api.localtest.me:2000/v2', | ||
KONG_URL: 'http://kong.localtest.me:8000', | ||
JWKS_URL: 'http://cypress-jwks-url.localtest.me:3500', | ||
KONG_CONFIG_URL: 'http://kong.localtest.me:8001', | ||
BASE_URL: 'http://oauth2proxy.localtest.me:4180', | ||
KEYCLOAK_URL: 'http://keycloak.localtest.me:9080', | ||
}, | ||
retries: { | ||
runMode: 2, | ||
openMode: 0, | ||
} | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"apikey": "NjR2PniJ6ToOVP9O7nJ5QfQiqDUhUEjq", | ||
"consumernumber": "3CBD4EB1-9E07D3FBF2F", | ||
"clientidsecret": "{\"clientId\": \"B297ECBB-F562BDAE027\", \"clientSecret\": \"8473aa8e-5cfd-403c-b4f6-c4ee88fc038d\", \"tokenEndpoint\": \"http://keycloak.localtest.me:9080/auth/realms/master/protocol/openid-connect/token\"}" | ||
"apikey": "qiHHqk9lIzTgP1j94nHp5C1bNVJBOWnG", | ||
"consumernumber": "B15172D9-F103D11A9A1", | ||
"clientidsecret": "{\"clientId\": \"A7D72430-52CD37B2420\", \"clientSecret\": \"282718d8-d0c2-45a0-8885-3539f0ca5fea\", \"tokenEndpoint\": \"http://keycloak.localtest.me:9080/auth/realms/master/protocol/openid-connect/token\"}", | ||
"credentials": "{\"clientId\": \"sa-ccplatform-e0000000-d339cbfcda5e\", \"clientSecret\": \"f5127730-df13-453d-ace0-a30a1255e30d\"}" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"newapikey": "GJhaEADSMCtdUOjgErkSgtTw15KoASLu" | ||
} | ||
{} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.