Skip to content

Commit d593077

Browse files
committed
- removed processes collection from test admin configuration files
1 parent c483943 commit d593077

File tree

3 files changed

+64
-10
lines changed

3 files changed

+64
-10
lines changed

pygeoapi/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ def get_admin(cfg: dict) -> dict:
816816
'description': 'Adds resource to configuration',
817817
'content': {
818818
'application/json': {
819-
'example': {'new-collection': cfg['resources'][res_eg_key]},
819+
'example': {'new-collection': cfg['resources'][res_eg_key]}, # noqa
820820
'schema': schema_dict['properties']['resources']['patternProperties']['^.*$'] # noqa
821821
}
822822
},

tests/data/admin/admin-put.json

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,71 @@
6161
}
6262
},
6363
"resources": {
64-
"hello-world": {
65-
"type": "process",
66-
"processor": {
67-
"name": "HelloWorld"
64+
65+
"obs": {
66+
"type": "collection",
67+
"title": "Observations",
68+
"description": "My cool observations",
69+
"keywords": [
70+
"observations",
71+
"monitoring"
72+
],
73+
"linked-data": {
74+
"context": [
75+
{
76+
"datetime": "https://schema.org/DateTime"
77+
},
78+
{
79+
"vocab": "https://example.com/vocab#",
80+
"stn_id": "vocab:stn_id",
81+
"value": "vocab:value"
6882
}
83+
]
84+
},
85+
"links": [
86+
{
87+
"type": "text/csv",
88+
"rel": "canonical",
89+
"title": "data",
90+
"href": "https://github.com/mapserver/mapserver/blob/branch-7-0/msautotest/wxs/data/obs.csv",
91+
"hreflang": "en-US"
92+
},
93+
{
94+
"type": "text/csv",
95+
"rel": "alternate",
96+
"title": "data",
97+
"href": "https://raw.githubusercontent.com/mapserver/mapserver/branch-7-0/msautotest/wxs/data/obs.csv",
98+
"hreflang": "en-US"
99+
}
100+
],
101+
"extents": {
102+
"spatial": {
103+
"bbox": [
104+
-180,
105+
-90,
106+
180,
107+
90
108+
],
109+
"crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
110+
},
111+
"temporal": {
112+
"begin": "2000-10-30T18:24:39+00:00",
113+
"end": "2007-10-30T08:57:29+00:00"
69114
}
115+
},
116+
"providers": [
117+
{
118+
"type": "feature",
119+
"name": "CSV",
120+
"data": "tests/data/obs.csv",
121+
"id_field": "id",
122+
"geometry": {
123+
"x_field": "long",
124+
"y_field": "lat"
125+
}
126+
}
127+
]
128+
}
70129
}
71130
}
72131

tests/pygeoapi-test-config-admin.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,3 @@ resources:
136136
geometry:
137137
x_field: long
138138
y_field: lat
139-
hello-world:
140-
type: process
141-
processor:
142-
name: HelloWorld
143-

0 commit comments

Comments
 (0)