mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
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:
parent
6609899398
commit
33feaee2c2
@ -166,7 +166,7 @@ func MakeSecPod(podConfig *Config) (*v1.Pod, error) {
|
|||||||
if podConfig.NS == "" {
|
if podConfig.NS == "" {
|
||||||
return nil, fmt.Errorf("Cannot create pod with empty namespace")
|
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"
|
podConfig.Command = "trap exit TERM; while true; do sleep 1; done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ func InitMultiVolumeTestSuite() storageframework.TestSuite {
|
|||||||
storageframework.BlockVolModeDynamicPV,
|
storageframework.BlockVolModeDynamicPV,
|
||||||
storageframework.Ext4DynamicPV,
|
storageframework.Ext4DynamicPV,
|
||||||
storageframework.XfsDynamicPV,
|
storageframework.XfsDynamicPV,
|
||||||
|
storageframework.NtfsDynamicPV,
|
||||||
}
|
}
|
||||||
return InitCustomMultiVolumeTestSuite(patterns)
|
return InitCustomMultiVolumeTestSuite(patterns)
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,7 @@ func InitVolumeIOTestSuite() storageframework.TestSuite {
|
|||||||
storageframework.DefaultFsInlineVolume,
|
storageframework.DefaultFsInlineVolume,
|
||||||
storageframework.DefaultFsPreprovisionedPV,
|
storageframework.DefaultFsPreprovisionedPV,
|
||||||
storageframework.DefaultFsDynamicPV,
|
storageframework.DefaultFsDynamicPV,
|
||||||
|
storageframework.NtfsDynamicPV,
|
||||||
}
|
}
|
||||||
return InitCustomVolumeIOTestSuite(patterns)
|
return InitCustomVolumeIOTestSuite(patterns)
|
||||||
}
|
}
|
||||||
@ -143,7 +144,7 @@ func (t *volumeIOTestSuite) DefineTests(driver storageframework.TestDriver, patt
|
|||||||
l.migrationCheck.validateMigrationVolumeOpCounts()
|
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()
|
init()
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user