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
[1LP][RFR] NewTest::Test Shutdown Appliance #9809
Merged
digitronik
merged 1 commit into
ManageIQ:master
from
dgaikwad:test_appliance_console_shutdown
Jan 3, 2020
Merged
[1LP][RFR] NewTest::Test Shutdown Appliance #9809
digitronik
merged 1 commit into
ManageIQ:master
from
dgaikwad:test_appliance_console_shutdown
Jan 3, 2020
Conversation
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
dgaikwad
force-pushed
the
test_appliance_console_shutdown
branch
2 times, most recently
from
December 31, 2019 17:59
f97fd08
to
4c4febe
Compare
dgaikwad
changed the title
[WIPTEST] NewTest::Test Shutdown Appliance
[RFR] NewTest::Test Shutdown Appliance
Dec 31, 2019
valaparthvi
reviewed
Jan 2, 2020
There was a problem hiding this 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.
valaparthvi
added
the
test-automation
To be applied on PR's which are automating existing manual cases
label
Jan 2, 2020
dgaikwad
force-pushed
the
test_appliance_console_shutdown
branch
from
January 2, 2020 06:01
4c4febe
to
26ad049
Compare
valaparthvi
approved these changes
Jan 2, 2020
valaparthvi
changed the title
[RFR] NewTest::Test Shutdown Appliance
[1LP][RFR] NewTest::Test Shutdown Appliance
Jan 2, 2020
dgaikwad
force-pushed
the
test_appliance_console_shutdown
branch
from
January 2, 2020 09:30
26ad049
to
75c52d8
Compare
digitronik
reviewed
Jan 2, 2020
There was a problem hiding this 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
cfme/utils/appliance/console.py
Outdated
@@ -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}") |
There was a problem hiding this comment.
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
force-pushed
the
test_appliance_console_shutdown
branch
from
January 2, 2020 10:36
75c52d8
to
e69d963
Compare
digitronik
approved these changes
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose or Intent
PRT Run
{{pytest: ./cfme/tests/cli/test_appliance_console.py::test_appliance_console_shutdown --long-running -v}}