run discovery tests if resources are supported

This commit is contained in:
Arda Güçlü
2022-11-02 15:11:08 +03:00
parent 0990ba1cc9
commit d6532f5eb8
2 changed files with 9 additions and 5 deletions

View File

@@ -503,13 +503,17 @@ runTests() {
# Assert short name #
#########################
record_command run_assert_short_name_tests
if kube::test::if_supports_resource "${customresourcedefinitions}" && kube::test::if_supports_resource "${pods}" && kube::test::if_supports_resource "${configmaps}" ; then
record_command run_assert_short_name_tests
fi
#########################
# Assert singular name #
#########################
record_command run_assert_singular_name_tests
if kube::test::if_supports_resource "${customresourcedefinitions}" && kube::test::if_supports_resource "${pods}" ; then
record_command run_assert_singular_name_tests
fi
#########################
# Assert categories #