Skip to content

Commit b7c7d05

Browse files
committed
Minor fixes
1 parent 4863474 commit b7c7d05

File tree

8 files changed

+109
-6
lines changed

8 files changed

+109
-6
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- name: Run unittest with batchprocessorfilter-coverage
5050
working-directory: batch_processor_filter
5151
id: batchprocessorfilter
52+
env:
53+
PYTHONPATH: ${{ github.workspace }}/batch_processor_filter/src:${{ github.workspace }}/batch_processor_filter/tests
5254
continue-on-error: true
5355
run: |
5456
poetry install

batch_processor_filter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ COPY src .
2222
RUN chmod 644 $(find . -type f) && chmod 755 $(find . -type d)
2323
# Build as non-root user
2424
USER 1001:1001
25-
CMD ["batch_processor_filter.lambda_handler"]
25+
CMD ["lambda_handler.lambda_handler"]

batch_processor_filter/poetry.lock

Lines changed: 102 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

batch_processor_filter/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ readme = "README.md"
77
packages = [{include = "src"}]
88

99
[tool.poetry.dependencies]
10-
python = "~3.11"
10+
python = "~3.11"
11+
coverage = "^7.9.1"
1112

1213
[build-system]
1314
requires = ["poetry-core ~= 1.5.0"]

batch_processor_filter/test/test_lambda_handler.py renamed to batch_processor_filter/tests/test_lambda_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from lambda_handler import lambda_handler
44

5+
56
class TestLambdaHandler(TestCase):
67
def test_lambda_handler(self):
78
result = lambda_handler({}, {})

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sonar.organization=nhsdigital
44
sonar.host.url=https://sonarcloud.io
55
sonar.python.version=3.11
66
sonar.exclusions=**/e2e/**,**/e2e_batch/**,**/temporary_sandbox/**,**/devtools/**,**/proxies/**,**/scripts/**,**/terraform/**,**/tests/**,redis_sync/src/log_decorator.py
7-
sonar.python.coverage.reportPaths=backend-coverage.xml,delta-coverage.xml,ack-lambda-coverage.xml,filenameprocessor-coverage.xml,recordforwarder-coverage.xml,recordprocessor-coverage.xml,mesh_processor-coverage.xml,redis_sync-coverage.xml,mns_subscription-coverage.xml,id_sync-coverage.xml,shared-coverage.xml
7+
sonar.python.coverage.reportPaths=backend-coverage.xml,delta-coverage.xml,ack-lambda-coverage.xml,filenameprocessor-coverage.xml,recordforwarder-coverage.xml,recordprocessor-coverage.xml,mesh_processor-coverage.xml,redis_sync-coverage.xml,mns_subscription-coverage.xml,id_sync-coverage.xml,shared-coverage.xml,batchprocessorfilter-coverage.xml
88
sonar.cpd.exclusions=**/cache.py,**/authentication.py,**/test_cache.py,**/test_authentication.py,**/mns_service.py,**/errors.py,redis_sync/src/log_decorator.py,**/Dockerfile,lambdas/shared/src/common/**,filenameprocessor/src/logging_decorator.py
99
sonar.issue.ignore.multicriteria=exclude_snomed_urls,exclude_hl7_urls
1010
sonar.issue.ignore.multicriteria.exclude_snomed_urls.ruleKey=python:S5332

terraform/sqs_batch_file_created.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# FIFO SQS Queue - targeted by Filename Processor Lambda function
22
resource "aws_sqs_queue" "batch_file_created" {
33
name = "${local.short_prefix}-batch-file-created-queue.fifo"
4-
policy = data.aws_iam_policy_document.batch_file_created_queue_policy.json
54
fifo_queue = true
65
content_based_deduplication = true # Optional, helps with deduplication
76
visibility_timeout_seconds = 900 # TODO - discuss and refine both this, max receives and DLQ

0 commit comments

Comments
 (0)