summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2019-08-06 11:46:33 -0400
committerPaul Belanger <pabelanger@redhat.com>2019-12-10 11:28:35 -0500
commit15afed554e2bbac87aad83b0a42cd47c66858cfd (patch)
tree22f935f9e765608bf8a46f729e83826e600916a9 /tests
parentdb0fd4e57d918182e800a8b6d83e08595f94a1c4 (diff)
downloadzuul-15afed554e2bbac87aad83b0a42cd47c66858cfd.tar.gz
Support Ansible 2.9
Ansible has released 2.9 and now Zuul also supports it. Change-Id: Iabf2d6278ba8d88e17403a4adae5521eb3e7019b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/config/ansible-versions/git/common-config/zuul.yaml10
-rw-r--r--tests/remote/test_remote_action_modules.py4
-rw-r--r--tests/remote/test_remote_zuul_json.py4
-rw-r--r--tests/remote/test_remote_zuul_stream.py4
-rw-r--r--tests/unit/test_v3.py6
5 files changed, 28 insertions, 0 deletions
diff --git a/tests/fixtures/config/ansible-versions/git/common-config/zuul.yaml b/tests/fixtures/config/ansible-versions/git/common-config/zuul.yaml
index 49b129a91..b787b5f38 100644
--- a/tests/fixtures/config/ansible-versions/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/ansible-versions/git/common-config/zuul.yaml
@@ -68,6 +68,14 @@
test_ansible_version_major: 2
test_ansible_version_minor: 8
+- job:
+ name: ansible-29
+ parent: ansible-version
+ ansible-version: 2.9
+ vars:
+ test_ansible_version_major: 2
+ test_ansible_version_minor: 9
+
- project:
name: common-config
@@ -78,6 +86,7 @@
- ansible-26
- ansible-27
- ansible-28
+ - ansible-29
- project:
name: org/project
@@ -88,3 +97,4 @@
- ansible-26
- ansible-27
- ansible-28
+ - ansible-29
diff --git a/tests/remote/test_remote_action_modules.py b/tests/remote/test_remote_action_modules.py
index f05a06ec4..8d1d5d36f 100644
--- a/tests/remote/test_remote_action_modules.py
+++ b/tests/remote/test_remote_action_modules.py
@@ -228,3 +228,7 @@ class TestActionModules27(TestActionModules25):
class TestActionModules28(TestActionModules25):
ansible_version = '2.8'
+
+
+class TestActionModules29(TestActionModules28):
+ ansible_version = '2.9'
diff --git a/tests/remote/test_remote_zuul_json.py b/tests/remote/test_remote_zuul_json.py
index c2451151c..c67d68ab5 100644
--- a/tests/remote/test_remote_zuul_json.py
+++ b/tests/remote/test_remote_zuul_json.py
@@ -191,3 +191,7 @@ class TestZuulJSON28(TestZuulJSON25):
role_path = json_result[0]['plays'][0]['tasks'][1]['role']['path']
self.assertEqual('json-role', os.path.basename(role_path))
+
+
+class TestZuulJSON29(TestZuulJSON28):
+ ansible_version = '2.9'
diff --git a/tests/remote/test_remote_zuul_stream.py b/tests/remote/test_remote_zuul_stream.py
index 384fe75e6..ffe33ad5e 100644
--- a/tests/remote/test_remote_zuul_stream.py
+++ b/tests/remote/test_remote_zuul_stream.py
@@ -275,3 +275,7 @@ class TestZuulStream28(TestZuulStream25):
self.assertLogLine(
r'RUN END RESULT_NORMAL: \[untrusted : review.example.com/'
r'org/project/playbooks/command.yaml@master]', text)
+
+
+class TestZuulStream29(TestZuulStream28):
+ ansible_version = '2.9'
diff --git a/tests/unit/test_v3.py b/tests/unit/test_v3.py
index a6241806f..fffcd1753 100644
--- a/tests/unit/test_v3.py
+++ b/tests/unit/test_v3.py
@@ -2776,6 +2776,10 @@ class TestAnsible28(TestAnsible25):
ansible_version = '2.8'
+class TestAnsible29(TestAnsible28):
+ ansible_version = '2.9'
+
+
class TestPrePlaybooks(AnsibleZuulTestCase):
# A temporary class to hold new tests while others are disabled
@@ -6224,6 +6228,7 @@ class TestAnsibleVersion(AnsibleZuulTestCase):
dict(name='ansible-26', result='SUCCESS', changes='1,1'),
dict(name='ansible-27', result='SUCCESS', changes='1,1'),
dict(name='ansible-28', result='SUCCESS', changes='1,1'),
+ dict(name='ansible-29', result='SUCCESS', changes='1,1'),
], ordered=False)
@@ -6246,4 +6251,5 @@ class TestDefaultAnsibleVersion(AnsibleZuulTestCase):
dict(name='ansible-26', result='SUCCESS', changes='1,1'),
dict(name='ansible-27', result='SUCCESS', changes='1,1'),
dict(name='ansible-28', result='SUCCESS', changes='1,1'),
+ dict(name='ansible-29', result='SUCCESS', changes='1,1'),
], ordered=False)