Set snapshotType for tests with NTFS.

Set the snapshotType for tests with NTFS. Return error if type is not
set.
This commit is contained in:
Jing Xu 2020-08-25 19:39:30 -07:00
parent 4db3a096ce
commit b426689ca4
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
}