diff --git a/config.yaml b/config.yaml index 83c989f4..53d78b01 100644 --- a/config.yaml +++ b/config.yaml @@ -48,6 +48,7 @@ profiles: - kafka-unbundler-consumer - fhir-ig-importer - reprocess-mediator + - openfn envFiles: - cdr-dw.env diff --git a/test/cucumber/features/single-mode/openfn.feature b/test/cucumber/features/single-mode/openfn.feature new file mode 100644 index 00000000..0b61ab77 --- /dev/null +++ b/test/cucumber/features/single-mode/openfn.feature @@ -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 | diff --git a/test/cucumber/features/single-mode/recipe.feature b/test/cucumber/features/single-mode/recipe.feature index c676be79..8e8a7cc7 100644 --- a/test/cucumber/features/single-mode/recipe.feature +++ b/test/cucumber/features/single-mode/recipe.feature @@ -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