Skip to content

Create a test util function for asserting admissionCheckState #7021

@PBundyra

Description

@PBundyra

What would you like to be cleaned:
Create a test util function that with a header along the lines:

func ExpectAdmissionCheckState(wl kueue.Workload, acName string, expectedState kueue.CheckState, expectedMessage string)

that asserts if a Workload has admission check with desired fields

The function should be used across the codebase, especially in test/integration/singlecluster/controller/admissionchecks/provisioning/provisioning_test.go

Why is this needed:
Context: https://github.com/kubernetes-sigs/kueue/pull/6408/files#r2251649819
To make test more readable and robust

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions