Skip to content

Commit

Permalink
[TS-713] Make the root event name shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Sep 17, 2021
1 parent 6481a87 commit 4d9ea44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# th2 check1 (3.7.1)
# th2 check1 (3.7.2)

## Overview

Expand Down Expand Up @@ -110,6 +110,12 @@ spec:
## Release Notes
### 3.7.2
#### Changed:
+ The root event name is now shorter. The additional information about session alias and direction is moved to the event body.
The user's description should be displayed more clearly in the report.
### 3.7.1
+ Migrated common version from `3.23.0` to `3.25.0`
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release_version = 3.7.1
release_version = 3.7.2

description = 'th2 check1 box'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import com.exactpro.th2.check1.rule.SailfishFilter
import com.exactpro.th2.check1.util.VerificationUtil.METADATA_MESSAGE_NAME
import com.exactpro.th2.common.event.Event
import com.exactpro.th2.common.event.Event.Status.FAILED
import com.exactpro.th2.common.event.EventUtils
import com.exactpro.th2.common.event.EventUtils.createMessageBean
import com.exactpro.th2.common.grpc.EventBatch
import com.exactpro.th2.common.grpc.EventID
import com.exactpro.th2.common.grpc.RootMessageFilter
Expand Down Expand Up @@ -58,7 +60,8 @@ class CheckRuleTask(

init {
rootEvent
.name("Check rule $sessionKey")
.name("Check rule")
.bodyData(createMessageBean("Check rule for messages from ${sessionKey.run { "$sessionAlias ($direction direction)"} }"))
.type("Check rule")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class SequenceCheckRuleTask(

init {
rootEvent
.name("Check sequence rule $sessionKey")
.name("Check sequence rule")
.bodyData(createMessageBean("Check sequence rule for messages from ${sessionKey.run { "$sessionAlias ($direction direction)"} }"))
.type("checkSequenceRule")
}

Expand Down

0 comments on commit 4d9ea44

Please sign in to comment.