Skip to content

Commit

Permalink
[DUOS-2114][risk=no] Move from perf to alpha env for testing (#1818)
Browse files Browse the repository at this point in the history
* perf -> alpha
  • Loading branch information
rushtong authored Sep 29, 2022
1 parent 18b19e5 commit 34f8b3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: NPM Install
run: npm ci
- name: Copy Configs
run: cp config/perf.json public/config.json
run: cp config/alpha.json public/config.json
- name: NPM Build
run: CI=false npm run build --silent
- name: Cypress run integration tests
Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ We use [Cypress](https://docs.cypress.io/) for testing.

Update an environment config file to test against:
```
cp config/perf.json public/config.json
cp config/alpha.json public/config.json
```

## Run All Tests
Expand Down
17 changes: 7 additions & 10 deletions config/perf.json → config/alpha.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"Comments": "The values in this configuration are all publicly accessible values from the deployed application.",
"env": "perf",
"tag": "perf",
"hash": "perf",
"apiUrl": "https://consent.dsde-perf.broadinstitute.org",
"ontologyApiUrl": "https://consent-ontology.dsde-perf.broadinstitute.org/",
"clientId": "635957978953-tklh1h40e25juilm8j77uujsnucp4sk5.apps.googleusercontent.com",
"env": "alpha",
"tag": "alpha",
"hash": "alpha",
"apiUrl": "https://consent.dsde-alpha.broadinstitute.org",
"ontologyApiUrl": "https://consent-ontology.dsde-alpha.broadinstitute.org/",
"clientId": "1020846292598-hd801vsmmbhh97vaf6aar17lu0q2evfj.apps.googleusercontent.com",
"errorApiKey": "1234567890abcdefghijklmnop",
"gaId": "",
"gwasUrl": "",
"profileUrl": "https://profile-dot-broad-shibboleth-prod.appspot.com/dev",
"nihUrl": "https://broad-shibboleth-prod.appspot.com/dev/login",
"powerBiUrl": "https://app.powerbi.com/view?r=eyJrIjoiMjI2YjdmZGEtMmRiNC00YjVjLWJjNjktNmI4NmNlYjAxOGY3IiwidCI6IjBjYjdhNjQwLTQ1YTItNGVkNi1iZTlmLTYzNTE5Zjg2ZTA0YiIsImMiOjN9&pageName=ReportSectionc1c4107ccd69e2852e18",
"features": {
"newChairConsole": true
}
"features": {}
}
2 changes: 1 addition & 1 deletion cypress/component/SignIn/sign_in.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Sign In Component', function() {
it('Sign In Button Loads when client id is valid', function () {
cy.viewport(600, 300);
// Load the client id from perf so we can have a valid button
cy.readFile('config/perf.json').then((config) => {
cy.readFile('config/alpha.json').then((config) => {
const clientId = config.clientId;
cy.stub(Config, 'getGoogleClientId').returns(clientId);
mount(<SignIn />);
Expand Down

0 comments on commit 34f8b3f

Please sign in to comment.