From 1a4614167144d8a393bd54350b029939b78a1038 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Wed, 13 Feb 2019 10:14:33 -0500 Subject: [PATCH] Add python3 functional gate Add a python3 functional gate that is non-voting. Co-Authored-By: Lucas H. Xu Change-Id: I5ca75cd85fa469cdaa869baa71726498e9d11e0b Signed-off-by: Charles Short Lucas H. Xu --- .zuul.d/rally-tox-functional.yaml | 2 ++ tests/functional/test_cli_env.py | 5 +++-- tox.ini | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.zuul.d/rally-tox-functional.yaml b/.zuul.d/rally-tox-functional.yaml index ad26edeb..082928e8 100644 --- a/.zuul.d/rally-tox-functional.yaml +++ b/.zuul.d/rally-tox-functional.yaml @@ -17,5 +17,7 @@ vars: devstack_plugins: rally-openstack: https://opendev.org/openstack/rally-openstack + devstack_localrc: + USE_PYTHON3: true rally_tox_env: "functional" run: tests/ci/playbooks/run-rally-tox.yaml diff --git a/tests/functional/test_cli_env.py b/tests/functional/test_cli_env.py index fc22ebb7..b32cee6d 100644 --- a/tests/functional/test_cli_env.py +++ b/tests/functional/test_cli_env.py @@ -171,8 +171,9 @@ class EnvTestCase(unittest.TestCase): plugings = "tests/functional/extra/fake_dir/fake_plugin.py" rally("--plugin-paths %s env check" % plugings) except utils.RallyCliError as e: - self.assertIn("There is no OSClient plugin 'noneclient'", - e.output) + self.assertIn( + "Plugin existing@openstack.check_health() method is broken", + e.output) def test_check_api_info_fail_3(self): rally = utils.Rally() diff --git a/tox.ini b/tox.ini index f6f41f7e..7fdafea8 100644 --- a/tox.ini +++ b/tox.ini @@ -56,6 +56,7 @@ basepython = python3.5 commands = oslo_debug_helper -t tests {posargs} [testenv:functional] +basepython = python3 sitepackages = True commands = find . -type f -name "*.pyc" -delete