-
Notifications
You must be signed in to change notification settings - Fork 1
feat: DB v2 custom db tests #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/db-v2-tests
Are you sure you want to change the base?
Conversation
04800c7 to
41783a5
Compare
# Conflicts: # tests/database/index.test.ts
febb6cd to
6f9884f
Compare
| import { DatabaseBuilder } from '../../../dist/v2/components/database/builder'; | ||
| import * as config from './config'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import will be resolved when you fix the base branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This maybe made sense in the base branch but now there is too many variables to destructure from config so I feel this is better in this file 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we are missing real integration tests here using Describe commands like we do in other tests. Also we are not actually testing if we can connect to the db like we do for example in upstash or elasticache tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add this to the previous PR also 👍
| assert.ok(TagList && TagList.length > 0, 'Tags should exist'); | ||
|
|
||
| Object.entries(ctx.config.tags).map(([Key, Value]) => { | ||
| const tag = TagList.find(tag => tag.Key === Key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tag implicitly has any type here
# Conflicts: # tests/database/index.test.ts # tests/database/infrastructure/index.ts
This PR is the fourth one in order to resolve #70 and it will test custom configuration of our db component (setting various instance & storage arguments, setting custom password, kms key & parameter group, enabling monitoring and setting tags)