mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Update calls to new signature (#2536)
This commit is contained in:
parent
cc40bf132d
commit
74960d74be
@ -1576,9 +1576,9 @@ func testHostsListFailingPolicies(t *testing.T, ds *Datastore) {
|
||||
|
||||
q := test.NewQuery(t, ds, "query1", "select 1", 0, true)
|
||||
q2 := test.NewQuery(t, ds, "query2", "select 1", 0, true)
|
||||
p, err := ds.NewGlobalPolicy(context.Background(), q.ID)
|
||||
p, err := ds.NewGlobalPolicy(context.Background(), q.ID, "")
|
||||
require.NoError(t, err)
|
||||
p2, err := ds.NewGlobalPolicy(context.Background(), q2.ID)
|
||||
p2, err := ds.NewGlobalPolicy(context.Background(), q2.ID, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
hosts := listHostsCheckCount(t, ds, filter, fleet.HostListOptions{}, 10)
|
||||
|
@ -610,7 +610,7 @@ func (s *integrationTestSuite) TestListHosts() {
|
||||
assert.Equal(t, "foo", resp.Software.Name)
|
||||
|
||||
q := test.NewQuery(t, s.ds, "query1", "select 1", 0, true)
|
||||
p, err := s.ds.NewGlobalPolicy(context.Background(), q.ID)
|
||||
p, err := s.ds.NewGlobalPolicy(context.Background(), q.ID, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
require.NoError(t, s.ds.RecordPolicyQueryExecutions(context.Background(), host, map[uint]*bool{p.ID: ptr.Bool(false)}, time.Now()))
|
||||
|
Loading…
Reference in New Issue
Block a user