1
- import '@aws-cdk/assert-internal/jest' ;
2
1
import { AuroraEngineVersion , AuroraMysqlEngineVersion , AuroraPostgresEngineVersion , DatabaseClusterEngine } from '../lib' ;
3
2
4
3
describe ( 'cluster engine' , ( ) => {
@@ -11,8 +10,6 @@ describe('cluster engine', () => {
11
10
12
11
// THEN
13
12
expect ( family ) . toEqual ( 'aurora5.6' ) ;
14
-
15
-
16
13
} ) ;
17
14
18
15
test ( "default parameterGroupFamily for versionless Aurora MySQL cluster engine is 'aurora-mysql5.7'" , ( ) => {
@@ -24,8 +21,6 @@ describe('cluster engine', () => {
24
21
25
22
// THEN
26
23
expect ( family ) . toEqual ( 'aurora-mysql5.7' ) ;
27
-
28
-
29
24
} ) ;
30
25
31
26
test ( 'default parameterGroupFamily for versionless Aurora PostgreSQL is not defined' , ( ) => {
@@ -37,8 +32,6 @@ describe('cluster engine', () => {
37
32
38
33
// THEN
39
34
expect ( family ) . toEqual ( undefined ) ;
40
-
41
-
42
35
} ) ;
43
36
44
37
test ( 'cluster parameter group correctly determined for AURORA and given version' , ( ) => {
@@ -52,8 +45,6 @@ describe('cluster engine', () => {
52
45
53
46
// THEN
54
47
expect ( family ) . toEqual ( 'aurora5.6' ) ;
55
-
56
-
57
48
} ) ;
58
49
59
50
test ( 'cluster parameter group correctly determined for AURORA_MYSQL and given version' , ( ) => {
@@ -67,8 +58,6 @@ describe('cluster engine', () => {
67
58
68
59
// THEN
69
60
expect ( family ) . toEqual ( 'aurora-mysql5.7' ) ;
70
-
71
-
72
61
} ) ;
73
62
74
63
test ( 'cluster parameter group correctly determined for AURORA_MYSQL and given version 3' , ( ) => {
@@ -95,8 +84,6 @@ describe('cluster engine', () => {
95
84
96
85
// THEN
97
86
expect ( family ) . toEqual ( 'aurora-postgresql11' ) ;
98
-
99
-
100
87
} ) ;
101
88
102
89
test ( 'parameter group family' , ( ) => {
@@ -117,15 +104,12 @@ describe('cluster engine', () => {
117
104
'aurora-postgresql9.6' ) ;
118
105
expect ( DatabaseClusterEngine . auroraPostgres ( { version : AuroraPostgresEngineVersion . of ( '10.0' , '10' ) } ) . parameterGroupFamily ) . toEqual (
119
106
'aurora-postgresql10' ) ;
120
-
121
-
122
107
} ) ;
123
108
124
109
test ( 'supported log types' , ( ) => {
125
110
const mysqlLogTypes = [ 'error' , 'general' , 'slowquery' , 'audit' ] ;
126
111
expect ( DatabaseClusterEngine . aurora ( { version : AuroraEngineVersion . VER_1_22_2 } ) . supportedLogTypes ) . toEqual ( mysqlLogTypes ) ;
127
112
expect ( DatabaseClusterEngine . auroraMysql ( { version : AuroraMysqlEngineVersion . VER_2_08_1 } ) . supportedLogTypes ) . toEqual ( mysqlLogTypes ) ;
128
113
expect ( DatabaseClusterEngine . auroraPostgres ( { version : AuroraPostgresEngineVersion . VER_9_6_9 } ) . supportedLogTypes ) . toEqual ( [ 'postgresql' ] ) ;
129
-
130
114
} ) ;
131
- } ) ;
115
+ } ) ;
0 commit comments