You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/06/07 07:41:34 UTC

[camel-k] branch main updated: fix(e2e): TestLocalPlatform

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new c06588688 fix(e2e): TestLocalPlatform
c06588688 is described below

commit c06588688088df07d3693681c8255aa1dd83be9d
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Tue Jun 6 12:20:56 2023 +0200

    fix(e2e): TestLocalPlatform
    
    Closes #4458
---
 e2e/commonwithcustominstall/local_platform_test.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/e2e/commonwithcustominstall/local_platform_test.go b/e2e/commonwithcustominstall/local_platform_test.go
index 500b6bd1f..05ce8c3b7 100644
--- a/e2e/commonwithcustominstall/local_platform_test.go
+++ b/e2e/commonwithcustominstall/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()
 			}