From cc368ddbfda6274be40c5f6dd27088ddc053e6e4 Mon Sep 17 00:00:00 2001 From: Benoit DUMONT Date: Wed, 7 Aug 2024 13:43:12 +0200 Subject: [PATCH] Only display prio > 0 execution on google-chat notifications. --- .../notifications/googlechat/impl/ChatGenerationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/main/java/org/cerberus/core/service/notifications/googlechat/impl/ChatGenerationService.java b/source/src/main/java/org/cerberus/core/service/notifications/googlechat/impl/ChatGenerationService.java index c1495da64..7a200f7fa 100644 --- a/source/src/main/java/org/cerberus/core/service/notifications/googlechat/impl/ChatGenerationService.java +++ b/source/src/main/java/org/cerberus/core/service/notifications/googlechat/impl/ChatGenerationService.java @@ -176,7 +176,7 @@ public JSONObject generateNotifyEndTagExecutionV2(Tag tag) throws UnsupportedEnc for (TestCaseExecution execution : tag.getExecutionsNew()) { LOG.debug(execution.getControlStatus() + " - " + execution.getControlMessage() + execution.getApplication() + " - " + execution.getDescription()); totallines++; - if (!TestCaseExecution.CONTROLSTATUS_OK.equals(execution.getControlStatus())) { + if (!TestCaseExecution.CONTROLSTATUS_OK.equals(execution.getControlStatus()) && execution.getTestCasePriority() > 0) { totaltodisplay++; if (maxlines > totaldisplayed) { totaldisplayed++;