From d6cb3f15f24eed8e4325de41d552ef85da14f0cd Mon Sep 17 00:00:00 2001 From: khys95 Date: Thu, 22 Aug 2024 12:11:27 +0200 Subject: [PATCH] ci: update webdaav-door path to run in kubernetes Motivation: Migration tests require us to have a file inside a pool. This change allows us to upload a file into a pool. Modification: Update webdav path for kubernetes. Result: We can upload files. Target: master Require-book: no Require-notes: no Acked-by: Tigran Mkrtchyan --- .ci/poolEndpoint.http | 12 +++++++----- http-client.private.env.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.ci/poolEndpoint.http b/.ci/poolEndpoint.http index 56cd452849d..ece4f4745d5 100644 --- a/.ci/poolEndpoint.http +++ b/.ci/poolEndpoint.http @@ -1,10 +1,12 @@ -### POOL endpoint GET request -GET {{frontend-door}}{{endpoint}}{{pools}} -Content-Type: application/json +### Upload frontend file +PUT {{webdav-door}}/data/pool-a/ReadMeFile Authorization: Basic {{user_name}} {{passwd}} +Content-Type: application/octet-stream + +< /README.md > {% - client.test("Successful response when calling /pool", function() { - client.assert(response.status === 200, "Response was not 200"); + client.test("Successful response when uploading a file", function() { + client.assert(response.status === 201, "Response was not 201"); }); %} \ No newline at end of file diff --git a/http-client.private.env.json b/http-client.private.env.json index 3a4d143afd9..e98ff761d6b 100644 --- a/http-client.private.env.json +++ b/http-client.private.env.json @@ -3,7 +3,7 @@ "user_name": "admin", "passwd" : "dickerelch", "incorrect_passwd" : "password", - "webdav-door" : "http://store-door-svc:2881", + "webdav-door" : "https://store-door-svc:8083", "frontend-door" : "http://store-door-svc:3880", "endpoint": "/api/v1", "qos-management": "/qos-management/qos",