diff --git a/.ci/poolEndpoint.http b/.ci/poolEndpoint.http index ece4f4745d5..caa56739b4e 100644 --- a/.ci/poolEndpoint.http +++ b/.ci/poolEndpoint.http @@ -1,4 +1,4 @@ -### Upload frontend file +### Upload readme file PUT {{webdav-door}}/data/pool-a/ReadMeFile Authorization: Basic {{user_name}} {{passwd}} Content-Type: application/octet-stream @@ -9,4 +9,32 @@ Content-Type: application/octet-stream client.test("Successful response when uploading a file", function() { client.assert(response.status === 201, "Response was not 201"); }); -%} \ No newline at end of file +%} + + +### Verify location of readme file +GET {{frontend-door}}{{endpoint}}{{namespace}}/%2Fdata%2Fpool-a%2FReadMeFile?children=false&locality=false&locations=true&qos=false&optional=false + +> {% + client.test("Successful response when verifying location of file", function() { + client.assert(response.status === 200, "Response was not 200"); + client.assert(response.body["locations"][0] == "pool-a", "Locations not found"); + }); +%} + + +### Migrate ReadMeFile from pool_a to pool_b +POST {{frontend-door}}{{endpoint}}{{migrations}}/copy +Content-Type: application/json +Authorization: Basic {{user_name}} {{passwd}} + +{ + "sourcePool": {{sourcePool}}, + "targetPools": [{{targetPools}}] +} + +> {% + client.test("ReadMe file migration successful", function() { + client.assert(response.status === 201, "Migration not successful"); + }); +%} diff --git a/http-client.private.env.json b/http-client.private.env.json index e98ff761d6b..6d82a49b232 100644 --- a/http-client.private.env.json +++ b/http-client.private.env.json @@ -4,7 +4,7 @@ "passwd" : "dickerelch", "incorrect_passwd" : "password", "webdav-door" : "https://store-door-svc:8083", - "frontend-door" : "http://store-door-svc:3880", + "frontend-door" : "https://store-door-svc:3881", "endpoint": "/api/v1", "qos-management": "/qos-management/qos", "migrations": "/migrations", @@ -12,9 +12,9 @@ "qos-policy": "/qos-policy", "namespace": "/namespace", "labels": "/labels", - "sourcePool" : "pool_write", + "sourcePool" : "pool-a", "target": "hsm", - "targetPools": "pool_res1", + "targetPools": "pool-b", "osm_targetPools": "\"osm\"", "wrong_src_pool_name" : "wrong_src_pool_name", "wrong_target_pool_name" : "wrong_target_pool_name",