Integration Testing
Integration testing uses SynPUF data. The data dictionary for SynPUF data is located here. The S3 location for the SynPUF data is located at s3://novisci-test-data/cms-synpufs/data/.
ETL - asclepias
Setup
-
Install node following the additional instructions for integration testing.
-
Install the AWS CLI tools.
-
Install the haskell toolchain.
Get ETL Outputs
-
Clone the kafka-datapipe project, and open the project in your preferred IDE.
-
In the terminal, run
npm install
-
In the terminal, run the following commands:
./plans/synpuf/test-parsers.sh
-
Verify that
synpuf-events.jsonl
was created.
Verify ETL Outputs in an asclepias project
-
Clone the etl-integration project, and open the project in your preferred IDE.
-
Open
cabal.project
. -
In
cabal.project
, if needed, update thetag
forevent-data-model
.source-repository-package type: git location: https://cabal-project:xXv9gyJbBb3jzwo826Q9@gitlab.com/targetrwe/epistats/nsstat//event-data-model.git tag: {YOUR_TAG} subdir: fact-models
-
In
cabal.project
, if needed, update thetag
forasclepias
.source-repository-package type: git location: https://cabal-project:J38uzQKemY1n17Jq_yb_@gitlab.com/targetrwe/epistats/nsstat/asclepias.git tag: {YOUR_TAG} subdir: hasklepias-core hasklepias-main event-data-theory
-
Move the ETL output file,
synpuf-events.jsonl
, from thekafka-datapine
repo to theplans/data
folder inetl-integration
rep. -
Update the integration tests if needed.
-
Run
cabal build all
and resolve any issues. -
Run
cabal test all
and resolve any issues.