Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCorr committed Jun 14, 2024
1 parent 34de5e4 commit 993a6dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
8 changes: 8 additions & 0 deletions lib/__snapshots__/devx-container-ami.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exports[`The DevxContainerAmi stack matches the snapshot 1`] = `
"Stack": "playground",
"Stage": "TEST",
"gu:cdk:version": "TEST",
"gu:repo": "guardian/hackday-devx-ami",
},
},
"Type": "AWS::ImageBuilder::ImagePipeline",
Expand All @@ -49,6 +50,7 @@ exports[`The DevxContainerAmi stack matches the snapshot 1`] = `
"Stack": "playground",
"Stage": "TEST",
"gu:cdk:version": "TEST",
"gu:repo": "guardian/hackday-devx-ami",
},
},
"Type": "AWS::ImageBuilder::DistributionConfiguration",
Expand All @@ -66,6 +68,7 @@ exports[`The DevxContainerAmi stack matches the snapshot 1`] = `
"Stack": "playground",
"Stage": "TEST",
"gu:cdk:version": "TEST",
"gu:repo": "guardian/hackday-devx-ami",
},
"Version": "1.0.0",
},
Expand Down Expand Up @@ -138,6 +141,10 @@ exports[`The DevxContainerAmi stack matches the snapshot 1`] = `
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/hackday-devx-ami",
},
{
"Key": "Stack",
"Value": "playground",
Expand All @@ -160,6 +167,7 @@ exports[`The DevxContainerAmi stack matches the snapshot 1`] = `
"Stack": "playground",
"Stage": "TEST",
"gu:cdk:version": "TEST",
"gu:repo": "guardian/hackday-devx-ami",
},
},
"Type": "AWS::ImageBuilder::InfrastructureConfiguration",
Expand Down
23 changes: 13 additions & 10 deletions lib/devx-container-ami.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { App } from "aws-cdk-lib";
import { Template } from "aws-cdk-lib/assertions";
import { DevxContainerAmi } from "./devx-container-ami";
import { App } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import { DevxContainerAmi } from './devx-container-ami';

describe("The DevxContainerAmi stack", () => {
it("matches the snapshot", () => {
const app = new App();
const stack = new DevxContainerAmi(app, "DevxContainerAmi", { stack: "playground", stage: "TEST" });
const template = Template.fromStack(stack);
expect(template.toJSON()).toMatchSnapshot();
});
describe('The DevxContainerAmi stack', () => {
it('matches the snapshot', () => {
const app = new App();
const stack = new DevxContainerAmi(app, 'DevxContainerAmi', {
stack: 'playground',
stage: 'TEST',
});
const template = Template.fromStack(stack);
expect(template.toJSON()).toMatchSnapshot();
});
});

0 comments on commit 993a6dc

Please sign in to comment.