mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
* fixup for ticket #3624 * skip, now broken, test * lint fixup. how did this get into the repository in the first place?! * elide shadow copy tests until fixup. do not allow release * fixup for shadow copy mode from @small * Update cli/command_policy_set_os_snapshot_test.go * restore old tests * fixup typo --------- Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>
This commit is contained in:
@@ -17,6 +17,13 @@ func TestSetOSSnapshotPolicy(t *testing.T) {
|
||||
|
||||
lines := e.RunAndExpectSuccess(t, "policy", "show", "--global")
|
||||
lines = compressSpaces(lines)
|
||||
require.Contains(t, lines, " Volume Shadow Copy: never (defined for this target)")
|
||||
|
||||
e.RunAndExpectSuccess(t, "policy", "set", "--global", "--enable-volume-shadow-copy=when-available")
|
||||
|
||||
lines = e.RunAndExpectSuccess(t, "policy", "show", "--global")
|
||||
lines = compressSpaces(lines)
|
||||
|
||||
require.Contains(t, lines, " Volume Shadow Copy: when-available (defined for this target)")
|
||||
|
||||
// make some directory we'll be setting policy on
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
defaultOSSnapshotPolicy = OSSnapshotPolicy{
|
||||
VolumeShadowCopy: VolumeShadowCopyPolicy{
|
||||
Enable: NewOSSnapshotMode(OSSnapshotWhenAvailable),
|
||||
Enable: NewOSSnapshotMode(OSSnapshotNever),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user