Skip to content

Commit

Permalink
ci: update webdaav-door path to run in kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
khys95 committed Aug 22, 2024
1 parent 18449e6 commit d37e05c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 38 deletions.
41 changes: 4 additions & 37 deletions .ci/poolEndpoint.http
Original file line number Diff line number Diff line change
@@ -1,45 +1,12 @@
### POOL endpoint GET request
GET {{frontend-door}}{{endpoint}}{{pools}}
Content-Type: application/json
Authorization: Basic {{user_name}} {{passwd}}

> {%
client.test("Successful response when calling /pool", function() {
client.assert(response.status === 200, "Response was not 200");
});
%}

### Get information about non existent group
GET {{frontend-door}}{{endpoint}}{{poolmanager}}{{nonExistentGroup}}{{pools}}
Content-Type: application/json
Authorization: Basic {{user_name}} {{passwd}}

> {%
client.test("Successful response when calling /pool", function() {
client.assert(response.status === 500, "Response was not 500");
});
%}

### Upload frontend file
PUT {{webdav-door}}/frontendReadMeFile
PUT {{webdav-door}}/ReadMeFile
Authorization: Basic {{user_name}} {{passwd}}
Content-Type: application/octet-stream

< README.md


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

{
"sourcePool": {{sourcePool}},
"targetPools": [{{targetPools}}]
}
< /README.md

> {%
client.test("Frontend file migration successful", function() {
client.assert(response.status === 201, "Migration not successful");
client.test("Successful response when calling /pool", function() {
client.assert(response.status === 201, "Response was not 201");
});
%}
2 changes: 1 addition & 1 deletion http-client.private.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"user_name": "admin",
"passwd" : "dickerelch",
"incorrect_passwd" : "password",
"webdav-door" : "http://store-door-svc:8080",
"webdav-door" : "https://store-door-svc:8083/data/pool-a",
"frontend-door" : "http://store-door-svc:3880",
"endpoint": "/api/v1",
"qos-management": "/qos-management/qos",
Expand Down

0 comments on commit d37e05c

Please sign in to comment.