-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variable value should del after update #16969
base: master
Are you sure you want to change the base?
Conversation
e599cc7
to
eb0d66c
Compare
86675f4
to
43bc163
Compare
43bc163
to
a988779
Compare
PRT Result
|
a988779
to
d69d057
Compare
tests/foreman/ui/test_ansible.py
Outdated
:customerscenario: true | ||
|
||
:steps: | ||
1. Create an Ansible variable with array type and set the default value. | ||
2. Enable both 'Merge Overrides' and 'Merge Default'. | ||
3. Add the variable to a role and attach the role to the host. | ||
4. Verify that ansible role and variable is added to the host. | ||
5. In variable override the value. |
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.
5. In variable override the value. | |
5. Override the variable value. |
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.
Done.
tests/foreman/ui/test_ansible.py
Outdated
:customerscenario: true | ||
|
||
:steps: | ||
1. Create an Ansible variable with array type and set the default value. | ||
2. Enable both 'Merge Overrides' and 'Merge Default'. | ||
3. Add the variable to a role and attach the role to the host. | ||
4. Verify that ansible role and variable is added to the host. | ||
5. In variable override the value. | ||
6. Delete the overridden value. |
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.
6. Delete the overridden value. | |
6. Reset the overridden value to the original value. |
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.
Done.
'default_value': default_value, | ||
} | ||
) | ||
new_value = '["test update"]' |
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.
Doesn't this give you error?
You can try new_value = '["test update"]'
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 did not produce any errors, but I made a small change.
tests/foreman/ui/test_ansible.py
Outdated
) | ||
assert new_value in update_value | ||
# Revert the updated value to its default state. | ||
delete_value = session.host_new.read_value_after_del(rhel_contenthost.hostname, new_key) |
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.
Can you please rename this variable? The name is confusing.
may be reset_variable_value
?
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.
updated the variable name.
PRT Result
|
49ca48b
to
37f40d7
Compare
PRT Result
|
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 have a question in the dependence PR, this PR itself LGTM
37f40d7
to
2156554
Compare
2156554
to
7f9b031
Compare
PRT Result
|
7f9b031
to
8ad37e1
Compare
trigger: test-robottelo |
PRT Result
|
I extended the existing test case to include the following steps:
Dependent PR: SatelliteQE/airgun#1643