@@ -19,11 +19,11 @@ import (
19
19
)
20
20
21
21
const (
22
- machineRole = "e2e -test"
22
+ machineRole = "feature-gate -test"
23
23
machineReadyTimeout = time .Minute * 6
24
24
)
25
25
26
- var _ = Describe ("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platform:vsphere] Managed cluster should" , func () {
26
+ var _ = Describe ("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platform:vsphere][Disruptive] Managed cluster should" , Label ( "Conformance" ), Label ( "Serial" ) , func () {
27
27
defer GinkgoRecover ()
28
28
ctx := context .Background ()
29
29
@@ -46,7 +46,7 @@ var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platf
46
46
Expect (err ).NotTo (HaveOccurred ())
47
47
})
48
48
49
- It ("create machines with data disks [apigroup:machine.openshift.io]" , func () {
49
+ It ("create machines with data disks [apigroup:machine.openshift.io][Suite:openshift/conformance/serial] " , func () {
50
50
machineName := "machine-multi-test"
51
51
dataDisks := []v1beta1.VSphereDisk {
52
52
{
@@ -151,33 +151,43 @@ var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platf
151
151
err = util .ScaleMachineSet (cfg , ddMachineSet .Name , 0 )
152
152
Expect (err ).NotTo (HaveOccurred ())
153
153
154
+ // Verify / wait for machine is removed
155
+ By ("verifying machine is destroyed" )
156
+ Eventually (func () (int32 , error ) {
157
+ ms , err := mc .MachineSets (util .MachineAPINamespace ).Get (ctx , ddMachineSet .Name , metav1.GetOptions {})
158
+ if err != nil {
159
+ return - 1 , err
160
+ }
161
+ return ms .Status .ReadyReplicas , nil
162
+ }, machineReadyTimeout ).Should (BeEquivalentTo (0 ))
163
+
154
164
// Delete machineset
155
165
By ("deleting the machineset" )
156
166
err = mc .MachineSets (util .MachineAPINamespace ).Delete (ctx , ddMachineSet .Name , metav1.DeleteOptions {})
157
167
Expect (err ).NotTo (HaveOccurred ())
158
168
},
159
- Entry ("with thin data disk [apigroup:machine.openshift.io]" , "ms-thin-test" , []v1beta1.VSphereDisk {
169
+ Entry ("with thin data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/serial] " , "ms-thin-test" , []v1beta1.VSphereDisk {
160
170
{
161
171
Name : "thickDataDisk" ,
162
172
SizeGiB : 1 ,
163
173
ProvisioningMode : v1beta1 .ProvisioningModeThick ,
164
174
},
165
175
}),
166
- Entry ("with thick data disk [apigroup:machine.openshift.io]" , "ms-thick-test" , []v1beta1.VSphereDisk {
176
+ Entry ("with thick data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/serial] " , "ms-thick-test" , []v1beta1.VSphereDisk {
167
177
{
168
178
Name : "thickDataDisk" ,
169
179
SizeGiB : 1 ,
170
180
ProvisioningMode : v1beta1 .ProvisioningModeThick ,
171
181
},
172
182
}),
173
- Entry ("with eagerly zeroed data disk [apigroup:machine.openshift.io]" , "ms-zeroed-test" , []v1beta1.VSphereDisk {
183
+ Entry ("with eagerly zeroed data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/serial] " , "ms-zeroed-test" , []v1beta1.VSphereDisk {
174
184
{
175
185
Name : "zeroedDataDisk" ,
176
186
SizeGiB : 1 ,
177
187
ProvisioningMode : v1beta1 .ProvisioningModeEagerlyZeroed ,
178
188
},
179
189
}),
180
- Entry ("with a data disk using each provisioning mode [apigroup:machine.openshift.io]" , "ms-multi-test" , []v1beta1.VSphereDisk {
190
+ Entry ("with a data disk using each provisioning mode [apigroup:machine.openshift.io][Suite:openshift/conformance/serial] " , "ms-multi-test" , []v1beta1.VSphereDisk {
181
191
{
182
192
Name : "thinDataDisk" ,
183
193
SizeGiB : 1 ,
0 commit comments