@@ -27,22 +27,22 @@ describe('Pipeline', () => {
2727 } ) ;
2828 } ) ;
2929
30- // test('S3 Bucket Has Versioning Disabled ', () => {
31- // const app = new cdk.App();
32- // const newStack = new cdk.Stack(app, 'RepoStack', { env });
33- // const imageRepo = new Repository(newStack, 'Repository', {});
34- // const vpc = new Vpc(newStack, 'Bucket', {});
30+ test ( 'S3 Bucket Has Versioning Enabled ' , ( ) => {
31+ const app = new cdk . App ( ) ;
32+ const newStack = new cdk . Stack ( app , 'RepoStack' , { env } ) ;
33+ const imageRepo = new Repository ( newStack , 'Repository' , { } ) ;
34+ const vpc = new Vpc ( newStack , 'Bucket' , { } ) ;
3535
36- // const stack = new EmbeddedLinuxPipelineStack(app, 'MyTestStack', {
37- // env,
38- // imageRepo,
39- // vpc,
40- // });
41- // const template = Template.fromStack(stack);
42- // template.allResourcesProperties('AWS::S3::Bucket', {
43- // VersioningConfiguration: { Status: 'Enabled' },
44- // });
45- // });
36+ const stack = new EmbeddedLinuxPipelineStack ( app , 'MyTestStack' , {
37+ env,
38+ imageRepo,
39+ vpc,
40+ } ) ;
41+ const template = Template . fromStack ( stack ) ;
42+ template . allResourcesProperties ( 'AWS::S3::Bucket' , {
43+ VersioningConfiguration : { Status : 'Enabled' } ,
44+ } ) ;
45+ } ) ;
4646
4747 test ( 'Snapshot Poky Pipeline' , ( ) => {
4848 const app = new cdk . App ( ) ;
0 commit comments