@@ -37,19 +37,20 @@ import (
37
37
const (
38
38
gcsfuseIntegrationTestsBasePath = "gcsfuse/tools/integration_tests"
39
39
40
- testNameOperations = "operations"
41
- testNameReadonly = "readonly"
42
- testNameRenameDirLimit = "rename_dir_limit"
43
- testNameImplicitDir = "implicit_dir"
44
- testNameExplicitDir = "explicit_dir"
45
- testNameReadLargeFiles = "read_large_files"
46
- testNameWriteLargeFiles = "write_large_files"
47
- testNameGzip = "gzip"
48
- testNameLocalFile = "local_file"
49
- testNameListLargeDir = "list_large_dir"
50
- testNameManagedFolders = "managed_folders"
51
- testNameConcurrentOperations = "concurrent_operations"
52
- testNameKernelListCache = "kernel_list_cache"
40
+ testNameOperations = "operations"
41
+ testNameReadonly = "readonly"
42
+ testNameRenameDirLimit = "rename_dir_limit"
43
+ testNameImplicitDir = "implicit_dir"
44
+ testNameExplicitDir = "explicit_dir"
45
+ testNameReadLargeFiles = "read_large_files"
46
+ testNameWriteLargeFiles = "write_large_files"
47
+ testNameGzip = "gzip"
48
+ testNameLocalFile = "local_file"
49
+ testNameListLargeDir = "list_large_dir"
50
+ testNameManagedFolders = "managed_folders"
51
+ testNameConcurrentOperations = "concurrent_operations"
52
+ testNameKernelListCache = "kernel_list_cache"
53
+ testNameEnableStreamingWrites = "enable_streaming_writes"
53
54
54
55
testNamePrefixSucceed = "should succeed in "
55
56
@@ -147,6 +148,11 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
147
148
e2eskipper .Skipf ("skip gcsfuse integration HNS tests on gcsfuse version %v" , v .String ())
148
149
}
149
150
151
+ // GCSFuse flag enable-streaming-writes is supported after v2.9.0.
152
+ if ! v .AtLeast (version .MustParseSemantic ("v2.9.0" )) && testName == testNameEnableStreamingWrites {
153
+ e2eskipper .Skipf ("skip gcsfuse integration test %v for gcsfuse version %v" , testNameEnableStreamingWrites , v .String ())
154
+ }
155
+
150
156
// tests are added or modified after v2.3.1 release and before v2.4.0 release
151
157
if ! v .AtLeast (version .MustParseSemantic ("v2.4.0" )) && (testName == testNameListLargeDir || testName == testNameConcurrentOperations || testName == testNameKernelListCache || testName == testNameLocalFile ) {
152
158
return "v2.4.0"
@@ -586,4 +592,11 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
586
592
587
593
gcsfuseIntegrationTest (testNameManagedFolders + ":TestEnableEmptyManagedFoldersTrue" , false , "implicit-dirs=true" )
588
594
})
595
+
596
+ ginkgo .It (testNamePrefixSucceed + testNameEnableStreamingWrites + testNameSuffix (1 ), func () {
597
+ init ()
598
+ defer cleanup ()
599
+
600
+ gcsfuseIntegrationTest (testNameEnableStreamingWrites , false , "enable-streaming-writes=true" )
601
+ })
589
602
}
0 commit comments