Skip to content

Commit 2ecd0ea

Browse files
committed
updated test criteria with new validDt schema
1 parent 534c825 commit 2ecd0ea

File tree

2 files changed

+79
-2
lines changed

2 files changed

+79
-2
lines changed
Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,71 @@
1-
{"corrId": {"originator": "IMS", "uuid": "fd35adec-d2a0-49a9-a320-df20a7b6d681", "issueDt": "2024-01-02T03:00:00.000Z"}, "location": {"features": [{"geometry": {"coordinates": [-113.9595, 46.8571], "type": "Point"}, "properties": {"name": "Missoula"}, "type": "Feature"}]}, "validDt": ["2024-01-02T15:00:00.000Z", "2024-01-02T16:00:00.000Z"], "conditions": [{"name": "Minor", "severity": "MINOR", "combined": "A", "partsUsed": ["A"]}], "parts": [{"name": "A", "duration": 0, "arealPercentage": 0, "region": "CONUS", "product": {"fcst": ["NBM"]}, "field": "TEMP", "units": "DEG F", "relational": "LESS THAN", "thresh": 32, "mapping": {"min": 17, "max": 47, "clip": "true"}}], "tags": {"values": [], "keyValues": {"name": "GSL Test 1", "nwsOffice": "GSL"}}}
1+
{
2+
"corrId": {
3+
"originator": "IMS",
4+
"uuid": "fd35adec-d2a0-49a9-a320-df20a7b6d681",
5+
"issueDt": "2024-01-02T03:00:00.000Z"
6+
},
7+
"location": {
8+
"features": [
9+
{
10+
"geometry": {
11+
"coordinates": [
12+
-113.9595,
13+
46.8571
14+
],
15+
"type": "Point"
16+
},
17+
"properties": {
18+
"name": "Missoula"
19+
},
20+
"type": "Feature"
21+
}
22+
]
23+
},
24+
"validDt": [
25+
{
26+
"times": [
27+
"2024-01-02T15:00:00.000Z",
28+
"2024-01-02T16:00:00.000Z"
29+
]
30+
}
31+
],
32+
"conditions": [
33+
{
34+
"name": "Minor",
35+
"severity": "MINOR",
36+
"combined": "A",
37+
"partsUsed": [
38+
"A"
39+
]
40+
}
41+
],
42+
"parts": [
43+
{
44+
"name": "A",
45+
"duration": 0,
46+
"arealPercentage": 0,
47+
"region": "CONUS",
48+
"product": {
49+
"fcst": [
50+
"NBM"
51+
]
52+
},
53+
"field": "TEMP",
54+
"units": "DEG F",
55+
"relational": "LESS THAN",
56+
"thresh": 32,
57+
"mapping": {
58+
"min": 17,
59+
"max": 47,
60+
"clip": "true"
61+
}
62+
}
63+
],
64+
"tags": {
65+
"values": [],
66+
"keyValues": {
67+
"name": "GSL Test 1",
68+
"nwsOffice": "GSL"
69+
}
70+
}
71+
}

python/idsse/testing/ims_request/simple_temp_criteria.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
}
2222
]
2323
},
24-
"validDt": ["2024-01-02T15:00:00.000Z", "2024-01-02T16:00:00.000Z"],
24+
"validDt": [
25+
{
26+
"times": [
27+
"2024-01-02T15:00:00.000Z",
28+
"2024-01-02T16:00:00.000Z"
29+
]
30+
}
31+
],
2532
"conditions": [
2633
{
2734
"name": "Minor",

0 commit comments

Comments
 (0)