X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=remote%2Fsync%2Fcommands_test.go;fp=remote%2Fsync%2Fcommands_test.go;h=fcb628ed631860a695913027eb2a9331a57b76ff;hp=4d60dda0074923b82a8f3aba3875f6cafd3c9192;hb=c661469342af4e738e7ef4a7cedc96c9be4dd9d1;hpb=4206e0dbca82f5df7d8e534f78cb737979880916 diff --git a/remote/sync/commands_test.go b/remote/sync/commands_test.go index 4d60dda..fcb628e 100644 --- a/remote/sync/commands_test.go +++ b/remote/sync/commands_test.go @@ -308,32 +308,32 @@ func TestSyncCommands(t *testing.T) { }, Files: map[string]*safcm.File{ ".": { + OrigGroup: "group", Path: ".", Mode: fs.ModeDir | 0700, Uid: -1, Gid: -1, - OrigGroup: "group", TriggerCommands: []string{ "echo trigger .", }, }, "dir": { + OrigGroup: "group", Path: "dir", Mode: fs.ModeDir | 0755, Uid: -1, Gid: -1, - OrigGroup: "group", TriggerCommands: []string{ "echo trigger dir", }, }, "dir/file": { + OrigGroup: "group", Path: "dir/file", Mode: 0644, Uid: -1, Gid: -1, Data: []byte("content\n"), - OrigGroup: "group", TriggerCommands: []string{ "echo trigger dir/file", }, @@ -427,32 +427,32 @@ func TestSyncCommands(t *testing.T) { }, Files: map[string]*safcm.File{ ".": { + OrigGroup: "group", Path: ".", Mode: fs.ModeDir | 0700, Uid: -1, Gid: -1, - OrigGroup: "group", TriggerCommands: []string{ "echo trigger .", }, }, "dir": { + OrigGroup: "group", Path: "dir", Mode: fs.ModeDir | 0755, Uid: -1, Gid: -1, - OrigGroup: "group", TriggerCommands: []string{ "false", }, }, "dir/file": { + OrigGroup: "group", Path: "dir/file", Mode: 0644, Uid: -1, Gid: -1, Data: []byte("content\n"), - OrigGroup: "group", TriggerCommands: []string{ "echo trigger dir/file", },