-
Notifications
You must be signed in to change notification settings - Fork 1
Chore: [AEA-5853] - New supplier NHS Number testing parameters #2097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
49ab0af
chore: new ssm params to support tests
tstephen-nhs feecf1c
chore: add pre-shared NHS numbers for testing
tstephen-nhs 363557e
chore: lookup TC008 nhs number
tstephen-nhs 92957ae
chore: centralise lambda config
tstephen-nhs 0e1007d
chore: expand config for all 3 params
tstephen-nhs cf0b3c3
chore: update TC008 test to use config
tstephen-nhs 91b3fac
Create common functional code package. Rename common tests and suppor…
connoravo-nhs 6c2bde4
Correct compile
connoravo-nhs bf01326
Add in other test cases
connoravo-nhs a7fd3de
Resolve tests - All previous passing
connoravo-nhs ac47001
Fix test setup exclusion
connoravo-nhs 8412ff3
Shorten common name
connoravo-nhs 7ebd0f0
Switch to common/tests and add in TC007 test case
connoravo-nhs fd6e7de
Use common/tests import
connoravo-nhs 039975e
Move common logic package to common/utilities to distinguish
connoravo-nhs 1464cbd
Fix up common module imports
connoravo-nhs f2c41ab
Get common utilities tests working
connoravo-nhs 2c8dc60
Rename tests to testing to differentiate
connoravo-nhs 4bc66e9
Env var the parameters, for easier admin via github
connoravo-nhs 61ffa6a
Move to /testing
connoravo-nhs bd7078d
Clean up
connoravo-nhs d4d664d
Set default once
connoravo-nhs 506831c
Rename to agreed pfp-common
connoravo-nhs beab8b2
Fix dep reference
connoravo-nhs 7e99e66
Add required SSM read permissions to associated lambdas
connoravo-nhs b610fb7
Fix sam template
connoravo-nhs f5f6824
fix sam list
connoravo-nhs 584311a
Fix list issue
connoravo-nhs f921ac0
change to sub
connoravo-nhs b5623f3
change to sub for both
connoravo-nhs ec8a255
yaml is a nightmare
connoravo-nhs c332f5b
Modify resource refences to be dynamic
connoravo-nhs 13d92d6
Set stack name on env var for all lambda
connoravo-nhs e5630b5
fix env var
connoravo-nhs 825c11a
resolve parameter inputs into resources
connoravo-nhs 21613c1
Use pre-existing ssm policy
connoravo-nhs 1d7df4e
Fix parameter ARN reference
connoravo-nhs d888efe
chore: regen package-lock.json
tstephen-nhs 1b0468a
chore: avoid empty sam parameter
tstephen-nhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,82 @@ | ||
| AWSTemplateFormatVersion: '2010-09-09' | ||
| Description: >- | ||
| SSM Parameter Store entries. Values may differ between prod and non-prod environments | ||
|
|
||
| Parameters: | ||
| StackName: | ||
| Type: String | ||
|
|
||
| TC007NHSNumberValue: | ||
| Type: String | ||
|
|
||
| TC008NHSNumberValue: | ||
| Type: String | ||
|
|
||
| TC009NHSNumberValue: | ||
| Type: String | ||
|
|
||
| Resources: | ||
| TC007NHSNumberParameter: | ||
| Type: AWS::SSM::Parameter | ||
| Properties: | ||
| Name: !Sub ${StackName}-TC007NHSNumber | ||
| Description: "List of NHS numbers that will trigger 'temporarily unavailable' response for testing purposes." | ||
| Type: String | ||
| Value: !Ref TC007NHSNumberValue | ||
|
|
||
| TC008NHSNumberParameter: | ||
| Type: AWS::SSM::Parameter | ||
| Properties: | ||
| Name: !Sub ${StackName}-TC008NHSNumber | ||
| Description: "List of NHS numbers that will trigger '500 system error' response for testing purposes." | ||
| Type: String | ||
| Value: !Ref TC008NHSNumberValue | ||
|
|
||
| TC009NHSNumberParameter: | ||
| Type: AWS::SSM::Parameter | ||
| Properties: | ||
| Name: !Sub ${StackName}-TC009NHSNumber | ||
| Description: "List of NHS numbers that will trigger 'one or more prescriptions missing' response for testing purposes." | ||
| Type: String | ||
| Value: !Ref TC009NHSNumberValue | ||
|
|
||
| GetPfPParameterPolicy: | ||
| Type: AWS::IAM::ManagedPolicy | ||
| Properties: | ||
| Description: "Allows reading SSM parameters" | ||
| PolicyDocument: | ||
| Version: 2012-10-17 | ||
| Statement: | ||
| - Effect: Allow | ||
| Action: | ||
| - ssm:GetParameter | ||
| - ssm:GetParameters | ||
| Resource: | ||
| - !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${TC007NHSNumberParameter} | ||
| - !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${TC008NHSNumberParameter} | ||
| - !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${TC009NHSNumberParameter} | ||
|
|
||
| Outputs: | ||
| TC007NHSNumberParameterName: | ||
| Description: "Name of the SSM parameter holding TC007_NHS_Number" | ||
| Value: !Ref TC007NHSNumberParameter | ||
| Export: | ||
| Name: !Sub ${StackName}-TC007NHSNumberParameter | ||
|
|
||
| TC008NHSNumberParameterName: | ||
| Description: "Name of the SSM parameter holding TC008_NHS_Number" | ||
| Value: !Ref TC008NHSNumberParameter | ||
| Export: | ||
| Name: !Sub ${StackName}-TC008NHSNumberParameter | ||
|
|
||
| TC009NHSNumberParameterName: | ||
| Description: "Name of the SSM parameter holding TC009_NHS_Number" | ||
| Value: !Ref TC009NHSNumberParameter | ||
| Export: | ||
| Name: !Sub ${StackName}-TC009NHSNumberParameter | ||
|
|
||
| GetPfPParameterPolicy: | ||
| Description: Access to the parameters used by the notifications integration | ||
| Value: !Ref GetPfPParameterPolicy | ||
| Export: | ||
| Name: !Sub ${StackName}-GetPfPParameterPolicy |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.