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 19, 2024
1 parent c02e8bd commit b91c62e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 47 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
4 changes: 2 additions & 2 deletions http-client.private.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"qos-policy": "/qos-policy",
"namespace": "/namespace",
"labels": "/labels",
"sourcePool" : "\"pool_a\"",
"sourcePool" : "pool_a",
"target": "hsm",
"targetPools": "\"pool_b\"",
"targetPools": "pool_b",
"osm_targetPools": "\"osm\"",
"wrong_src_pool_name" : "wrong_src_pool_name",
"wrong_target_pool_name" : "wrong_target_pool_name",
Expand Down

0 comments on commit b91c62e

Please sign in to comment.