From 4e3a4fa7bb2500a766acc497f417158296b8186c Mon Sep 17 00:00:00 2001 From: Ioannis Canellos Date: Wed, 18 Mar 2020 22:17:22 +0200 Subject: [PATCH] chore: bump to the latest dekorate version. --- bom/runtime/pom.xml | 2 +- .../it/kubernetes/KnativeContainerImageTest.java | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/bom/runtime/pom.xml b/bom/runtime/pom.xml index 0e151d86e6fe5..dd50b9f98ca74 100644 --- a/bom/runtime/pom.xml +++ b/bom/runtime/pom.xml @@ -142,7 +142,7 @@ 2.10.70 1.3.0 1.3.61 - 0.11.2 + 0.11.3 0.10.0 2.14.6 3.0.1 diff --git a/integration-tests/kubernetes/standard/src/test/java/io/quarkus/it/kubernetes/KnativeContainerImageTest.java b/integration-tests/kubernetes/standard/src/test/java/io/quarkus/it/kubernetes/KnativeContainerImageTest.java index b286b6bc226e4..6d7cc2cd9d46c 100644 --- a/integration-tests/kubernetes/standard/src/test/java/io/quarkus/it/kubernetes/KnativeContainerImageTest.java +++ b/integration-tests/kubernetes/standard/src/test/java/io/quarkus/it/kubernetes/KnativeContainerImageTest.java @@ -12,7 +12,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import io.fabric8.knative.serving.v1alpha1.Service; +import io.fabric8.knative.serving.v1.Service; import io.fabric8.kubernetes.api.model.HasMetadata; import io.quarkus.test.ProdBuildResults; import io.quarkus.test.ProdModeTestResults; @@ -42,15 +42,11 @@ public void assertGeneratedResources() throws IOException { assertThat(i).isInstanceOfSatisfying(Service.class, d -> { assertThat(d.getSpec()).satisfies(serviceSpec -> { - assertThat(serviceSpec.getRunLatest()).satisfies(revisionTemplate -> { - assertThat(revisionTemplate.getConfiguration()).satisfies(configuration -> { - assertThat(configuration.getRevisionTemplate()).satisfies(template -> { - assertThat(template.getSpec()).satisfies(spec -> { - assertThat(spec.getContainer()).satisfies(c -> { - assertThat(c.getImage()) - .isEqualTo("quay.io/grp/knative-with-container-image:0.1-SNAPSHOT"); - }); - }); + assertThat(serviceSpec.getTemplate()).satisfies(revisionTemplate -> { + assertThat(revisionTemplate.getSpec()).satisfies(spec -> { + assertThat(spec.getContainers()).satisfies(containers -> { + assertThat(containers.get(0)).satisfies(c -> assertThat(c.getImage()) + .isEqualTo("quay.io/grp/knative-with-container-image:0.1-SNAPSHOT")); }); }); });