Skip to content

Commit

Permalink
This tries to reduce the log file size of SWF IT
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Oct 26, 2023
1 parent 0248646 commit 4b672be
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ void testFromValue() throws IOException {
.withExtension("pepe", "pepa");
DataEvent<JsonNode> dataEvent = DataEventFactory.from(builder.build(), ced -> objectMapper.readTree(ced.toBytes()));
JsonNode deserialized = CloudEventUtils.fromValue(dataEvent);
System.out.println(deserialized);
JsonNode data = deserialized.get("data");
assertThat(data).isNotNull();
assertThat(data.get("name").asText()).isEqualTo("Javierito");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ void testIsJacksonSerializable() throws JsonProcessingException, IOException {
.withExtension("pepe", "pepa");
DataEvent<JsonNode> dataEvent = DataEventFactory.from(builder.build(), ced -> objectMapper.readTree(ced.toBytes()));
JsonNode deserialized = objectMapper.readTree(objectMapper.writeValueAsBytes(dataEvent.asCloudEvent(JsonCloudEventData::wrap)));
System.out.println(deserialized);
JsonNode data = deserialized.get("data");

assertThat(data).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public KogitoGenericContainer(String containerName) {
super(getImageName(containerName));
withStartupTimeout(CONTAINER_START_TIMEOUT);
withLogConsumer(new Slf4jLogConsumer(LOGGER));
withLogConsumer(f -> System.out.print(f.getUtf8String()));
}

public static String getImageName(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public class GreetingResource {
@POST
public DataContext hello(Map<String, Object> payload) {
// path: /processes/scripts
System.out.println(payload);

var id = appRoot.get(ProcessIds.class).get("scripts");
return svc.evaluate(id, MapDataContext.from(payload));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ quarkus.flyway.clean-at-start=true

quarkus.http.test-port=0
quarkus.log.level=INFO
#quarkus.log.category."org.kie.kogito.serverless.workflow".level=DEBUG
quarkus.log.category."org.kie.kogito.testcontainers".level=WARN
quarkus.log.category."org.apache.kafka".level=WARN

# To include the greethidden workflow
kogito.codegen.ignoreHiddenFiles=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ void callbackStateTimeoutsSuccessful() throws Exception {
void callbackStateTimeoutsExceeded() throws Exception {
String processInput = buildProcessInput(SUCCESSFUL_QUERY);
String processInstanceId = newProcessInstanceAndGetId(CALLBACK_STATE_TIMEOUTS_SERVICE_URL, processInput);
System.out.println("processInstanceId is " + processInstanceId);

assertProcessInstanceExists(CALLBACK_STATE_TIMEOUTS_GET_BY_ID_URL, processInstanceId);

assertProcessInstanceHasFinished(CALLBACK_STATE_TIMEOUTS_GET_BY_ID_URL, processInstanceId, 1, 10);
Expand Down

0 comments on commit 4b672be

Please sign in to comment.