move api tests
This commit is contained in:
+1
-1
@@ -3,4 +3,4 @@
|
|||||||
**/localdb.json
|
**/localdb.json
|
||||||
**/docs
|
**/docs
|
||||||
**/config.json
|
**/config.json
|
||||||
.vscode/settings.json
|
.vscode/*
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
### Get ticket
|
|
||||||
POST {{baseUrl}}/access/ticket
|
|
||||||
Content-Type: application/x-www-form-urlencoded
|
|
||||||
|
|
||||||
username={{username}}
|
|
||||||
&password={{password}}
|
|
||||||
|
|
||||||
### Get user
|
|
||||||
GET {{baseUrl}}/access/users/{{username}}
|
|
||||||
|
|
||||||
### Get group
|
|
||||||
GET {{baseUrl}}/access/groups/{{groupname}}
|
|
||||||
|
|
||||||
### Get all pools
|
|
||||||
GET {{baseUrl}}/access/pools/
|
|
||||||
|
|
||||||
### Get pool
|
|
||||||
GET {{baseUrl}}/access/pools/{{poolname}}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
### Get ticket
|
|
||||||
POST {{baseUrl}}/access/ticket
|
|
||||||
Content-Type: application/x-www-form-urlencoded
|
|
||||||
|
|
||||||
username={{username}}
|
|
||||||
&password={{password}}
|
|
||||||
|
|
||||||
### Get instance resources
|
|
||||||
GET {{baseUrl}}/cluster/{{testvmpath}}
|
|
||||||
|
|
||||||
### Get instance backups
|
|
||||||
GET {{baseUrl}}/cluster/{{testvmpath}}/backup
|
|
||||||
|
|
||||||
### Test create instance
|
|
||||||
|
|
||||||
POST {{baseUrl}}/cluster/{{testvmpath}}/create
|
|
||||||
Content-Type: application/x-www-form-urlencoded
|
|
||||||
|
|
||||||
name=testvm
|
|
||||||
&pool={{poolname}}
|
|
||||||
&cores=8
|
|
||||||
&memory=8192
|
|
||||||
|
|
||||||
### Test fail create instance
|
|
||||||
|
|
||||||
POST {{baseUrl}}/cluster/{{testvmpath}}/create
|
|
||||||
Content-Type: application/x-www-form-urlencoded
|
|
||||||
|
|
||||||
name=testvm
|
|
||||||
&pool={{poolname}}
|
|
||||||
&cores=9999
|
|
||||||
&memory=8192
|
|
||||||
|
|
||||||
### Test delete instance
|
|
||||||
|
|
||||||
DELETE {{baseUrl}}/cluster/{{testvmpath}}/delete
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
### Get version
|
|
||||||
GET {{baseUrl}}/version
|
|
||||||
Reference in New Issue
Block a user