This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10164 from tpapaioa/fix_managed_known_providers
[1LP][RFR] Fix to managed_known_providers name checking
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
from cfme.cloud.provider.azure import AzureProvider | ||
from cfme.common.provider import BaseProvider | ||
from cfme.markers.env_markers.provider import ONE_PER_VERSION | ||
|
||
|
||
@pytest.mark.provider([AzureProvider], selector=ONE_PER_VERSION) | ||
def test_provider_fixtures(provider, setup_provider): | ||
"""Verify that clearing providers works correctly. | ||
Polarion: | ||
assignee: tpapaioa | ||
casecomponent: Appliance | ||
initialEstimate: 1/15h | ||
""" | ||
assert provider.exists, f"Provider {provider.name} not found on appliance." | ||
BaseProvider.clear_providers() | ||
assert not provider.exists, f"Provider {provider.name} not deleted from appliance." |