-
Notifications
You must be signed in to change notification settings - Fork 4
VED-982: Create POST MNS Notification #1211
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
Open
Akol125
wants to merge
32
commits into
staging/VED-16-mns-vacc-event-notifications
Choose a base branch
from
VED-982-Notification-Lambda-MNS
base: staging/VED-16-mns-vacc-event-notifications
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
01fa03c
build base schema
Akol125 953d861
setup base_schema from vaccs data
Akol125 32330cc
make pds call and move pds details to shared folder
Akol125 dcf31ef
fetch details from pds and add tests
Akol125 5de42d2
Merge remote-tracking branch 'origin/staging/VED-16-mns-vacc-event-no…
Akol125 8337ff0
fix terraform and test issues
Akol125 02945a1
add test for lambda
Akol125 2a946c3
refactor pds fetch details
Akol125 f31e8c2
add publish mns notification
Akol125 66c6d1e
refactor modules
Akol125 de2b372
fix tf duplication
Akol125 4d76908
bump test
Akol125 6290ba5
add terraform and revert id_sync
Akol125 44d469c
fix mns, test, pds
Akol125 565a765
add gp identifier
Akol125 9a58846
make payload dynamic
Akol125 9cc38bd
add typedicts, remove recursion
Akol125 ecdf384
refactor lambda and add env vars
Akol125 afe7bc9
fix sonar and terraform issues
Akol125 0297ee5
remove pdsSync found in id_sync
Akol125 a96582a
resolve type hinting and remove try catch
Akol125 a925afd
add secrets for tf and resolve sonar issues
Akol125 1ef1124
secret configurations
Akol125 96a4a13
fix e2e as base isn't master
Akol125 a8c3782
reflect new permission in e2e test
Akol125 1c92884
add conditional for patient_detials
Akol125 22fb4ed
remove test for attribute error
Akol125 f13b423
check logs to pinpoint pds bad request
Akol125 023942a
remove dynamo utils and add tests
Akol125 9305138
fail fast with no nhs_no and lambda int test
Akol125 7ab3bb3
integration test
Akol125 8e22a92
change subject age to integer in test
Akol125 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
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 |
|---|---|---|
| @@ -1,29 +0,0 @@ | ||
| """Tests for the search_url_helper file""" | ||
|
|
||
| import unittest | ||
|
|
||
| from service.search_url_helper import get_service_url | ||
|
|
||
|
|
||
| class TestServiceUrl(unittest.TestCase): | ||
| def test_get_service_url(self): | ||
| """it should create service url""" | ||
| test_cases = [ | ||
| ("pr-123", "https://internal-dev.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| (None, "https://internal-dev.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ("preprod", "https://int.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ("prod", "https://api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ("ref", "https://ref.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ("internal-dev", "https://internal-dev.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ("internal-qa", "https://internal-qa.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4"), | ||
| ] | ||
| mock_base_path = "immunisation-fhir-api/FHIR/R4" | ||
|
|
||
| for mock_env, expected in test_cases: | ||
| with self.subTest(mock_env=mock_env, expected=expected): | ||
| self.assertEqual(get_service_url(mock_env, mock_base_path), expected) | ||
|
|
||
| def test_get_service_url_uses_default_path_when_not_provided(self): | ||
| self.assertEqual( | ||
| get_service_url(None, None), "https://internal-dev.api.service.nhs.uk/immunisation-fhir-api/FHIR/R4" | ||
| ) | ||
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
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.