From 1204132c3fbcd74ad48c3a6669f0fbb261388f35 Mon Sep 17 00:00:00 2001 From: Jaroslav Henner Date: Wed, 9 Sep 2020 14:58:39 +0200 Subject: [PATCH] Add refresh to the funky characters test fixture ... just to make the resolution of a possible problem less time consuming. --- cfme/tests/infrastructure/test_providers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cfme/tests/infrastructure/test_providers.py b/cfme/tests/infrastructure/test_providers.py index 086617e553..fb3ae40440 100644 --- a/cfme/tests/infrastructure/test_providers.py +++ b/cfme/tests/infrastructure/test_providers.py @@ -532,7 +532,7 @@ def test_compare_templates(appliance, setup_provider_min_templates, provider, mi @pytest.fixture -def provider_with_special_characters(provider): +def provider_with_special_characters(provider: AnsibleTowerProvider): """ Adds a special character sequence to extra_vars on a AWX provider to test BZ 1819310. Note it seems the the AWX version 3.4 cannot be patched. It is refusing the request. @@ -568,6 +568,10 @@ def provider_with_special_characters(provider): json=empty_extra_vars) assert response.ok + # Let's make sure the provider refreshes so if there was a regression -- special chars + # were problem, the problem would be isolated to only the test(s) using this fixture. + provider.refresh_provider_relationships() + @pytest.mark.meta(automates=[1819310]) @pytest.mark.provider(gen_func=providers_by_class,