From 5bfd481878f9ce892b35677ab4257fccea79e309 Mon Sep 17 00:00:00 2001 From: jh629g Date: Wed, 11 Nov 2020 16:11:47 -0600 Subject: [PATCH] RTP Fixes for error base refactor After recent codefixes to ranger, minor refactoring is needed in RTP testbase. Change-Id: Ib96158fc74088a2b3a15d44facb9026906bc58ed --- ranger_tempest_plugin/tests/api/test_customers.py | 1 - ranger_tempest_plugin/tests/api/test_region_groups.py | 2 +- tox.ini | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ranger_tempest_plugin/tests/api/test_customers.py b/ranger_tempest_plugin/tests/api/test_customers.py index eacc049..b8dd82e 100755 --- a/ranger_tempest_plugin/tests/api/test_customers.py +++ b/ranger_tempest_plugin/tests/api/test_customers.py @@ -60,7 +60,6 @@ class TestTempestCms(cms_base.CmsBaseOrmTest): CONF.ranger.alt_region])) group_id = body['group']['id'] - self.addCleanup(self.rms_client.delete_region_group, group_id) return group_id diff --git a/ranger_tempest_plugin/tests/api/test_region_groups.py b/ranger_tempest_plugin/tests/api/test_region_groups.py index 10824fa..1a029f6 100755 --- a/ranger_tempest_plugin/tests/api/test_region_groups.py +++ b/ranger_tempest_plugin/tests/api/test_region_groups.py @@ -133,6 +133,6 @@ class TestTempestRegionGroup(base.BaseOrmTest): ids = ['some_non_existenant_region'] self.assertRaises( - exceptions.BadRequest, self.client.create_region_group, + exceptions.NotFound, self.client.create_region_group, **orm_data_utils.rand_region_group(ids) ) diff --git a/tox.ini b/tox.ini index 5e1e4e7..020267b 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ skipdist = True [testenv] usedevelop = True -install_command = pip install {opts} {packages} +install_command = pip install {opts} {packages} --trusted-host pypi.org --trusted-host files.pythonhosted.org setenv = VIRTUAL_ENV={envdir} commands =