Skip to content

Add unit test coverage for deploy, cleanup, validate retry, and git-history regression tests#4804

Draft
Venu-p1 wants to merge 3 commits into
dell:pub/q2_upgradefrom
Venu-p1:dev/buildstream-ut-update-2.2
Draft

Add unit test coverage for deploy, cleanup, validate retry, and git-history regression tests#4804
Venu-p1 wants to merge 3 commits into
dell:pub/q2_upgradefrom
Venu-p1:dev/buildstream-ut-update-2.2

Conversation

@Venu-p1

@Venu-p1 Venu-p1 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Closes coverage gaps across core domains, API routes, and orchestrator logic.
Adds regression tests for bug fixes

What changed

  • New tests/unit/core/deploy/ — 19 tests for entities, services, exceptions
  • New tests/unit/core/cleanup/ — 20 tests for exceptions, S3 service interface
  • New tests/unit/core/catalog/test_adapter.py — 5 tests for K8S optional config
  • New tests/unit/core/catalog/test_extract_bundle_name.py — 9 tests for versioned filename parsing
  • Augmented test_validate_use_case.py — 8 tests for retry lifecycle, guard edge cases
  • Augmented api/deploy/test_routes.py — 4 tests for missing error handlers (400/412/500)
  • Augmented api/local_repo/test_routes.py — 3 tests for StageAlreadyCompleted, upstream, terminal state
  • Augmented test_result_poller.py — 4 tests for deploy/restart failure → ImageGroup FAILED

Test results: 1247 passed, 0 failed, 12 errors (pre-existing: no PostgreSQL dialect)

…istory regression tests

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
@Venu-p1 Venu-p1 force-pushed the dev/buildstream-ut-update-2.2 branch from dd8b6bd to 8c10a3e Compare June 30, 2026 18:59
…gracefully

- Remove client_id tests from test_generate_input_files_command.py since the
  client_id field was reverted from the command DTO source
- Relocated catalog tests from source dir to tests dir.
- Make SQL repository integration tests skip cleanly when no live PostgreSQL
  is reachable, instead of erroring on a missing/polluted postgresql dialect

Signed-off-by: venu 236371043+Venu-p1@users.noreply.github.com
@Venu-p1 Venu-p1 force-pushed the dev/buildstream-ut-update-2.2 branch from 8c10a3e to 9b8fc62 Compare June 30, 2026 19:03
Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant