Commit Graph

9 Commits (52f3380ef3a5d5de4d75ff92defd1c9af9d775bc)

Author SHA1 Message Date
danielqsj 1058877fbf remove dot imports in e2e/storage 2019-05-10 13:56:26 +08:00
John Schnake a6f5ebf831 Move storage tests to use the framework/log package
This is part of the transition to using framework/log instead
of the Logf inside the framework package. This will help with
import size/cycles when importing the framework or subpackages.
2019-05-04 12:50:38 -05:00
Kenichi Omichi 542b07cd6a Use framework.ExpectNoError() for e2e/storage
The e2e test framework has ExpectNoError() for readable test code.
This replaces Expect(err).NotTo(HaveOccurred()) with it for e2e/storage.
2019-04-02 16:20:35 +00:00
Kenichi Omichi 2e6a8deece Add debugging info in pv/pvc protection e2e tests
When facing an issue which is due to lack of PV/PVC Protection
finalizer on the e2e tests, the error message is just like

  Expected
      <bool>: false
  to be true

Actually we cannot understand what happened during the tests.
This adds more debugging info on the tests.
2018-10-09 21:15:45 +00:00
Ken'ichi Ohmichi 2fa840e330 Wait for Available in PV protection test
Just after creating a PV, its phase is "Pending" and its finalizers
doesn't contain "kubernetes.io/pv-protection". If the e2e test performs
so faster than the target k8s cluster, the test fails because the PV is
not ready. This adds WaitForPersistentVolumePhase() for waiting the
phase "Available" to avoid such situation.
2018-08-16 23:27:38 +00:00
xiangpengzhao 1f80008f41 Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
Jan Safranek b551233d01 Enable PV protection test by default
- StorageObjectInUseProtection is enabled by default now so the test can run in regular tests.
- Enable StorageObjectInUseProtection admission plugins during tests
2018-02-23 16:59:22 +01:00
NickrenREN dad0fa07b7 rename StorageProtection to StorageObjectInUseProtection 2018-02-21 10:48:56 +08:00
NickrenREN 3f6d2c8199 Add e2e test for PV protection 2018-02-02 22:55:34 +08:00