progress to actually making requests
This commit is contained in:
54
tests.json
54
tests.json
@@ -2,43 +2,39 @@
|
||||
"name": "CBS test cases",
|
||||
"testCases": {
|
||||
"test1": {
|
||||
"path": "/hosts",
|
||||
"method": "GET",
|
||||
"description": "Check database query is working",
|
||||
"path": "/api/login",
|
||||
"method": "POST",
|
||||
"description": "Perform login",
|
||||
"body": {
|
||||
"username": "Administrator",
|
||||
"password": "Password123"
|
||||
},
|
||||
"expect": {
|
||||
"header": {
|
||||
"contains": {
|
||||
"equals": {
|
||||
"http_status": "200"
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
"contains": {
|
||||
"Cluster":"Cluster2"
|
||||
"access_token":"*"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
"test2": {
|
||||
"path": "/protected/hosts?key=e36689911ed0e9cba50c436b66d664cf9ee4f555e182a48021c21d9f7c640868",
|
||||
"method": "POST",
|
||||
"description": "Create new host",
|
||||
"path": "/api/secret/list",
|
||||
"method": "GET",
|
||||
"description": "List secrets",
|
||||
"header": {
|
||||
"Authorization": "Bearer %access_token%"
|
||||
},
|
||||
"body": {
|
||||
"Hostname":"host999.cdc.home",
|
||||
"IP":"10.63.39.5",
|
||||
"Subnet":"255.255.255.0",
|
||||
"Gateway":"10.63.39.1",
|
||||
"Vcenter":"avcp06.cdc.home",
|
||||
"Datacenter":"CDC",
|
||||
"Cluster":"Cluster",
|
||||
"MAC":"b8:2a:72:cf:84:99",
|
||||
"PerformReinstall":false,
|
||||
"BootWWN":"naa.70000970000297600333533030314130",
|
||||
"Vlan":"1000",
|
||||
"DNS":"10.63.39.1",
|
||||
"DNS2":"10.45.39.1",
|
||||
"NTP1":"10.63.39.1",
|
||||
"NTP2":"10.45.39.1",
|
||||
"BootTypeUefi":true
|
||||
"BootTypeUefi":true,
|
||||
"parent": {
|
||||
"childKey": "childValue"
|
||||
}
|
||||
},
|
||||
"expect": {
|
||||
"header": {
|
||||
@@ -49,8 +45,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "https://10.63.39.130:443",
|
||||
"url": "https://10.63.39.130:8443",
|
||||
"insecure": true,
|
||||
"header": {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
"capture": {
|
||||
"test1": {
|
||||
"body": {
|
||||
"access_token": "access_token"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user