-
Notifications
You must be signed in to change notification settings - Fork 3
CCM-13278: CCM-12616 + CCM-13278 #186
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 145 commits
Commits
Show all changes
159 commits
Select commit
Hold shift + click to select a range
2562437
CCM-12616: Added py-mock-mesh module
gareth-allan 0da3abd
CCM-12616: Replaced mesh-poll Lambda with a skeleton Python version
gareth-allan b141b21
CCM-12616: test
lapenna-bjss 9876b1d
CCM-12616: add false positive to .gitleaksignore
lapenna-bjss 331d6c4
CCM-12616: fix sonarcloud issues
lapenna-bjss 2ed8cf1
CCM-12616: fix sonarcloud issues
lapenna-bjss 73fbd53
CCM-12616: Exclude mesh poll lambda from SonarCloud coverage temporarily
lapenna-bjss ce9e182
CCM-12616: add poetry install to pre.sh
lapenna-bjss cc83432
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss e02647d
CCM-12616: update .gitignore
lapenna-bjss dc0f7cf
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 19b16de
CCM-12616: mesh-poll lambda
lapenna-bjss 29fa28c
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 092fd3f
CCM-12616: terraform code
lapenna-bjss 94a2f08
CCM-12616: metric publisher
lapenna-bjss 8631401
CCM-12616: mock mesh only when enabled
lapenna-bjss bc10540
CCM-12616: add senderId to CloudEvent data
lapenna-bjss d1c9cd7
CCM-12616: mesh-download lambda
lapenna-bjss 51181ca
CCM-12616: add document_store tests
lapenna-bjss c045cc1
CCM-12616: update mesh download tests
lapenna-bjss 0e51120
CCM-12616: add S3 putObject statement for storing messages when mock …
lapenna-bjss 1054505
CCM-12616: add messageReference to the event data
lapenna-bjss d6dc913
CCM-12616: rename client to sender
lapenna-bjss f068287
CCM-12616: fix sonar issue
lapenna-bjss 3059592
CCM-12616: move docs dependencies to a separate make command
lapenna-bjss b43fed5
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 0624e52
CCM-12616: update python runtime
lapenna-bjss 92ce87f
CCM-12616: update ssm prefixes with the correct paths
lapenna-bjss 904756a
CCM-12616: add shared MESH config
lapenna-bjss e024971
CCM-12616: update pipeline
lapenna-bjss 9a401da
CCM-12616: update config and tests
lapenna-bjss 7691746
CCM-12616: resolve comments
lapenna-bjss 0498402
CCM-12616: resolve comments
lapenna-bjss b0cf0c8
CCM-12616: fix pipeline issues
lapenna-bjss 360cdfb
CCM-12616: fix pipeline issues
lapenna-bjss 3589952
CCM-12616: test
lapenna-bjss ae8b458
CCM-12616: test
lapenna-bjss 4fd7343
CCM-12616: test
lapenna-bjss a912dae
CCM-12616: test
lapenna-bjss 0ace208
CCM-12616: test
lapenna-bjss 36b94ec
CCM-12616: revert changes
lapenna-bjss ff2e5b7
CCM-12616: test
lapenna-bjss eae4795
CCM-12616: test
lapenna-bjss e07f431
CCM-12616: test
lapenna-bjss 1ed06b2
CCM-12616: fix sonarcloud coverage issues
lapenna-bjss aa80734
CCM-12616: fix sonarcloud coverage issues
lapenna-bjss e8d06a0
CCM-12616: convert poetry to pip
lapenna-bjss 62035fb
CCM-12616: test
lapenna-bjss 8baf979
CCM-12616: test
lapenna-bjss 21e3c2e
CCM-12616: test
lapenna-bjss d312464
CCM-12616: add setup.py files
lapenna-bjss abcee60
CCM-12616: update coverage.xml paths
lapenna-bjss 5f559b8
CCM-12616: update coverage.xml paths
lapenna-bjss 9000b50
CCM-12616: update sonar-scanner.properties
lapenna-bjss b79e3d4
CCM-12616: update sonar-scanner.properties
lapenna-bjss 9c8741c
CCM-12616: remove poetry from pre.sh
lapenna-bjss 4656623
CCM-12616: fix Unsupported attribute error
lapenna-bjss f2061ab
CCM-12616: fix lambda env vars
lapenna-bjss 8a0b984
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 590d3df
CCM-12616: skip build docs step
lapenna-bjss ff76bbc
CCM-12616: test deployment
lapenna-bjss bb0454e
CCM-12616: test deployment
lapenna-bjss 367c5e9
CCM-12616: Restore previously disabled pipeline steps
lapenna-bjss e3cfa1d
CCM-12616: Update Readme
lapenna-bjss bd975fb
CCM-12616: Update Makefile
lapenna-bjss 73278ca
CCM-12616: Update sonar properties
lapenna-bjss ca56d6e
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 295dfe8
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
gareth-allan e2a1485
CCM-12616: Remove mesh-poll lambda from workspace Jest folders
gareth-allan 5b7ea7a
CCM-12616: Update events published to match latest schemas
gareth-allan b066e55
CCM-12616: Updated base CloudEvent model to match latest schemas
gareth-allan c7076d1
CCM-12616: Attempt to fix mesh-poll lambda's packaging
gareth-allan ebfb170
CCM-12616: Attempt to fix mesh-poll lambda entrypoint
gareth-allan 02e1566
CCM-12616: Another mesh-poll packaging tweak
gareth-allan 242e7c0
CCM-12616: Fix mesh-poll SSM parameters
gareth-allan a39f0f7
CCM-12616: Fix import module error
lapenna-bjss ee8fc7d
Merge branch 'feature/CCM-12616_mesh_poll_retrieve' of https://github…
lapenna-bjss 7bcdbb6
CCM-12616: Update runtime version
lapenna-bjss fe52cd2
CCM-12616: Test
lapenna-bjss 309c771
CCM-12616: Test
lapenna-bjss e666aca
CCM-12616: Don't zip Python lambda output when packaging
gareth-allan d991073
CCM-12616: Allow mesh_poll lambda to call ssm:GetParameter
gareth-allan 6dbd587
CCM-12616: Fix SSM parameter format in mesh_poll IAM policy
gareth-allan e317569
CCM-12616: Update mesh download package script
lapenna-bjss 0ec4b00
CCM-12616: Add setup file to mesh download
lapenna-bjss 9a3afe3
CCM-12616: Fix mesh download tests
lapenna-bjss e26a815
CCM-12616: Add SSM statement to mesh download
lapenna-bjss f0eebf1
CCM-12616: Add MESH SSM parameter configuration
lapenna-bjss 857a9b8
CCM-12616: Add false positive to .gitleaksignore
lapenna-bjss 9c6663b
CCM-12616: Increase mesh poll timeout
lapenna-bjss da8ad2c
CCM-12616: Update mesh poll S3 terraform statement
lapenna-bjss cf5b80e
CCM-12616: Fix pydantic model
lapenna-bjss cb465f3
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 662ee02
CCM-12616: Update the Eventbridge rule
lapenna-bjss 8e68276
CCM-12616: Update package-lock file
lapenna-bjss 779ba5b
CCM-12616: Fix linting error
lapenna-bjss 0941047
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
lapenna-bjss 4b55ec4
CCM-12616: Fix linting error
lapenna-bjss dc9058b
CCM-12616: Add a retrieve_message method
lapenna-bjss 80e2506
CCM-12616: 100
lapenna-bjss eff74d0
CCM-13278: Create skeleton mesh-acknowledge lambda
gareth-allan 4bc5589
CCM-12616: Component tests
lapenna-bjss 7bd4a78
CCM-12616: Fix linting errors
lapenna-bjss f507c23
CCM-13278: Add Terraform for mesh-acknowledge lambda
gareth-allan 2c856d1
CCM-13278: Add data.meshMessageId field to MESHInboxMessageDownloaded
gareth-allan 5d72645
CCM-13278: Add component tests for MESH acknowledger
gareth-allan b66f602
CCM-13278: Update VSCode workspace config
gareth-allan 471f603
CCM-13278: Add Python utilities
gareth-allan 92f86cc
CCM-13278: Add Python sender lookup utility
gareth-allan b1a6b60
CCM-13278: Implement mesh-acknowledge lambda
gareth-allan d43848e
CCM-12616: Update tests
lapenna-bjss 68847d3
CCM-12616: Update ssm prefix path
lapenna-bjss 832f32e
Merge branch 'feature/CCM-12616_mesh_poll_retrieve' into feature/CCM-…
lapenna-bjss d1b6379
Merge branch 'main' into feature/CCM-13278_mesh_acknowledge
simonlabarere 4c7c531
Merge branch 'main' into feature/CCM-13278_mesh_acknowledge
simonlabarere 588d8a6
CCM-13278: Fix code duplication
simonlabarere a25b591
CCM-13278: Fix code duplication
simonlabarere 8d97642
CCM-13278: Fix TF
simonlabarere 57cb594
CCM-13278: Fix TF
simonlabarere 790876a
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve_compone…
simonlabarere 5b224e4
CCM-12616: Split MESH/Senders config
simonlabarere c137d99
CCM-12616: Split MESH/Senders config
simonlabarere ec89ccd
CCM-12616: Split MESH/Senders config
simonlabarere bf613ce
CCM-12616: Split MESH/Senders config
simonlabarere 709cab7
CCM-12616: Adjust component test
simonlabarere 44f3682
CCM-12616: Adjust component test
simonlabarere 2117067
CCM-13278: Updated TF config
simonlabarere 99ceb79
CCM-12616: Remove mesh cert expiry metric from MESH Download
simonlabarere c8dfd68
CCM-13278: Remove MESH cert expiry metric from MESH Acknowledge
simonlabarere c2008de
CCM-13278: Address review comments
simonlabarere c78c8ae
CCM-12616: Fix event subject + fix component tests
simonlabarere 775291f
CCM-12616: More test fixing
simonlabarere 3f47a03
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve_compone…
simonlabarere 98792ed
CCM-13278: Create Python Utility library
simonlabarere b4edb2b
CCM-13278: Improve test coverage
simonlabarere 1148cb7
CCM-13278: Improve test coverage
simonlabarere 2b0fb1d
Merge branch 'main' into feature/CCM-13278_mesh_acknowledge
simonlabarere bf08827
Merge branch 'feature/CCM-13278_mesh_acknowledge' into feature/CCM-12…
simonlabarere e033336
CCM-13278: Merge libraries into utility library
simonlabarere 6c3043e
CCM-13278: Fix py-utils dependencies
simonlabarere a71f655
CCM-12616: Fix MESH lamdbas
simonlabarere c53a07c
CCM-12616: Fix MESH lamdbas
simonlabarere b1f1ec2
Merge branch 'main' into feature/CCM-12616_CCM-13278
simonlabarere 6d9206f
CCM-12616: Fix wheel vulnerability
simonlabarere 83c17f4
CCM-13278: Update dev dependencies
simonlabarere bcd23e8
CCM-12616: Remove console.log from tests
simonlabarere 55ca418
CCM-12616: fix MESH lambda publishing events with null fields
simonlabarere 63ad676
CCM-12616: fix MESH lambda publishing events with null fields
simonlabarere 2d76693
CCM-12616: fix MESH lambda publishing events with null fields
simonlabarere b520be7
CCM-12616: fix MESH lambda publishing events with null fields
simonlabarere 47825f7
CCM-12616: Allow PDM uploader to read from pii-data bucket
simonlabarere b711319
Merge branch 'main' into feature/CCM-12616_CCM-13278
simonlabarere ea5d05d
CCM-12616: Add test for InvalidMeshEndpointError
simonlabarere 2cc6ab6
Merge branch 'main' into feature/CCM-12616_CCM-13278
simonlabarere 0ceaa4c
Merge branch 'main' into feature/CCM-12616_CCM-13278
simonlabarere c57ca0d
CCM-12616: fix main merge
simonlabarere dfa4b24
Merge branch 'main' into feature/CCM-12616_CCM-13278
simonlabarere 6cf6c1e
CCM-12616: Address review comments
simonlabarere dc1d7a1
CCM-12616: Fix CVE for @isaacs/brace-expansion
simonlabarere 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
10 changes: 10 additions & 0 deletions
10
...astructure/terraform/components/dl/lambda_event_source_mapping_mesh_acknowledge_lambda.tf
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,10 @@ | ||
| resource "aws_lambda_event_source_mapping" "sqs_mesh_acknowledge_lambda" { | ||
| event_source_arn = module.sqs_mesh_acknowledge.sqs_queue_arn | ||
| function_name = module.mesh_acknowledge.function_name | ||
| batch_size = var.queue_batch_size | ||
| maximum_batching_window_in_seconds = var.queue_batch_window_seconds | ||
|
|
||
| function_response_types = [ | ||
| "ReportBatchItemFailures" | ||
| ] | ||
| } |
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
150 changes: 150 additions & 0 deletions
150
infrastructure/terraform/components/dl/module_lambda_mesh_acknowledge.tf
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,150 @@ | ||
| module "mesh_acknowledge" { | ||
| source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip" | ||
|
|
||
| function_name = "mesh-acknowledge" | ||
| description = "A lambda function for acknowledging MESH messages" | ||
| aws_account_id = var.aws_account_id | ||
| component = local.component | ||
| environment = var.environment | ||
| project = var.project | ||
| region = var.region | ||
| group = var.group | ||
|
|
||
| log_retention_in_days = var.log_retention_in_days | ||
| kms_key_arn = module.kms.key_arn | ||
|
|
||
| iam_policy_document = { | ||
| body = data.aws_iam_policy_document.mesh_acknowledge_lambda.json | ||
| } | ||
|
|
||
| function_s3_bucket = local.acct.s3_buckets["lambda_function_artefacts"]["id"] | ||
| function_code_base_path = local.aws_lambda_functions_dir_path | ||
| function_code_dir = "mesh-acknowledge/target/dist" | ||
| function_include_common = true | ||
| function_module_name = "mesh_acknowledge" | ||
| handler_function_name = "handler.handler" | ||
| runtime = "python3.14" | ||
| memory = 128 | ||
| timeout = 5 | ||
| log_level = var.log_level | ||
|
|
||
| force_lambda_code_deploy = var.force_lambda_code_deploy | ||
| enable_lambda_insights = false | ||
|
|
||
| log_destination_arn = local.log_destination_arn | ||
| log_subscription_role_arn = local.acct.log_subscription_role_arn | ||
|
|
||
| lambda_env_vars = { | ||
| DLQ_URL = module.sqs_mesh_acknowledge.sqs_dlq_url | ||
|
aidenvaines-cgi marked this conversation as resolved.
Outdated
|
||
| ENVIRONMENT = var.environment | ||
| EVENT_PUBLISHER_DLQ_URL = module.sqs_event_publisher_errors.sqs_queue_url | ||
| EVENT_PUBLISHER_EVENT_BUS_ARN = aws_cloudwatch_event_bus.main.arn | ||
| MOCK_MESH_BUCKET = module.s3bucket_non_pii_data.bucket | ||
| SSM_MESH_PREFIX = "${local.ssm_mesh_prefix}" | ||
| SSM_SENDERS_PREFIX = "${local.ssm_senders_prefix}" | ||
| USE_MESH_MOCK = var.enable_mock_mesh ? "true" : "false" | ||
| } | ||
|
|
||
| } | ||
|
|
||
| data "aws_iam_policy_document" "mesh_acknowledge_lambda" { | ||
| statement { | ||
| sid = "KMSPermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "kms:Decrypt", | ||
| "kms:GenerateDataKey", | ||
| ] | ||
|
|
||
| resources = [ | ||
| module.kms.key_arn, | ||
| ] | ||
| } | ||
|
|
||
| statement { | ||
| sid = "SQSPermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "sqs:ReceiveMessage", | ||
| "sqs:DeleteMessage", | ||
| "sqs:GetQueueAttributes", | ||
| ] | ||
|
|
||
| resources = [ | ||
| module.sqs_mesh_acknowledge.sqs_queue_arn, | ||
| ] | ||
| } | ||
|
|
||
| statement { | ||
| sid = "SQSDLQPermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "sqs:SendMessage", | ||
| ] | ||
|
|
||
| resources = [ | ||
| module.sqs_mesh_acknowledge.sqs_dlq_arn, | ||
| ] | ||
| } | ||
|
|
||
| statement { | ||
| sid = "EventBridgePermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "events:PutEvents", | ||
| ] | ||
|
|
||
| resources = [ | ||
| aws_cloudwatch_event_bus.main.arn, | ||
| ] | ||
| } | ||
|
|
||
| statement { | ||
| sid = "DLQPermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "sqs:SendMessage", | ||
| "sqs:SendMessageBatch", | ||
| ] | ||
|
|
||
| resources = [ | ||
| module.sqs_event_publisher_errors.sqs_queue_arn, | ||
| ] | ||
| } | ||
|
|
||
| statement { | ||
| sid = "SSMPermissions" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "ssm:GetParameter", | ||
| "ssm:GetParametersByPath", | ||
| ] | ||
|
|
||
| resources = [ | ||
| "arn:aws:ssm:${var.region}:${var.aws_account_id}:parameter${local.ssm_prefix}/*" | ||
| ] | ||
| } | ||
|
|
||
| # Grant S3 PutObject permissions for the mock-mesh directory only when the mock is enabled | ||
| dynamic "statement" { | ||
| for_each = var.enable_mock_mesh ? [1] : [] | ||
| content { | ||
| sid = "MockMeshPutObject" | ||
| effect = "Allow" | ||
|
|
||
| actions = [ | ||
| "s3:PutObject", | ||
| ] | ||
|
|
||
| resources = [ | ||
| "${module.s3bucket_non_pii_data.arn}/mock-mesh/*" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
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
38 changes: 38 additions & 0 deletions
38
infrastructure/terraform/components/dl/module_sqs_mesh_acknowledge.tf
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,38 @@ | ||
| module "sqs_mesh_acknowledge" { | ||
| source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-sqs.zip" | ||
|
|
||
| aws_account_id = var.aws_account_id | ||
| component = local.component | ||
| environment = var.environment | ||
| project = var.project | ||
| region = var.region | ||
| name = "mesh-acknowledge" | ||
|
|
||
| sqs_kms_key_arn = module.kms.key_arn | ||
|
|
||
| visibility_timeout_seconds = 60 | ||
|
|
||
| create_dlq = true | ||
|
|
||
| sqs_policy_overload = data.aws_iam_policy_document.sqs_mesh_acknowledge.json | ||
| } | ||
|
|
||
| data "aws_iam_policy_document" "sqs_mesh_acknowledge" { | ||
| statement { | ||
| sid = "AllowEventBridgeToSendMessage" | ||
| effect = "Allow" | ||
|
|
||
| principals { | ||
| type = "Service" | ||
| identifiers = ["events.amazonaws.com"] | ||
| } | ||
|
|
||
| actions = [ | ||
| "sqs:SendMessage" | ||
| ] | ||
|
|
||
| resources = [ | ||
| "arn:aws:sqs:${var.region}:${var.aws_account_id}:${local.csi}-mesh-acknowledge-queue" | ||
| ] | ||
| } | ||
| } |
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,2 @@ | ||
| __pycache__ | ||
| .venv |
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,34 @@ | ||
| PACKAGE=mesh_acknowledge | ||
| VERSION=0.1.0 | ||
|
|
||
| install: | ||
| pip install -r requirements.txt | ||
|
|
||
| install-dev: | ||
| pip install -r requirements-dev.txt | ||
|
|
||
| test: | ||
| cd ../.. && PYTHONPATH=lambdas/mesh-acknowledge:$$PYTHONPATH pytest lambdas/mesh-acknowledge/mesh_acknowledge/__tests__/ -v | ||
|
|
||
| coverage: | ||
| cd ../.. && PYTHONPATH=lambdas/mesh-acknowledge:$$PYTHONPATH pytest lambdas/mesh-acknowledge/mesh_acknowledge/__tests__/ \ | ||
| --cov=lambdas/mesh-acknowledge/mesh_acknowledge \ | ||
| --cov-config=lambdas/mesh-acknowledge/pytest.ini \ | ||
| --cov-report=html:lambdas/mesh-acknowledge/htmlcov \ | ||
| --cov-report=term-missing \ | ||
| --cov-report=xml:lambdas/mesh-acknowledge/coverage.xml \ | ||
| --cov-branch | ||
|
|
||
| lint: | ||
| pylint mesh_acknowledge | ||
|
|
||
| format: | ||
| autopep8 -ri . | ||
|
|
||
| package: | ||
| ../../utils/package_python_lambda.sh meshacknowledgelambda | ||
|
|
||
| clean: | ||
| rm -rf target | ||
|
|
||
| .PHONY: install install-dev test coverage lint format package clean |
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,9 @@ | ||
| """ | ||
| MESH Acknowledge Lambda | ||
|
|
||
| This lambda handles acknowledging received MESH files, by sending a message to the MESH inbox of | ||
| their sender. | ||
| """ | ||
|
|
||
| __version__ = '0.1.0' | ||
| from .handler import * |
1 change: 1 addition & 0 deletions
1
lambdas/mesh-acknowledge/mesh_acknowledge/__tests__/__init__.py
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 @@ | ||
| # Test package init |
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.