Skip to content

Commit 8a008c2

Browse files
committed
move catalog-update to correct location
1 parent 6b9e4cc commit 8a008c2

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

metadata/Example6.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"server": {
33
"id": "Example6",
44
"contact": "[email protected]",
5-
"HAPI": "2.0"
5+
"HAPI": "2.0",
6+
"catalog-update": 3
67
},
78
"data": {
89
"command": "\"$PYTHONEXE\" \"$HAPISERVERPATH/bin/Example.py\" --id ${id} --params ${parameters} --start ${start} --stop ${stop} --fmt ${format}",
@@ -16,6 +17,5 @@
1617
{"url": "data/?id=dataset1&parameters=scalar&time.min=1970-12-31T23:50Z&time.max=1971-01-01Z", "Nlines": 10}
1718
]
1819
},
19-
"catalog-update": 1,
2020
"catalog_file": "$HAPISERVERPATH/metadata/Example5/catalog.json"
2121
}

test/metadata/Deprecated1.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"server": {
3+
"id": "Deprecated1",
4+
"contact": "[email protected]",
5+
"HAPI": "2.0"
6+
},
7+
"data": {
8+
"command": "\"$PYTHONEXE\" \"$HAPISERVERPATH/bin/Example.py\" --id ${id} --params ${parameters} --start ${start} --stop ${stop} --fmt ${format}",
9+
"formats": ["csv","binary"],
10+
"contact": "[email protected]",
11+
"testcommands": [
12+
{"command": "\"$PYTHONEXE\" \"$HAPISERVERPATH/bin/Example.py\" --params scalar --start 1970-01-01T00:00:00.000000000Z --stop 1970-01-01T00:10:00.000000000Z","Nlines": 10}
13+
],
14+
"testurls": [
15+
{"url": "data/?id=dataset1&parameters=scalar&time.min=1970-01-01T00:00Z&time.max=1970-01-01T00:10Z", "Nlines": 10},
16+
{"url": "data/?id=dataset1&parameters=scalar&time.min=1970-12-31T23:50Z&time.max=1971-01-01Z", "Nlines": 10}
17+
]
18+
},
19+
"catalog": "cat $HAPISERVERPATH/test/metadata/Deprecated1/catalog.json"
20+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"id": "dataset1",
4+
"title": "Simple dataset generated by Python",
5+
"info": "cat $HAPISERVERPATH/metadata/Example4/dataset1_info.json"
6+
},
7+
{
8+
"id": "dataset2",
9+
"title": "Simple dataset generated by Python",
10+
"info": "$HAPISERVERPATH/metadata/Example4/dataset1_info.json"
11+
}
12+
]

test/metadata/Deprecated2.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"server": {
3+
"id": "Deprecated2",
4+
"contact": "[email protected]",
5+
"HAPI": "2.0"
6+
},
7+
"data": {
8+
"command": "\"$PYTHONEXE\" \"$HAPISERVERPATH/bin/Example.py\" --id ${id} --params ${parameters} --start ${start} --stop ${stop} --fmt ${format}",
9+
"formats": ["csv","binary"],
10+
"contact": "[email protected]",
11+
"testcommands": [
12+
{"command": "\"$PYTHONEXE\" \"$HAPISERVERPATH/bin/Example.py\" --params scalar --start 1970-01-01T00:00:00.000000000Z --stop 1970-01-01T00:10:00.000000000Z","Nlines": 10}
13+
],
14+
"testurls": [
15+
{"url": "data/?id=dataset1&parameters=scalar&time.min=1970-01-01T00:00Z&time.max=1970-01-01T00:10Z", "Nlines": 10},
16+
{"url": "data/?id=dataset1&parameters=scalar&time.min=1970-12-31T23:50Z&time.max=1971-01-01Z", "Nlines": 10}
17+
]
18+
},
19+
"catalog": "$HAPISERVERPATH/test/metadata/Deprecated1/catalog.json"
20+
}

0 commit comments

Comments
 (0)