-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Update readmes, add tests, and update CI
Signed-off-by: Peter Nied <[email protected]>
Showing
8 changed files
with
82 additions
and
200 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
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,7 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} **/ | ||
module.exports = { | ||
testEnvironment: "node", | ||
transform: { | ||
"^.+.tsx?$": ["ts-jest",{}], | ||
}, | ||
}; |
214 changes: 19 additions & 195 deletions
214
deployment/migration-assistant-solution/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
20 changes: 20 additions & 0 deletions
20
deployment/migration-assistant-solution/test/solutions-stack.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,20 @@ | ||
import { describe, expect, test } from '@jest/globals'; | ||
import { Template } from 'aws-cdk-lib/assertions'; | ||
import { App } from 'aws-cdk-lib'; | ||
import { SolutionsInfrastructureStack } from '../lib/solutions-stack'; | ||
|
||
describe('Solutions stack', () => { | ||
test('EC2 bootstrap instance is created', () => { | ||
const app = new App(); | ||
const stack = new SolutionsInfrastructureStack(app, 'TestBootstrapStack', { | ||
solutionId: 'SO0000', | ||
solutionName: 'test-solution', | ||
solutionVersion: '0.0.1', | ||
codeBucket: 'test-bucket' | ||
}); | ||
const template = Template.fromStack(stack); | ||
template.hasResourceProperties('AWS::EC2::Instance', { | ||
InstanceType: "t3.large" | ||
}); | ||
}); | ||
}); |