-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TH2-4316] Add additional events to the root event with information a… #173
base: dev
Are you sure you want to change the base?
Conversation
@lumber1000 Please, take a look at changes |
@lumber1000 Please, take a look at changes |
.bodyData(EventUtils.createMessageBean(message)) | ||
.bodyData(EventUtils.createMessageBean(ex.message)) | ||
.bodyData(createMessageBean(message)) | ||
.bodyData(createMessageBean(ex.message)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.bodyData(createMessageBean(ex.message)) | |
.exception(ex, true) |
name( | ||
if (lastSequence == DEFAULT_SEQUENCE) { | ||
"Rule works from the beginning of the cache" | ||
} else { | ||
"Rule works from the $lastSequence sequence in session ${sessionKey.sessionAlias} and direction ${sessionKey.direction}" | ||
} | ||
) | ||
status(PASSED) | ||
type("ruleStartPoint") | ||
if (lastSequence != DEFAULT_SEQUENCE) { | ||
messageID(sessionKey.toMessageID(lastSequence)) | ||
} | ||
bodyData(createMessageBean("The rule starts working from " + | ||
(if (lastSequence == DEFAULT_SEQUENCE) "start of cache" else "sequence $lastSequence") + | ||
(checkpointTimestamp?.let { | ||
val instant = checkpointTimestamp.toInstant() | ||
" and expects messages between $instant and ${instant.plusMillis(taskTimeout.messageTimeout)}" | ||
} ?: ""))) | ||
bodyData(createMessageBean("Rule timeout is set to ${taskTimeout.timeout} mls")) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name( | |
if (lastSequence == DEFAULT_SEQUENCE) { | |
"Rule works from the beginning of the cache" | |
} else { | |
"Rule works from the $lastSequence sequence in session ${sessionKey.sessionAlias} and direction ${sessionKey.direction}" | |
} | |
) | |
status(PASSED) | |
type("ruleStartPoint") | |
if (lastSequence != DEFAULT_SEQUENCE) { | |
messageID(sessionKey.toMessageID(lastSequence)) | |
} | |
bodyData(createMessageBean("The rule starts working from " + | |
(if (lastSequence == DEFAULT_SEQUENCE) "start of cache" else "sequence $lastSequence") + | |
(checkpointTimestamp?.let { | |
val instant = checkpointTimestamp.toInstant() | |
" and expects messages between $instant and ${instant.plusMillis(taskTimeout.messageTimeout)}" | |
} ?: ""))) | |
bodyData(createMessageBean("Rule timeout is set to ${taskTimeout.timeout} mls")) | |
} | |
val endOfMessage = checkpointTimestamp?.let { | |
val instant = checkpointTimestamp.toInstant() | |
" and expects messages between $instant and ${instant.plusMillis(taskTimeout.messageTimeout)}" | |
} ?: "" | |
if (lastSequence == DEFAULT_SEQUENCE) { | |
name("Rule works from the beginning of the cache") | |
bodyData(createMessageBean("The rule starts working from start of cache $endOfMessage") | |
} else { | |
name("Rule works from the $lastSequence sequence in session ${sessionKey.sessionAlias} and direction ${sessionKey.direction}") | |
messageID(sessionKey.toMessageID(lastSequence)) | |
bodyData(createMessageBean("The rule starts working from sequence $lastSequence $endOfMessage") | |
} | |
status(PASSED) | |
type("ruleStartPoint") | |
bodyData(createMessageBean("Rule timeout is set to ${taskTimeout.timeout} mls")) | |
} |
.bodyData(EventUtils.createMessageBean("An unexpected exception has been thrown during result check build")) | ||
.bodyData(EventUtils.createMessageBean(e.message)) | ||
.bodyData(createMessageBean("An unexpected exception has been thrown during result check build")) | ||
.bodyData(createMessageBean(e.message)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.bodyData(createMessageBean(e.message)) | |
.exception(e, true) |
…bout the cause of failure