Merge pull request #94238 from jingxu97/Aug/subpathtest

Set snapshotType for tests with NTFS.
This commit is contained in:
Kubernetes Prow Robot 2020-08-28 08:04:55 -07:00 committed by GitHub
commit 3a79bb68bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -255,6 +255,7 @@ var (
FsType: "ntfs",
FeatureTag: "[sig-windows]",
SnapshotDeletionPolicy: DeleteSnapshot,
SnapshotType: DynamicCreatedSnapshot,
}
// Definitions for Filesystem volume mode

View File

@ -407,6 +407,9 @@ func CreateSnapshotResource(sDriver SnapshottableTestDriver, config *PerTestConf
ginkgo.By("deleting the snapshot and snapshot content") // TODO: test what happens when I have two snapshot content that refer to the same content
ginkgo.By("creating a snapshot content with the snapshot handle")
ginkgo.By("creating a snapshot with that snapshot content")
default:
err = fmt.Errorf("SnapshotType must be set to either DynamicCreatedSnapshot or PreprovisionedCreatedSnapshot")
framework.ExpectNoError(err)
}
return &r
}