This is an automated email from the ASF dual-hosted git repository.

fjtiradosarti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new c4e963c7b [Fix_#3383] Setting metadata when using binary (#1974)
c4e963c7b is described below

commit c4e963c7b06b047db7149b11cbcd01568cdffa3e
Author: Francisco Javier Tirado Sarti 
<[email protected]>
AuthorDate: Fri Feb 2 14:26:29 2024 +0100

    [Fix_#3383] Setting metadata when using binary (#1974)
    
    Since quarkus-http now uses binary as default the test condition for
    knative message has changed
---
 .../src/test/java/org/kie/kogito/it/jobs/SwitchStateTimeoutsIT.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-quarkus/integration-tests-jobs-service-quarkus-knative-eventing/src/test/java/org/kie/kogito/it/jobs/SwitchStateTimeoutsIT.java
 
b/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-quarkus/integration-tests-jobs-service-quarkus-knative-eventing/src/test/java/org/kie/kogito/it/jobs/SwitchStateTimeoutsIT.java
index 8d0440626..62ab32d77 100644
--- 
a/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-quarkus/integration-tests-jobs-service-quarkus-knative-eventing/src/test/java/org/kie/kogito/it/jobs/SwitchStateTimeoutsIT.java
+++ 
b/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-quarkus/integration-tests-jobs-service-quarkus-knative-eventing/src/test/java/org/kie/kogito/it/jobs/SwitchStateTimeoutsIT.java
@@ -49,9 +49,9 @@ class SwitchStateTimeoutsIT extends BaseSwitchStateTimeoutsIT 
implements SinkMoc
                 .with().pollInterval(1, SECONDS)
                 .untilAsserted(() -> sink.verify(1,
                         postRequestedFor(urlEqualTo("/"))
-                                
.withRequestBody(matchingJsonPath("kogitoprocinstanceid", 
equalTo(processInstanceId)))
-                                .withRequestBody(matchingJsonPath("type", 
equalTo(PROCESS_RESULT_EVENT_TYPE)))
-                                
.withRequestBody(matchingJsonPath("data.decision", 
equalTo(DECISION_NO_DECISION)))));
+                                .withHeader("ce-kogitoprocinstanceid", 
equalTo(processInstanceId))
+                                .withHeader("ce-type", 
equalTo(PROCESS_RESULT_EVENT_TYPE))
+                                .withRequestBody(matchingJsonPath("decision", 
equalTo(DECISION_NO_DECISION)))));
 
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to