X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fsync%2Fcommands_test.go;h=818b6e1e1817e528e05b24db53d7e4d853260253;hb=9506effbe395b9be30ba2b34702c51478e8043e4;hp=0bd0949b020b922976744ea9f85e3beacf381cee;hpb=9269fa3c94e700afc0be823f58ea473a2db8f3dc;p=safcm%2Fsafcm.git diff --git a/remote/sync/commands_test.go b/remote/sync/commands_test.go index 0bd0949..818b6e1 100644 --- a/remote/sync/commands_test.go +++ b/remote/sync/commands_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2023 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -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", },