Fix windows storage tests

1. fix command empty issue for some Windows storage tests
2. enable more windows storage tests by adding ntfs test patten

Change-Id: Ic33be282d669a23107474a14d4368bbf95c9b459
This commit is contained in:
Jing Xu 2021-07-15 15:52:07 -07:00
parent 6609899398
commit 33feaee2c2
3 changed files with 4 additions and 2 deletions

View File

@ -166,7 +166,7 @@ func MakeSecPod(podConfig *Config) (*v1.Pod, error) {
if podConfig.NS == "" {
return nil, fmt.Errorf("Cannot create pod with empty namespace")
}
if len(podConfig.Command) == 0 && !NodeOSDistroIs("windows") {
if len(podConfig.Command) == 0 {
podConfig.Command = "trap exit TERM; while true; do sleep 1; done"
}

View File

@ -67,6 +67,7 @@ func InitMultiVolumeTestSuite() storageframework.TestSuite {
storageframework.BlockVolModeDynamicPV,
storageframework.Ext4DynamicPV,
storageframework.XfsDynamicPV,
storageframework.NtfsDynamicPV,
}
return InitCustomMultiVolumeTestSuite(patterns)
}

View File

@ -80,6 +80,7 @@ func InitVolumeIOTestSuite() storageframework.TestSuite {
storageframework.DefaultFsInlineVolume,
storageframework.DefaultFsPreprovisionedPV,
storageframework.DefaultFsDynamicPV,
storageframework.NtfsDynamicPV,
}
return InitCustomVolumeIOTestSuite(patterns)
}
@ -143,7 +144,7 @@ func (t *volumeIOTestSuite) DefineTests(driver storageframework.TestDriver, patt
l.migrationCheck.validateMigrationVolumeOpCounts()
}
ginkgo.It("should write files of various sizes, verify size, validate content [Slow][LinuxOnly]", func() {
ginkgo.It("should write files of various sizes, verify size, validate content [Slow]", func() {
init()
defer cleanup()