-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (64 loc) · 2.43 KB
/
Copy pathtest-server.yml
File metadata and controls
70 lines (64 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Test GeoPressure API Server
# This workflow runs every 12 hours and can also be triggered manually
on:
schedule:
- cron: "0 */12 * * *" # Runs at minute 0 every 12th hour
workflow_dispatch:
jobs:
run-api-tests:
runs-on: ubuntu-latest
steps:
# Test GeoPressure v2/map endpoint
- name: Test v2/map endpoint
run: |
curl -X POST "https://glp.mgravey.com/GeoPressure/v2/map/" \
-H "Content-Type: application/json" \
-d '{
"W": -18,
"S": 4,
"E": 16,
"N": 51,
"time": [1572075000, 1572076800, 1572078600],
"pressure": [97766, 97800, 97833],
"label": [1, 1, 1]
}' \
--max-time 60
# Test GeoPressure v2/timeseries endpoint using startTime and endTime
- name: Test v2/timeseries with startTime and endTime
run: |
curl -X POST "https://glp.mgravey.com/GeoPressure/v2/timeseries/" \
-H "Content-Type: application/json" \
-d '{
"lon": 6,
"lat": 46,
"startTime": 1497916800,
"endTime": 1500667800
}' \
--max-time 60
# Test GeoPressure v2/timeseries endpoint using pressure timeseries
- name: Test v2/timeseries with pressure values
run: |
curl -X POST "https://glp.mgravey.com/GeoPressure/v2/timeseries/" \
-H "Content-Type: application/json" \
-d '{
"lon": 6,
"lat": 46,
"time": [1572075000, 1572076800, 1572078600],
"pressure": [97766, 97800, 97833]
}' \
--max-time 60
# Test GeoPressure v2/pressurepath endpoint using pressure timeseries
- name: Test v2/pressurepath
run: |
curl -X POST "https://glp.mgravey.com/GeoPressure/v2/pressurepath/" \
-H "Content-Type: application/json" \
-d '{
"lon": [17.5, 17.5, 17.5, 17.5, 17.5, 41.6, 41.6],
"lat": [48.5, 48.5, 48.5, 48.5, 48.5, 41.6, 41.6],
"time": [1501113600, 1501115400, 1501117200, 1501119000, 1501120800, 1501745400, 1501747200],
"variable": ["altitude", "surface_pressure"],
"dataset": "land",
"pressure": [98900, 99200, 99400, 99500, 99900, 100000, 100100],
"workers": 1
}' \
--max-time 60