@@ -131,8 +131,8 @@ func testGeneralServiceImport() {
131131 Label (OptionalLabel ), Label (ExportedLabelsLabel ), func () {
132132 AddReportEntry (SpecRefReportEntry , "https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api#labels-and-annotations" )
133133
134- t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
135- t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
134+ t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
135+ t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
136136
137137 t .awaitServiceImport (& clients [0 ], t .helloService .Name , false ,
138138 func (g Gomega , serviceImport * v1alpha1.ServiceImport ) {
@@ -163,6 +163,8 @@ func testClusterIPServiceImport() {
163163 "Unexporting should delete the ServiceImport" , Label (RequiredLabel ), func () {
164164 AddReportEntry (SpecRefReportEntry , "https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api#importing-services" )
165165
166+ t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConditionValid , metav1 .ConditionTrue )
167+
166168 for i := range clients {
167169 serviceImport := t .awaitServiceImport (& clients [i ], helloServiceName , true , nil )
168170
@@ -245,8 +247,8 @@ func testClusterIPServiceImport() {
245247 Specify ("should apply the conflict resolution policy and report a Conflict condition on each ServiceExport" , func () {
246248 AddReportEntry (SpecRefReportEntry , "https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api#service-port" )
247249
248- t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
249- t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
250+ t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
251+ t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
250252
251253 t .awaitServiceImport (& clients [0 ], t .helloService .Name , false ,
252254 func (g Gomega , serviceImport * v1alpha1.ServiceImport ) {
@@ -314,7 +316,7 @@ func testExternalNameService() {
314316 Specify ("Exporting an ExternalName service should set ServiceExport Valid condition to False" , Label (RequiredLabel ), func () {
315317 AddReportEntry (SpecRefReportEntry , "https://github.com/kubernetes/enhancements/blob/master/keps/sig-multicluster/1645-multi-cluster-services-api/README.md#service-types" )
316318
317- t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportValid , metav1 .ConditionFalse )
319+ t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConditionValid , metav1 .ConditionFalse )
318320 t .ensureNoServiceImport (& clients [0 ], helloServiceName ,
319321 "the ServiceImport should not exist for an ExternalName service" )
320322 })
@@ -335,7 +337,7 @@ func testServiceTypeConflict() {
335337 "report a Conflict condition on the ServiceExport" , Label (RequiredLabel ), func () {
336338 AddReportEntry (SpecRefReportEntry , "https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api#headlessness" )
337339
338- t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
339- t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConflict , metav1 .ConditionTrue )
340+ t .awaitServiceExportCondition (& clients [0 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
341+ t .awaitServiceExportCondition (& clients [1 ], v1alpha1 .ServiceExportConditionConflict , metav1 .ConditionTrue )
340342 })
341343}
0 commit comments