From 74960d74bed2e886a1d4d6d55e8350a1e58c3673 Mon Sep 17 00:00:00 2001 From: Tomas Touceda Date: Fri, 15 Oct 2021 10:48:44 -0300 Subject: [PATCH] Update calls to new signature (#2536) --- server/datastore/mysql/hosts_test.go | 4 ++-- server/service/integration_core_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/datastore/mysql/hosts_test.go b/server/datastore/mysql/hosts_test.go index ae65c26dd..c0c229473 100644 --- a/server/datastore/mysql/hosts_test.go +++ b/server/datastore/mysql/hosts_test.go @@ -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) diff --git a/server/service/integration_core_test.go b/server/service/integration_core_test.go index db27668de..ed67bce6b 100644 --- a/server/service/integration_core_test.go +++ b/server/service/integration_core_test.go @@ -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()))