@@ -20,7 +20,6 @@ func TestAdvisoryUpdateEventMarshal(t *testing.T) {
2020 event := AdvisoryUpdateEvent {
2121 RhAccountID : 1 ,
2222 WorkspaceID : testWorkspaceID ,
23- InventoryID : uuid .New (),
2423 AdvisoryIDs : []int64 {101 , 202 , 303 },
2524 ProducedAt : testNow ,
2625 }
@@ -33,7 +32,6 @@ func TestAdvisoryUpdateEventMarshal(t *testing.T) {
3332 assert .NoError (t , err )
3433 assert .Equal (t , event .RhAccountID , parsed .RhAccountID )
3534 assert .Equal (t , event .WorkspaceID , parsed .WorkspaceID )
36- assert .Equal (t , event .InventoryID , parsed .InventoryID )
3735 assert .Equal (t , event .AdvisoryIDs , parsed .AdvisoryIDs )
3836 assert .NotNil (t , parsed .ProducedAt )
3937}
@@ -45,14 +43,12 @@ func TestAdvisoryUpdateEventsWriteEvents(t *testing.T) {
4543 {
4644 RhAccountID : 1 ,
4745 WorkspaceID : testWorkspaceID ,
48- InventoryID : uuid .New (),
4946 AdvisoryIDs : []int64 {100 , 200 },
5047 ProducedAt : testNow ,
5148 },
5249 {
5350 RhAccountID : 2 ,
5451 WorkspaceID : testWorkspaceID ,
55- InventoryID : uuid .New (),
5652 AdvisoryIDs : []int64 {300 },
5753 ProducedAt : testNow ,
5854 },
@@ -69,7 +65,6 @@ func TestAdvisoryUpdateEventsWriteEvents(t *testing.T) {
6965 assert .NoError (t , err )
7066 assert .Equal (t , events [0 ].RhAccountID , firstEvent .RhAccountID )
7167 assert .Equal (t , events [0 ].WorkspaceID , firstEvent .WorkspaceID )
72- assert .Equal (t , events [0 ].InventoryID , firstEvent .InventoryID )
7368 assert .Equal (t , events [0 ].AdvisoryIDs , firstEvent .AdvisoryIDs )
7469 assert .NotNil (t , firstEvent .ProducedAt )
7570
@@ -78,7 +73,6 @@ func TestAdvisoryUpdateEventsWriteEvents(t *testing.T) {
7873 assert .NoError (t , err )
7974 assert .Equal (t , events [1 ].RhAccountID , secondEvent .RhAccountID )
8075 assert .Equal (t , events [1 ].WorkspaceID , secondEvent .WorkspaceID )
81- assert .Equal (t , events [1 ].InventoryID , secondEvent .InventoryID )
8276 assert .Equal (t , events [1 ].AdvisoryIDs , secondEvent .AdvisoryIDs )
8377 assert .NotNil (t , secondEvent .ProducedAt )
8478}
0 commit comments