Skip to content

Commit

Permalink
remove unnecessary extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jamyct committed Jan 3, 2025
1 parent 6fd0c47 commit 62f0c0d
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions test/apis/v1alpha1/api_validation_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test MultiClusterService API validation - invalid cases", func() {
It("should deny creating API with invalid name size", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -56,7 +55,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name starting with non-alphanumeric character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -77,7 +75,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name ending with non-alphanumeric character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -98,7 +95,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name containing character that is not alphanumeric and not -", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -121,7 +117,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test MultiClusterService creation API validation - valid cases", func() {
It("should allow creating API with valid name size", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -139,7 +134,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with alphabet character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -157,7 +151,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with numeric character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -175,7 +168,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with alphabet character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -193,7 +185,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with numeric character", func() {

// Create the API.
multiClusterServiceName := &v1alpha1.MultiClusterService{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -213,7 +204,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test ServiceExport API validation - invalid cases", func() {
It("should deny creating API with invalid name size", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -229,7 +219,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name starting with non-alphanumeric character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -245,7 +234,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name ending with non-alphanumeric character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -261,7 +249,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name containing character that is not alphanumeric and not -", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -279,7 +266,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test ServiceExport API validation - valid cases", func() {
It("should allow creating API with valid name size", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -292,7 +278,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with alphabet character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -305,7 +290,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with numeric character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -318,7 +302,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with alphabet character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -331,7 +314,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with numeric character", func() {

// Create the API.
serviceExportName := &v1alpha1.ServiceExport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -346,7 +328,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test ServiceImport API validation - invalid cases", func() {
It("should deny creating API with invalid name size", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -362,7 +343,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name starting with non-alphanumeric character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -378,7 +358,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name ending with non-alphanumeric character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -394,7 +373,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name containing character that is not alphanumeric and not -", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -412,7 +390,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test ServiceImport API validation - valid cases", func() {
It("should allow creating API with valid name size", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -425,7 +402,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with alphabet character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -438,7 +414,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with numeric character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -451,7 +426,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with alphabet character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -464,7 +438,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with numeric character", func() {

// Create the API.
serviceImportName := &v1alpha1.ServiceImport{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -479,7 +452,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test TrafficManagerProfile API validation - invalid cases", func() {
It("should deny creating API with invalid name size", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -501,7 +473,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name starting with non-alphanumeric character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -523,7 +494,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name ending with non-alphanumeric character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -545,7 +515,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name containing character that is not alphanumeric and not -", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -569,7 +538,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test TrafficManagerProfile API validation - valid cases", func() {
It("should allow creating API with valid name size", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -588,7 +556,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with alphabet character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -607,7 +574,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with numeric character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -626,7 +592,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with alphabet character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -645,7 +610,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with numeric character", func() {

// Create the API.
trafficManagerProfileName := &v1alpha1.TrafficManagerProfile{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -666,7 +630,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test TrafficManagerBackend API validation - invalid cases", func() {
It("should deny creating API with invalid name size", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -690,7 +653,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name starting with non-alphanumeric character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -714,7 +676,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name ending with non-alphanumeric character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -738,7 +699,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should deny creating API with invalid name containing character that is not alphanumeric and not -", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -764,7 +724,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {

Context("Test TrafficManagerBackend API validation - valid cases", func() {
It("should allow creating API with valid name size", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -785,7 +744,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with alphabet character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -806,7 +764,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name starting with numeric character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -827,7 +784,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with alphabet character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -848,7 +804,6 @@ var _ = Describe("Test networking v1alpha1 API validation", func() {
})

It("should allow creating API with valid name ending with numeric character", func() {

// Create the API.
trafficManagerBackendName := &v1alpha1.TrafficManagerBackend{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 62f0c0d

Please sign in to comment.