This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch release-1.12.x in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.12.x by this push: new ad0024f4e fix(e2e): TestLocalPlatform ad0024f4e is described below commit ad0024f4e6a0f3ff20b9cd1230aeaed2c2332a69 Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Tue Jun 6 12:20:56 2023 +0200 fix(e2e): TestLocalPlatform Closes #4458 --- e2e/global/common/local_platform_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/global/common/local_platform_test.go b/e2e/global/common/local_platform_test.go index 86f9799aa..f60a3e3ce 100644 --- a/e2e/global/common/local_platform_test.go +++ b/e2e/global/common/local_platform_test.go @@ -54,7 +54,10 @@ func TestLocalPlatform(t *testing.T) { }), TestTimeoutMedium).Should(BeTrue()) WithNewTestNamespace(t, func(ns1 string) { - localPlatform := v1.NewIntegrationPlatform(ns1, operatorID) + // Install platform (use the installer to get staging if present) + Expect(KamelInstallWithID("local-platform", ns1, "--skip-operator-setup").Execute()).To(Succeed()) + + localPlatform := Platform(ns1)() localPlatform.Spec.Build.Maven.Properties = make(map[string]string) localPlatform.Spec.Build.Maven.Properties["build-local-prop1"] = "build-local-value1" localPlatform.SetOperatorID(operatorID) @@ -63,7 +66,7 @@ func TestLocalPlatform(t *testing.T) { LimitCPU: "0.1", } - if err := TestClient().Create(TestContext, &localPlatform); err != nil { + if err := TestClient().Update(TestContext, localPlatform); err != nil { t.Error(err) t.FailNow() }