Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for validating integrity of fixtures in tests workflow #2013

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/test-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
load: true
set: |
*.cache-from=type=local,src=/tmp/.buildx-cache
*.cache-to=type=local,dest=/tmp/.buildx-cache-new
*.cache-from=type=local,src=/tmp/.buildx-cache
*.cache-to=type=local,dest=/tmp/.buildx-cache-new
files: docker-compose.yaml,docker-compose.local.yaml

- name: Start services
Expand All @@ -35,6 +35,9 @@ jobs:
- name: Check migrations
run: make checkmigration

- name: Validate integrity of fixtures
run: make load-dummy-data

- name: Run tests
run: make test-coverage

Expand Down
4 changes: 2 additions & 2 deletions data/dummy/facility.json
Original file line number Diff line number Diff line change
Expand Up @@ -3206,7 +3206,7 @@
"modified_date": "2023-12-07T08:47:53.751Z",
"deleted": false,
"patient": 18,
"patient_no": "IP008",
"patient_no": "IP02578",
"facility": 1,
"deprecated_diagnosis": "",
"deprecated_icd11_provisional_diagnoses": "[]",
Expand Down Expand Up @@ -3277,7 +3277,7 @@
"modified_date": "2023-12-15T08:47:53.751Z",
"deleted": false,
"patient": 18,
"patient_no": "IP009",
"patient_no": "IP1009",
"facility": 1,
"deprecated_diagnosis": "",
"deprecated_icd11_provisional_diagnoses": "[]",
Expand Down
24 changes: 24 additions & 0 deletions data/dummy/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"phone_number": "+919696969696",
"alt_phone_number": null,
"gender": 3,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": false,
Expand Down Expand Up @@ -57,6 +58,7 @@
"phone_number": "+911234567891",
"alt_phone_number": "+911234567891",
"gender": 3,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -92,6 +94,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -127,6 +130,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -162,6 +166,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -197,6 +202,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -232,6 +238,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -267,6 +274,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -302,6 +310,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -337,6 +346,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -372,6 +382,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -407,6 +418,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -442,6 +454,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -477,6 +490,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -512,6 +526,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -547,6 +562,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -582,6 +598,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -617,6 +634,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -652,6 +670,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -687,6 +706,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": null,
"verified": true,
Expand Down Expand Up @@ -722,6 +742,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": 1,
"verified": true,
Expand Down Expand Up @@ -757,6 +778,7 @@
"phone_number": "+919876543219",
"alt_phone_number": "+919876543219",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": 1,
"verified": true,
Expand Down Expand Up @@ -792,6 +814,7 @@
"phone_number": "+918878825662",
"alt_phone_number": "+918878825662",
"gender": 2,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": 1,
"verified": true,
Expand Down Expand Up @@ -827,6 +850,7 @@
"phone_number": "+918744587566",
"alt_phone_number": "+918744587566",
"gender": 1,
"video_connect_link": null,
"date_of_birth": "2005-01-01",
"home_facility": 1,
"verified": true,
Expand Down
Loading