From 170380a4a96b2e4df3cfcd302427fca5018eb99b Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Mon, 9 Oct 2023 18:01:16 +0200 Subject: [PATCH] Fix distribution test to work with domains [noissue] --- tests/scripts/pulp_gem/test_distribution.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/scripts/pulp_gem/test_distribution.sh b/tests/scripts/pulp_gem/test_distribution.sh index 3cc7e8f..3793f9f 100755 --- a/tests/scripts/pulp_gem/test_distribution.sh +++ b/tests/scripts/pulp_gem/test_distribution.sh @@ -28,20 +28,22 @@ PUBLICATION_HREF=$(echo "$OUTPUT" | jq -r .pulp_href) expect_succ pulp gem distribution create \ --name "cli_test_gem_distro" \ - --base-path "wrong_path" \ + --base-path "cli_test_gem_distro" \ --publication "$PUBLICATION_HREF" HREF="$(echo "$OUTPUT" | jq -r '.pulp_href')" +BASE_URL="$(echo "$OUTPUT" | jq -r '.base_url')" + +expect_succ curl "$curl_opt" --head --fail "${BASE_URL}specs.4.8" + expect_succ pulp gem distribution update \ --distribution "$HREF" \ --publication "" expect_succ pulp gem distribution update \ --distribution "cli_test_gem_distro" \ - --base-path "cli_test_gem_distro" \ + --base-path "wrong_path" \ --publication "$PUBLICATION_HREF" expect_succ pulp gem distribution update \ --distribution "cli_test_gem_distro" \ --remote "cli_test_gem_remote" -expect_succ curl "$curl_opt" --head --fail "$PULP_BASE_URL/pulp/content/cli_test_gem_distro/specs.4.8" - expect_succ pulp gem distribution destroy --distribution "cli_test_gem_distro"