-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: test
federatedresourcequota
webhook
In this commit, we add unit tests for the `FederatedResourceQuota` validation logic and its related components. The tests ensure that the validation logic correctly handles various scenarios, including: - Validating `FederatedResourceQuota` specifications with appropriate resource assignments. - Detecting cases where overall resource limits are less than the assigned resources. - Handling scenarios where resource names in assignments do not exist in the overall resources. - Validating `FederatedResourceQuotaStatus` to ensure standard resource types and correct cluster names. - Handling invalid resource lists in both `Overall` and `AggregatedStatus`. Signed-off-by: Mohamed Awnallah <[email protected]>
- Loading branch information
1 parent
145a67e
commit 7373ab3
Showing
1 changed file
with
371 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters