From 02530b9ffbb8517f174a289303301e8e4c9997ba Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Tue, 2 Jul 2019 21:36:54 +0000 Subject: [PATCH] Enable windows ntfs e2e storage tests for aws driver --- test/e2e/storage/drivers/in_tree.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/e2e/storage/drivers/in_tree.go b/test/e2e/storage/drivers/in_tree.go index 79845a5c73c..a4d71d50eed 100644 --- a/test/e2e/storage/drivers/in_tree.go +++ b/test/e2e/storage/drivers/in_tree.go @@ -1514,6 +1514,7 @@ func InitAwsDriver() testsuites.TestDriver { SupportedFsType: sets.NewString( "", // Default fsType "ext3", + "ntfs", ), SupportedMountOption: sets.NewString("debug", "nouid32"), Capabilities: map[testsuites.Capability]bool{ @@ -1580,11 +1581,17 @@ func (a *awsDriver) GetClaimSize() string { } func (a *awsDriver) PrepareTest(f *framework.Framework) (*testsuites.PerTestConfig, func()) { - return &testsuites.PerTestConfig{ + config := &testsuites.PerTestConfig{ Driver: a, Prefix: "aws", Framework: f, - }, func() {} + } + if framework.NodeOSDistroIs("windows") { + config.ClientNodeSelector = map[string]string{ + "beta.kubernetes.io/os": "windows", + } + } + return config, func() {} } // TODO: Fix authorization error in attach operation and uncomment below