Skip to content

Commit

Permalink
feat: tests for vuejs and api (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Jun 7, 2023
1 parent 20d1a93 commit de68e38
Show file tree
Hide file tree
Showing 15 changed files with 1,039 additions and 6 deletions.
8 changes: 8 additions & 0 deletions cases/vueapp/tests/data/createCaseCommentResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sodar_uuid": "b6c8bf50-11b8-4488-a4c1-ac3b9d005151",
"date_created": "2023-05-12T08:09:41.958458Z",
"date_modified": "2023-05-12T08:09:41.958471Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"user": "user",
"comment": "This is a case comment"
}
50 changes: 50 additions & 0 deletions cases/vueapp/tests/data/fetchAnnotationReleaseInfosResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"genomebuild": "GRCh37",
"table": "clinvar",
"timestamp": "2023-03-10T11:35:53.930173Z",
"release": "20210728"
},
{
"genomebuild": "GRCh37",
"table": "exac",
"timestamp": "2023-03-10T11:35:53.933422Z",
"release": "r1.0"
},
{
"genomebuild": "GRCh37",
"table": "gnomad_exomes",
"timestamp": "2023-03-10T11:35:53.936224Z",
"release": "r2.1.1"
},
{
"genomebuild": "GRCh37",
"table": "gnomad_genomes",
"timestamp": "2023-03-10T11:35:53.939080Z",
"release": "r2.1.1"
},
{
"genomebuild": "GRCh37",
"table": "hgmd_public",
"timestamp": "2023-03-10T11:35:53.941863Z",
"release": "ensembl_r104"
},
{
"genomebuild": "GRCh37",
"table": "thousand_genomes",
"timestamp": "2023-03-10T11:35:53.945427Z",
"release": "v3.20101123"
},
{
"genomebuild": "GRCh37",
"table": "varfish-annotator",
"timestamp": "2023-03-10T11:35:53.948175Z",
"release": "0.25"
},
{
"genomebuild": "GRCh37",
"table": "varfish-annotator-db",
"timestamp": "2023-03-10T11:35:53.950817Z",
"release": "r20210728b"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
50 changes: 50 additions & 0 deletions cases/vueapp/tests/data/fetchSvAnnotationReleaseInfosResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"genomebuild": "GRCh37",
"table": "clinvar",
"timestamp": "2023-03-10T11:41:42.970278Z",
"release": "20210728"
},
{
"genomebuild": "GRCh37",
"table": "exac",
"timestamp": "2023-03-10T11:41:42.974847Z",
"release": "r1.0"
},
{
"genomebuild": "GRCh37",
"table": "gnomad_exomes",
"timestamp": "2023-03-10T11:41:42.979254Z",
"release": "r2.1.1"
},
{
"genomebuild": "GRCh37",
"table": "gnomad_genomes",
"timestamp": "2023-03-10T11:41:42.983647Z",
"release": "r2.1.1"
},
{
"genomebuild": "GRCh37",
"table": "hgmd_public",
"timestamp": "2023-03-10T11:41:42.988077Z",
"release": "ensembl_r104"
},
{
"genomebuild": "GRCh37",
"table": "thousand_genomes",
"timestamp": "2023-03-10T11:41:42.992929Z",
"release": "v3.20101123"
},
{
"genomebuild": "GRCh37",
"table": "varfish-annotator",
"timestamp": "2023-03-10T11:41:42.997786Z",
"release": "0.25"
},
{
"genomebuild": "GRCh37",
"table": "varfish-annotator-db",
"timestamp": "2023-03-10T11:41:43.002510Z",
"release": "r20210728b"
}
]
18 changes: 18 additions & 0 deletions cases/vueapp/tests/data/listCaseCommentResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"sodar_uuid": "b6c8bf50-11b8-4488-a4c1-ac3b9d005151",
"date_created": "2023-05-12T08:09:41.958458Z",
"date_modified": "2023-05-12T08:09:41.958471Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"user": "user",
"comment": "This is a case comment"
},
{
"sodar_uuid": "b6c8bf50-11b8-4488-a4c1-ac3b9d005152",
"date_created": "2023-05-12T08:10:41.958458Z",
"date_modified": "2023-05-12T08:10:41.958471Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"user": "user",
"comment": "This is another case comment"
}
]
26 changes: 26 additions & 0 deletions cases/vueapp/tests/data/listCasePhenotypeTermsResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"sodar_uuid": "a9884765-648a-409b-8372-2d437acb1cc9",
"date_created": "2023-05-09T13:55:14.088750Z",
"date_modified": "2023-05-10T11:55:50.017110Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"individual": "Case_1_father-N1-DNA1-WGS1",
"terms": []
},
{
"sodar_uuid": "0fd90d0c-93ff-46a3-8187-37e00fcec42a",
"date_created": "2023-05-09T13:54:58.018007Z",
"date_modified": "2023-05-10T11:57:07.743668Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"individual": "Case_1_index-N1-DNA1-WGS1",
"terms": ["HP:0001362"]
},
{
"sodar_uuid": "73809074-02aa-4a9a-9f5d-878f7089bee8",
"date_created": "2023-05-10T11:18:09.901786Z",
"date_modified": "2023-05-10T11:51:39.315253Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"individual": "Case_1_mother-N1-DNA1-WGS1",
"terms": ["HP:0000886", "HP:0001631"]
}
]
41 changes: 41 additions & 0 deletions cases/vueapp/tests/data/retrieveCaseResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"sodar_uuid": "45847808-31a1-4f98-945f-675195708160",
"project": "a6a71b4c-112b-4bc9-9d0c-590523820e09",
"sex_errors": {},
"release": "GRCh37",
"name": "Case_1_index",
"index": "Case_1_index-N1-DNA1-WGS1",
"pedigree": [
{
"sex": 2,
"father": "Case_1_father-N1-DNA1-WGS1",
"mother": "Case_1_mother-N1-DNA1-WGS1",
"name": "Case_1_index-N1-DNA1-WGS1",
"affected": 2,
"has_gt_entries": true
},
{
"sex": 1,
"father": "0",
"mother": "0",
"name": "Case_1_father-N1-DNA1-WGS1",
"affected": 1,
"has_gt_entries": true
},
{
"sex": 2,
"father": "0",
"mother": "0",
"name": "Case_1_mother-N1-DNA1-WGS1",
"affected": 1,
"has_gt_entries": true
}
],
"notes": "",
"status": "initial",
"tags": [],
"date_created": "2023-03-10T11:35:53.895472Z",
"date_modified": "2023-03-10T11:41:43.283988Z",
"num_small_vars": 4175830,
"num_svs": 24163
}
8 changes: 8 additions & 0 deletions cases/vueapp/tests/data/updateCaseCommentResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sodar_uuid": "b6c8bf50-11b8-4488-a4c1-ac3b9d005151",
"date_created": "2023-05-12T08:09:41.958458Z",
"date_modified": "2023-05-12T09:04:27.818935Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"user": "user",
"comment": "This is an updated case comment"
}
28 changes: 28 additions & 0 deletions cases/vueapp/tests/data/updateCasePayload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"pedigree": [
{
"sex": 2,
"father": "Case_1_father-N1-DNA1-WGS1",
"mother": "Case_1_mother-N1-DNA1-WGS1",
"name": "Case_1_index-N1-DNA1-WGS1",
"affected": 2,
"has_gt_entries": true
},
{
"sex": 1,
"father": "0",
"mother": "0",
"name": "Case_1_father-N1-DNA1-WGS1",
"affected": 2,
"has_gt_entries": true
},
{
"sex": 2,
"father": "0",
"mother": "0",
"name": "Case_1_mother-N1-DNA1-WGS1",
"affected": 1,
"has_gt_entries": true
}
]
}
8 changes: 8 additions & 0 deletions cases/vueapp/tests/data/updateCasePhenotypeTermsResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sodar_uuid": "0fd90d0c-93ff-46a3-8187-37e00fcec42a",
"date_created": "2023-05-09T13:54:58.018007Z",
"date_modified": "2023-05-12T09:34:37.580876Z",
"case": "45847808-31a1-4f98-945f-675195708160",
"individual": "Case_1_index-N1-DNA1-WGS1",
"terms": ["HP:0001129"]
}
41 changes: 41 additions & 0 deletions cases/vueapp/tests/data/updateCaseResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"sodar_uuid": "45847808-31a1-4f98-945f-675195708160",
"project": "a6a71b4c-112b-4bc9-9d0c-590523820e09",
"sex_errors": {},
"release": "GRCh37",
"name": "Case_1_index",
"index": "Case_1_index-N1-DNA1-WGS1",
"pedigree": [
{
"sex": 2,
"father": "Case_1_father-N1-DNA1-WGS1",
"mother": "Case_1_mother-N1-DNA1-WGS1",
"name": "Case_1_index-N1-DNA1-WGS1",
"affected": 2,
"has_gt_entries": true
},
{
"sex": 1,
"father": "0",
"mother": "0",
"name": "Case_1_father-N1-DNA1-WGS1",
"affected": 2,
"has_gt_entries": true
},
{
"sex": 2,
"father": "0",
"mother": "0",
"name": "Case_1_mother-N1-DNA1-WGS1",
"affected": 1,
"has_gt_entries": true
}
],
"notes": "",
"status": "initial",
"tags": [],
"date_created": "2023-03-10T11:35:53.895472Z",
"date_modified": "2023-05-11T15:11:52.218355Z",
"num_small_vars": 4175830,
"num_svs": 24163
}
Loading

0 comments on commit de68e38

Please sign in to comment.