You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2023/03/10 16:51:29 UTC
[camel-quarkus-examples] branch camel-quarkus-main updated (c605355 -> 0baaa02)
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a change to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
from c605355 Upgrade quarkus to 3.0.0.Alpha5
new 2dc4d63 Update example projects for changes in Camel 4.0.0-M2
new 0baaa02 Add skip-testcontainers-tests profile to cluster-leader-election example
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
cluster-leader-election/pom.xml | 11 +++++++++++
.../src/main/java/org/acme/health/RunTooLongHealthCheck.java | 5 +++++
health/src/test/java/org/acme/health/HealthTest.java | 2 +-
.../acme/observability/health/camel/CustomLivenessCheck.java | 5 +++++
4 files changed, 22 insertions(+), 1 deletion(-)
[camel-quarkus-examples] 01/02: Update example projects for changes in Camel 4.0.0-M2
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit 2dc4d638e858ca83a6f75382a4c0ac7b56deaad6
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Mar 10 15:24:00 2023 +0000
Update example projects for changes in Camel 4.0.0-M2
---
health/src/main/java/org/acme/health/RunTooLongHealthCheck.java | 5 +++++
health/src/test/java/org/acme/health/HealthTest.java | 2 +-
.../org/acme/observability/health/camel/CustomLivenessCheck.java | 5 +++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/health/src/main/java/org/acme/health/RunTooLongHealthCheck.java b/health/src/main/java/org/acme/health/RunTooLongHealthCheck.java
index db187d6..df16e23 100644
--- a/health/src/main/java/org/acme/health/RunTooLongHealthCheck.java
+++ b/health/src/main/java/org/acme/health/RunTooLongHealthCheck.java
@@ -53,4 +53,9 @@ public class RunTooLongHealthCheck extends AbstractHealthCheck {
// only liveness probe
return false;
}
+
+ @Override
+ public boolean isLiveness() {
+ return true;
+ }
}
diff --git a/health/src/test/java/org/acme/health/HealthTest.java b/health/src/test/java/org/acme/health/HealthTest.java
index 417a3f2..fc4bf27 100644
--- a/health/src/test/java/org/acme/health/HealthTest.java
+++ b/health/src/test/java/org/acme/health/HealthTest.java
@@ -33,7 +33,7 @@ public class HealthTest {
.statusCode(503)
.body("status", is("DOWN"),
"checks.findAll { it.name == 'toolong' }.status", Matchers.contains("UP"),
- "checks.findAll { it.name == 'context' }.status", Matchers.contains("UP"),
+ "checks.findAll { it.name == 'context' }.status", Matchers.contains("UP", "UP"),
"checks.findAll { it.name == 'camel-routes' }.status", Matchers.contains("DOWN"),
"checks.findAll { it.name == 'camel-consumers' }.status", Matchers.contains("DOWN"));
}
diff --git a/observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java b/observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java
index c69f386..17e5ca9 100644
--- a/observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java
+++ b/observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java
@@ -51,4 +51,9 @@ public class CustomLivenessCheck extends AbstractHealthCheck {
public boolean isReadiness() {
return false;
}
+
+ @Override
+ public boolean isLiveness() {
+ return true;
+ }
}
[camel-quarkus-examples] 02/02: Add skip-testcontainers-tests profile to cluster-leader-election example
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit 0baaa02c6bcb7d238cf6ac8a7d75718c8315c9c9
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Mar 10 16:04:04 2023 +0000
Add skip-testcontainers-tests profile to cluster-leader-election example
---
cluster-leader-election/pom.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/cluster-leader-election/pom.xml b/cluster-leader-election/pom.xml
index f19a5b6..17b4abe 100644
--- a/cluster-leader-election/pom.xml
+++ b/cluster-leader-election/pom.xml
@@ -337,6 +337,17 @@
</dependency>
</dependencies>
</profile>
+ <profile>
+ <id>skip-testcontainers-tests</id>
+ <activation>
+ <property>
+ <name>skip-testcontainers-tests</name>
+ </property>
+ </activation>
+ <properties>
+ <skipTests>true</skipTests>
+ </properties>
+ </profile>
</profiles>
</project>