Skip to content

Commit

Permalink
🟢 fix policy/executor tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Sep 10, 2023
1 parent b59025d commit c7ddaf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/reporter/testdata/report-ubuntu.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"os"
],
"version": "22.04",
"kind": 9
"kind": "baremetal"
},
"connections": [
{
Expand Down
12 changes: 6 additions & 6 deletions policy/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func initExecutor() *Executor {
runtime := testutils.TomlMock("./testdata/arch.toml")
runtime := testutils.LinuxMock()
executor := New(runtime)

return executor
Expand Down Expand Up @@ -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,
},
})
Expand Down

0 comments on commit c7ddaf7

Please sign in to comment.