tests: run the block mount-unmount suite last to avoid conflicts with other tests
This commit is contained in:
1 parent
107839fc65
commit
dd81e56123
1 file changed
+13
-9
+13
-9
@@ -30,8 +30,8 @@ import (
|
|||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ************************************************
|
// ******************************************************
|
||||||
// ***Scenarios tested by the BlockMountUnMountSuite ***
|
// *** Scenarios tested by the BlockMountUnMountSuite ***
|
||||||
// Setup
|
// Setup
|
||||||
// - via the cluster CRD
|
// - via the cluster CRD
|
||||||
// - set up Block PVC - With ReadWriteOnce
|
// - set up Block PVC - With ReadWriteOnce
|
||||||
@@ -42,20 +42,24 @@ import (
|
|||||||
// - one mons in the cluster
|
// - one mons in the cluster
|
||||||
// OSDs
|
// OSDs
|
||||||
// - Bluestore running on directory
|
// - Bluestore running on directory
|
||||||
// Block Mount & UnMount scenarios - repeat for each PVC
|
// Block Mount & Unmount scenarios - repeat for each PVC
|
||||||
// 1. ReadWriteOnce
|
// 1. ReadWriteOnce
|
||||||
// a. Mount Volume on a new pod - make sure persisted data is present and write new data
|
// a. Mount Volume on a new pod - make sure persisted data is present and write new data
|
||||||
// b. Mount volume on two pods with - mount should be successful only on first pod
|
// b. Mount volume on two pods with - mount should be successful only on first pod
|
||||||
//2. ReadOnlyMany
|
// 2. ReadOnlyMany
|
||||||
// a. Mount Multiple pods with same volume - All pods should be able to read data
|
// a. Mount Multiple pods with same volume - All pods should be able to read data
|
||||||
// b. ,Mount Multiple pods with same volume - All pods should not be able to write data
|
// b. Mount Multiple pods with same volume - All pods should not be able to write data
|
||||||
//4. Run StatefulSet with PVC
|
// 3. Run StatefulSet with PVC
|
||||||
// a. Scale up pods
|
// a. Scale up pods
|
||||||
// b. Scale down Pods
|
// b. Scale down pods
|
||||||
// c. Failover pods
|
// c. Failover pods
|
||||||
// d . Delete statefulSet
|
// d. Delete StatefulSet
|
||||||
// ************************************************
|
// ******************************************************
|
||||||
|
|
||||||
|
// NOTE: This suite needs to be last.
|
||||||
|
// There is an issue on k8s 1.7 where the CRD controller will frequently fail to create a cluster after this suite is run.
|
||||||
|
// The error is "the server does not allow this method on the requested resource (post clusters.rook.io)".
|
||||||
|
// Everything appears to have been cleaned up successfully in this test, so it is still unclear what is causing the issue between tests.
|
||||||
func TestBlockMountUnMountSuite(t *testing.T) {
|
func TestBlockMountUnMountSuite(t *testing.T) {
|
||||||
s := new(BlockMountUnMountSuite)
|
s := new(BlockMountUnMountSuite)
|
||||||
defer func(s *BlockMountUnMountSuite) {
|
defer func(s *BlockMountUnMountSuite) {
|
||||||
Reference in new issue
Block a user