Commit 3663915
fullsend-code
test(#1339): add test for FBC with empty index_repo_map
Add a fourth parametrize entry to test_overwrite_from_index covering
the case where is_image_fbc=True but url_repo_map is empty ({}). This
tests the guard added in PR #1338 (commit cad01fa) that skips
get_catalog_dir and push_configs_to_git when the index_repo_map is
empty (containerized IIB path where push was already done earlier).
Changes:
- Add parametrize case: FBC=True, empty url_repo_map, different
registries (no OCI export)
- Update assertion condition from `if is_image_fbc` to
`if is_image_fbc and url_repo_map` to match production guard
- Add mock_pcg.assert_not_called() in the else branch to verify
push_configs_to_git is also skipped when appropriate
Note: Full pytest suite could not run due to missing krb5-dev
system library (required by gssapi/requests-kerberos). Test logic
was validated via isolated mock-based execution of all 4 cases.
Closes #13391 parent cad01fa commit 3663915
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
404 | 413 | | |
405 | 414 | | |
406 | 415 | | |
| |||
459 | 468 | | |
460 | 469 | | |
461 | 470 | | |
462 | | - | |
| 471 | + | |
463 | 472 | | |
464 | 473 | | |
465 | 474 | | |
| |||
480 | 489 | | |
481 | 490 | | |
482 | 491 | | |
| 492 | + | |
483 | 493 | | |
484 | 494 | | |
485 | 495 | | |
| |||
0 commit comments