From c7ddaf7c6e887b27dd6a954d2e411e97da522293 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Sun, 10 Sep 2023 15:36:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9F=A2=20fix=20policy/executor=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Richter --- cli/reporter/testdata/report-ubuntu.json | 2 +- policy/executor/executor_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/reporter/testdata/report-ubuntu.json b/cli/reporter/testdata/report-ubuntu.json index c7af0c77..80225bbf 100644 --- a/cli/reporter/testdata/report-ubuntu.json +++ b/cli/reporter/testdata/report-ubuntu.json @@ -18,7 +18,7 @@ "os" ], "version": "22.04", - "kind": 9 + "kind": "baremetal" }, "connections": [ { diff --git a/policy/executor/executor_test.go b/policy/executor/executor_test.go index 85b9edfc..559f0e4e 100644 --- a/policy/executor/executor_test.go +++ b/policy/executor/executor_test.go @@ -19,7 +19,7 @@ import ( ) func initExecutor() *Executor { - runtime := testutils.TomlMock("./testdata/arch.toml") + runtime := testutils.LinuxMock() executor := New(runtime) return executor @@ -121,14 +121,14 @@ func TestExecutor(t *testing.T) { }, }) - runTest(t, "package('not').installed == false", map[string]value{ - "olBgIHiECeDWquxQNId+6HvPuwUm+GgWNyZFv3qBfbpFA5I6nKEVSX8ynKw0DUc+ijW+D1hcpBheELESIbDTdA==": { - 2, nil, false, + runTest(t, "package('acl').installed == true", map[string]value{ + "IA/mh1qcKcrnANOhYpgeYqtqFWe7od9D8L1rskL+LmySCnOHnLjaQww2MZL+lhEVcE9vz8+IRM9YAxSCRJ2iwA==": { + 2, nil, true, }, - "a15HA8C3jENBZ+X5vgqz3/octJmFOANb1n5dVyefrHSAvY4oyU/gigll79skqGHVn82I+hduvsoTRV43qOejLA==": { + "NRSGjPzTnDC5EeUFEAe0LaM9MtNtgkiq/D8lhxx0TTtKb9IULE672Tfe7N9smyqjs/hdWobucKNsWnkvS6JJ9A==": { 1, nil, true, }, - "Sz65cAIF9S0=": { + "4Q1qtmgoTTk=": { 1, nil, true, }, })