Skip to content

Commit

Permalink
Adds two more necessary env vars for test success
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack LaVergne authored and dakotabenjamin committed Aug 2, 2022
1 parent 8bd7980 commit 121cdc0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/sysadmins/ci-cd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CI/CD

We use CircleCI to manage Continuous Integration and Continuous Deployment.
We use CircleCI to manage Continuous Integration and Continuous Deployment.

| **Environment** | **Branch** |
|---------------------|-----------------------------------------|
Expand All @@ -10,9 +10,9 @@ We use CircleCI to manage Continuous Integration and Continuous Deployment.
| TeachOSM | deployment/teachosm-tasking-manager |
| Indonesia | deployment/id-tasking-manager |

Each environment has its own set of environment variables which are stored as secrets in the CircleCI Organization Settings under Contexts.
Each environment has its own set of environment variables which are stored as secrets in the CircleCI Organization Settings under Contexts.

- OPSGENIE_API
- OPSGENIE_API
- TM_APP_API_URL
- TM_APP_API_VERSION
- TM_APP_BASE_URL
Expand All @@ -30,10 +30,13 @@ Each environment has its own set of environment variables which are stored as se

## Automated Tests

For each Pull Request and branch, the CI runs a set of frontend and backend tests. We have a context in place called "tasking-manager-testing" for setting up the database with the following environment variables:
For each Pull Request and branch, the CI runs a set of frontend and backend tests. We have a context in place called "tasking-manager-testing" for setting up the database with the following environment variables:

- POSTGRES_DB
- POSTGRES_ENDPOINT
- POSTGRES_DB
- POSTGRES_ENDPOINT
- POSTGRES_USER
- TM_ORG_CODE
- TM_ORG_NAME

Note that the POSTGRES_DB variable should be for the default database (in our case `tm`) the testing script will create a database called `test_$POSTGRES_DB` during setup.
Note that the POSTGRES_DB variable should be for the default database (in our case `tm`) the testing script will create a database called `test_$POSTGRES_DB` during setup.
The `TM_ORG_*` vars are required for certain tests to pass; most notably )`test_variable_replacing` in the `TestTemplateService`.

0 comments on commit 121cdc0

Please sign in to comment.