-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
52 additions
and
40 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import "source-map-support/register"; | ||
import { GuRoot } from "@guardian/cdk/lib/constructs/root"; | ||
import { TranscriptionService } from "../lib/transcription-service"; | ||
import 'source-map-support/register'; | ||
import { GuRoot } from '@guardian/cdk/lib/constructs/root'; | ||
import { TranscriptionService } from '../lib/transcription-service'; | ||
|
||
const app = new GuRoot(); | ||
new TranscriptionService(app, "TranscriptionService-CODE", { stack: "investigations", stage: "CODE", env: { region: "eu-west-1" } }); | ||
new TranscriptionService(app, "TranscriptionService-PROD", { stack: "investigations", stage: "PROD", env: { region: "eu-west-1" } }); | ||
new TranscriptionService(app, 'TranscriptionService-CODE', { | ||
stack: 'investigations', | ||
stage: 'CODE', | ||
env: { region: 'eu-west-1' }, | ||
}); | ||
new TranscriptionService(app, 'TranscriptionService-PROD', { | ||
stack: 'investigations', | ||
stage: 'PROD', | ||
env: { region: 'eu-west-1' }, | ||
}); |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { App } from "aws-cdk-lib"; | ||
import { Template } from "aws-cdk-lib/assertions"; | ||
import { TranscriptionService } from "./transcription-service"; | ||
import { App } from 'aws-cdk-lib'; | ||
import { Template } from 'aws-cdk-lib/assertions'; | ||
import { TranscriptionService } from './transcription-service'; | ||
|
||
describe("The TranscriptionService stack", () => { | ||
it("matches the snapshot", () => { | ||
const app = new App(); | ||
const stack = new TranscriptionService(app, "TranscriptionService", { stack: "investigations", stage: "TEST", env: { region: "test-region" } }); | ||
const template = Template.fromStack(stack); | ||
expect(template.toJSON()).toMatchSnapshot(); | ||
}); | ||
describe('The TranscriptionService stack', () => { | ||
it('matches the snapshot', () => { | ||
const app = new App(); | ||
const stack = new TranscriptionService(app, 'TranscriptionService', { | ||
stack: 'investigations', | ||
stage: 'TEST', | ||
env: { region: 'test-region' }, | ||
}); | ||
const template = Template.fromStack(stack); | ||
expect(template.toJSON()).toMatchSnapshot(); | ||
}); | ||
}); |
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