From 5c8150f8e3010192089975766cd54698821c4f49 Mon Sep 17 00:00:00 2001 From: Manuel Weber Date: Mon, 16 Oct 2023 19:46:37 +0200 Subject: [PATCH] asset.family.contains(unix) Signed-off-by: Manuel Weber --- internal/bundle/fmt_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/bundle/fmt_test.go b/internal/bundle/fmt_test.go index 36415961..e91cc53a 100644 --- a/internal/bundle/fmt_test.go +++ b/internal/bundle/fmt_test.go @@ -23,7 +23,7 @@ policies: name: SSH Server Policy specs: - asset_filter: - query: asset.family.contains(_ == 'unix') + query: asset.family.contains('unix') scoring_queries: query1: version: "1.0.0" @@ -58,7 +58,7 @@ queries: - name: Jane Doe email: jane@example.com groups: - - filters: asset.family.contains(_ == 'unix') + - filters: asset.family.contains('unix') checks: - uid: query1 scoring_system: 2