summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2020-01-09 13:27:19 +0000
committerMark Goddard <mark@stackhpc.com>2020-01-14 13:18:09 +0000
commitf775700a768a010141fa6c82ea94b2bb10a9fe7d (patch)
treee195b4f92456db5acd710198921ebbfd89926b4c /tests
parentc12ada91d05521996e44bcbfe392ad45367587af (diff)
downloadkolla-f775700a768a010141fa6c82ea94b2bb10a9fe7d.tar.gz
kolla-f775700a768a010141fa6c82ea94b2bb10a9fe7d.zip
CentOS 8: Add zuul build and publish jobs
Adds build and publishing jobs for CentOS 8 images: - kolla-build-centos8-binary - kolla-build-centos8-source - kolla-publish-centos8-binary - kolla-publish-centos8-source The 'base' image has been added to the list of unbuildable images for CentOS 8 (now separate from the list for CentOS 7). This means that no images will be built - the jobs should essentially be a 'noop'. Change-Id: Ie9a0109bd4eef337358d714e4b5088b8e3de2f23 Partially-Implements: blueprint centos-rhel-8 (cherry picked from commit b060623b907348e518bdf1afede0b641be56c415)
Diffstat (limited to 'tests')
-rw-r--r--tests/playbooks/run.yml2
-rw-r--r--tests/test_build.py24
2 files changed, 25 insertions, 1 deletions
diff --git a/tests/playbooks/run.yml b/tests/playbooks/run.yml
index cd2f5ca8c..6ccd38f99 100644
--- a/tests/playbooks/run.yml
+++ b/tests/playbooks/run.yml
@@ -33,6 +33,6 @@
dest: /etc/kolla/template_overrides.j2
- name: Run tox
- command: tox -e {{ action }}-{{ base_distro }}-{{ install_type }}
+ command: tox -e {{ action }}-{{ base_distro }}{{ base_tag | default('') }}-{{ install_type }}
args:
chdir: "{{ zuul.project.src_dir }}"
diff --git a/tests/test_build.py b/tests/test_build.py
index 57e8a0b9a..6fdb4288c 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -79,6 +79,30 @@ class BuildTestCentosSource(BuildTest, base.BaseTestCase):
"--type", "source"])
+class BuildTestCentos8Binary(BuildTest, base.BaseTestCase):
+
+ def setUp(self):
+ super(BuildTestCentos8Binary, self).setUp()
+ # TODO(mgoddard): Remove --base-tag and --tag arguments when CentOS 8
+ # is the default.
+ self.build_args.extend(["--base", "centos",
+ "--base-tag", "8",
+ "--tag", "master-centos8",
+ "--type", "binary"])
+
+
+class BuildTestCentos8Source(BuildTest, base.BaseTestCase):
+
+ def setUp(self):
+ super(BuildTestCentos8Source, self).setUp()
+ # TODO(mgoddard): Remove --base-tag and --tag arguments when CentOS 8
+ # is the default.
+ self.build_args.extend(["--base", "centos",
+ "--base-tag", "8",
+ "--tag", "master-centos8",
+ "--type", "source"])
+
+
class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
def setUp(self):