From bdd48ac8f134e14c994e1c1ecc58cde8b37c82d1 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Wed, 1 Jun 2022 13:03:59 +0800 Subject: [PATCH] Fix the naming of the test suites Signed-off-by: Dave Chen Kubernetes-commit: 3c594d61567fc3cd5ef196a1419be957cdfaa5e1 --- pkg/apply/parse/suite_test.go | 4 ++-- pkg/apply/strategy/suite_test.go | 4 ++-- pkg/util/openapi/validation/validation_suite_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/apply/parse/suite_test.go b/pkg/apply/parse/suite_test.go index a50273f4..010dc993 100644 --- a/pkg/apply/parse/suite_test.go +++ b/pkg/apply/parse/suite_test.go @@ -26,9 +26,9 @@ import ( "testing" ) -func TestOpenapi(t *testing.T) { +func TestApplyParse(t *testing.T) { RegisterFailHandler(Fail) - RunSpecsWithDefaultAndCustomReporters(t, "Openapi Suite", []Reporter{newlineReporter{}}) + RunSpecsWithDefaultAndCustomReporters(t, "Apply Parse Suite", []Reporter{newlineReporter{}}) } // Print a newline after the default newlineReporter due to issue diff --git a/pkg/apply/strategy/suite_test.go b/pkg/apply/strategy/suite_test.go index 42385f53..56202fbd 100644 --- a/pkg/apply/strategy/suite_test.go +++ b/pkg/apply/strategy/suite_test.go @@ -26,9 +26,9 @@ import ( "testing" ) -func TestOpenapi(t *testing.T) { +func TestStrategy(t *testing.T) { RegisterFailHandler(Fail) - RunSpecsWithDefaultAndCustomReporters(t, "Openapi Suite", []Reporter{newlineReporter{}}) + RunSpecsWithDefaultAndCustomReporters(t, "Apply Strategy Suite", []Reporter{newlineReporter{}}) } // Print a newline after the default newlineReporter due to issue diff --git a/pkg/util/openapi/validation/validation_suite_test.go b/pkg/util/openapi/validation/validation_suite_test.go index 30e4381f..f217ff29 100644 --- a/pkg/util/openapi/validation/validation_suite_test.go +++ b/pkg/util/openapi/validation/validation_suite_test.go @@ -26,9 +26,9 @@ import ( "testing" ) -func TestOpenapi(t *testing.T) { +func TestOpenapiValidation(t *testing.T) { RegisterFailHandler(Fail) - RunSpecsWithDefaultAndCustomReporters(t, "Openapi Suite", []Reporter{newlineReporter{}}) + RunSpecsWithDefaultAndCustomReporters(t, "Openapi Validation Suite", []Reporter{newlineReporter{}}) } // Print a newline after the default newlineReporter due to issue