Skip to content

Commit

Permalink
Update Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 6, 2024
1 parent 183a3b3 commit 08ea6ec
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 15 deletions.
60 changes: 45 additions & 15 deletions api/test/fixtures/get_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"query": false,
"res": true
},
"GET /config/group": {
"body": false,
"query": false,
"res": true
},
"GET /connection/:connectionid/channel": {
"body": false,
"query": false,
Expand Down Expand Up @@ -199,16 +204,6 @@
"query": false,
"res": true
},
"GET /connection/:connectionid/layer/:layerid/query": {
"body": false,
"query": true,
"res": true
},
"GET /connection/:connectionid/layer/:layerid/query/:featid": {
"body": false,
"query": false,
"res": true
},
"POST /layer/redeploy": {
"body": false,
"query": false,
Expand All @@ -221,17 +216,17 @@
},
"POST /connection/:connectionid/layer": {
"body": true,
"query": false,
"query": true,
"res": true
},
"PATCH /connection/:connectionid/layer/:layerid": {
"body": true,
"query": false,
"query": true,
"res": true
},
"GET /connection/:connectionid/layer/:layerid": {
"body": false,
"query": false,
"query": true,
"res": true
},
"POST /connection/:connectionid/layer/:layerid/redeploy": {
Expand Down Expand Up @@ -579,6 +574,16 @@
"query": true,
"res": false
},
"GET /marti/cot/:uid": {
"body": false,
"query": false,
"res": true
},
"GET /marti/cot/:uid/all": {
"body": false,
"query": true,
"res": true
},
"DELETE /marti/api/files/:hash": {
"body": false,
"query": true,
Expand All @@ -594,6 +599,11 @@
"query": false,
"res": true
},
"GET /marti/missions/:name/layer/:layerid": {
"body": false,
"query": false,
"res": true
},
"POST /marti/missions/:name/layer": {
"body": true,
"query": false,
Expand All @@ -609,6 +619,11 @@
"query": false,
"res": true
},
"GET /marti/missions/:name/log": {
"body": false,
"query": false,
"res": true
},
"POST /marti/missions/:name/log": {
"body": true,
"query": false,
Expand Down Expand Up @@ -699,12 +714,12 @@
"query": false,
"res": true
},
"GET /marti/package/:hash": {
"GET /marti/package/:uid": {
"body": false,
"query": false,
"res": true
},
"DELETE /marti/package/:hash": {
"DELETE /marti/package/:uid": {
"body": false,
"query": false,
"res": true
Expand All @@ -724,6 +739,16 @@
"query": true,
"res": true
},
"GET /marti/video/:uid": {
"body": false,
"query": false,
"res": true
},
"DELETE /marti/video/:uid": {
"body": false,
"query": false,
"res": true
},
"GET /marti/group": {
"body": false,
"query": true,
Expand Down Expand Up @@ -929,6 +954,11 @@
"query": true,
"res": true
},
"PATCH /user/:username": {
"body": true,
"query": false,
"res": true
},
"GET /user/:username": {
"body": false,
"query": false,
Expand Down
2 changes: 2 additions & 0 deletions api/test/server.srv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test('GET: api/server - Admin', async (t) => {
name: 'Default Server',
url: '',
api: '',
webtak: '',
auth: false
});
} catch (err) {
Expand Down Expand Up @@ -53,6 +54,7 @@ test('GET: api/server - User', async (t) => {
name: 'Default Server',
url: '',
api: '',
webtak: '',
auth: false
});
} catch (err) {
Expand Down

0 comments on commit 08ea6ec

Please sign in to comment.