diff --git a/CHANGES/153.feature b/CHANGES/153.feature new file mode 100644 index 000000000..9fc89b2a4 --- /dev/null +++ b/CHANGES/153.feature @@ -0,0 +1,4 @@ +In pulpcore 3.11, the component names changed to fix a bug. This ported ``pulp-cli`` to use the new +names and provides dictionary named ``new_component_names_to_pre_3_11_names`` in the +``pulpcore.cli.common.context`` module which provides new to old name mappings for a fallback +support. ``pulp-cli`` plugins can add to this list by importing and modifying that dictionary also. diff --git a/pulpcore/cli/ansible/__init__.py b/pulpcore/cli/ansible/__init__.py index 2c0211b65..9065be68b 100644 --- a/pulpcore/cli/ansible/__init__.py +++ b/pulpcore/cli/ansible/__init__.py @@ -12,7 +12,7 @@ @main.group() @pass_pulp_context def ansible(pulp_ctx: PulpContext) -> None: - pulp_ctx.needs_plugin("pulp_ansible") + pulp_ctx.needs_plugin("ansible") ansible.add_command(repository) diff --git a/pulpcore/cli/common/context.py b/pulpcore/cli/common/context.py index e6bd307c0..ae572b373 100644 --- a/pulpcore/cli/common/context.py +++ b/pulpcore/cli/common/context.py @@ -3,6 +3,7 @@ import json import sys import time +from collections import defaultdict from typing import IO, Any, ClassVar, Dict, List, Optional, Tuple, Type, Union import click @@ -32,6 +33,15 @@ RepositoryDefinition = Tuple[str, str] # name, pulp_type RepositoryVersionDefinition = Tuple[str, str, int] # name, pulp_type, version +new_component_names_to_pre_3_11_names: Dict[str, str] = dict( + ansible="pulp_ansible", + container="pulp_container", + core="pulpcore", + deb="pulp_deb", + file="pulp_file", + rpm="pulp_rpm", +) + class PulpNoWait(click.ClickException): exit_code = 0 @@ -169,7 +179,10 @@ def has_plugin( return (min_version is None) and (max_version is None) version: Optional[str] = self.component_versions.get(name) if version is None: - return False + pre_3_11_name: Optional[str] = new_component_names_to_pre_3_11_names.get(name) + version: Optional[str] = self.component_versions.get(pre_3_11_name) + if version is None: + return False if min_version is not None: if parse_version(version) < parse_version(min_version): return False diff --git a/pulpcore/cli/container/__init__.py b/pulpcore/cli/container/__init__.py index f9ba828f0..88ca08a5e 100644 --- a/pulpcore/cli/container/__init__.py +++ b/pulpcore/cli/container/__init__.py @@ -12,7 +12,7 @@ @main.group() @pass_pulp_context def container(pulp_ctx: PulpContext) -> None: - pulp_ctx.needs_plugin("pulp_container") + pulp_ctx.needs_plugin("container") container.add_command(repository) diff --git a/pulpcore/cli/core/context.py b/pulpcore/cli/core/context.py index bab3653dc..a3820450d 100644 --- a/pulpcore/cli/core/context.py +++ b/pulpcore/cli/core/context.py @@ -22,7 +22,7 @@ class PulpAccessPolicyContext(PulpEntityContext): def find(self, **kwargs: Any) -> Any: """Workaroud for the missing ability to filter""" # https://pulp.plan.io/issues/8189 - if self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround not needed anymore return super().find(**kwargs) search_result = self.list(limit=sys.maxsize, offset=0, parameters={}) @@ -106,7 +106,7 @@ class PulpExportContext(PulpEntityContext): exporter: EntityDefinition def list(self, limit: int, offset: int, parameters: Dict[str, Any]) -> List[Any]: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 parameters[PulpExporterContext.HREF] = self.exporter["pulp_href"] @@ -118,7 +118,7 @@ def create( parameters: Optional[Dict[str, Any]] = None, non_blocking: bool = False, ) -> Any: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 if parameters is None: @@ -128,7 +128,7 @@ def create( @property def HREF(self) -> str: # type: ignore - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 return "core_pulp_pulp_export_href" @@ -136,7 +136,7 @@ def HREF(self) -> str: # type: ignore @property def scope(self) -> Dict[str, Any]: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 return {} @@ -154,7 +154,7 @@ class PulpGroupContext(PulpEntityContext): def find(self, **kwargs: Any) -> Any: """Workaroud for the missing ability to filter""" - if self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround not needed anymore return super().find(**kwargs) # See https://pulp.plan.io/issues/7975 @@ -172,7 +172,7 @@ class PulpGroupPermissionContext(PulpEntityContext): group_ctx: PulpGroupContext def __init__(self, pulp_ctx: PulpContext, group_ctx: PulpGroupContext) -> None: - pulp_ctx.needs_plugin("pulpcore", min_version="3.10.dev0") + pulp_ctx.needs_plugin("core", min_version="3.10.dev") super().__init__(pulp_ctx) self.group_ctx = group_ctx @@ -180,7 +180,7 @@ def find(self, **kwargs: Any) -> Any: """Workaroud for the missing ability to filter""" # # TODO fix upstream and adjust to guard for the proper version # # https://pulp.plan.io/issues/8241 - # if self.pulp_ctx.has_plugin("pulpcore", min_version="3.99.dev0"): + # if self.pulp_ctx.has_plugin("core", min_version="3.99.dev"): # # Workaround not needed anymore # return super().find(**kwargs) search_result = self.list(limit=sys.maxsize, offset=0, parameters={}) @@ -229,7 +229,7 @@ def __init__(self, pulp_ctx: PulpContext, group_ctx: PulpGroupContext) -> None: self.group_ctx = group_ctx def list(self, limit: int, offset: int, parameters: Dict[str, Any]) -> List[Any]: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 parameters[PulpGroupContext.HREF] = self.group_ctx.pulp_href @@ -241,7 +241,7 @@ def create( parameters: Optional[Dict[str, Any]] = None, non_blocking: bool = False, ) -> Any: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 if parameters is None: @@ -251,7 +251,7 @@ def create( @property def HREF(self) -> str: # type: ignore - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 return "auth_auth_groups_user_href" @@ -259,7 +259,7 @@ def HREF(self) -> str: # type: ignore @property def scope(self) -> Dict[str, Any]: - if not self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if not self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround for improperly rendered nested resource paths and weird HREF names # https://github.com/pulp/pulpcore/pull/1066 return {} @@ -317,7 +317,7 @@ class PulpUserContext(PulpEntityContext): def find(self, **kwargs: Any) -> Any: """Workaroud for the missing ability to filter""" - if self.pulp_ctx.has_plugin("pulpcore", min_version="3.10.dev0"): + if self.pulp_ctx.has_plugin("core", min_version="3.10.dev"): # Workaround not needed anymore return super().find(**kwargs) # See https://pulp.plan.io/issues/7975 diff --git a/pulpcore/cli/core/repository.py b/pulpcore/cli/core/repository.py index df239f973..56c51d316 100644 --- a/pulpcore/cli/core/repository.py +++ b/pulpcore/cli/core/repository.py @@ -18,7 +18,7 @@ def repository(ctx: click.Context, pulp_ctx: PulpContext) -> None: Please look for the plugin specific repository commands for more detailed actions. i.e. 'pulp file repository <...>' """ - pulp_ctx.needs_plugin("pulpcore", min_version="3.10.dev") + pulp_ctx.needs_plugin("core", min_version="3.10.dev") ctx.obj = PulpRepositoryContext(pulp_ctx) diff --git a/pulpcore/cli/file/__init__.py b/pulpcore/cli/file/__init__.py index aeb0cd575..1b73aa181 100644 --- a/pulpcore/cli/file/__init__.py +++ b/pulpcore/cli/file/__init__.py @@ -14,7 +14,7 @@ @main.group(name="file") @pass_pulp_context def file_group(pulp_ctx: PulpContext) -> None: - pulp_ctx.needs_plugin("pulp_file") + pulp_ctx.needs_plugin("file") file_group.add_command(repository) diff --git a/pulpcore/cli/rpm/__init__.py b/pulpcore/cli/rpm/__init__.py index 9ea791ffd..50dc697eb 100644 --- a/pulpcore/cli/rpm/__init__.py +++ b/pulpcore/cli/rpm/__init__.py @@ -13,7 +13,7 @@ @main.group() @pass_pulp_context def rpm(pulp_ctx: PulpContext) -> None: - pulp_ctx.needs_plugin("pulp_rpm") + pulp_ctx.needs_plugin("rpm") rpm.add_command(repository) diff --git a/tests/scripts/pulp_ansible/test_distribution.sh b/tests/scripts/pulp_ansible/test_distribution.sh index 11a405293..93eb4cdd2 100755 --- a/tests/scripts/pulp_ansible/test_distribution.sh +++ b/tests/scripts/pulp_ansible/test_distribution.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_ansible" || exit 3 +pulp debug has-plugin --name "ansible" || exit 3 cleanup() { pulp ansible repository destroy --name "cli_test_ansible_repository" || true diff --git a/tests/scripts/pulp_ansible/test_remote.sh b/tests/scripts/pulp_ansible/test_remote.sh index 644360a30..edff8dfbe 100755 --- a/tests/scripts/pulp_ansible/test_remote.sh +++ b/tests/scripts/pulp_ansible/test_remote.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_ansible" || exit 3 +pulp debug has-plugin --name "ansible" || exit 3 cleanup() { pulp ansible remote -t "role" destroy --name "cli_test_ansible_role_remote" || true diff --git a/tests/scripts/pulp_ansible/test_repository.sh b/tests/scripts/pulp_ansible/test_repository.sh index f28806bfd..85877e544 100755 --- a/tests/scripts/pulp_ansible/test_repository.sh +++ b/tests/scripts/pulp_ansible/test_repository.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_ansible" || exit 3 +pulp debug has-plugin --name "ansible" || exit 3 cleanup() { pulp ansible repository destroy --name "cli_test_ansible_repo" || true diff --git a/tests/scripts/pulp_ansible/test_sync.sh b/tests/scripts/pulp_ansible/test_sync.sh index 8a1f67e83..8a8e8a47e 100755 --- a/tests/scripts/pulp_ansible/test_sync.sh +++ b/tests/scripts/pulp_ansible/test_sync.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_ansible" || exit 3 +pulp debug has-plugin --name "ansible" || exit 3 cleanup() { pulp ansible remote -t "role" destroy --name "cli_test_ansible_remote" || true diff --git a/tests/scripts/pulp_container/test_distribution.sh b/tests/scripts/pulp_container/test_distribution.sh index 1b1078977..e62ba85cc 100755 --- a/tests/scripts/pulp_container/test_distribution.sh +++ b/tests/scripts/pulp_container/test_distribution.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_container" || exit 3 +pulp debug has-plugin --name "container" || exit 3 cleanup() { pulp container repository destroy --name "cli_test_container_repository" || true diff --git a/tests/scripts/pulp_container/test_remote.sh b/tests/scripts/pulp_container/test_remote.sh index 78586b41a..b3a60acfb 100755 --- a/tests/scripts/pulp_container/test_remote.sh +++ b/tests/scripts/pulp_container/test_remote.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_container" || exit 3 +pulp debug has-plugin --name "container" || exit 3 cleanup() { pulp container remote destroy --name "cli_test_container_remote" || true diff --git a/tests/scripts/pulp_container/test_repository.sh b/tests/scripts/pulp_container/test_repository.sh index f0bb63387..aad26e11a 100755 --- a/tests/scripts/pulp_container/test_repository.sh +++ b/tests/scripts/pulp_container/test_repository.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_container" || exit 3 +pulp debug has-plugin --name "container" || exit 3 cleanup() { pulp container repository destroy --name "cli_test_container_repo" || true diff --git a/tests/scripts/pulp_container/test_sync.sh b/tests/scripts/pulp_container/test_sync.sh index 0a89a9105..01e2ed63a 100755 --- a/tests/scripts/pulp_container/test_sync.sh +++ b/tests/scripts/pulp_container/test_sync.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_container" || exit 3 +pulp debug has-plugin --name "container" || exit 3 cleanup() { pulp container remote destroy --name "cli_test_container_remote" || true diff --git a/tests/scripts/pulp_file/test_content.sh b/tests/scripts/pulp_file/test_content.sh index 9bfcc21f7..754b2611a 100755 --- a/tests/scripts/pulp_file/test_content.sh +++ b/tests/scripts/pulp_file/test_content.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file repository destroy --name "cli_test_file_repository" || true diff --git a/tests/scripts/pulp_file/test_content_bulk.sh b/tests/scripts/pulp_file/test_content_bulk.sh index c2ec48aec..066e75689 100755 --- a/tests/scripts/pulp_file/test_content_bulk.sh +++ b/tests/scripts/pulp_file/test_content_bulk.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file repository destroy --name "cli_test_file_repository" || true diff --git a/tests/scripts/pulp_file/test_distribution.sh b/tests/scripts/pulp_file/test_distribution.sh index 42a80fcf0..e3254da68 100755 --- a/tests/scripts/pulp_file/test_distribution.sh +++ b/tests/scripts/pulp_file/test_distribution.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file remote destroy --name "cli_test_file_remote" || true diff --git a/tests/scripts/pulp_file/test_label.sh b/tests/scripts/pulp_file/test_label.sh index 51fac76ed..13e957b21 100755 --- a/tests/scripts/pulp_file/test_label.sh +++ b/tests/scripts/pulp_file/test_label.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulpcore" --min-version "3.10.0" || exit 3 +pulp debug has-plugin --name "core" --min-version "3.10.0" || exit 3 cleanup() { pulp file repository destroy --name "cli_test_file_repo" || true diff --git a/tests/scripts/pulp_file/test_publication.sh b/tests/scripts/pulp_file/test_publication.sh index 67a61b9ef..b28caf3b8 100755 --- a/tests/scripts/pulp_file/test_publication.sh +++ b/tests/scripts/pulp_file/test_publication.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file remote destroy --name "cli_test_file_remote" || true diff --git a/tests/scripts/pulp_file/test_remote.sh b/tests/scripts/pulp_file/test_remote.sh index f3a542dfe..0686f0136 100755 --- a/tests/scripts/pulp_file/test_remote.sh +++ b/tests/scripts/pulp_file/test_remote.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file remote destroy --name "cli_test_file_remote" || true diff --git a/tests/scripts/pulp_file/test_repository.sh b/tests/scripts/pulp_file/test_repository.sh index ba305e3b1..6b8a828d7 100755 --- a/tests/scripts/pulp_file/test_repository.sh +++ b/tests/scripts/pulp_file/test_repository.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file repository destroy --name "cli_test_file_repo" || true @@ -30,7 +30,7 @@ expect_succ test "$(echo "$OUTPUT" | jq -r '.description')" = "null" expect_succ test "$(echo "$OUTPUT" | jq -r '.remote')" = "" expect_succ pulp file repository list test "$(echo "$OUTPUT" | jq -r '.|length')" != "0" -if pulp debug has-plugin --name "pulpcore" --min-version "3.10.dev" +if pulp debug has-plugin --name "core" --min-version "3.10.dev" then expect_succ pulp repository list test "$(echo "$OUTPUT" | jq -r '.|length')" != "0" diff --git a/tests/scripts/pulp_file/test_sync.sh b/tests/scripts/pulp_file/test_sync.sh index e0cd25bd0..fa0eeda97 100755 --- a/tests/scripts/pulp_file/test_sync.sh +++ b/tests/scripts/pulp_file/test_sync.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file remote destroy --name "cli_test_file_remote" || true diff --git a/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh b/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh index 330a051e2..8dcfe314d 100755 --- a/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh +++ b/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_rpm" || exit 3 +pulp debug has-plugin --name "rpm" || exit 3 cleanup() { pulp rpm remote destroy --name "cli_test_rpm_remote" || true diff --git a/tests/scripts/pulpcore/test_group_permissions.sh b/tests/scripts/pulpcore/test_group_permissions.sh index 6c1eb935c..d3d9bb3d6 100755 --- a/tests/scripts/pulpcore/test_group_permissions.sh +++ b/tests/scripts/pulpcore/test_group_permissions.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulpcore" --min-version "3.10.dev" || exit 3 +pulp debug has-plugin --name "core" --min-version "3.10.dev" || exit 3 cleanup() { pulp group destroy --name "cli_test_group" || true diff --git a/tests/scripts/pulpcore/test_pulpexporter.sh b/tests/scripts/pulpcore/test_pulpexporter.sh index 31454a7be..cb4324d85 100755 --- a/tests/scripts/pulpcore/test_pulpexporter.sh +++ b/tests/scripts/pulpcore/test_pulpexporter.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 RMOTE="cli_test_file_remote" REPO1="cli_test_pulpexporter_repository_1" diff --git a/tests/scripts/pulpcore/test_pulpimporter.sh b/tests/scripts/pulpcore/test_pulpimporter.sh index b1283dd1f..2424c9e7e 100755 --- a/tests/scripts/pulpcore/test_pulpimporter.sh +++ b/tests/scripts/pulpcore/test_pulpimporter.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp importer pulp destroy --name "cli_test_importer" || true diff --git a/tests/scripts/pulpcore/test_show.sh b/tests/scripts/pulpcore/test_show.sh index 26ad08e33..e1de6da96 100755 --- a/tests/scripts/pulpcore/test_show.sh +++ b/tests/scripts/pulpcore/test_show.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file repository destroy --name "cli_test_file_repo" || true diff --git a/tests/scripts/pulpcore/test_task.sh b/tests/scripts/pulpcore/test_task.sh index 9cfbbc35f..9e01ebb85 100755 --- a/tests/scripts/pulpcore/test_task.sh +++ b/tests/scripts/pulpcore/test_task.sh @@ -3,7 +3,7 @@ # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -pulp debug has-plugin --name "pulp_file" || exit 3 +pulp debug has-plugin --name "file" || exit 3 cleanup() { pulp file remote destroy --name "cli_test_file_remote" || true diff --git a/tests/scripts/pulpcore/test_worker.sh b/tests/scripts/pulpcore/test_worker.sh index 7bc4b7b17..96ba7aa6e 100755 --- a/tests/scripts/pulpcore/test_worker.sh +++ b/tests/scripts/pulpcore/test_worker.sh @@ -13,7 +13,7 @@ expect_succ pulp worker list --online expect_succ pulp worker list --not-online expect_succ pulp worker list --name "resource-manager" -if pulp debug has-plugin --name "pulpcore" --min-version "3.10.0" +if pulp debug has-plugin --name "core" --min-version "3.10.0" then expect_succ pulp worker list --name-contains "resource" fi