Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions events/activemq.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type ActiveMQMessage struct {
Data string `json:"data"`
BrokerInTime int64 `json:"brokerInTime"`
BrokerOutTime int64 `json:"brokerOutTime"`
Properties map[string]string `json:"properties"`
}

type ActiveMQDestination struct {
Expand Down
1 change: 1 addition & 0 deletions events/activemq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func TestActiveMQEventMarshaling(t *testing.T) {
assert.Equal(t, 1, message.DeliveryMode)
assert.Equal(t, "testQueue", message.Destination.PhysicalName)
assert.Equal(t, false, message.Redelivered)
assert.Equal(t, "testValue", message.Properties["testKey"])

// 4. serialize to JSON
outputJSON, err := json.Marshal(inputEvent)
Expand Down
3 changes: 2 additions & 1 deletion events/testdata/activemq-event.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"priority": 0,
"data": "RW50ZXIgc29tZSB0ZXh0IGhlcmUgZm9yIHRoZSBtZXNzYWdlIGJvZHkuLi4=",
"brokerInTime": 1599863938943,
"brokerOutTime": 1599863938944
"brokerOutTime": 1599863938944,
"properties": {"testKey": "testValue"}
}
]
}