-
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
Close-loop bz2209968 #14158
Close-loop bz2209968 #14158
Conversation
9350cee
to
11384c7
Compare
trigger: test-robottelo |
Requires SatelliteQE/airgun#1262 |
trigger: test-robottelo |
PRT Result
|
PRT Result
|
Dependency PR broken by SatelliteQE/airgun#1226 after rebasing it. It worked locally and the change is not that related. |
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 there is some room to consolidate the code to make it self-contained and compact
@@ -367,6 +367,24 @@ def valid_hostgroups_list(): | |||
] | |||
|
|||
|
|||
@filtered_datapoint | |||
def valid_hostgroups_list_short(): | |||
"""Generates a list of valid host group names. Shorter so they can be nested. |
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 am not quite sold on this - you declare its properties quite vaguely ( shorter), but the reality is, you have a test dependent on this that requires this to be no shorter than 8 items.
If someone decides that it is not short enough and decides to make it even shorter, your new test would start to raise index errors.
I'd suggest to ditch this and simply generate your dataset in a local fixture.
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.
short
stands for a list of short names
, not short list of names
. There is a similar fixture that has longer names, i.e. greater value in randint
.
There are also other tests that require a fixture to have at least X members, valid_hostgroups_list
being no exception.
gen_string('latin1', random.randint(1, 15)), | ||
gen_string('numeric', random.randint(1, 15)), | ||
gen_string('utf8', random.randint(1, 15)), | ||
gen_string('html', random.randint(1, 15)), |
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.
isn't the name containing html tags going to crash your test?
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.
They should be escaped
trigger: test-robottelo |
PRT Result
|
@rplevka comments addressed |
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 left a few comments there, but LGTM overall.
trigger: test-robottelo |
trigger: test-robottelo |
trigger: test-robottelo |
1 similar comment
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
Problem Statement
Close-loop bz2209968