Skip to content

Commit

Permalink
RHINENG-9077: fix packages in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Apr 8, 2024
1 parent f827a24 commit 822dbd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion listener/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion listener/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 822dbd9

Please sign in to comment.