-
Notifications
You must be signed in to change notification settings - Fork 1
feat: DB v2 snapshot db tests #98
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/custom-db-v2-tests
Are you sure you want to change the base?
Conversation
| assert.strictEqual( | ||
| database.name, | ||
| `${ctx.config.appName}-default`, | ||
| `${ctx.config.appName}-default-db`, |
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 change is here because I changed how databases are named inside this PR (see infrastructure file), as this should be the last PR regarding tests. I can move this to previous PR's if needed
febb6cd to
6f9884f
Compare
de7b20d to
e273136
Compare
|
|
||
| export { vpc, defaultDb, kms, paramGroup, customDb }; | ||
| const snapshot = defaultDb.instance.dbInstanceIdentifier.apply( | ||
| dbInstanceIdentifier => { |
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.
dbInstanceIdentifier implicitly has any type
| }, | ||
| ); | ||
|
|
||
| const snapshotDb = snapshot.apply(snapshot => { |
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.
snaphost implicitly has any type
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.
We should also add a test to see if we can access the db.
This is the fifth PR in order to resolve #70 , it introduces integration tests for db created from a snapshot