-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Add support for cancel and nav_away to Host.update() and test_infrastructure_hosts_crud #10090
Conversation
I am still making small updates to this and testing, but I'd like to start the review. |
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.
Thanks for this PR @prichard77, I have some comments and suggestions, please take a look!
FYI, This PR includes commits from PR#9961. At the moment it contains all of the commits for PR#9961. |
else: | ||
raise | ||
if crud_action not in ['cancel', 'nav_away_changes', 'nav_away_no_changes']: | ||
assert host.custom_ident == new_custom_id # is this actually doing anything here |
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.
Perhaps the host.custom_ident comes from REST API? Doesn't seem like though when I take a look on the code around the Host
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.
It's a UI item. It can be seen on the details page and edit pages.
I am setting this back to WIPTEST as I have a few things to work out based upon comments, and I want reviewers to focus on other PRs for the moment. |
329f5ca
to
c10f76e
Compare
I am updating some comments in host.update that I forget to update, but otherwise changed usage of action string to kwargs. I'll be pushing changes to comments shortly, but would still like review comments. |
…crud for clarity and easier understanding
…eption and default to from_details
I updated so that edit from details would be the default behavior as it was originally. |
rerunning PRT. I am not sure why it's failing as it is passing when I run locally. |
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.
The approach of building the behavior for the test into Host.update
has been rejected, please see individual comments. Thanks @prichard77
…in cancel calls in test_infrastructure_hosts_crud
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.
Two more really small changes requested, otherwise the test is looking great now!
Purpose or Intent
PRT Run
{{ pytest: --use-provider complete --long-running cfme/tests/infrastructure/test_host.py::test_infrastructure_hosts_crud }}