Update calls to new signature (#2536)

This commit is contained in:
Tomas Touceda 2021-10-15 10:48:44 -03:00 committed by GitHub
parent cc40bf132d
commit 74960d74be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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()))