Skip to content

Commit ed185de

Browse files
author
Arvind Thirumurugan
committed
fix IT
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
1 parent 9ebd505 commit ed185de

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/apis/placement/v1beta1/api_validation_integration_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,24 +1067,30 @@ var _ = Describe("Test placement v1beta1 API validation", func() {
10671067
})
10681068
})
10691069

1070-
Context("Test ClusterStagedUpdateRun API validation - valid cases", func() {
1070+
FContext("Test ClusterStagedUpdateRun API validation - valid cases", func() {
10711071
It("Should allow creation of ClusterStagedUpdateRun with valid name length", func() {
10721072
updateRun := placementv1beta1.ClusterStagedUpdateRun{
10731073
ObjectMeta: metav1.ObjectMeta{
10741074
Name: fmt.Sprintf(validupdateRunNameTemplate, GinkgoParallelProcess()),
10751075
},
1076+
Spec: placementv1beta1.UpdateRunSpec{
1077+
State: placementv1beta1.StateStart,
1078+
},
10761079
}
10771080
Expect(hubClient.Create(ctx, &updateRun)).Should(Succeed())
10781081
Expect(hubClient.Delete(ctx, &updateRun)).Should(Succeed())
10791082
})
10801083
})
10811084

1082-
Context("Test ClusterStagedUpdateRun API validation - invalid cases", func() {
1085+
FContext("Test ClusterStagedUpdateRun API validation - invalid cases", func() {
10831086
It("Should deny creation of ClusterStagedUpdateRun with name length > 127", func() {
10841087
updateRun := placementv1beta1.ClusterStagedUpdateRun{
10851088
ObjectMeta: metav1.ObjectMeta{
10861089
Name: fmt.Sprintf(invalidupdateRunNameTemplate, GinkgoParallelProcess()),
10871090
},
1091+
Spec: placementv1beta1.UpdateRunSpec{
1092+
State: placementv1beta1.StateStart,
1093+
},
10881094
}
10891095
err := hubClient.Create(ctx, &updateRun)
10901096
var statusErr *k8sErrors.StatusError
@@ -1099,6 +1105,7 @@ var _ = Describe("Test placement v1beta1 API validation", func() {
10991105
},
11001106
Spec: placementv1beta1.UpdateRunSpec{
11011107
PlacementName: "test-placement",
1108+
State: placementv1beta1.StateStart,
11021109
},
11031110
}
11041111
Expect(hubClient.Create(ctx, &updateRun)).Should(Succeed())

0 commit comments

Comments
 (0)