From fbdf2672acc7489088786022b5f415c96534e104 Mon Sep 17 00:00:00 2001 From: khys95 Date: Mon, 12 Aug 2024 12:29:50 +0200 Subject: [PATCH] add migration tests set --- .ci/poolEndpoint.http | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.ci/poolEndpoint.http b/.ci/poolEndpoint.http index 56cd452849d..e3e71a25d9c 100644 --- a/.ci/poolEndpoint.http +++ b/.ci/poolEndpoint.http @@ -7,4 +7,28 @@ Authorization: Basic {{user_name}} {{passwd}} client.test("Successful response when calling /pool", function() { client.assert(response.status === 200, "Response was not 200"); }); -%} \ No newline at end of file +%} + +### Upload frontend file +PUT {{webdav-door}}/frontend +Authorization: Basic admin dickerelch +Content-Type: application/octet-stream + +< README.md + + +### Migrate frontend file from pool_write to pool_res1 +POST {{frontend-door}}{{endpoint}}{{migrations}}/copy +Content-Type: application/json +Authorization: Basic {{user_name}} {{passwd}} + +{ + "sourcePool": {{sourcePool}}, + "targetPools": [{{targetPools}}] +} + +> {% + client.test("Frontend file migration successful", function() { + client.assert(response.status === 201, "Migration not successful"); + }); +%}