From ba30fc63b7af108c6fcab756cf67ee94b82b3d8f Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 21 Sep 2021 09:47:48 +0200 Subject: [PATCH] Make ready for split-controller testing in ansible-core (#3345) (#3413) * Accept context/ in aliases. * Mark ansible_galaxy_install test as context/controller. * Fix interfaces_file test. ci_complete * Install pyone dependency. ci_complete (cherry picked from commit 98d071f61ed5756c8f53829018ef0c57e1f39129) --- tests/integration/targets/one_template/meta/main.yml | 2 ++ tests/integration/targets/setup_opennebula/meta/main.yml | 2 ++ tests/integration/targets/setup_opennebula/tasks/main.yml | 5 +++++ tests/sanity/extra/aliases.py | 2 ++ 4 files changed, 11 insertions(+) create mode 100644 tests/integration/targets/one_template/meta/main.yml create mode 100644 tests/integration/targets/setup_opennebula/meta/main.yml create mode 100644 tests/integration/targets/setup_opennebula/tasks/main.yml diff --git a/tests/integration/targets/one_template/meta/main.yml b/tests/integration/targets/one_template/meta/main.yml new file mode 100644 index 0000000000..86752df8dd --- /dev/null +++ b/tests/integration/targets/one_template/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - setup_opennebula \ No newline at end of file diff --git a/tests/integration/targets/setup_opennebula/meta/main.yml b/tests/integration/targets/setup_opennebula/meta/main.yml new file mode 100644 index 0000000000..91a63627f6 --- /dev/null +++ b/tests/integration/targets/setup_opennebula/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - setup_remote_constraints diff --git a/tests/integration/targets/setup_opennebula/tasks/main.yml b/tests/integration/targets/setup_opennebula/tasks/main.yml new file mode 100644 index 0000000000..6d18e147da --- /dev/null +++ b/tests/integration/targets/setup_opennebula/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Install required library + pip: + name: pyone + extra_args: "-c {{ remote_constraints }}" diff --git a/tests/sanity/extra/aliases.py b/tests/sanity/extra/aliases.py index 8791238f5f..d66838b7e0 100755 --- a/tests/sanity/extra/aliases.py +++ b/tests/sanity/extra/aliases.py @@ -41,6 +41,8 @@ def main(): continue if line.startswith('cloud/'): continue + if line.startswith('context/'): + continue if line in ('unsupported', 'disabled', 'hidden'): skip = True if line in ('destructive', ):