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

[1LP][RFR] NewTest::Test Shutdown Appliance #9809

Merged

Conversation

dgaikwad
Copy link
Contributor

Purpose or Intent

  • testing appliance shutdown scenario

PRT Run

{{pytest: ./cfme/tests/cli/test_appliance_console.py::test_appliance_console_shutdown --long-running -v}}

@dgaikwad dgaikwad force-pushed the test_appliance_console_shutdown branch 2 times, most recently from f97fd08 to 4c4febe Compare December 31, 2019 17:59
@dgaikwad dgaikwad changed the title [WIPTEST] NewTest::Test Shutdown Appliance [RFR] NewTest::Test Shutdown Appliance Dec 31, 2019
Copy link
Contributor

@valaparthvi valaparthvi left a comment

Choose a reason for hiding this comment

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

Just one question. LGTM otherwise.

cfme/utils/appliance/console.py Outdated Show resolved Hide resolved
@valaparthvi valaparthvi added the test-automation To be applied on PR's which are automating existing manual cases label Jan 2, 2020
@dgaikwad dgaikwad force-pushed the test_appliance_console_shutdown branch from 4c4febe to 26ad049 Compare January 2, 2020 06:01
@dgaikwad dgaikwad requested a review from valaparthvi January 2, 2020 06:26
@valaparthvi valaparthvi changed the title [RFR] NewTest::Test Shutdown Appliance [1LP][RFR] NewTest::Test Shutdown Appliance Jan 2, 2020
@dgaikwad dgaikwad force-pushed the test_appliance_console_shutdown branch from 26ad049 to 75c52d8 Compare January 2, 2020 09:30
Copy link
Contributor

@digitronik digitronik left a comment

Choose a reason for hiding this comment

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

Nice changes 👍
@dgaikwad just about logger string formatting else LGTM

appliance = temp_appliance_preconfig_modscope
command_set = ("ap", RETURN, "19", "Y")
appliance.appliance_console.run_commands(command_set, timeout=40)
wait_for(lambda: appliance.ssh_client.connected,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -44,16 +45,22 @@ def run_commands(self, commands, autoreturn=True, timeout=10, channel=None):
cmd, timeout = command
channel.settimeout(timeout)
cmd = "{}\n".format(cmd) if autoreturn else "{}".format(cmd)
logger.info(f"Executing sub-command:{cmd}")
Copy link
Contributor

Choose a reason for hiding this comment

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

We are fallowing logger default formatting. I would try to avoid f-string.

@dgaikwad dgaikwad force-pushed the test_appliance_console_shutdown branch from 75c52d8 to e69d963 Compare January 2, 2020 10:36
@dgaikwad dgaikwad requested a review from digitronik January 2, 2020 13:39
@digitronik digitronik merged commit c8a85c4 into ManageIQ:master Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement lint-ok test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants