Skip to content

Commit

Permalink
Update TEsts
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 24, 2024
1 parent 98fdbff commit 6ab5faf
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 72 deletions.
1 change: 1 addition & 0 deletions api/lib/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Err from '@openaddresses/batch-error';
handlebars.registerHelper('fallback', (...params: Array<unknown>) => {
params.pop(); // Contains Config stuff from handlebars
const found = params.find(el => !!el)
return found;
})

interface ValidateStyle {
Expand Down
159 changes: 87 additions & 72 deletions api/test/fixtures/get_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"GET /basemap/:basemapid/tiles": {
"body": false,
"query": true,
"res": false
"res": true
},
"GET /basemap/:basemapid/tiles/:z/:x/:y": {
"body": false,
Expand Down Expand Up @@ -449,166 +449,166 @@
"query": false,
"res": true
},
"GET /iconset": {
"GET /layer": {
"body": false,
"query": true,
"res": true
},
"POST /iconset": {
"body": true,
"GET /data/:dataid": {
"body": false,
"query": false,
"res": true
},
"PATCH /iconset/:iconset": {
"body": true,
"GET /layer/:layerid": {
"body": false,
"query": false,
"res": true
},
"GET /iconset/:iconset": {
"GET /template": {
"body": false,
"query": true,
"res": true
},
"DELETE /iconset/:iconset": {
"GET /template/:templateid": {
"body": false,
"query": false,
"res": true
},
"POST /iconset/:iconset/icon": {
"PATCH /template/:templateid": {
"body": true,
"query": false,
"res": true
},
"GET /icon": {
"DELETE /template/:templateid": {
"body": false,
"query": true,
"query": false,
"res": true
},
"GET /iconset/:iconset/icon/:icon": {
"POST /template": {
"body": true,
"query": false,
"res": true
},
"GET /ldap/channel": {
"body": false,
"query": true,
"res": true
},
"POST /ldap/user": {
"body": true,
"query": false,
"res": true
},
"PATCH /iconset/:iconset/icon/:icon": {
"POST /login": {
"body": true,
"query": false,
"res": true
},
"DELETE /iconset/:iconset/icon/:icon": {
"GET /login": {
"body": false,
"query": false,
"res": true
},
"GET /iconset/:iconset/icon/:icon/raw": {
"body": false,
"POST /marti/export": {
"body": true,
"query": true,
"res": false
},
"GET /icon/sprite:size?.json": {
"DELETE /marti/api/files/:hash": {
"body": false,
"query": true,
"res": false
"res": true
},
"GET /icon/sprite:size?.png": {
"GET /marti/api/files/:hash": {
"body": false,
"query": true,
"res": false
},
"GET /layer": {
"GET /marti/missions/:name/layer": {
"body": false,
"query": true,
"query": false,
"res": true
},
"GET /data/:dataid": {
"body": false,
"POST /marti/missions/:name/layer": {
"body": true,
"query": false,
"res": true
},
"GET /layer/:layerid": {
"PATCH /marti/missions/:name/layer/:uid": {
"body": true,
"query": false,
"res": true
},
"DELETE /marti/missions/:name/layer/:uid": {
"body": false,
"query": false,
"res": true
},
"GET /template": {
"GET /iconset": {
"body": false,
"query": true,
"res": true
},
"GET /template/:templateid": {
"body": false,
"POST /iconset": {
"body": true,
"query": false,
"res": true
},
"PATCH /template/:templateid": {
"PATCH /iconset/:iconset": {
"body": true,
"query": false,
"res": true
},
"DELETE /template/:templateid": {
"GET /iconset/:iconset": {
"body": false,
"query": true,
"res": true
},
"DELETE /iconset/:iconset": {
"body": false,
"query": false,
"res": true
},
"POST /template": {
"POST /iconset/:iconset/icon": {
"body": true,
"query": false,
"res": true
},
"GET /ldap/channel": {
"GET /icon": {
"body": false,
"query": true,
"res": true
},
"POST /ldap/user": {
"body": true,
"GET /iconset/:iconset/icon/:icon": {
"body": false,
"query": false,
"res": true
},
"POST /login": {
"PATCH /iconset/:iconset/icon/:icon": {
"body": true,
"query": false,
"res": true
},
"GET /login": {
"DELETE /iconset/:iconset/icon/:icon": {
"body": false,
"query": false,
"res": true
},
"POST /marti/export": {
"body": true,
"GET /iconset/:iconset/icon/:icon/raw": {
"body": false,
"query": true,
"res": false
},
"DELETE /marti/api/files/:hash": {
"GET /icon/sprite:size?.json": {
"body": false,
"query": true,
"res": true
"res": false
},
"GET /marti/api/files/:hash": {
"GET /icon/sprite:size?.png": {
"body": false,
"query": true,
"res": false
},
"GET /marti/missions/:name/layer": {
"body": false,
"query": false,
"res": true
},
"POST /marti/missions/:name/layer": {
"body": true,
"query": false,
"res": true
},
"PATCH /marti/missions/:name/layer/:uid": {
"body": true,
"query": false,
"res": true
},
"DELETE /marti/missions/:name/layer/:uid": {
"body": false,
"query": false,
"res": true
},
"POST /marti/missions/:name/log": {
"body": true,
"query": false,
Expand Down Expand Up @@ -704,6 +704,11 @@
"query": false,
"res": true
},
"GET /marti/video": {
"body": false,
"query": true,
"res": true
},
"GET /marti/group": {
"body": false,
"query": true,
Expand Down Expand Up @@ -744,6 +749,16 @@
"query": false,
"res": true
},
"GET /overlay/:overlay/tiles": {
"body": false,
"query": true,
"res": true
},
"GET /overlay/:overlay/tiles/:z/:x/:y": {
"body": false,
"query": true,
"res": false
},
"GET /profile/asset": {
"body": false,
"query": false,
Expand Down Expand Up @@ -834,34 +849,34 @@
"query": false,
"res": true
},
"GET /search/reverse/:longitude/:latitude": {
"GET /server": {
"body": false,
"query": false,
"res": true
},
"GET /search/forward": {
"body": false,
"query": true,
"PATCH /server": {
"body": true,
"query": false,
"res": true
},
"GET /search/suggest": {
"GET /swagger": {
"body": false,
"query": true,
"query": false,
"res": true
},
"GET /server": {
"GET /search/reverse/:longitude/:latitude": {
"body": false,
"query": false,
"res": true
},
"PATCH /server": {
"body": true,
"query": false,
"GET /search/forward": {
"body": false,
"query": true,
"res": true
},
"GET /swagger": {
"GET /search/suggest": {
"body": false,
"query": false,
"query": true,
"res": true
},
"GET /task": {
Expand Down

0 comments on commit 6ab5faf

Please sign in to comment.