Commit b2628d6
authored
[Gating][Cherry-pick]Fix gating upgrade for non-EUS versions (RedHatQE#1710) (RedHatQE#2735)
Manual cherry-pick of
RedHatQE#1710
##### Short description:
* Fix gating upgrade to yield the vms_list
Moving the running_vm check and yield vms_list statements outside of the
non-gating conditional block, so the vms_for_upgrade fixture will:
- Always yield the vms_list containing at least the
vm_with_instancetypes_for_upgrade VM.
- For non-gating tests, it will create additional VMs from the data
sources and add them to the list.
This ensures that the vms_for_upgrade fixture always yields a value
regardless of whether the test is marked with @pytest.mark.gating or
not, resolving the
ValueError: vms_for_upgrade did not yield a value error.
* Fix gating upgrade for non-EUS versions
The gating upgrade test was failing because of an unexpected exit when
the testing version is not an EUS version.
This fix is returning None instead of exiting allowing the ability to
keep testing the CNV upgrade between minor versions.
##### More details:
N/A
##### What this PR does / why we need it:
N/A
##### Which issue(s) this PR fixes:
N/A
##### Special notes for reviewer:
N/A
##### jira-ticket:
N/A
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Test suites now warn and return a neutral value instead of aborting
when an invalid/unsupported version is encountered.
* Some upgrade tests will exit early with a clear message when required
target versions are missing.
* VM upgrade tests always perform startup checks now, altering execution
timing.
* Test configuration error handling has been reorganized for clearer
behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 2b72f6b commit b2628d6
3 files changed
Lines changed: 15 additions & 9 deletions
File tree
- tests
- install_upgrade_operators/product_upgrade
- virt/upgrade
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | 230 | | |
232 | 231 | | |
233 | 232 | | |
| |||
1906 | 1905 | | |
1907 | 1906 | | |
1908 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
1909 | 1911 | | |
1910 | 1912 | | |
1911 | 1913 | | |
| |||
1918 | 1920 | | |
1919 | 1921 | | |
1920 | 1922 | | |
1921 | | - | |
| 1923 | + | |
1922 | 1924 | | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
| 1925 | + | |
| 1926 | + | |
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments