Skip to content

Commit

Permalink
pool: (squash me) fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
khys95 committed Aug 22, 2024
1 parent e709a7c commit 18449e6
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions .ci/poolEndpoint.http
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,6 @@ Authorization: Basic {{user_name}} {{passwd}}
});
%}

####
#GET {{frontend-door}}{{endpoint}}{{poolmanager}}{{qosDiskGroup}}{{pools}}
#Authorization: Basic {{user_name}} {{passwd}}
#
#> {%
# client.test("Successful response when calling /pool", function() {
# client.assert(response.status === 200, "Response was not 200");
# client.assert(response.body[0] === "pool_res1", "index 0 is not pool_res1");
# client.assert(response.body[1] === "pool_res2", "index 1 is not pool_res2");
# client.assert(response.body[2] === "pool_res3", "index 2 is not pool_res3");
# client.assert(response.contentType !="application/json", "Content type is json");
# });
#%}

#### Get the list of pools inside the disk-qos
#GET {{frontend-door}}{{endpoint}}{{poolmanager}}{{qosDiskGroup}}{{pools}}
#Authorization: Basic {{user_name}} {{passwd}}
#
#> {%
# client.test("Successful response when calling /pool", function() {
# client.assert(response.status === 200, "Response was not 200");
# client.assert(response.body[0] === "pool_res1", "index 0 is not pool_res1");
# client.assert(response.body[1] === "pool_res2", "index 1 is not pool_res2");
# client.assert(response.body[2] === "pool_res3", "index 2 is not pool_res3");
# client.assert(response.contentType !="application/json", "Content type is json");
# });
#%}

### Get information about resgroup
GET {{frontend-door}}{{endpoint}}{{poolmanager}}{{resGroup}}
Content-Type: application/json
Authorization: Basic {{user_name}} {{passwd}}

> {%
client.test("Successful response and information when calling /resGroup", function() {
client.assert(response.status === 200, "Response was not 200");
client.assert(response.body["name"] === "resgroup", "incorrect group name");
client.assert(response.body["links"][0] === "resilient-link", "incorrect link");
client.assert(response.body["pools"][0] === "pool_res1", "index 0 is not pool_res1");
client.assert(response.body["pools"][1] === "pool_res2", "index 1 is not pool_res2");
client.assert(response.body["pools"][2] === "pool_res3", "index 2 is not pool_res3");
});
%}

### Get information about non existent group
GET {{frontend-door}}{{endpoint}}{{poolmanager}}{{nonExistentGroup}}{{pools}}
Content-Type: application/json
Expand All @@ -71,7 +27,8 @@ Content-Type: application/octet-stream

< README.md

### Migrate frontend file from pool_write to pool_res1

### Migrate frontend file from one pool to another pool
POST {{frontend-door}}{{endpoint}}{{migrations}}/copy
Content-Type: application/json
Authorization: Basic {{user_name}} {{passwd}}
Expand Down

0 comments on commit 18449e6

Please sign in to comment.