forked from Helioviewer-Project/helioviewer.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update schema rules (Helioviewer-Project#403)
* Organize schema test data * Allow boolean for followViewport in postMovie * Allow backslash and parentheses in event layer * add post screenshot test * Add cactus test case
- Loading branch information
1 parent
66ce884
commit c526b80
Showing
49 changed files
with
478 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
145 changes: 145 additions & 0 deletions
145
tests/unit_tests/validation/test_data/client_state/valid/valid_15.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"date": 1712557812000, | ||
"centerX": -172.3873528481749, | ||
"centerY": -216.25766746329495, | ||
"imageScale": 0.60511022, | ||
"eventLayers": { | ||
"tree_CCMC": { | ||
"id": "CCMC", | ||
"labels_visible": true, | ||
"layer_available_visible": true, | ||
"layers": [ | ||
{ | ||
"event_instances": [], | ||
"event_type": "AR", | ||
"frms": [ | ||
"NOAA_SWPC_Observer" | ||
], | ||
"open": true | ||
}, | ||
{ | ||
"event_instances": [], | ||
"event_type": "FL", | ||
"frms": [ | ||
"SWPC" | ||
], | ||
"open": true | ||
} | ||
], | ||
"markers_visible": true, | ||
"visible": true | ||
}, | ||
"tree_HEK": { | ||
"id": "HEK", | ||
"labels_visible": true, | ||
"layer_available_visible": true, | ||
"layers": [], | ||
"markers_visible": true, | ||
"visible": true | ||
}, | ||
"tree_RHESSI": { | ||
"id": "RHESSI", | ||
"labels_visible": true, | ||
"layer_available_visible": true, | ||
"layers": [ | ||
{ | ||
"event_instances": [], | ||
"event_type": "AR", | ||
"frms": [ | ||
"NOAA_SWPC_Observer" | ||
], | ||
"open": true | ||
}, | ||
{ | ||
"event_instances": [], | ||
"event_type": "FL", | ||
"frms": [ | ||
"SWPC" | ||
], | ||
"open": true | ||
} | ||
], | ||
"markers_visible": true, | ||
"visible": true | ||
} | ||
}, | ||
"imageLayers": [ | ||
{ | ||
"end": "2024-04-08 06:30:13", | ||
"start": "2024-04-08 06:19:24", | ||
"opacity": 35, | ||
"visible": true, | ||
"diffTime": 1, | ||
"nickname": "IRIS SJI 2796", | ||
"sourceId": 89, | ||
"uiLabels": [ | ||
{ | ||
"name": "IRIS", | ||
"label": "" | ||
}, | ||
{ | ||
"name": "SJI", | ||
"label": "Instrument" | ||
}, | ||
{ | ||
"name": "2796", | ||
"label": "" | ||
} | ||
], | ||
"diffCount": 60, | ||
"Instrument": "SJI", | ||
"difference": 0, | ||
"Measurement": "2796", | ||
"Observatory": "IRIS", | ||
"baseDiffTime": "2024-06-12T08:32:57.000Z", | ||
"layeringOrder": 1 | ||
}, | ||
{ | ||
"end": "2024-06-11 06:38:14", | ||
"start": "2012-07-05 00:09:05", | ||
"opacity": "100", | ||
"visible": "1", | ||
"diffTime": 1, | ||
"nickname": "AIA 1600", | ||
"sourceId": 15, | ||
"uiLabels": [ | ||
{ | ||
"name": "SDO", | ||
"label": "" | ||
}, | ||
{ | ||
"name": "AIA", | ||
"label": "" | ||
}, | ||
{ | ||
"name": "1600", | ||
"label": "" | ||
} | ||
], | ||
"diffCount": 60, | ||
"Instrument": "AIA", | ||
"difference": 0, | ||
"Measurement": "1600", | ||
"Observatory": "SDO", | ||
"baseDiffTime": "2024-04-08T05:30:13.000Z", | ||
"layeringOrder": 1 | ||
} | ||
], | ||
"celestialBodies": { | ||
"soho": [ | ||
"soho-mercury-tree-label", | ||
"soho-venus-tree-label", | ||
"soho-mars-tree-label", | ||
"soho-jupiter-tree-label", | ||
"soho-saturn-tree-label", | ||
"soho-uranus-tree-label", | ||
"soho-neptune-tree-label" | ||
], | ||
"stereo_a": [ | ||
"stereo_a-mercury-tree-label" | ||
], | ||
"stereo_b": [ | ||
"stereo_b-mercury-tree-label" | ||
] | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
tests/unit_tests/validation/test_data/client_state/valid/valid_16.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"date": 1697979187000, | ||
"imageScale": 4.84088176, | ||
"centerX": 100.29816701545585, | ||
"centerY": 1064.2094221854543, | ||
"imageLayers": [ | ||
{ | ||
"uiLabels": [ | ||
{ | ||
"label": "Observatory", | ||
"name": "SDO" | ||
}, | ||
{ | ||
"label": "Instrument", | ||
"name": "AIA" | ||
}, | ||
{ | ||
"label": "Measurement", | ||
"name": "131" | ||
} | ||
], | ||
"Observatory": "SDO", | ||
"Instrument": "AIA", | ||
"Measurement": "131", | ||
"visible": "1", | ||
"opacity": 100, | ||
"difference": 0, | ||
"diffCount": 60, | ||
"diffTime": 1, | ||
"baseDiffTime": "2018-03-30T04:18:36.000Z", | ||
"sourceId": 9, | ||
"nickname": "AIA 131", | ||
"layeringOrder": 1, | ||
"start": "2010-06-02 00:05:35", | ||
"end": "2024-07-22 15:48:07" | ||
} | ||
], | ||
"eventLayers": { | ||
"tree_HEK": { | ||
"id": "HEK", | ||
"layers": [ | ||
{ | ||
"event_type": "CE", | ||
"frms": [ | ||
"CACTus_\\(Computer_Aided_CME_Tracking\\)" | ||
], | ||
"event_instances": [], | ||
"open": 1 | ||
} | ||
], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": false | ||
}, | ||
"tree_CCMC": { | ||
"id": "CCMC", | ||
"layers": [], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": true | ||
}, | ||
"tree_RHESSI": { | ||
"id": "RHESSI", | ||
"layers": [], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": true | ||
} | ||
}, | ||
"celestialBodies": { | ||
"soho": [ | ||
"soho-mercury-tree-label", | ||
"soho-venus-tree-label", | ||
"soho-mars-tree-label", | ||
"soho-jupiter-tree-label", | ||
"soho-saturn-tree-label", | ||
"soho-uranus-tree-label", | ||
"soho-neptune-tree-label" | ||
], | ||
"stereo_a": [], | ||
"stereo_b": [ | ||
"stereo_b-mercury-tree-label", | ||
"stereo_b-venus-tree-label", | ||
"stereo_b-earth-tree-label", | ||
"stereo_b-mars-tree-label", | ||
"stereo_b-jupiter-tree-label", | ||
"stereo_b-saturn-tree-label", | ||
"stereo_b-uranus-tree-label", | ||
"stereo_b-neptune-tree-label" | ||
] | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions
49
tests/unit_tests/validation/test_data/post_movie/valid/post_movie_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"imageScale": 6.18140735516908, | ||
"layers": "[SDO,AIA,131,1,100,0,60,1,2018-03-30T04:18:36.000Z]", | ||
"eventsState": { | ||
"tree_HEK": { | ||
"id": "HEK", | ||
"layers": [], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": false | ||
}, | ||
"tree_CCMC": { | ||
"id": "CCMC", | ||
"layers": [], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": true | ||
}, | ||
"tree_RHESSI": { | ||
"id": "RHESSI", | ||
"layers": [], | ||
"visible": true, | ||
"labels_visible": true, | ||
"markers_visible": true, | ||
"layer_available_visible": true | ||
} | ||
}, | ||
"scale": true, | ||
"scaleType": "earth", | ||
"scaleX": -2541, | ||
"scaleY": 266, | ||
"format": "mp4", | ||
"size": 0, | ||
"movieIcons": 0, | ||
"followViewport": 0, | ||
"reqObservationDate": "2024-07-22T15:48:07.000Z", | ||
"switchSources": false, | ||
"celestialBodiesLabels": "soho-mercury,soho-venus,soho-mars,soho-jupiter,soho-saturn,soho-uranus,soho-neptune,stereo_b-mercury,stereo_b-venus,stereo_b-earth,stereo_b-mars,stereo_b-jupiter,stereo_b-saturn,stereo_b-uranus,stereo_b-neptune", | ||
"celestialBodiesTrajectories": "", | ||
"x1": -3813.9283381393225, | ||
"x2": 4296.07811184251, | ||
"y1": -776.8998873768866, | ||
"y2": 3203.926449352001, | ||
"startTime": "2024-07-22T03:48:07.000Z", | ||
"endTime": "2024-07-23T03:48:07.000Z", | ||
"frameRate": 15 | ||
} |
Oops, something went wrong.