Commit 2609d0b
authored
net, network policy: Use fixtures' ports (#4051)
Small follow-up requested change
https://github.com/RedHatQE/openshift-virtualization-tests/pull/3588/changes#r2753623060
Use the allowed ports provided by the fixtures in network policy object
instead of the ports constant to improve test readability, and clearly
distinguish between allowed and disallowed ports.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Updated network policy tests: renamed and reworked test fixtures and
signatures to remove redundant decorators, tests now consume targeted
fixtures and iterate over provided ports. This improves test clarity,
reduces duplication, and makes the network policy test suite more
reliable and easier to extend and maintain.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Asia Khromov <azhivovk@redhat.com>1 parent 5c2c33a commit 2609d0b
File tree
2 files changed
+10
-5
lines changed- tests/network/network_policy
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | | - | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
0 commit comments