aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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 eac241265..395ceccf6 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):