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

[1LP][RFR]Implemented automated test for test_add_delete_add_provider #9832

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions cfme/tests/cloud/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,8 +1250,8 @@ def test_ec2_create_sns_topic():


@test_requirements.ec2
@pytest.mark.manual
def test_ec2_add_delete_add_provider():
@pytest.mark.provider([EC2Provider], scope="function", override=True, selector=ONE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

override kwarg is no longer necessary, and is essentially ignored (generates a log message)

def test_add_delete_add_provider(setup_provider, provider, request):
"""
Polarion:
assignee: mmojzis
Expand All @@ -1267,7 +1267,11 @@ def test_ec2_add_delete_add_provider():
2.
3. Ec2 provider should be successfully added again without any issues
"""
pass
provider.delete()
provider.create()
request.addfinalizer(provider.delete_if_exists)
provider.refresh_provider_relationships()
provider.validate_stats(ui=True)


@test_requirements.ec2
Expand Down
2 changes: 1 addition & 1 deletion requirements/frozen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Werkzeug==0.16.0
widgetastic.core==0.51
widgetastic.patternfly==1.2.0
widgetsnbextension==3.4.2
wrapanapi==3.5.2
wrapanapi==3.5.4
wrapt==1.11.1
xmltodict==0.12.0
yaycl==0.3.0
Expand Down