56 lines
1.7 KiB
JSON
56 lines
1.7 KiB
JSON
{
|
|
"name": "CBS test cases",
|
|
"testCases": [
|
|
{
|
|
"path": "/hosts",
|
|
"method": "GET",
|
|
"description": "Check database query is working",
|
|
"expect": {
|
|
"header": {
|
|
"contains": {
|
|
"http_status": "200"
|
|
}
|
|
},
|
|
"body": {
|
|
"contains": {
|
|
"Cluster":"Cluster2"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"path": "/protected/hosts?key=e36689911ed0e9cba50c436b66d664cf9ee4f555e182a48021c21d9f7c640868",
|
|
"method": "POST",
|
|
"description": "Create new host",
|
|
"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
|
|
},
|
|
"expect": {
|
|
"header": {
|
|
"contains": {
|
|
"http_status": "201"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"url": "https://10.63.39.130:443",
|
|
"header": {
|
|
"Content-Type": "application/json"
|
|
}
|
|
} |