X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_sync_test.go;h=f100f35125e125fa64884086698f4aac78448d3d;hb=6015bd22c34e8287b43b462facd5ad491296c8c2;hp=31252936e663861f18aa352766ab43479540caae;hpb=b731ef4979de9e533ce9bb35110ab2b769e2eed4;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/sync_sync_test.go b/cmd/safcm/sync_sync_test.go index 3125293..f100f35 100644 --- a/cmd/safcm/sync_sync_test.go +++ b/cmd/safcm/sync_sync_test.go @@ -59,6 +59,7 @@ func TestHostSyncReq(t *testing.T) { Groups: []string{ "all", "group", + "group3", "remove", "host1.example.org", }, @@ -135,13 +136,19 @@ func TestHostSyncReq(t *testing.T) { Services: []string{ "unbound", }, - Commands: []string{ - "echo command one", - "echo -n command two", + Commands: []*safcm.Command{ + { + OrigGroup: "group", + Cmd: "echo command one", + }, + { + OrigGroup: "group", + Cmd: "echo -n command two", + }, }, }, []string{ - "host1.example.org: 3 host groups: all group host1.example.org remove", + "host1.example.org: 3 host groups: all group group3 host1.example.org remove", "host1.example.org: 3 host group priorities (desc. order): host1.example.org", }, nil, @@ -157,6 +164,7 @@ func TestHostSyncReq(t *testing.T) { Groups: []string{ "all", "group", + "group3", "remove", "host1.example.org", }, @@ -233,9 +241,15 @@ func TestHostSyncReq(t *testing.T) { Services: []string{ "unbound", }, - Commands: []string{ - "echo command one", - "echo -n command two", + Commands: []*safcm.Command{ + { + OrigGroup: "group", + Cmd: "echo command one", + }, + { + OrigGroup: "group", + Cmd: "echo -n command two", + }, }, }, nil,