-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix incorrect if-condition in test_create_with_invalid_url #1495
Conversation
912b53a
to
5962e4a
Compare
Hi @brandboat, It looks the change is not related to #1173 which is about and as you mentioned, the new condition |
You are right, should I create another issue ?
It depends, but for the invalid_url test case, the Initialized condition is still the last one in the array. For me it's a bit unusual to guarantee the condition's position, so I adjusted the test to locate the Initialized condition rather than assuming it’s always the last element. |
No, but please don't refer this to #1173.
if so, we can simply change the:
into
to fix the bug for new change. As the test case scenario is focusing on |
Signed-off-by: Cooper Tseng <cooper.tseng@suse.com>
5962e4a
to
9fd1dbb
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.
LGTM
Which issue(s) this PR fixes:
What this PR does / why we need it:
before harvester/harvester@13bb968, if a vm image failed to recognize the image url, we didn't have any condition in status until retry 3 times, while after the commit, we will have RetryLimitExceeded condition in
status
upon retry failure in the first round retry. Now the test didn't wait until the right condition and do assertion thus cause test failed.This pr mainly move the assertion part into the while loop, make sure the assertion is correct until timeout.
Special notes for your reviewer:
N/A
Additional documentation or context
N/A