generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 428
Open
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Description
What would you like to be cleaned:
Create a test util function that with a header along the lines:
func ExpectAdmissionCheckState(wlKey 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.Categorizes issue or PR as related to cleaning up code, process, or technical debt.