-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cédric MILLET
committed
Dec 28, 2023
1 parent
607dccb
commit 867b88c
Showing
6 changed files
with
286 additions
and
2 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
28 changes: 28 additions & 0 deletions
28
packages/aws-cdk-lib/aws-rds/test/db2/db2.instance-engine.test.ts
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,28 @@ | ||
import { Template } from '../../../assertions'; | ||
import * as core from '../../../core'; | ||
import * as rds from '../../lib'; | ||
|
||
describe('DB2 server instance engine', () => { | ||
describe('DB2 instance engine versions', () => { | ||
test("has MajorEngineVersion ending in '11.5' for major version 11.5", () => { | ||
const stack = new core.Stack(); | ||
new rds.OptionGroup(stack, 'OptionGroup', { | ||
engine: rds.DatabaseInstanceEngine.db2Se({ | ||
version: rds.Db2EngineVersion.VER_11_5, | ||
}), | ||
configurations: [ | ||
{ | ||
name: 'DB2_BACKUP_RESTORE', | ||
settings: { | ||
IAM_ROLE_ARN: 'some-role-arn', | ||
}, | ||
}, | ||
], | ||
}); | ||
|
||
Template.fromStack(stack).hasResourceProperties('AWS::RDS::OptionGroup', { | ||
MajorEngineVersion: '11.5', | ||
}); | ||
}); | ||
}); | ||
}); |
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
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