Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

test: add Subscriptions test infrastructure/helper #569

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

carvantes
Copy link
Contributor

Description of changes:

Add a SAM app at integration-tests/infrastructure/subscriptions-endpoint that will be used to test Subscription notifications. Used SAM since it is the simplest way to set this up. At this moment there are no plans to deploy this in an automated fashion. This needs to be deployed only once in our test environments.

The SAM app creates an API (APIGW + Lambda) that can be used as an endpoint in FHIR Subscriptions integration tests. The Lambda function replies successfully to all requests and records the notification message in DynamoDB. The integration tests can query DynamoDB to verify that notifications were received.

Also added SubscriptionsHelper.ts to help retrieve notifications from the DDB table.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@carvantes carvantes requested a review from a team as a code owner February 16, 2022 08:01
@carvantes carvantes merged commit c001e7b into feat-subscriptions Feb 18, 2022
@carvantes carvantes deleted the dev-sub-test-infra branch February 18, 2022 00:58
carvantes added a commit that referenced this pull request Mar 7, 2022
* feat: add GSI to Resource DDB Table (#533)

* feat: Add data validation for subscription (#543)

* fix: remove _subsciptionStatus from export result field (#555)

* feat: sns, sqs, dlq for Subscriptions  (#554)

* feat: Rest hook Lambda (#558)

* feat: subscriptionReaper (#557)

* feat: add subscriptionsMatcher Lambda (#559)

* test: Add Subscriptions test infrastructure/helper (#569)

* fix: update unit tests for subscription reaper (#567)

* test: add subscriptions env vars in gh actions (#572)

* fix: encrypt logs for new Lambda fns (#574)

* test: add Subscription reaper tests (#575)

* feat: emit end to end latency metric from rest-hook Lambda (#570)

* test: add tests for tenant isolation of subscriptions (#577)

* feat: add DLQ for matcher Lambda (#576)

* test: add end to end tests for subscriptions (#578)

* perf: partial failures for restHook Lambda (#579)

* docs: add Subscription docs (#582)

Co-authored-by: Sukeerth Vegaraju <[email protected]>
Co-authored-by: zheyanyu <[email protected]>
Co-authored-by: Yanyu Zheng <[email protected]>
Co-authored-by: brndhpkn <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants