@@ -42,6 +42,7 @@ func createTestInvHost(t *testing.T) *Host {
4242
4343 now := time .Now ()
4444 host := Host {
45+ ID : id ,
4546 StaleTimestamp : & correctTime ,
4647 Reporter : "puptoo" ,
4748 PerReporterStaleness : map [string ]inventory.ReporterStaleness {
@@ -69,7 +70,7 @@ func TestUpdateSystemPlatform(t *testing.T) {
6970 Basearch : utils .PtrString ("x86_64" ),
7071 }
7172
72- sys1 , err := updateSystemPlatform (database .DB , id , accountID1 , createTestInvHost (t ), nil , & req )
73+ sys1 , err := updateSystemPlatform (database .DB , accountID1 , createTestInvHost (t ), nil , & req )
7374 assert .Nil (t , err )
7475
7576 reporterID1 := 1
@@ -79,7 +80,7 @@ func TestUpdateSystemPlatform(t *testing.T) {
7980 host2 := createTestInvHost (t )
8081 host2 .Reporter = "yupana"
8182 req .PackageList = []string {"package0" , "package1" }
82- sys2 , err := updateSystemPlatform (database .DB , id , accountID2 , host2 , nil , & req )
83+ sys2 , err := updateSystemPlatform (database .DB , accountID2 , host2 , nil , & req )
8384 assert .Nil (t , err )
8485
8586 reporterID2 := 3
@@ -300,7 +301,7 @@ func TestUpdateSystemPlatformYumUpdates(t *testing.T) {
300301
301302 req := vmaas.UpdatesV3Request {}
302303
303- _ , err = updateSystemPlatform (database .DB , id , accountID1 , createTestInvHost (t ), yumUpdates , & req )
304+ _ , err = updateSystemPlatform (database .DB , accountID1 , createTestInvHost (t ), yumUpdates , & req )
304305 assert .Nil (t , err )
305306
306307 reporterID1 := 1
@@ -310,7 +311,7 @@ func TestUpdateSystemPlatformYumUpdates(t *testing.T) {
310311
311312 // check that yumUpdates has been updated
312313 yumUpdates .RawParsed = []byte ("{}" )
313- _ , err = updateSystemPlatform (database .DB , id , accountID1 , createTestInvHost (t ), yumUpdates , & req )
314+ _ , err = updateSystemPlatform (database .DB , accountID1 , createTestInvHost (t ), yumUpdates , & req )
314315 assert .Nil (t , err )
315316 assertYumUpdatesInDB (t , id , yumUpdates )
316317
0 commit comments