You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cd...@apache.org on 2024/03/13 18:11:16 UTC
(camel-k) 03/06: chore(e2e): Use UpdatePlatform func as it is more stable
This is an automated email from the ASF dual-hosted git repository.
cdeppisch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 0c353adc5cc29e829902befbfc8e81c0c941b469
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Wed Mar 13 08:24:42 2024 +0100
chore(e2e): Use UpdatePlatform func as it is more stable
---
e2e/advanced/platform_traits_test.go | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/e2e/advanced/platform_traits_test.go b/e2e/advanced/platform_traits_test.go
index 827064001..662d1f4e1 100644
--- a/e2e/advanced/platform_traits_test.go
+++ b/e2e/advanced/platform_traits_test.go
@@ -48,12 +48,9 @@ func TestTraitOnIntegrationPlatform(t *testing.T) {
containerTestName := "testname"
g.Eventually(PlatformPhase(t, ctx, ns), TestTimeoutMedium).Should(Equal(v1.IntegrationPlatformPhaseReady))
- ip := Platform(t, ctx, ns)()
- ip.Spec.Traits = v1.Traits{Logging: &trait.LoggingTrait{Level: "DEBUG"}, Container: &trait.ContainerTrait{Name: containerTestName}}
-
- if err := TestClient(t).Update(ctx, ip); err != nil {
- t.Fatal("Can't create IntegrationPlatform", err)
- }
+ g.Expect(UpdatePlatform(t, ctx, ns, operatorID, func(ip *v1.IntegrationPlatform) {
+ ip.Spec.Traits = v1.Traits{Logging: &trait.LoggingTrait{Level: "DEBUG"}, Container: &trait.ContainerTrait{Name: containerTestName}}
+ })).To(Succeed())
g.Eventually(PlatformPhase(t, ctx, ns), TestTimeoutMedium).Should(Equal(v1.IntegrationPlatformPhaseReady))
name := RandomizedSuffixName("java")