Skip to content

Conversation

@mandryllo
Copy link
Collaborator

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)

@mandryllo mandryllo changed the base branch from master to feat/db-v2-tests December 16, 2025 17:47
@mandryllo mandryllo added the enhancement New feature or request label Dec 16, 2025
# Conflicts:
#	tests/database/index.test.ts
@mandryllo mandryllo force-pushed the feat/custom-db-v2-tests branch from febb6cd to 6f9884f Compare December 19, 2025 13:52
Comment on lines 3 to 4
import { DatabaseBuilder } from '../../../dist/v2/components/database/builder';
import * as config from './config';
Copy link
Member

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.

Copy link
Member

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.

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);
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Database to v2

3 participants