-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][WIP] New Test:: Testing Restart Appliance command using appliance console #9775
Conversation
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.
Test LGTM, just 2 changes.
I think we've missed this in your other PRs, but if you are the FA owner of a test case, you should change the assignee
name to yours in the Polarion doc block to.
appliance.appliance_console.run_commands(cmd_stop_EVM, timeout=90) | ||
# Checking EVM service stoppped or not | ||
wait_for( | ||
lambda: not appliance.is_web_ui_running(), |
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.
I don't think you should be using lambda
here since you're calling a function.
You can simply do wait_for(appliance.is_web_ui_running, fail_condition=True, ...)
.
Using fail_condition=True
here is equivalent to using not appliance.is_web_ui_running()
.
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.
Getting below error if I do not use lambda.
> f_code = func.__code__
E AttributeError: 'bool' object has no attribute '__code__'
.cfme_venv/lib64/python3.7/site-packages/wait_for/__init__.py:64: AttributeError
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.
Will change assignee
shortly
appliance.appliance_console.run_commands(cmd_start_EVM, timeout=90) | ||
# Checking EVM service started or not | ||
wait_for( | ||
lambda: appliance.is_web_ui_running(), |
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.
Same as above. Simply using wait_for(appliance.is_web_ui_running, ....)
would do the trick.
@pytest.mark.tier(2) | ||
def test_appliance_console_restart(): | ||
def test_appliance_console_restart(appliance): |
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.
I think this TC means restart appliance via appliance console
- Restart Appliance
We do not have any CLI option to restart the EVM Server Processes
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.
@mnadeem92 you are right, We do not have restart command so performed stop and start operation as per steps mentioned in the testcase,
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.
@mnadeem92 As per our offline discussion I am going to implement this TC using option 18. Restart Appliance
to restart the appliace.
c4eee82
to
b2f7154
Compare
d068267
to
3764fa7
Compare
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.
Small changes required :)
3764fa7
to
aaf941c
Compare
92e031a
to
a7304ac
Compare
bb03597
to
5d2cfc9
Compare
5d2cfc9
to
8f289ad
Compare
8f289ad
to
f45e78d
Compare
I detected some fixture changes in commit f45e78d45592636e860df0b571901e9f503f649e The local fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
f45e78d
to
141e7a5
Compare
[1LP][RFR] Automate multiple vm retirement, fix ec2 instance-backed retirement
141e7a5
to
89d5212
Compare
Due to some git issue my changes discarded from this PR, so closing this PR and will open new one for the same. |
PR raised for the same: #9814 |
Purpose or Intent
PRT Run
{{pytest: cfme/tests/cli/test_appliance_console.py::test_appliance_console_restart -vv}}