-
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.
Merge pull request #331 from NHSDigital/AMB-2327-Fix-Pipeline-Issues
AMB-2327-fix-major-pipeline-issue
- Loading branch information
Showing
6 changed files
with
96 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Test for recordforwarder lambda""" | ||
|
||
import unittest | ||
|
||
## Remove this Test- this acting as a placeholder for actual record forwarder tests | ||
|
||
|
||
class Test_forward_lambda_handler(unittest.TestCase): | ||
def test_name_length(self): | ||
"""Test that the length of 'recordforwarder' is 15.""" | ||
name = "recordforwarder" | ||
self.assertEqual(len(name), 15) # This test will pass |
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ To run all the tests you need to provide a `.env` file. The below table describe | |
| APIGEE_USERNAME | [email protected] | this value is needed inorder to authenticate with apigee | | ||
| APIGEE_ENVIRONMENT | internal-dev | apigee environment | | ||
| PROXY_NAME | immunisation-fhir-api-pr-100 | this the proxy name that you want to target. You can find it in the apigee ui | | ||
| SERVICE_BASE_PATH | immunisation-fhir-api-pr-100 | the base path for the proxy. This value can be found in overview section in the apigee ui | | ||
| SERVICE_BASE_PATH | immunisation-fhir-api/FHIR/R4-pr-100 | the base path for the proxy. This value can be found in overview section in the apigee ui | | ||
| STATUS_API_KEY | secret | if you don't have this value then _status endpoint test will fail. You can ignore it | | ||
| AWS_PROFILE | apim-dev | some operation may need to run aws cli. This value is used for aws authentication | | ||
| AWS_DOMAIN_NAME | https://pr-100.imms.dev.vds.platform.nhs.uk | this value points to our backend deployment. We use it to test mTLS. Ignore it in local tests | | ||
|
@@ -40,7 +40,7 @@ Given your `.env` file: | |
export APIGEE_USERNAME=<your-apigee-email> | ||
export APIGEE_ENVIRONMENT=internal-dev | ||
export PROXY_NAME=immunisation-fhir-api-pr-100 | ||
export SERVICE_BASE_PATH=immunisation-fhir-api-pr-100 | ||
export SERVICE_BASE_PATH=immunisation-fhir-api/FHIR/R4-pr-100 | ||
``` | ||
|
||
You can run all tests using: | ||
|
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,32 +1,31 @@ | ||
[tool.poetry] | ||
name = "filenameprocessor" | ||
version = "0.1.0" | ||
name = "filenameprocessor" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "src"}] | ||
readme = "README.md" | ||
authors = ["Your Name <[email protected]>"] | ||
packages = [{ include = "src" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "~3.10" | ||
"fhir.resources" = "~7.0.2" | ||
boto3 = "~1.26.90" | ||
boto3-stubs-lite = {extras = ["dynamodb"], version = "~1.26.90"} | ||
aws-lambda-typing = "~2.18.0" | ||
moto = "~4.2.11" | ||
requests = "~2.31.0" | ||
responses = "~0.24.1" | ||
pydantic = "~1.10.13" | ||
pyjwt = "~2.8.0" | ||
cryptography = "~42.0.4" | ||
cffi = "~1.16.0" | ||
jsonpath-ng = "^1.6.0" | ||
simplejson = "^3.19.2" | ||
structlog = "^24.1.0" | ||
redis = "^5.1.1" | ||
coverage = "7.6.1" | ||
freezegun = "^1.5.1" | ||
python = "~3.10" | ||
"fhir.resources" = "~7.0.2" | ||
boto3 = "~1.26.90" | ||
boto3-stubs-lite = { extras = ["dynamodb"], version = "~1.26.90" } | ||
aws-lambda-typing = "~2.18.0" | ||
moto = "~4.2.11" | ||
requests = "~2.31.0" | ||
responses = "~0.24.1" | ||
pydantic = "~1.10.13" | ||
pyjwt = "~2.8.0" | ||
cryptography = "~42.0.4" | ||
cffi = "~1.16.0" | ||
jsonpath-ng = "^1.6.0" | ||
simplejson = "^3.19.2" | ||
structlog = "^24.1.0" | ||
redis = "^5.1.1" | ||
coverage = "7.6.1" | ||
freezegun = "^1.5.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core ~= 1.5.0"] | ||
|
||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core >= 1.5.0"] | ||
build-backend = "poetry.core.masonry.api" |
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