{ "name": "CBS test cases", "testCases": { "test1": { "path": "/api/login", "method": "POST", "description": "Perform login", "body": { "username": "Administrator", "password": "Password123" }, "expect": { "header": { "contains": { "http_status": "200", "Content-Type": "application/json" } }, "body": { "hasKeys": ["access_token"] } } }, "test12": { "path": "/api/secret/store", "method": "POST", "description": "store first new secret", "body": { "safeId": 1, "deviceName": { "random": { "isString": true, "length": 12 } }, "deviceCategory": "appliance", "userName": "service@cdc.home", "secretValue": { "random": { "isString": true, "length": 20 } } }, "expect": { "header": { "contains": { "http_status": "200" } } } } }, "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%" } } } }