summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-03-10 17:58:58 +0100
committerMatt Martz <matt@sivel.net>2020-03-23 17:14:21 +0100
commit27ce6dbc1f4b9675fa220d795b3dc7e7e2937a03 (patch)
tree0e88bfe80f9d99a540f7b7d2e10214022b15c334 /test
parentRemove unused Shippable scripts. (diff)
downloadansible-27ce6dbc1f4b9675fa220d795b3dc7e7e2937a03.tar.xz
ansible-27ce6dbc1f4b9675fa220d795b3dc7e7e2937a03.zip
Remove test support option from ansible-test.
This option was added to facilitate migration and is no longer needed.
Diffstat (limited to 'test')
-rw-r--r--test/lib/ansible_test/_internal/ansible_util.py4
-rw-r--r--test/lib/ansible_test/_internal/cli.py4
-rw-r--r--test/lib/ansible_test/_internal/config.py1
-rwxr-xr-xtest/utils/shippable/incidental/cloud.sh1
-rwxr-xr-xtest/utils/shippable/incidental/linux.sh1
-rwxr-xr-xtest/utils/shippable/incidental/network.sh1
-rwxr-xr-xtest/utils/shippable/incidental/remote.sh1
-rwxr-xr-xtest/utils/shippable/incidental/windows.sh1
-rwxr-xr-xtest/utils/shippable/linux.sh7
-rwxr-xr-xtest/utils/shippable/remote.sh7
-rwxr-xr-xtest/utils/shippable/windows.sh7
11 files changed, 1 insertions, 34 deletions
diff --git a/test/lib/ansible_test/_internal/ansible_util.py b/test/lib/ansible_test/_internal/ansible_util.py
index 286a9c5f6c..b57cb1cfc6 100644
--- a/test/lib/ansible_test/_internal/ansible_util.py
+++ b/test/lib/ansible_test/_internal/ansible_util.py
@@ -113,9 +113,7 @@ def ansible_environment(args, color=True, ansible_config=None):
def configure_plugin_paths(args): # type: (CommonConfig) -> t.Dict[str, str]
"""Return environment variables with paths to plugins relevant for the current command."""
- # temporarily require opt-in to this feature
- # once collection migration has occurred this feature should always be enabled
- if not isinstance(args, IntegrationConfig) or not args.enable_test_support:
+ if not isinstance(args, IntegrationConfig):
return {}
support_path = os.path.join(ANSIBLE_SOURCE_ROOT, 'test', 'support', args.command)
diff --git a/test/lib/ansible_test/_internal/cli.py b/test/lib/ansible_test/_internal/cli.py
index 4ada06c043..f779cbac89 100644
--- a/test/lib/ansible_test/_internal/cli.py
+++ b/test/lib/ansible_test/_internal/cli.py
@@ -389,10 +389,6 @@ def parse_args():
action='store_true',
help='avoid unicode characters in temporary directory (use only for verifying broken tests)')
- integration.add_argument('--enable-test-support',
- action='store_true',
- help=argparse.SUPPRESS) # temporary option for side-by-side testing -- remove after collection migration
-
subparsers = parser.add_subparsers(metavar='COMMAND')
subparsers.required = True # work-around for python 3 bug which makes subparsers optional
diff --git a/test/lib/ansible_test/_internal/config.py b/test/lib/ansible_test/_internal/config.py
index 3431264f67..c73e4233a6 100644
--- a/test/lib/ansible_test/_internal/config.py
+++ b/test/lib/ansible_test/_internal/config.py
@@ -256,7 +256,6 @@ class IntegrationConfig(TestConfig):
self.diff = args.diff
self.no_temp_workdir = args.no_temp_workdir
self.no_temp_unicode = args.no_temp_unicode
- self.enable_test_support = args.enable_test_support
if self.get_delegated_completion().get('temp-unicode', 'enabled') == 'disabled':
self.no_temp_unicode = True
diff --git a/test/utils/shippable/incidental/cloud.sh b/test/utils/shippable/incidental/cloud.sh
index fdf8668acf..ad20edd361 100755
--- a/test/utils/shippable/incidental/cloud.sh
+++ b/test/utils/shippable/incidental/cloud.sh
@@ -36,6 +36,5 @@ for python_version in "${python_versions[@]}"; do
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--remote-terminate "${terminate}" \
--remote-stage "${stage}" \
- --enable-test-support \
--docker --python "${python_version}"
done
diff --git a/test/utils/shippable/incidental/linux.sh b/test/utils/shippable/incidental/linux.sh
index 201d23bc48..2f513dd252 100755
--- a/test/utils/shippable/incidental/linux.sh
+++ b/test/utils/shippable/incidental/linux.sh
@@ -12,4 +12,3 @@ target="shippable/posix/incidental/"
# shellcheck disable=SC2086
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--docker "${image}" \
- --enable-test-support \
diff --git a/test/utils/shippable/incidental/network.sh b/test/utils/shippable/incidental/network.sh
index f46c5013f6..0ef1f6733b 100755
--- a/test/utils/shippable/incidental/network.sh
+++ b/test/utils/shippable/incidental/network.sh
@@ -40,7 +40,6 @@ for python_version in "${python_versions[@]}"; do
--platform-connection "${platform}=ansible.netcommon.network_cli" \
--platform-collection "vyos=vyos.vyos" \
--platform-collection "ios=cisco.ios" \
- --enable-test-support \
--docker default --python "${python_version}" \
--remote-terminate "${terminate}" --remote-stage "${stage}" --remote-provider "${provider}"
done
diff --git a/test/utils/shippable/incidental/remote.sh b/test/utils/shippable/incidental/remote.sh
index c3f1331582..0d4e0312ab 100755
--- a/test/utils/shippable/incidental/remote.sh
+++ b/test/utils/shippable/incidental/remote.sh
@@ -16,4 +16,3 @@ provider="${P:-default}"
# shellcheck disable=SC2086
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}" \
- --enable-test-support \
diff --git a/test/utils/shippable/incidental/windows.sh b/test/utils/shippable/incidental/windows.sh
index f84d7c3ba3..c168f92538 100755
--- a/test/utils/shippable/incidental/windows.sh
+++ b/test/utils/shippable/incidental/windows.sh
@@ -72,6 +72,5 @@ for version in "${python_versions[@]}"; do
ansible-test windows-integration --color -v --retry-on-error "${ci}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
"${platforms[@]}" \
--docker default --python "${version}" \
- --enable-test-support \
--remote-terminate "${terminate}" --remote-stage "${stage}" --remote-provider "${provider}"
done
diff --git a/test/utils/shippable/linux.sh b/test/utils/shippable/linux.sh
index 579ae667d3..9cc2f966cb 100755
--- a/test/utils/shippable/linux.sh
+++ b/test/utils/shippable/linux.sh
@@ -13,13 +13,6 @@ else
target="shippable/posix/"
fi
-# detect the post migration ansible/ansible repo and enable test support plugins
-if [ -f lib/ansible/config/routing.yml ]; then
- # this option is only useful for ansible/ansible (not collections) and should not be used prior to migration (except for incidental tests)
- enable_test_support=--enable-test-support
-fi
-
# shellcheck disable=SC2086
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
- ${enable_test_support:+"$enable_test_support"} \
--docker "${image}"
diff --git a/test/utils/shippable/remote.sh b/test/utils/shippable/remote.sh
index f1d575474a..cd3014ccac 100755
--- a/test/utils/shippable/remote.sh
+++ b/test/utils/shippable/remote.sh
@@ -17,13 +17,6 @@ fi
stage="${S:-prod}"
provider="${P:-default}"
-# detect the post migration ansible/ansible repo and enable test support plugins
-if [ -f lib/ansible/config/routing.yml ]; then
- # this option is only useful for ansible/ansible (not collections) and should not be used prior to migration (except for incidental tests)
- enable_test_support=--enable-test-support
-fi
-
# shellcheck disable=SC2086
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
- ${enable_test_support:+"$enable_test_support"} \
--remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
diff --git a/test/utils/shippable/windows.sh b/test/utils/shippable/windows.sh
index b4459a1381..549d6a80b5 100755
--- a/test/utils/shippable/windows.sh
+++ b/test/utils/shippable/windows.sh
@@ -13,12 +13,6 @@ target="shippable/windows/group${group}/"
stage="${S:-prod}"
provider="${P:-default}"
-# detect the post migration ansible/ansible repo and enable test support plugins
-if [ -f lib/ansible/config/routing.yml ]; then
- # this option is only useful for ansible/ansible (not collections) and should not be used prior to migration (except for incidental tests)
- enable_test_support=--enable-test-support
-fi
-
# python versions to test in order
# python 2.7 runs full tests while other versions run minimal tests
python_versions=(
@@ -99,6 +93,5 @@ for version in "${python_versions[@]}"; do
ansible-test windows-integration --color -v --retry-on-error "${ci}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
"${platforms[@]}" --changed-all-target "${changed_all_target}" --changed-all-mode "${changed_all_mode}" \
--docker default --python "${version}" \
- ${enable_test_support:+"$enable_test_support"} \
--remote-terminate "${terminate}" --remote-stage "${stage}" --remote-provider "${provider}"
done