Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit d1a9dc3

Browse files
authored
Merge pull request #10320 from jaryn/bad_awx_template_bz
[RFR] Add refresh to the funky characters test fixture
2 parents 63b3acd + 1204132 commit d1a9dc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cfme/tests/infrastructure/test_providers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def test_compare_templates(appliance, setup_provider_min_templates, provider, mi
532532

533533

534534
@pytest.fixture
535-
def provider_with_special_characters(provider):
535+
def provider_with_special_characters(provider: AnsibleTowerProvider):
536536
"""
537537
Adds a special character sequence to extra_vars on a AWX provider to test BZ 1819310.
538538
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):
568568
json=empty_extra_vars)
569569
assert response.ok
570570

571+
# Let's make sure the provider refreshes so if there was a regression -- special chars
572+
# were problem, the problem would be isolated to only the test(s) using this fixture.
573+
provider.refresh_provider_relationships()
574+
571575

572576
@pytest.mark.meta(automates=[1819310])
573577
@pytest.mark.provider(gen_func=providers_by_class,

0 commit comments

Comments
 (0)