From 52d3d39ffcd797bb3167ab038148db815493d2a7 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 25 Jan 2023 16:51:43 -0800 Subject: [PATCH] ansible-test - Deprecate the foreman test plugin (#79821) --- changelogs/fragments/ansible-test-foreman.yml | 3 +++ .../_internal/commands/integration/cloud/foreman.py | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 changelogs/fragments/ansible-test-foreman.yml diff --git a/changelogs/fragments/ansible-test-foreman.yml b/changelogs/fragments/ansible-test-foreman.yml new file mode 100644 index 00000000000..44c3f4fa21e --- /dev/null +++ b/changelogs/fragments/ansible-test-foreman.yml @@ -0,0 +1,3 @@ +deprecated_features: + - ansible-test - The ``foreman`` test plugin is now deprecated. + It will be removed in a future release. diff --git a/test/lib/ansible_test/_internal/commands/integration/cloud/foreman.py b/test/lib/ansible_test/_internal/commands/integration/cloud/foreman.py index c2413ee8e87..342bbb72555 100644 --- a/test/lib/ansible_test/_internal/commands/integration/cloud/foreman.py +++ b/test/lib/ansible_test/_internal/commands/integration/cloud/foreman.py @@ -12,6 +12,10 @@ from ....containers import ( run_support_container, ) +from ....util import ( + display, +) + from . import ( CloudEnvironment, CloudEnvironmentConfig, @@ -50,6 +54,8 @@ class ForemanProvider(CloudProvider): """Setup cloud resource before delegation and reg cleanup callback.""" super().setup() + display.warning('The foreman test plugin is deprecated and will be removed in a future version of ansible-test.') + if self._use_static_config(): self._setup_static() else: