Skip to content

Commit

Permalink
containers removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellenn-A committed Nov 19, 2024
1 parent b16cad0 commit b3d4f57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ and run with
DEBUG=testcontainers* npm run test:testcontainers
```

Normally the containers are removed after a run, however you can keep them for further inspection by adding this:

```
await container.stop({ remove: false })
```

## Database

This service is dependant on postgreSQL which will sync up across all nodes and will update cloudagent when needed. We use `knex` wrapper for wrapping [create, read, write, update] database quries. We also have different models for inserting and returning data which gives us a control of sensitive data or data we do not want to get along the record. We also use **zod** for enchanted validation. It's currently used in `src/models/db/types.ts` file.
Expand Down
24 changes: 0 additions & 24 deletions test/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,6 @@ before(async function () {
chaiJestSnapshot.resetSnapshotRegistry()
})

// do we want to keep this for debugging?
after(async function () {
// await Promise.all(
// aliceDepsContainers.map(async function (container) {
// await container.stop({ remove: false })
// })
// )
// await Promise.all(
// bobContainers.map(async function (container) {
// await container.stop({ remove: false })
// })
// )
// await Promise.all(
// charlieContainers.map(async function (container) {
// await container.stop({ remove: false })
// })
// )
// await Promise.all(
// sharedContainers.map(async function (container) {
// await container.stop({ remove: false })
// })
// )
})

beforeEach(function () {
chaiJestSnapshot.configureUsingMochaContext(this)
})
2 changes: 1 addition & 1 deletion test/integration/newConnection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('NewConnectionController', () => {
})

afterEach(async () => {
await cleanupCloudagent() //errors here
await cleanupCloudagent()
server.cloudagentEvents.stop()
})

Expand Down

0 comments on commit b3d4f57

Please sign in to comment.