Skip to content

Commit 5d6b925

Browse files
authored
Merge pull request #455 from GoogleCloudPlatform/enable-streaming-writes
add integration test for gcsfuse v2.9.0
2 parents eeeb147 + 9aaf311 commit 5d6b925

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

test/e2e/testsuites/gcsfuse_integration.go

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,20 @@ import (
3737
const (
3838
gcsfuseIntegrationTestsBasePath = "gcsfuse/tools/integration_tests"
3939

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"
5354

5455
testNamePrefixSucceed = "should succeed in "
5556

@@ -147,6 +148,11 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
147148
e2eskipper.Skipf("skip gcsfuse integration HNS tests on gcsfuse version %v", v.String())
148149
}
149150

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+
150156
// tests are added or modified after v2.3.1 release and before v2.4.0 release
151157
if !v.AtLeast(version.MustParseSemantic("v2.4.0")) && (testName == testNameListLargeDir || testName == testNameConcurrentOperations || testName == testNameKernelListCache || testName == testNameLocalFile) {
152158
return "v2.4.0"
@@ -586,4 +592,11 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
586592

587593
gcsfuseIntegrationTest(testNameManagedFolders+":TestEnableEmptyManagedFoldersTrue", false, "implicit-dirs=true")
588594
})
595+
596+
ginkgo.It(testNamePrefixSucceed+testNameEnableStreamingWrites+testNameSuffix(1), func() {
597+
init()
598+
defer cleanup()
599+
600+
gcsfuseIntegrationTest(testNameEnableStreamingWrites, false, "enable-streaming-writes=true")
601+
})
589602
}

0 commit comments

Comments
 (0)