Skip to content

Commit

Permalink
feat: multiple message returns
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTheocharis committed Dec 12, 2024
1 parent 9b95d99 commit c0a8995
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions tag_processor_plugin/tag_processor_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ tag_processor:
})

It("should process message with only advanced processing", func() {
Skip("Skipping until multiple message returns are implemented")
builder := service.NewStreamBuilder()

var msgHandler service.MessageHandlerFunc
Expand Down Expand Up @@ -804,7 +803,6 @@ tag_processor:
})

It("should process messages duplicated in advancedProcessing through all stages", func() {
Skip("Skipping until multiple message returns are implemented")
builder := service.NewStreamBuilder()

var msgHandler service.MessageHandlerFunc
Expand All @@ -828,17 +826,17 @@ tag_processor:
advancedProcessing: |
let doubledValue = msg.payload * 2;
msg1 = {
payload: msg.payload,
meta: { ...msg.meta, datacontract: "_historian" }
};
msg1 = {
payload: msg.payload,
meta: { ...msg.meta, datacontract: "_historian" }
};
msg2 = {
payload: doubledValue,
meta: { ...msg.meta, datacontract: "_analytics", tagName: msg.meta.tagName + "_doubled" }
};
msg2 = {
payload: doubledValue,
meta: { ...msg.meta, datacontract: "_analytics", tagName: msg.meta.tagName + "_doubled" }
};
return [msg1, msg2];
return [msg1, msg2];
`)
Expect(err).NotTo(HaveOccurred())

Expand Down Expand Up @@ -902,7 +900,6 @@ tag_processor:
})

It("should process messages duplicated in defaults through all stages", func() {
Skip("Skipping until multiple message returns are implemented")
builder := service.NewStreamBuilder()

var msgHandler service.MessageHandlerFunc
Expand Down

0 comments on commit c0a8995

Please sign in to comment.