Commit 938089c
RHAIENG-1648: POC to extend NB tests for custom image based imports (#860)
* RHAIENG-1648: POC to extend NB tests for custom image based imports
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix variable name, make packages to verify part of pytest params
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* fix the minimal_image fallback issue identified by the coderabbit
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* fix image format validation bug, fix image_path var name
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* use the right defaults for params in PackageVerificationResult
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* remove unwanted checks, optimize error messages
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor the fixture to add a new one and separate concern for the tc.
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* pre-commit hook failure fixes
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* refactor: separate notebook image resolution from creation fixture
Decomposes the default_notebook fixture by extracting image validation and registry resolution into a new notebook_image fixture.
Changes:
- Create notebook_image fixture to handle custom images and default fallbacks
- Simplify default_notebook to accept the resolved image path
- Update test_custom_images.py to parameterize the image fixture directly
- Add noqa override for unused fixture argument required by pytest indirect parametrization
This improves the Single Responsibility Principle adherence and makes image parametrization more explicit.
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove the commented code block
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* fix the improper exception based on feedback
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* fix duplicate verifications based on feedback
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix the notebook pod wait logic
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* refactor the collect_pod_information function to be re-used in different component tests
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix circular import issue
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* applying feedback to use collect_pod_information alone
Signed-off-by: Kamesh Akella <kakella@redhat.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Kamesh Akella <kakella@redhat.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Debarati Basu-Nag <dbasunag@redhat.com>1 parent ae6dec0 commit 938089c
File tree
4 files changed
+540
-36
lines changed- tests
- model_registry/async_job
- workbenches
- notebook-controller
- utilities
4 files changed
+540
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
51 | 107 | | |
52 | 108 | | |
53 | 109 | | |
| |||
60 | 116 | | |
61 | 117 | | |
62 | 118 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 119 | + | |
| 120 | + | |
72 | 121 | | |
73 | 122 | | |
74 | 123 | | |
| |||
90 | 139 | | |
91 | 140 | | |
92 | 141 | | |
93 | | - | |
| 142 | + | |
94 | 143 | | |
95 | 144 | | |
96 | 145 | | |
| |||
124 | 173 | | |
125 | 174 | | |
126 | 175 | | |
127 | | - | |
| 176 | + | |
128 | 177 | | |
129 | | - | |
| 178 | + | |
130 | 179 | | |
131 | 180 | | |
132 | 181 | | |
| |||
167 | 216 | | |
168 | 217 | | |
169 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
0 commit comments