This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new a6d7733 fix org.apache.camel.quarkus.component.splunk.it.SplunkTest
failure if system timezone isn't UTC #2542
a6d7733 is described below
commit a6d773318e9e3620850465c67edee65e3321d69e
Author: Freeman Fang <[email protected]>
AuthorDate: Thu Apr 29 16:36:39 2021 -0400
fix org.apache.camel.quarkus.component.splunk.it.SplunkTest failure if
system timezone isn't UTC #2542
---
.../apache/camel/quarkus/component/splunk/it/SplunkTestResource.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/integration-tests/splunk/src/test/java/org/apache/camel/quarkus/component/splunk/it/SplunkTestResource.java
b/integration-tests/splunk/src/test/java/org/apache/camel/quarkus/component/splunk/it/SplunkTestResource.java
index bf1f98e..1c01df4 100644
---
a/integration-tests/splunk/src/test/java/org/apache/camel/quarkus/component/splunk/it/SplunkTestResource.java
+++
b/integration-tests/splunk/src/test/java/org/apache/camel/quarkus/component/splunk/it/SplunkTestResource.java
@@ -18,6 +18,7 @@ package org.apache.camel.quarkus.component.splunk.it;
import java.time.Duration;
import java.util.Map;
+import java.util.TimeZone;
import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
import org.apache.camel.util.CollectionHelper;
@@ -42,6 +43,7 @@ public class SplunkTestResource implements
QuarkusTestResourceLifecycleManager {
.withEnv("SPLUNK_START_ARGS", "--accept-license")
.withEnv("SPLUNK_PASSWORD", "changeit")
.withEnv("SPLUNK_LICENSE_URI", "Free")
+ .withEnv("TZ", TimeZone.getDefault().getID())
.waitingFor(
Wait.forLogMessage(".*Ansible playbook
complete.*\\n", 1)
.withStartupTimeout(Duration.ofSeconds(120)));
@@ -52,6 +54,9 @@ public class SplunkTestResource implements
QuarkusTestResourceLifecycleManager {
"/opt/splunk/etc/system/default/server.conf");
container.execInContainer("sudo", "sed", "-i", "s/enableSplunkdSSL
= true/enableSplunkdSSL = false/",
"/opt/splunk/etc/system/default/server.conf");
+
+ container.execInContainer("sudo", "microdnf", "--nodocs",
"update", "tzdata");//install tzdata package so we can specify tz other than UTC
+
container.execInContainer("sudo", "./bin/splunk", "restart");
container.execInContainer("sudo", "./bin/splunk", "add", "index",
TEST_INDEX);
container.execInContainer("sudo", "./bin/splunk", "add", "tcp",
String.valueOf(SplunkResource.LOCAL_TCP_PORT),