From 822dbd98ec98cd05f3cb0232562e3cf4fd42be3b Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Mon, 8 Apr 2024 11:15:54 +0200 Subject: [PATCH] RHINENG-9077: fix packages in tests --- listener/common_test.go | 2 +- listener/events_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/listener/common_test.go b/listener/common_test.go index 370187696..27337ced0 100644 --- a/listener/common_test.go +++ b/listener/common_test.go @@ -87,7 +87,7 @@ func createTestUploadEvent(orgID, inventoryID, reporter string, packages, yum bo }, } if packages { - ev.Host.SystemProfile.InstalledPackages = &[]string{"kernel-54321.rhel8.x86_64"} + ev.Host.SystemProfile.InstalledPackages = &[]string{"kernel-0:54321-1.rhel8.x86_64"} } ev.Host.SystemProfile.DnfModules = &[]inventory.DnfModule{{ Name: "modName", diff --git a/listener/events_test.go b/listener/events_test.go index 7fc8569c4..3698280c0 100644 --- a/listener/events_test.go +++ b/listener/events_test.go @@ -30,7 +30,7 @@ func TestUpdateSystem(t *testing.T) { ev := createTestUploadEvent("1", id, "puptoo", false, false) name := "TEST_NAME" ev.Host.DisplayName = &name - ev.Host.SystemProfile.InstalledPackages = &[]string{"kernel"} + ev.Host.SystemProfile.InstalledPackages = &[]string{"kernel-0:4.18.0-193.1.2.el8_2.x86_64"} assert.NoError(t, HandleUpload(ev)) var system models.SystemPlatform