@@ -264,12 +264,12 @@ var _ = Describe("VirtualMachineRestoreSafe", Ordered, func() {
264264 })
265265
266266 By ("Checking the result of restoration" , func () {
267- // const (
268- // testLabelKey = "test-label"
269- // testLabelValue = "test-label-value"
270- // testAnnotationKey = "test-annotation"
271- // testAnnotationValue = "test-annotation-value"
272- // )
267+ const (
268+ testLabelKey = "test-label"
269+ testLabelValue = "test-label-value"
270+ testAnnotationKey = "test-annotation"
271+ testAnnotationValue = "test-annotation-value"
272+ )
273273
274274 vmrestores := & v1alpha2.VirtualMachineRestoreList {}
275275 err := GetObjects (v1alpha2 .VirtualMachineRestoreKind , vmrestores , kc.GetOptions {Namespace : namespace , Labels : testCaseLabel })
@@ -294,10 +294,8 @@ var _ = Describe("VirtualMachineRestoreSafe", Ordered, func() {
294294 Expect (err ).NotTo (HaveOccurred ())
295295 Expect (vd .Annotations ).To (HaveKeyWithValue (annotations .AnnVMRestore , string (restore .UID )))
296296
297- // Skip the annotation and label checks until the issue with virtual disk restoration is fixed.
298- // Cause: Sometimes, a virtual disk does not have annotations and labels from a virtual disk snapshot, causing the test to fail.
299- // Expect(vd.Annotations).To(HaveKeyWithValue(testAnnotationKey, testAnnotationValue))
300- // Expect(vd.Labels).To(HaveKeyWithValue(testLabelKey, testLabelValue))
297+ Expect (vd .Annotations ).To (HaveKeyWithValue (testAnnotationKey , testAnnotationValue ))
298+ Expect (vd .Labels ).To (HaveKeyWithValue (testLabelKey , testLabelValue ))
301299 }
302300
303301 // Disable dut to the issue with virtual disk restoration because of VMBDA.
0 commit comments