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

[1LP][RFR] Added appliance fixture #4316

Merged
merged 4 commits into from
Mar 9, 2017
Merged

Conversation

psav
Copy link
Contributor

@psav psav commented Mar 3, 2017

Adding appliance fixture



pytestmark = [pytest.mark.usefixtures("start_evmserverd_after_module")]


@pytest.mark.tier(1)
def test_evmserverd_stop(ssh_client):
def test_evmserverd_stop(appliance):
Copy link
Contributor

Choose a reason for hiding this comment

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

why replace ssh_client there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it should be gotten from appliance not from some mad global ssh_client

@psav psav changed the title [WIPTEST] Added appliance fixture [RFR] Added appliance fixture Mar 7, 2017
@dajoRH dajoRH removed the WIP-testing label Mar 7, 2017
@@ -30,26 +30,28 @@ def test_evmserverd_stop(ssh_client):
* For 5.5+: Really call ``service evmserverd status`` and check that the mentions of
stopping the service are present.
"""
server_names = {server["Server Name"] for server in ssh_client.status["servers"]}
assert ssh_client.run_command("service evmserverd stop").rc == 0
server_names = {server["Server Name"] for server in appliance.ssh_client.status["servers"]}
Copy link
Member

Choose a reason for hiding this comment

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

This is raising a KeyError upstream for 'Server Name' but that's outside your intended scope here.

@@ -30,9 +27,8 @@ def test_login(method):

@pytest.mark.tier(2)
@pytest.mark.sauce
def test_bad_password(request):
def test_bad_password(request, appliance):
Copy link
Member

Choose a reason for hiding this comment

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

failing in 5.6 and 5.7 PRT but outside the scope of this change.

@mshriver mshriver changed the title [RFR] Added appliance fixture [1LP][RFR] Added appliance fixture Mar 8, 2017
@jkrocil jkrocil merged commit e928a71 into ManageIQ:master Mar 9, 2017
@psav psav deleted the appliance_fixture branch October 19, 2017 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants