Skip to content

test(orchestrator): increase test coverage from 73% to 93%#148

Closed
mrhillsman wants to merge 1 commit into
mainfrom
143-orchestrator-test-coverage
Closed

test(orchestrator): increase test coverage from 73% to 93%#148
mrhillsman wants to merge 1 commit into
mainfrom
143-orchestrator-test-coverage

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Add tests for previously uncovered paths:

  • waitForReadiness: all VMs ready, partial failures, audit errors
  • createVMs: VM creation failure, VMConcurrency limit enforcement
  • createResources: EnsureNamespace failure, CreateService failure
  • createSecrets: secret creation failure
  • context cancellation during VM creation
  • CleanupOrchestrator.Execute with run-id filtering
  • CleanupOrchestrator.Execute with mixed resource states
  • CleanupOrchestrator.Preview error path
  • audit error logging for LinkCleanupToRuns

Resolves #143

Add tests for previously uncovered paths:
- waitForReadiness: all VMs ready, partial failures, audit errors
- createVMs: VM creation failure, VMConcurrency limit enforcement
- createResources: EnsureNamespace failure, CreateService failure
- createSecrets: secret creation failure
- context cancellation during VM creation
- CleanupOrchestrator.Execute with run-id filtering
- CleanupOrchestrator.Execute with mixed resource states
- CleanupOrchestrator.Preview error path
- audit error logging for LinkCleanupToRuns

Resolves #143

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@exe-prow-github-app exe-prow-github-app Bot requested a review from OchiengEd May 30, 2026 07:02
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2026
@mrhillsman mrhillsman closed this May 30, 2026
@mrhillsman mrhillsman deleted the 143-orchestrator-test-coverage branch May 31, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tech Debt]: Increase orchestrator test coverage from 73% to 80%+

1 participant