From be82519d8078d36e62644ee9c3eb4ec071cf8c7e Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 18 Aug 2026 22:59:10 +0000 Subject: [PATCH] move api tests --- .gitignore | 2 +- api/test_access.http | 18 ------------------ api/test_instance.http | 36 ------------------------------------ api/test_version.http | 2 -- 4 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 api/test_access.http delete mode 100644 api/test_instance.http delete mode 100644 api/test_version.http diff --git a/.gitignore b/.gitignore index 6e7e310..8deb802 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ **/localdb.json **/docs **/config.json -.vscode/settings.json \ No newline at end of file +.vscode/* \ No newline at end of file diff --git a/api/test_access.http b/api/test_access.http deleted file mode 100644 index 606ba5e..0000000 --- a/api/test_access.http +++ /dev/null @@ -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}} \ No newline at end of file diff --git a/api/test_instance.http b/api/test_instance.http deleted file mode 100644 index 50db5d7..0000000 --- a/api/test_instance.http +++ /dev/null @@ -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 \ No newline at end of file diff --git a/api/test_version.http b/api/test_version.http deleted file mode 100644 index 25e2a0d..0000000 --- a/api/test_version.http +++ /dev/null @@ -1,2 +0,0 @@ -### Get version -GET {{baseUrl}}/version \ No newline at end of file