From cbf5aea6c72821eefa245ca15fd9ee29bd70f447 Mon Sep 17 00:00:00 2001 From: Kersom Date: Fri, 20 Apr 2018 16:01:48 -0400 Subject: [PATCH] Skip test affected by Pulp issue 3586 >Filtering workers is indetermanistic See: https://pulp.plan.io/issues/3586 --- pulp_smash/tests/pulp3/pulpcore/api_v3/test_workers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pulp_smash/tests/pulp3/pulpcore/api_v3/test_workers.py b/pulp_smash/tests/pulp3/pulpcore/api_v3/test_workers.py index cfedd8870..3ebc8b378 100644 --- a/pulp_smash/tests/pulp3/pulpcore/api_v3/test_workers.py +++ b/pulp_smash/tests/pulp3/pulpcore/api_v3/test_workers.py @@ -23,8 +23,8 @@ class WorkersTestCase(unittest.TestCase, utils.SmokeTest): @classmethod def setUpClass(cls): """Create an API Client.""" - cfg = config.get_config() - cls.client = api.Client(cfg, api.json_handler) + cls.cfg = config.get_config() + cls.client = api.Client(cls.cfg, api.json_handler) cls.client.request_kwargs['auth'] = get_auth() cls.worker = {} @@ -64,6 +64,8 @@ def test_02_read_workers(self): @selectors.skip_if(bool, 'worker', False) def test_03_positive_filters(self): """Read a worker using a set of query parameters.""" + if selectors.bug_is_untestable(3586, self.cfg.pulp_version): + raise unittest.SkipTest('https://pulp.plan.io/issues/3586') page = self.client.get(WORKER_PATH, params={ 'last_heartbeat__gte': self.worker['last_heartbeat'], 'name': self.worker['name'],