-
Notifications
You must be signed in to change notification settings - Fork 8
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 #278 from jembi/e2e-tests-for-recipes
E2e tests for recipes
- Loading branch information
Showing
19 changed files
with
3,165 additions
and
963 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
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
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
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,5 +1,5 @@ | ||
psycopg2>=2.9.9 | ||
clickhouse-connect>=0.7.0 | ||
flask-oidc>=1.3.0 | ||
itsdangerous>=2.0.1 | ||
flask_openid>=1.3.0 | ||
flask-oidc==1.3.0 | ||
itsdangerous==2.0.1 | ||
flask_openid==1.3.0 |
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
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
34 changes: 34 additions & 0 deletions
34
test/cucumber/features/cluster-mode/recipe.cluster.feature
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,34 @@ | ||
Feature: CDR recipe? | ||
Does the recipe work as expected | ||
|
||
Scenario: Init the CDR recipe | ||
Given I use parameters "package init -p cdr-dw --dev --env-file=.env.cluster" | ||
When I launch the platform with params | ||
Then The service "mongo-1" should be started with 1 replica | ||
And The service "openhim-core" should be started with 3 replica | ||
And The service "openhim-console" should be started with 3 replica | ||
And The service "kafka-unbundler-consumer" should be started with 1 replica | ||
And The service "kafka-mapper-consumer" should be started with 1 replica | ||
|
||
Scenario: Send Fhir bundle and store the clinical data in the Fhir datastore, and the patient info in the CR | ||
Given I have configured the cdr | ||
When I send a fhir patient bundle | ||
Then the clinical data should be stored in hapi fhir | ||
And the patient data in the Jempi client registry | ||
And the data should be stored in clickhouse | ||
|
||
Scenario: Fetch International Patient summary (IPS) | ||
When I send a fhir patient bundle | ||
And I then send a fhir patient summary request | ||
Then I should get a successful summary response | ||
|
||
Scenario: Fetch everything for a patient (all the clinical data) | ||
When I send a fhir patient bundle | ||
And I then send a request for all the patient's clinical data | ||
Then I should get a successful everything response | ||
|
||
Scenario: Destroy the services | ||
Given I use parameters "package remove -p cdr-dw --env-file=.env.cluster" | ||
When I launch the platform with params | ||
Then There should be 0 service | ||
And There should be 0 volume |
Oops, something went wrong.