You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/01/09 19:47:31 UTC
[camel] branch master updated (afc6ed9 -> 05e4d19)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from afc6ed9 CAMEL-14384: Fixed the reflection on annotation proxy issue
new 87c8177 Upgrade Kubernetes-client to version 4.7.0
new 05e4d19 Camel-Kubernetes: Fixed tests
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:
.../kubernetes/producer/KubernetesHPAProducerTest.java | 10 +++++-----
parent/pom.xml | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
[camel] 01/02: Upgrade Kubernetes-client to version 4.7.0
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 87c817740ba91798de6a29569f6583cb5bbe4b5e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 9 18:09:19 2020 +0100
Upgrade Kubernetes-client to version 4.7.0
---
parent/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/parent/pom.xml b/parent/pom.xml
index e61bdf8..5c0624c 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -403,8 +403,8 @@
<kafka-bundle-version>2.3.1_1</kafka-bundle-version>
<karaf4-version>4.2.7</karaf4-version>
<kie-version>7.31.0.Final</kie-version>
- <kubernetes-client-version>4.6.4</kubernetes-client-version>
- <kubernetes-model-version>4.6.4</kubernetes-model-version>
+ <kubernetes-client-version>4.7.0</kubernetes-client-version>
+ <kubernetes-model-version>4.7.0</kubernetes-model-version>
<kudu-version>1.10.0</kudu-version>
<kxml2-bundle-version>2.3.0_3</kxml2-bundle-version>
<leveldbjni-version>1.8</leveldbjni-version>
[camel] 02/02: Camel-Kubernetes: Fixed tests
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 05e4d196152a5d9e018ec712adde78f5a502d7da
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 9 20:46:34 2020 +0100
Camel-Kubernetes: Fixed tests
---
.../kubernetes/producer/KubernetesHPAProducerTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/components/camel-kubernetes/src/test/java/org/apache/camel/component/kubernetes/producer/KubernetesHPAProducerTest.java b/components/camel-kubernetes/src/test/java/org/apache/camel/component/kubernetes/producer/KubernetesHPAProducerTest.java
index 2743f77..9c6203f 100644
--- a/components/camel-kubernetes/src/test/java/org/apache/camel/component/kubernetes/producer/KubernetesHPAProducerTest.java
+++ b/components/camel-kubernetes/src/test/java/org/apache/camel/component/kubernetes/producer/KubernetesHPAProducerTest.java
@@ -47,7 +47,7 @@ public class KubernetesHPAProducerTest extends KubernetesTestSupport {
@Test
public void listTest() throws Exception {
- server.expect().withPath("/apis/autoscaling/v1/namespaces/test/horizontalpodautoscalers")
+ server.expect().withPath("/apis/autoscaling/v2beta1/namespaces/test/horizontalpodautoscalers")
.andReturn(200, new HorizontalPodAutoscalerListBuilder().addNewItem().and().addNewItem().and().addNewItem().and().build()).once();
List<HorizontalPodAutoscaler> result = template.requestBody("direct:list", "", List.class);
@@ -56,7 +56,7 @@ public class KubernetesHPAProducerTest extends KubernetesTestSupport {
@Test
public void listByLabelsTest() throws Exception {
- server.expect().withPath("/apis/autoscaling/v1/namespaces/test/horizontalpodautoscalers?labelSelector=" + toUrlEncoded("key1=value1,key2=value2"))
+ server.expect().withPath("/apis/autoscaling/v2beta1/namespaces/test/horizontalpodautoscalers?labelSelector=" + toUrlEncoded("key1=value1,key2=value2"))
.andReturn(200, new PodListBuilder().addNewItem().and().addNewItem().and().addNewItem().and().build()).once();
Exchange ex = template.request("direct:listByLabels", new Processor() {
@@ -79,8 +79,8 @@ public class KubernetesHPAProducerTest extends KubernetesTestSupport {
HorizontalPodAutoscaler hpa1 = new HorizontalPodAutoscalerBuilder().withNewMetadata().withName("hpa1").withNamespace("test").and().build();
HorizontalPodAutoscaler hpa2 = new HorizontalPodAutoscalerBuilder().withNewMetadata().withName("hpa2").withNamespace("ns1").and().build();
- server.expect().withPath("/apis/autoscaling/v1/namespaces/test/horizontalpodautoscalers/hpa1").andReturn(200, hpa1).once();
- server.expect().withPath("/apis/autoscaling/v1/namespaces/ns1/horizontalpodautoscalers/hpa2").andReturn(200, hpa2).once();
+ server.expect().withPath("/apis/autoscaling/v2beta1/namespaces/test/horizontalpodautoscalers/hpa1").andReturn(200, hpa1).once();
+ server.expect().withPath("/apis/autoscaling/v2beta1/namespaces/ns1/horizontalpodautoscalers/hpa2").andReturn(200, hpa2).once();
Exchange ex = template.request("direct:getHPA", new Processor() {
@Override
@@ -98,7 +98,7 @@ public class KubernetesHPAProducerTest extends KubernetesTestSupport {
@Test
public void deleteHPATest() throws Exception {
HorizontalPodAutoscaler hpa1 = new HorizontalPodAutoscalerBuilder().withNewMetadata().withName("hpa1").withNamespace("test").and().build();
- server.expect().withPath("/apis/autoscaling/v1/namespaces/test/horizontalpodautoscalers/hpa1").andReturn(200, hpa1).once();
+ server.expect().withPath("/apis/autoscaling/v2beta1/namespaces/test/horizontalpodautoscalers/hpa1").andReturn(200, hpa1).once();
Exchange ex = template.request("direct:deleteHPA", new Processor() {