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 <mohamedmohey2352@gmail.com> |
||
---|---|---|
.. | ||
validating.go | ||
validating_test.go |