tweak output formatting
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2024-01-10 09:40:31 +11:00
parent a31b01af4d
commit 509f687d6b
6 changed files with 126 additions and 11 deletions

View File

@@ -99,7 +99,7 @@
},
"test10": {
"path": "/api/admin/unlock",
"disabled": true,
"disabled": false,
"method": "POST",
"description": "provide unlock key",
"body": {
@@ -115,7 +115,7 @@
},
"test11": {
"path": "/api/admin/unlock",
"disabled": true,
"disabled": false,
"method": "POST",
"description": "repeat provide unlock key",
"body": {
@@ -129,6 +129,26 @@
}
}
},
"test12": {
"path": "/api/secret/store",
"disabled": true,
"method": "POST",
"description": "store first new secret",
"body": {
"safeId": 1,
"deviceName": "avcp01.cdc.home",
"deviceCategory": "appliance",
"userName": "service@cdc.home",
"secretValue": "TheWiggles"
},
"expect": {
"header": {
"contains": {
"http_status": "200"
}
}
}
},
"test20": {
"path": "/api/secret/list",
"disabled": false,
@@ -179,8 +199,30 @@
}
}
}
},
},
"test23": {
"path": "/api/secret/retrieve",
"method": "POST",
"description": "get updated secret",
"body": {
"deviceName": "adcp01.cdc.home",
"deviceCategory": "windows-server",
"userName": "dummy@cdc.home"
},
"expect": {
"header": {
"contains": {
"http_status": "200"
}
},
"body": {
"contains": {
"deviceName": "adcp01.cdc.home"
}
}
}
},
"test24": {
"path": "/api/secret/delete",
"method": "POST",
"description": "delete existing secret",
@@ -197,7 +239,7 @@
}
}
},
"test24": {
"test25": {
"path": "/api/secret/store",
"method": "POST",
"description": "store new secret",
@@ -216,7 +258,7 @@
}
}
},
"test25": {
"test26": {
"path": "/api/secret/retrieve",
"method": "POST",
"description": "test retrieving the new secret",