diff --git a/.github/template_gitref b/.github/template_gitref index 3d3d9afe4..1d2b065e1 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-349-g4925dbe diff --git a/.github/workflows/scripts/install_python_client.sh b/.github/workflows/scripts/install_python_client.sh deleted file mode 100755 index e73865ff0..000000000 --- a/.github/workflows/scripts/install_python_client.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "container" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_container-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=container" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_container python "$VERSION" -else - ./generate.sh pulp_container python "$VERSION" -fi - -pushd pulp_container-client -python setup.py sdist bdist_wheel --python-tag py3 - -twine check "dist/pulp_container_client-$VERSION-py3-none-any.whl" -twine check "dist/pulp_container-client-$VERSION.tar.gz" - -cmd_prefix pip3 install "/root/pulp-openapi-generator/pulp_container-client/dist/pulp_container_client-${VERSION}-py3-none-any.whl" -tar cvf ../../pulp_container/container-python-client.tar ./dist - -find ./docs/* -exec sed -i 's/Back to README/Back to HOME/g' {} \; -find ./docs/* -exec sed -i 's/README//g' {} \; -cp README.md docs/index.md -sed -i 's/docs\///g' docs/index.md -find ./docs/* -exec sed -i 's/\.md//g' {} \; - -cat >> mkdocs.yml << DOCSYAML ---- -site_name: PulpContainer Client -site_description: Container bindings -site_author: Pulp Team -site_url: https://docs.pulpproject.org/pulp_container_client/ -repo_name: pulp/pulp_container -repo_url: https://github.com/pulp/pulp_container -theme: readthedocs -DOCSYAML - -# Building the bindings docs -mkdocs build - -# Pack the built site. -tar cvf ../../pulp_container/container-python-client-docs.tar ./site -popd -popd diff --git a/.github/workflows/scripts/install_ruby_client.sh b/.github/workflows/scripts/install_ruby_client.sh deleted file mode 100755 index 2fa3a0bf0..000000000 --- a/.github/workflows/scripts/install_ruby_client.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "container" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_container-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=container" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_container ruby "$VERSION" -else - ./generate.sh pulp_container ruby "$VERSION" -fi - -pushd pulp_container-client -gem build pulp_container_client -gem install --both "./pulp_container_client-$VERSION.gem" -tar cvf ../../pulp_container/container-ruby-client.tar "./pulp_container_client-$VERSION.gem" -popd -popd diff --git a/.github/workflows/scripts/post_docs_test.sh b/.github/workflows/scripts/post_docs_test.sh deleted file mode 100755 index d008aee9c..000000000 --- a/.github/workflows/scripts/post_docs_test.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -export BASE_ADDR=https://pulp.example.com:443 - -cd docs/_scripts/ -bash ./docs_check.sh diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index f52edf7be..43d64637f 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -16,7 +16,6 @@ cd "$(dirname "$(realpath -e "$0")")"/../../.. source .github/workflows/scripts/utils.sh export POST_SCRIPT=$PWD/.github/workflows/scripts/post_script.sh -export POST_DOCS_TEST=$PWD/.github/workflows/scripts/post_docs_test.sh export FUNC_TEST_SCRIPT=$PWD/.github/workflows/scripts/func_test_script.sh # Needed for both starting the service and building the docs. @@ -38,10 +37,6 @@ if [[ "$TEST" = "docs" ]]; then make PULP_URL="$PULP_URL" diagrams html tar -cvf docs.tar ./_build cd .. - - if [ -f "$POST_DOCS_TEST" ]; then - source "$POST_DOCS_TEST" - fi exit fi diff --git a/CHANGES/.TEMPLATE.rst b/CHANGES/.TEMPLATE.rst deleted file mode 100644 index 49c2305d7..000000000 --- a/CHANGES/.TEMPLATE.rst +++ /dev/null @@ -1,47 +0,0 @@ -{% if render_title %} -{% if versiondata.name %} -{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }}) -{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}} -{% else %} -{{ versiondata.version }} ({{ versiondata.date }}) -{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}} -{% endif %} -{% endif %} -{% for section, _ in sections.items() %} -{% set underline = underlines[0] %}{% if section %}{{section}} -{{ underline * section|length }}{% set underline = underlines[1] %} - -{% endif %} - -{% if sections[section] %} -{% for category, val in definitions.items() if category in sections[section]%} -{{ definitions[category]['name'] }} -{{ underline * definitions[category]['name']|length }} - -{% if definitions[category]['showcontent'] %} -{% for text, values in sections[section][category].items() %} -- {{ text }} - {{ values|join(',\n ') }} -{% endfor %} - -{% else %} -- {{ sections[section][category]['']|join(', ') }} - -{% endif %} -{% if sections[section][category]|length == 0 %} -No significant changes. - -{% else %} -{% endif %} - -{% endfor %} -{% else %} -No significant changes. - - -{% endif %} -{% endfor %} ----- - - - diff --git a/docs/_scripts/base.sh b/docs/_scripts/base.sh deleted file mode 100755 index 744768a79..000000000 --- a/docs/_scripts/base.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -echo "Setting environment variables for default hostname/port for the API and the Content app" -BASE_ADDR=${BASE_ADDR:-http://localhost:24817} -REGISTRY_ADDR=${BASE_ADDR#*//} - -# Poll a Pulp task until it is finished. -wait_until_task_finished() { - echo "Polling the task until it has reached a final state." - local task_url=$1 - local timeout=10 - while [ "$timeout" -gt 0 ] - do - local response=$(http $task_url) - local state=$(jq -r .state <<< ${response}) - jq . <<< "${response}" || exit 1 - case ${state} in - failed|canceled) - echo "Task in final state: ${state}" - exit 1 - ;; - completed) - echo "$task_url complete." - break - ;; - *) - echo "Still waiting..." - sleep 2 - timeout=$(($timeout-1)) - ;; - esac - done -} diff --git a/docs/_scripts/build_containerfile.sh b/docs/_scripts/build_containerfile.sh deleted file mode 100644 index 0176541b6..000000000 --- a/docs/_scripts/build_containerfile.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task that will build a container image from a Containerfile." - -TASK_HREF=$(http --form POST :$REPO_HREF'build_image/' containerfile@./Containerfile \ -artifacts="{\"$ARTIFACT_HREF\": \"foo/bar/example.txt\"}" | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -echo "Set REPOVERSION_HREF from finished task." -REPOVERSION_HREF=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspecting RepositoryVersion." -http $BASE_ADDR$REPOVERSION_HREF diff --git a/docs/_scripts/cleanup_export.sh b/docs/_scripts/cleanup_export.sh deleted file mode 100644 index e0579089a..000000000 --- a/docs/_scripts/cleanup_export.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -# remove the repository and its content from the current filesystem -pulp container distribution destroy --name "test/fixture" -pulp orphan cleanup --protection-time 0 diff --git a/docs/_scripts/create_containerfile.sh b/docs/_scripts/create_containerfile.sh deleted file mode 100644 index ccd24b79c..000000000 --- a/docs/_scripts/create_containerfile.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a Containerfile that expects foo/bar/example.txt inside /pulp_working_directory." - -echo 'FROM centos:7 - -# Copy a file using COPY statement. Use the relative path specified in the 'artifacts' parameter. -COPY foo/bar/example.txt /inside-image.txt - -# Print the content of the file when the container starts -CMD ["cat", "/inside-image.txt"]' >> Containerfile \ No newline at end of file diff --git a/docs/_scripts/create_example.sh b/docs/_scripts/create_example.sh deleted file mode 100644 index a1df9c915..000000000 --- a/docs/_scripts/create_example.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a text file and upload it to Pulp" - -echo 'Hello world!' > example.txt - -ARTIFACT_HREF=$(http --form POST http://localhost/pulp/api/v3/artifacts/ \ - file@./example.txt \ - | jq -r '.pulp_href') - -echo "Inspecting new artifact." -http $BASE_ADDR$ARTIFACT_HREF diff --git a/docs/_scripts/distribution.sh b/docs/_scripts/distribution.sh deleted file mode 100755 index ae09e17ed..000000000 --- a/docs/_scripts/distribution.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -DIST_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) -DIST_BASE_PATH='test' - -# Distributions are created asynchronously. -echo "Creating distribution \ - (name=$DIST_NAME, base_path=$DIST_BASE_PATH repository=$REPO_HREF)." -TASK_HREF=$(http POST $BASE_ADDR/pulp/api/v3/distributions/container/container/ \ - name=$DIST_NAME \ - base_path=$DIST_BASE_PATH \ - repository=$REPO_HREF | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -echo "Setting DISTRIBUTION_HREF from the completed task." -# DISTRIBUTION_HREF is the pulp-api HREF, not the content app href -DISTRIBUTION_HREF=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspecting Distribution." -http $BASE_ADDR$DISTRIBUTION_HREF diff --git a/docs/_scripts/docs_check.sh b/docs/_scripts/docs_check.sh deleted file mode 100755 index 097aa9a17..000000000 --- a/docs/_scripts/docs_check.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -set -euv - -# This script will execute the component scripts and ensure that the documented examples -# work as expected. - -# From the _scripts directory, run with `source docs_check_sync_publish.sh` (source to preserve the -# environment variables) -source base.sh - -# Check Sync -source repo.sh -source remote.sh -source sync.sh -source distribution.sh -source download_after_sync.sh - -# Check add/remove -source second_repo.sh -source recursive_add_tag.sh -source recursive_remove_tag.sh - -# Check Copy -source second_repo.sh -source manifest_copy.sh - -source second_repo.sh -source tag_copy.sh - -# Check tag/untag -source image_tagging.sh -source download_after_tagging.sh -source image_untagging.sh - -# Check import/export -source export_repository.sh -source cleanup_export.sh -source import_repository.sh diff --git a/docs/_scripts/download_after_sync.sh b/docs/_scripts/download_after_sync.sh deleted file mode 100755 index 0b3c4e727..000000000 --- a/docs/_scripts/download_after_sync.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -CONTAINER_TAG='manifest_a' - -echo "Setting REGISTRY_PATH, which can be used directly with the Docker Client." -REGISTRY_PATH=$(http $BASE_ADDR$DISTRIBUTION_HREF | jq -r '.registry_path') - -echo "Next we pull and run the image from pulp" -echo "$REGISTRY_PATH:$CONTAINER_TAG" -sudo docker login -u admin -p password $REGISTRY_PATH -sudo docker run $REGISTRY_PATH:$CONTAINER_TAG diff --git a/docs/_scripts/download_after_tagging.sh b/docs/_scripts/download_after_tagging.sh deleted file mode 100644 index 22310747e..000000000 --- a/docs/_scripts/download_after_tagging.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' - -DIST_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) -DIST_BASE_PATH='tag' - -echo "Publishing the latest repository." -TASK_URL=$(http POST $BASE_ADDR/pulp/api/v3/distributions/container/container/ \ - name=$DIST_NAME base_path=$DIST_BASE_PATH repository=$REPO_HREF \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -DISTRIBUTION_HREF=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | first') -REGISTRY_PATH=$(http $BASE_ADDR$DISTRIBUTION_HREF \ - | jq -r '.registry_path') - -echo "Running ${REGISTRY_PATH}:${TAG_NAME}." -sudo docker login -u admin -p password $REGISTRY_PATH -sudo docker run $REGISTRY_PATH:$TAG_NAME diff --git a/docs/_scripts/export_repository.sh b/docs/_scripts/export_repository.sh deleted file mode 100644 index 21703b81c..000000000 --- a/docs/_scripts/export_repository.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -podman pull ghcr.io/pulp/test-fixture-1:manifest_a - -# push a tagged image to the registry -podman login ${REGISTRY_ADDR} -u admin -p password --tls-verify=false -podman tag ghcr.io/pulp/test-fixture-1:manifest_a \ - ${REGISTRY_ADDR}/test/fixture:manifest_a -podman push ${REGISTRY_ADDR}/test/fixture:manifest_a --tls-verify=false - -# a repository of the push type is automatically created -REPOSITORY_HREF=$(pulp container repository -t push show \ - --name "test/fixture" | jq -r ".pulp_href") - -# export the repository to the directory '/tmp/exports/test-fixture' -EXPORTER_HREF=$(http ${BASE_ADDR}/pulp/api/v3/exporters/core/pulp/ \ - name=both repositories:="[\"${REPOSITORY_HREF}\"]" \ - path=/tmp/exports/test-fixture | jq -r ".pulp_href") -TASK_HREF=$(http POST ${BASE_ADDR}${EXPORTER_HREF}exports/ | jq -r ".task") -wait_until_task_finished ${BASE_ADDR}${TASK_HREF} diff --git a/docs/_scripts/image_tagging.sh b/docs/_scripts/image_tagging.sh deleted file mode 100644 index 40f38a767..000000000 --- a/docs/_scripts/image_tagging.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' -MANIFEST_DIGEST=$(http $BASE_ADDR'/pulp/api/v3/content/container/manifests/?repository_version='$REPOVERSION_HREF \ - | jq -r '.results | first | .digest') - -echo "Tagging the manifest." -TASK_URL=$(http POST $BASE_ADDR$REPO_HREF'tag/' tag=$TAG_NAME digest=$MANIFEST_DIGEST \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -echo "Getting a reference to a newly created tag." -CREATED_TAG=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | .[] | select(test("content"))') - -echo "Display properties of the created tag." -http $BASE_ADDR$CREATED_TAG diff --git a/docs/_scripts/image_untagging.sh b/docs/_scripts/image_untagging.sh deleted file mode 100644 index e5f537d31..000000000 --- a/docs/_scripts/image_untagging.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' - -echo "Untagging a manifest which is labeled with ${TAG_NAME}" -TASK_URL=$(http POST $BASE_ADDR$REPO_HREF'untag/' tag=$TAG_NAME \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -echo "Getting a reference to all removed tags." -REPO_VERSION=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | first') -REMOVED_TAGS=$(http $BASE_ADDR$REPO_VERSION \ - | jq -r '.content_summary | .removed | ."container.tag" | .href') - -echo "List removed tags from the latest repository version." -http $BASE_ADDR$REMOVED_TAGS diff --git a/docs/_scripts/import_repository.sh b/docs/_scripts/import_repository.sh deleted file mode 100644 index 306293e0e..000000000 --- a/docs/_scripts/import_repository.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# create a repository with the same name as the exported one -http ${BASE_ADDR}/pulp/api/v3/repositories/container/container/ \ - name="test/fixture" | jq -r ".pulp_href" - -# import the exported repository stored in '/tmp/exports/test-fixture' -IMPORTER_HREF=$(http ${BASE_ADDR}/pulp/api/v3/importers/core/pulp/ \ - name="test/fixture" | jq -r ".pulp_href") -EXPORTED_REPO_PATH=$(find "/tmp/exports/test-fixture" -type f -name \ - "*.tar.gz" | head -n 1) -GROUP_HREF=$(http ${BASE_ADDR}${IMPORTER_HREF}imports/ \ - path=${EXPORTED_REPO_PATH} | jq -r ".task_group") -echo ${BASE_ADDR}${GROUP_HREF} diff --git a/docs/_scripts/manifest_copy.sh b/docs/_scripts/manifest_copy.sh deleted file mode 100755 index 92ff2bda9..000000000 --- a/docs/_scripts/manifest_copy.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to copy all manifests from source to destination repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'copy_manifests/' \ - source_repository=$REPO_HREF \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -MANIFEST_COPY_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$MANIFEST_COPY_VERSION diff --git a/docs/_scripts/recursive_add_tag.sh b/docs/_scripts/recursive_add_tag.sh deleted file mode 100755 index 2794a2f4d..000000000 --- a/docs/_scripts/recursive_add_tag.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -echo "Retrieve the href of Tag manifest_a in the synced repository." -TAG_HREF=$(http $BASE_ADDR'/pulp/api/v3/content/container/tags/?repository_version='$REPOVERSION_HREF'&name=manifest_a' \ - | jq -r '.results | first | .pulp_href') - -echo "Create a task to recursively add a tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'add/' \ - content_units:="[\"$TAG_HREF\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -ADDED_VERSION=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$ADDED_VERSION diff --git a/docs/_scripts/recursive_remove_tag.sh b/docs/_scripts/recursive_remove_tag.sh deleted file mode 100755 index 3d39f6e48..000000000 --- a/docs/_scripts/recursive_remove_tag.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to recursively remove the same tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'remove/' \ - content_units:="[\"$TAG_HREF\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -REMOVED_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$REMOVED_VERSION diff --git a/docs/_scripts/remote.sh b/docs/_scripts/remote.sh deleted file mode 100755 index 37eb3b37f..000000000 --- a/docs/_scripts/remote.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -REMOTE_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Creating $REMOTE_NAME remote that points to an external source of container images." -REMOTE_HREF=$(http POST $BASE_ADDR/pulp/api/v3/remotes/container/container/ \ - name=$REMOTE_NAME \ - url='https://registry-1.docker.io' \ - upstream_name='pulp/test-fixture-1' | jq -r '.pulp_href') - -echo "Inspecting new Remote." -http $BASE_ADDR$REMOTE_HREF diff --git a/docs/_scripts/repo.sh b/docs/_scripts/repo.sh deleted file mode 100755 index 19140cb31..000000000 --- a/docs/_scripts/repo.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -REPO_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Creating a new repository named $REPO_NAME." -REPO_HREF=$(http POST $BASE_ADDR/pulp/api/v3/repositories/container/container/ name=$REPO_NAME \ - | jq -r '.pulp_href') - -echo "Inspecting repository." -http $BASE_ADDR$REPO_HREF diff --git a/docs/_scripts/second_repo.sh b/docs/_scripts/second_repo.sh deleted file mode 100755 index a34c44a49..000000000 --- a/docs/_scripts/second_repo.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -DEST_REPO_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Create a second repository so we can add content to it." -SECOND_REPO_HREF=$(http POST $BASE_ADDR/pulp/api/v3/repositories/container/container/ name=$DEST_REPO_NAME \ - | jq -r '.pulp_href') - -echo "Inspect repository." -http $BASE_ADDR$SECOND_REPO_HREF diff --git a/docs/_scripts/sync.sh b/docs/_scripts/sync.sh deleted file mode 100755 index 9ca91fc7f..000000000 --- a/docs/_scripts/sync.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to sync the repository using the remote." -TASK_HREF=$(http POST $BASE_ADDR$REPO_HREF'sync/' remote=$REMOTE_HREF mirror=False \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -echo "Set REPOVERSION_HREF from finished task." -REPOVERSION_HREF=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspecting RepositoryVersion." -http $BASE_ADDR$REPOVERSION_HREF diff --git a/docs/_scripts/tag_copy.sh b/docs/_scripts/tag_copy.sh deleted file mode 100755 index fdf094eb2..000000000 --- a/docs/_scripts/tag_copy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to copy a tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'copy_tags/' \ - source_repository=$REPO_HREF \ - names:="[\"manifest_a\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -TAG_COPY_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$TAG_COPY_VERSION diff --git a/docs/template_gitref b/docs/template_gitref index 3d3d9afe4..1d2b065e1 100644 --- a/docs/template_gitref +++ b/docs/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-349-g4925dbe