All checks were successful
continuous-integration/drone/push Build is passing
66 lines
1.8 KiB
JSON
66 lines
1.8 KiB
JSON
{
|
|
"name": "CBS normal user testing",
|
|
"testCases": {
|
|
"test1": {
|
|
"path": "/api/login",
|
|
"method": "POST",
|
|
"description": "Perform login",
|
|
"body": {
|
|
"username": "nathtest",
|
|
"password": "VMware1!"
|
|
},
|
|
"expect": {
|
|
"header": {
|
|
"contains": {
|
|
"http_status": "200",
|
|
"Content-Type": "application/json"
|
|
}
|
|
},
|
|
"body": {
|
|
"hasKeys": ["access_token"]
|
|
}
|
|
}
|
|
},
|
|
"test20": {
|
|
"path": "/api/secret/list",
|
|
"disabled": false,
|
|
"method": "GET",
|
|
"description": "List secrets",
|
|
"header": {
|
|
"Authorization": "Bearer %ACCESS_TOKEN%"
|
|
},
|
|
"expect": {
|
|
"header": {
|
|
"contains": {
|
|
"http_status": "200"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"test22": {
|
|
"path": "/api/secret/update",
|
|
"method": "POST",
|
|
"description": "try update existing secret",
|
|
"body": {
|
|
"deviceName": "adcp01.cdc.home",
|
|
"deviceCategory": "windows-server",
|
|
"userName": "dummy@cdc.home",
|
|
"secretValue": "TheWiggles"
|
|
}
|
|
}
|
|
},
|
|
"url": "https://10.63.39.130:8443",
|
|
"insecure": true,
|
|
"header": {
|
|
"Content-Type": "application/json",
|
|
"Authorization": "Bearer %ACCESS_TOKEN%"
|
|
},
|
|
"capture": {
|
|
"test1": {
|
|
"body": {
|
|
"access_token": "%ACCESS_TOKEN%"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|