Skip to content

Commit

Permalink
add cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzentic committed Aug 20, 2024
1 parent 86ebef3 commit 6131eae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ profiles:
- kafka-unbundler-consumer
- fhir-ig-importer
- reprocess-mediator
- openfn
envFiles:
- cdr-dw.env

Expand Down
24 changes: 24 additions & 0 deletions test/cucumber/features/single-mode/openfn.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Feature: OpenFn?
Does the OpenFn package work as expected

Scenario: Init OpenFn
Given I use parameters "package init -n=openfn --env-file=.env.local"
When I launch the platform with params
Then The service "openfn" should be started with 1 replica
And There should be 3 service
And The service "postgres-1" should be started with 1 replica
And The service "worker" should be started with 1 replica
And The service "openfn" should be connected to the networks
| postgres_public | kafka_public |

Scenario: Destroy OpenFn
Given I use parameters "package destroy -n=openfn --env-file=.env.local"
When I launch the platform with params
Then The service "openfn" should be removed
And The service "postgres-1" should be removed
And The service "worker" should be removed
And There should be 0 service
And There should be 0 volume
And There should be 0 config
And There should not be network
| postgres_public | kafka_public |
1 change: 1 addition & 0 deletions test/cucumber/features/single-mode/recipe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Feature: CDR-DW recipe?
And The service "minio-01" should be started with 1 replica
And The service "dashboard-visualiser-superset" should be started with 1 replica
And The service "analytics-datastore-clickhouse" should be started with 1 replica
And The service "openfn" should be started with 1 replica

Scenario: Send Fhir bundle and store the clinical data in the Fhir datastore, the patient info in the CR
Given I have configured the cdr
Expand Down

0 comments on commit 6131eae

Please sign in to comment.