X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_info_test.go;h=b1da4c1d87c42d22ed24b66a34b4f0e610f53c67;hp=7ad13c9fd01084e6c54c9915cf418b9f9d57e663;hb=da47b542155706887750f8a0338f8cd2ced654a6;hpb=5d6cc7f14a4bacc36bf3a23cd735a75ad4a90f1d diff --git a/cmd/safcm/sync_info_test.go b/cmd/safcm/sync_info_test.go index 7ad13c9..b1da4c1 100644 --- a/cmd/safcm/sync_info_test.go +++ b/cmd/safcm/sync_info_test.go @@ -63,6 +63,19 @@ func TestHostInfoRespToGroups(t *testing.T) { "detected_with_utf-8_hello_", }, }, + + { + "invalid goos/goarch", + safcm.MsgInfoResp{ + Goos: " INVALID goos! ", + Goarch: "Hello, 世界", + Output: nil, + }, + []string{ + "detected_invalid_goos_", + "detected_hello_", + }, + }, } for _, tc := range tests {