-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHI-1384 SQS integration for hrm services (#251)
* chore: removed unused no-lambda stack * feat: remove SNS and send messages to SQS in service * chore: update test docker container instructions * feat: poll sqs queue and fix test mocks * fix: revert mock for SQS.sendMessage * fix: import mocks correctly * chore: move back to date-fns * CHI-1384 local e2e testing improvements (#253) * chore: documentation for local e2e tests * fix: run hrm-service on port 8080 by default in local dev * fix: don't migrate on hrm-service start * fix: start:localstack naming nit * chore: download .env for hrm-service from ssm * fix: set dockerfile in hrm-service action build * fix: correctly transpile TS in dockerfiles * fix: issues based on testing deployment via actions * CHI-1384: improve tests for jobs and remove unused npm package (#257) * test: improve tests for jobs and remove unused npm package * fix: set prototype to fix TS built-in extension issue
- Loading branch information
1 parent
f6902c9
commit 768857f
Showing
33 changed files
with
268 additions
and
159 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
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 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Import development db from RDS | ||
|
||
## Requirements | ||
|
||
- Aselo VPN Access to development environment | ||
- psql/pg_dump/pg_restore installed locally | ||
- credentials for the development database | ||
|
||
## Steps | ||
|
||
1. Connect to the VPN | ||
|
||
2. Run `pg_dump -U hrm -h development-postgres-rds.c9itqcbmhgxo.us-east-1.rds.amazonaws.com -W -F t hrmdb -f hrmdb.sql` to dump the database to a file after replacing the values in the angle brackets with the correct values. | ||
|
||
3. Clear out the local db with: `psql -U rdsadmin -h 127.0.0.1 -d hrmdb -c "drop schema public cascade; create schema public;"` | ||
|
||
4. Import the dev database with `pg_restore -U rdsadmin -h 127.0.0.1 -x -d hrmdb -1 hrmdb.sql` |
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,8 +1,18 @@ | ||
# Run flex-plugins e2e tests against locally running docker version of hrm-service | ||
|
||
1. Build the docker contianer locally with: `npm run -w hrm-service docker:build` | ||
## Requirements | ||
|
||
Working aws credentials with access to local ssm parameters configured in your terminal | ||
|
||
_This probably doesn't work on windows yet_ | ||
|
||
## Steps | ||
|
||
1. Build the docker container locally with: `npm run -w hrm-service docker:build` | ||
2. Start the hrm db with: `npm run docker:compose:db:up` | ||
3. Optionally run localstack for AWS resources with: `npm run localstack:init` | ||
4. Bring up the hrm service container with: `npm run docker:compose:service:up` | ||
5. Get logs from `npm run docker:compose:logs` | ||
6. Run tests with: `npm run test:docker:service` - this is only tested on nix and requires aws-cli to be installed locally | ||
6. Follow the instructions for importing the current dev db into your local postgres server [here](./import-dev-db-locally.md). | ||
7. In another terminal, follow the instructions in the flex-plugins/plugin-hrm-form to get the flex plugin running locally against the local docker service with the correct configuration files for e2e testing | ||
8. Follow the instructions in the flex-plugins/e2e-tests readme to run the e2e tests locally |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ services: | |
|
||
env_file: | ||
- ../.env.localstack | ||
- dist/.env |
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.