From e11715dbadb58a4b09296e18d51fe0084a663d7b Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelgawad <55905528+mabdelgowa@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:52:28 +0300 Subject: [PATCH 01/12] Update testsuite-core.yaml --- .../testsuites/vars/files/testsuite-core.yaml | 217 ++++++++++++++++++ 1 file changed, 217 insertions(+) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 61306dcc49..1ca1f54af7 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -11,8 +11,17 @@ vars: skipTestWebModeler: '{{ .SKIP_TEST_WEBMODELER }}' testcases: +<<<<<<< HEAD - name: Core test suite is disabled +======= +# https://docs.camunda.io/docs/self-managed/identity/user-guide/generating-m2m-tokens/ +- name: TEST - Generating machine-to-machine token + description: | + Test generating tokens from Keycloak for components that use client type "CONFIDENTIAL". + This test will not work with type "PUBLIC" because "Public client not allowed to retrieve service account". + https://datatracker.ietf.org/doc/html/rfc6749#section-2.1 +>>>>>>> feb83bd5 (Update testsuite-core.yaml) steps: - type: exec script: echo 'Core test suite is disabled till full 8.7 refactor' @@ -304,4 +313,212 @@ testcases: # - result.body ShouldContainSubstring identity # - result.body ShouldContainSubstring optimize # - result.body ShouldContainSubstring web-modeler-restapi +<<<<<<< HEAD # - result.body ShouldContainSubstring core +======= +# - result.body ShouldContainSubstring zeebe +# - result.body ShouldContainSubstring zeebe-gateway + + ########################################################portforward checks################################## +- name: TEST - portforward for camunda + steps: + - name: run command svc camunda-zeebe-gateway + type: exec + script: | + kubectl port-forward svc/camunda-zeebe-gateway 26500:26500 + retry: 2 + delay: 10 + - name: Check camunda-zeebe-gateway + type: http + method: GET + url: "http://localhost:26500" + retry: 2 + delay: 10 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + ################################################## + - name: run command for svc/camunda-operate + type: exec + script: | + kubectl port-forward svc/camunda-operate 8081:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-operate + type: http + method: GET + url: "http://localhost:8081" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + ######################################################## + + - name: run command svc/camunda-tasklist + type: exec + script: | + kubectl port-forward svc/camunda-tasklist 8082:80 + retry: 2 + delay: 10 + - name: Check camunda-tasklist + type: http + method: GET + url: "http://localhost:8082" + retry: 2 + delay: 10 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + ################################################## + - name: run command for svc/camunda-optimize + type: exec + script: | + kubectl port-forward svc/camunda-optimize 8083:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-optimize + type: http + method: GET + url: "http://localhost:8083" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + ######################################################## + + - name: run command for svc/camunda-connectors + type: exec + script: | + kubectl port-forward svc/camunda-connectors 8088:8080 + retry: 2 + delay: 1 + - name: Check svc/camunda-connectors + type: http + method: GET + url: "http://localhost:8088" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + ###################################################### + + - name: run command for svc/camunda-web-modeler-webapp + type: exec + script: | + kubectl port-forward svc/camunda-web-modeler-webapp 8084:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-web-modeler-webapp + type: http + method: GET + url: "http://localhost:8084" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + + ###################################################### + + - name: run command for svc/camunda-web-modeler-websockets + type: exec + script: | + kubectl port-forward svc/camunda-web-modeler-websockets 8085:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-web-modeler-websockets + type: http + method: GET + url: "http://localhost:8085" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + + ###################################################### + + - name: run command for svc/camunda-keycloak + type: exec + script: | + kubectl port-forward svc/camunda-keycloak 18080:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-keycloak + type: http + method: GET + url: "http://localhost:18080" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + + ######################################################## + + - name: run command for svc/camunda-console + type: exec + script: | + kubectl port-forward svc/camunda-console 8087:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-operate + type: http + method: GET + url: "http://localhost:8087" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + + ###################################################### + + - name: run command for svc/camunda-keycloak + type: exec + script: | + kubectl port-forward svc/camunda-keycloak 18080:80 + retry: 2 + delay: 1 + - name: Check svc/camunda-keycloak + type: http + method: GET + url: "http://localhost:18080" + retry: 2 + delay: 1 + info: | + = Request Body: {{ .result.request.body }} + = Response Body: {{ .result.body }} + assertions: + - result.statuscode ShouldEqual 200 + + +>>>>>>> feb83bd5 (Update testsuite-core.yaml) From 8924ac8ed4d3cde9d3235754149a3f597c5365cd Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelgawad <55905528+mabdelgowa@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:27:23 +0300 Subject: [PATCH 02/12] Update testsuite-core.yaml "last" --- .../testsuites/vars/files/testsuite-core.yaml | 116 ++++-------------- 1 file changed, 24 insertions(+), 92 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 1ca1f54af7..5fa7ca79d3 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -324,8 +324,7 @@ testcases: steps: - name: run command svc camunda-zeebe-gateway type: exec - script: | - kubectl port-forward svc/camunda-zeebe-gateway 26500:26500 + script: kubectl port-forward svc/camunda-zeebe-gateway 26500:26500 retry: 2 delay: 10 - name: Check camunda-zeebe-gateway @@ -333,17 +332,11 @@ testcases: method: GET url: "http://localhost:26500" retry: 2 - delay: 10 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - ################################################## + delay: 3 + ################################################## - name: run command for svc/camunda-operate type: exec - script: | - kubectl port-forward svc/camunda-operate 8081:80 + script: kubectl port-forward svc/camunda-operate 8081:80 retry: 2 delay: 1 - name: Check svc/camunda-operate @@ -352,36 +345,23 @@ testcases: url: "http://localhost:8081" retry: 2 delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - ######################################################## - name: run command svc/camunda-tasklist type: exec - script: | - kubectl port-forward svc/camunda-tasklist 8082:80 + script: kubectl port-forward svc/camunda-tasklist 8082:80 retry: 2 - delay: 10 + delay: 3 - name: Check camunda-tasklist type: http method: GET url: "http://localhost:8082" retry: 2 - delay: 10 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 + delay: 3 ################################################## - name: run command for svc/camunda-optimize type: exec - script: | - kubectl port-forward svc/camunda-optimize 8083:80 + script: kubectl port-forward svc/camunda-optimize 8083:80 retry: 2 delay: 1 - name: Check svc/camunda-optimize @@ -389,19 +369,11 @@ testcases: method: GET url: "http://localhost:8083" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - + delay: 3 ######################################################## - - name: run command for svc/camunda-connectors type: exec - script: | - kubectl port-forward svc/camunda-connectors 8088:8080 + script: kubectl port-forward svc/camunda-connectors 8088:8080 retry: 2 delay: 1 - name: Check svc/camunda-connectors @@ -409,19 +381,11 @@ testcases: method: GET url: "http://localhost:8088" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - + delay: 3 ###################################################### - - name: run command for svc/camunda-web-modeler-webapp type: exec - script: | - kubectl port-forward svc/camunda-web-modeler-webapp 8084:80 + script: kubectl port-forward svc/camunda-web-modeler-webapp 8084:80 retry: 2 delay: 1 - name: Check svc/camunda-web-modeler-webapp @@ -429,20 +393,11 @@ testcases: method: GET url: "http://localhost:8084" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - - + delay: 3 ###################################################### - - name: run command for svc/camunda-web-modeler-websockets type: exec - script: | - kubectl port-forward svc/camunda-web-modeler-websockets 8085:80 + script: kubectl port-forward svc/camunda-web-modeler-websockets 8085:80 retry: 2 delay: 1 - name: Check svc/camunda-web-modeler-websockets @@ -450,20 +405,11 @@ testcases: method: GET url: "http://localhost:8085" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - - + delay: 3 ###################################################### - - name: run command for svc/camunda-keycloak type: exec - script: | - kubectl port-forward svc/camunda-keycloak 18080:80 + script: kubectl port-forward svc/camunda-keycloak 18080:80 retry: 2 delay: 1 - name: Check svc/camunda-keycloak @@ -471,20 +417,11 @@ testcases: method: GET url: "http://localhost:18080" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - - + delay: 3 ######################################################## - - name: run command for svc/camunda-console type: exec - script: | - kubectl port-forward svc/camunda-console 8087:80 + script: kubectl port-forward svc/camunda-console 8087:80 retry: 2 delay: 1 - name: Check svc/camunda-operate @@ -492,20 +429,11 @@ testcases: method: GET url: "http://localhost:8087" retry: 2 - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - - + delay: 3 ###################################################### - - name: run command for svc/camunda-keycloak type: exec - script: | - kubectl port-forward svc/camunda-keycloak 18080:80 + script: kubectl port-forward svc/camunda-keycloak 18080:80 retry: 2 delay: 1 - name: Check svc/camunda-keycloak @@ -513,6 +441,7 @@ testcases: method: GET url: "http://localhost:18080" retry: 2 +<<<<<<< HEAD delay: 1 info: | = Request Body: {{ .result.request.body }} @@ -522,3 +451,6 @@ testcases: >>>>>>> feb83bd5 (Update testsuite-core.yaml) +======= + delay: 3 +>>>>>>> 58b6abe4 (Update testsuite-core.yaml) From 4781b4fc004f9c2379c8abcd6a4547f6f446d305 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelgawad <55905528+mabdelgowa@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:48:01 +0200 Subject: [PATCH 03/12] Update testsuite-core.yaml edit to use the correct letter case. --- .../testsuites/vars/files/testsuite-core.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 5fa7ca79d3..40fee371ad 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -319,8 +319,8 @@ testcases: # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway - ########################################################portforward checks################################## -- name: TEST - portforward for camunda + ########################################################Port forwarding Camunda components################################## +- name: TEST - port forward for camunda steps: - name: run command svc camunda-zeebe-gateway type: exec @@ -334,12 +334,12 @@ testcases: retry: 2 delay: 3 ################################################## - - name: run command for svc/camunda-operate + - name: Port forward to Operate service type: exec - script: kubectl port-forward svc/camunda-operate 8081:80 + script: kubectl port-forward svc/camunda-operate 8081:80 retry: 2 delay: 1 - - name: Check svc/camunda-operate + - name: Verify port forwarding works for Operate service. type: http method: GET url: "http://localhost:8081" From b0da0f7a31be3cb950c63511af6c050b559e8cd2 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelgawad <55905528+mabdelgowa@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:25:31 +0200 Subject: [PATCH 04/12] Update testsuite-core.yaml "rebase" adding testing range --- .../testsuites/vars/files/testsuite-core.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 40fee371ad..4d66916405 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -453,4 +453,19 @@ testcases: >>>>>>> feb83bd5 (Update testsuite-core.yaml) ======= delay: 3 +<<<<<<< HEAD >>>>>>> 58b6abe4 (Update testsuite-core.yaml) +======= + +##############loop for testing ############### + +- name: TEST - Interacting with Camunda login page + steps: + - name: "{{ .value.component }}" + vars: + localhosturl: http://localhost + type: http + range: + - component: Check svc/camunda-keycloak + url: "{{ .localhosturl }}:18080" +>>>>>>> 25cfbac7 (Update testsuite-core.yaml) From 9b54f1ad28e1feab5c52d96233459bae0bad69f7 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelgawad <55905528+mabdelgowa@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:19:28 +0200 Subject: [PATCH 05/12] use range in testing area only "rebase" --- .../testsuites/vars/files/testsuite-core.yaml | 94 ++++++++----------- 1 file changed, 37 insertions(+), 57 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 4d66916405..85b77aec90 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -320,31 +320,15 @@ testcases: # - result.body ShouldContainSubstring zeebe-gateway ########################################################Port forwarding Camunda components################################## -- name: TEST - port forward for camunda +- name: Port forwarding Camunda components steps: - - name: run command svc camunda-zeebe-gateway - type: exec - script: kubectl port-forward svc/camunda-zeebe-gateway 26500:26500 - retry: 2 - delay: 10 - - name: Check camunda-zeebe-gateway - type: http - method: GET - url: "http://localhost:26500" - retry: 2 - delay: 3 ################################################## - name: Port forward to Operate service type: exec script: kubectl port-forward svc/camunda-operate 8081:80 retry: 2 delay: 1 - - name: Verify port forwarding works for Operate service. - type: http - method: GET - url: "http://localhost:8081" - retry: 2 - delay: 1 + ######################################################## - name: run command svc/camunda-tasklist @@ -352,78 +336,49 @@ testcases: script: kubectl port-forward svc/camunda-tasklist 8082:80 retry: 2 delay: 3 - - name: Check camunda-tasklist - type: http - method: GET - url: "http://localhost:8082" - retry: 2 - delay: 3 + ################################################## - name: run command for svc/camunda-optimize type: exec script: kubectl port-forward svc/camunda-optimize 8083:80 retry: 2 delay: 1 - - name: Check svc/camunda-optimize - type: http - method: GET - url: "http://localhost:8083" - retry: 2 - delay: 3 + ######################################################## - name: run command for svc/camunda-connectors type: exec script: kubectl port-forward svc/camunda-connectors 8088:8080 retry: 2 delay: 1 - - name: Check svc/camunda-connectors - type: http - method: GET - url: "http://localhost:8088" - retry: 2 - delay: 3 + ###################################################### - name: run command for svc/camunda-web-modeler-webapp type: exec script: kubectl port-forward svc/camunda-web-modeler-webapp 8084:80 retry: 2 delay: 1 - - name: Check svc/camunda-web-modeler-webapp - type: http - method: GET - url: "http://localhost:8084" - retry: 2 - delay: 3 + ###################################################### - name: run command for svc/camunda-web-modeler-websockets type: exec script: kubectl port-forward svc/camunda-web-modeler-websockets 8085:80 retry: 2 delay: 1 - - name: Check svc/camunda-web-modeler-websockets - type: http - method: GET - url: "http://localhost:8085" - retry: 2 - delay: 3 + ###################################################### - name: run command for svc/camunda-keycloak type: exec script: kubectl port-forward svc/camunda-keycloak 18080:80 retry: 2 delay: 1 - - name: Check svc/camunda-keycloak - type: http - method: GET - url: "http://localhost:18080" - retry: 2 - delay: 3 + ######################################################## - name: run command for svc/camunda-console type: exec script: kubectl port-forward svc/camunda-console 8087:80 retry: 2 delay: 1 +<<<<<<< HEAD - name: Check svc/camunda-operate type: http method: GET @@ -456,16 +411,41 @@ testcases: <<<<<<< HEAD >>>>>>> 58b6abe4 (Update testsuite-core.yaml) ======= +======= +>>>>>>> 0eacee3e (use range in testing area only) ##############loop for testing ############### -- name: TEST - Interacting with Camunda login page +- name: Verify port forwarding works steps: - - name: "{{ .value.component }}" + - name: "Verify port forwarding works for {{ .value.component }} service" vars: localhosturl: http://localhost type: http range: - - component: Check svc/camunda-keycloak + - component: zeebe-gateway + url: "{{ .localhosturl }}:26500" + - component: Operate + url: "{{ .localhosturl }}:8081" + - component: tasklist + url: "{{ .localhosturl }}:8082" + - component: optimize + url: "{{ .localhosturl }}:8083" + - component: connectors + url: "{{ .localhosturl }}:8088" + - component: web-modeler-webapp + url: "{{ .localhosturl }}:8084" + - component: web-modeler-websockets + url: "{{ .localhosturl }}:8085" + - component: operate + url: "{{ .localhosturl }}:8087" + - component: keycloak url: "{{ .localhosturl }}:18080" +<<<<<<< HEAD >>>>>>> 25cfbac7 (Update testsuite-core.yaml) +======= + method: GET + url: "{{ .value.url }}" + retry: 2 + delay: 3 +>>>>>>> 0eacee3e (use range in testing area only) From 3075f160c9df51045f847b5405b30bbe033c2772 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Dec 2024 01:59:52 +0200 Subject: [PATCH 06/12] Using loop for port forwarding and verification "after rebase" --- .../golden/zeebe-service-monitor.golden.yaml | 2 +- .../testsuites/vars/files/testsuite-core.yaml | 50 +++++++++++++++---- 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/charts/camunda-platform-8.3/test/unit/camunda/golden/zeebe-service-monitor.golden.yaml b/charts/camunda-platform-8.3/test/unit/camunda/golden/zeebe-service-monitor.golden.yaml index 0a8a817490..25f68633f4 100644 --- a/charts/camunda-platform-8.3/test/unit/camunda/golden/zeebe-service-monitor.golden.yaml +++ b/charts/camunda-platform-8.3/test/unit/camunda/golden/zeebe-service-monitor.golden.yaml @@ -21,4 +21,4 @@ spec: - honorLabels: true path: /actuator/prometheus port: http - interval: 10s \ No newline at end of file + interval: 10s diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 85b77aec90..f43458baa6 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -322,13 +322,34 @@ testcases: ########################################################Port forwarding Camunda components################################## - name: Port forwarding Camunda components steps: - ################################################## - - name: Port forward to Operate service + - name: "Port forward to {{ .value.component }} service " + vars: + portforward: kubectl port-forward svc type: exec - script: kubectl port-forward svc/camunda-operate 8081:80 + range: + - component: zeebe-gateway + script: "{{.portforward}}/camunda-zeebe-gateway 26500:26500" + - component: Operate + script: "{{.portforward}}/camunda-operate 8081:80" + - component: tasklist + script: "{{.portforward}}/camunda-tasklist 8082:80" + - component: optimize + script: "{{.portforward}}/camunda-optimize 8083:80" + - component: web-modeler-webapp + script: "{{.portforward}}/camunda-web-modeler-webapp 8084:80" + - component: connectors + script: "{{.portforward}}/camunda-connectors 8088:80" + - component: web-modeler-websockets + script: "{{.portforward}}/camunda-web-modeler-websockets 8085:80" + - component: console + script: "{{.portforward}}/camunda-console 8087:80" + - component: camunda-keycloak + script: "{{.portforward}}/camunda-keycloak 18080:80" + script: "{{ .value.script }}" retry: 2 delay: 1 +<<<<<<< HEAD ######################################################## - name: run command svc/camunda-tasklist @@ -415,6 +436,9 @@ testcases: >>>>>>> 0eacee3e (use range in testing area only) ##############loop for testing ############### +======= +##############Loop to verify port forwarding works ############### +>>>>>>> 46f22e1d (Using loop for port forwarding and verification) - name: Verify port forwarding works steps: @@ -424,26 +448,30 @@ testcases: type: http range: - component: zeebe-gateway - url: "{{ .localhosturl }}:26500" + url: "{{.localhosturl}}:26500" - component: Operate - url: "{{ .localhosturl }}:8081" + url: "{{.localhosturl}}:8081" - component: tasklist - url: "{{ .localhosturl }}:8082" + url: "{{.localhosturl}}:8082" - component: optimize - url: "{{ .localhosturl }}:8083" + url: "{{.localhosturl}}:8083" - component: connectors - url: "{{ .localhosturl }}:8088" + url: "{{.localhosturl}}:8088" - component: web-modeler-webapp - url: "{{ .localhosturl }}:8084" + url: "{{.localhosturl}}:8084" - component: web-modeler-websockets - url: "{{ .localhosturl }}:8085" + url: "{{.localhosturl}}:8085" - component: operate - url: "{{ .localhosturl }}:8087" + url: "{{.localhosturl}}:8087" - component: keycloak +<<<<<<< HEAD url: "{{ .localhosturl }}:18080" <<<<<<< HEAD >>>>>>> 25cfbac7 (Update testsuite-core.yaml) ======= +======= + url: "{{.localhosturl}}:18080" +>>>>>>> 46f22e1d (Using loop for port forwarding and verification) method: GET url: "{{ .value.url }}" retry: 2 From cbef0a0552c07765b79cdba7c80d3ee4efbbe7e6 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Dec 2024 02:10:34 +0200 Subject: [PATCH 07/12] "adding two loops" --- .../testsuites/vars/files/testsuite-core.yaml | 98 ------------------- 1 file changed, 98 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index f43458baa6..8d179b1f25 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -313,9 +313,7 @@ testcases: # - result.body ShouldContainSubstring identity # - result.body ShouldContainSubstring optimize # - result.body ShouldContainSubstring web-modeler-restapi -<<<<<<< HEAD # - result.body ShouldContainSubstring core -======= # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway @@ -349,96 +347,7 @@ testcases: retry: 2 delay: 1 -<<<<<<< HEAD - ######################################################## - - - name: run command svc/camunda-tasklist - type: exec - script: kubectl port-forward svc/camunda-tasklist 8082:80 - retry: 2 - delay: 3 - - ################################################## - - name: run command for svc/camunda-optimize - type: exec - script: kubectl port-forward svc/camunda-optimize 8083:80 - retry: 2 - delay: 1 - - ######################################################## - - name: run command for svc/camunda-connectors - type: exec - script: kubectl port-forward svc/camunda-connectors 8088:8080 - retry: 2 - delay: 1 - - ###################################################### - - name: run command for svc/camunda-web-modeler-webapp - type: exec - script: kubectl port-forward svc/camunda-web-modeler-webapp 8084:80 - retry: 2 - delay: 1 - - ###################################################### - - name: run command for svc/camunda-web-modeler-websockets - type: exec - script: kubectl port-forward svc/camunda-web-modeler-websockets 8085:80 - retry: 2 - delay: 1 - - ###################################################### - - name: run command for svc/camunda-keycloak - type: exec - script: kubectl port-forward svc/camunda-keycloak 18080:80 - retry: 2 - delay: 1 - - ######################################################## - - name: run command for svc/camunda-console - type: exec - script: kubectl port-forward svc/camunda-console 8087:80 - retry: 2 - delay: 1 -<<<<<<< HEAD - - name: Check svc/camunda-operate - type: http - method: GET - url: "http://localhost:8087" - retry: 2 - delay: 3 - ###################################################### - - name: run command for svc/camunda-keycloak - type: exec - script: kubectl port-forward svc/camunda-keycloak 18080:80 - retry: 2 - delay: 1 - - name: Check svc/camunda-keycloak - type: http - method: GET - url: "http://localhost:18080" - retry: 2 -<<<<<<< HEAD - delay: 1 - info: | - = Request Body: {{ .result.request.body }} - = Response Body: {{ .result.body }} - assertions: - - result.statuscode ShouldEqual 200 - - ->>>>>>> feb83bd5 (Update testsuite-core.yaml) -======= - delay: 3 -<<<<<<< HEAD ->>>>>>> 58b6abe4 (Update testsuite-core.yaml) -======= -======= ->>>>>>> 0eacee3e (use range in testing area only) - -##############loop for testing ############### -======= ##############Loop to verify port forwarding works ############### ->>>>>>> 46f22e1d (Using loop for port forwarding and verification) - name: Verify port forwarding works steps: @@ -464,16 +373,9 @@ testcases: - component: operate url: "{{.localhosturl}}:8087" - component: keycloak -<<<<<<< HEAD url: "{{ .localhosturl }}:18080" -<<<<<<< HEAD ->>>>>>> 25cfbac7 (Update testsuite-core.yaml) -======= -======= url: "{{.localhosturl}}:18080" ->>>>>>> 46f22e1d (Using loop for port forwarding and verification) method: GET url: "{{ .value.url }}" retry: 2 delay: 3 ->>>>>>> 0eacee3e (use range in testing area only) From f5add7142eede58899ee9d9f3c476d0a13aae155 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Dec 2024 15:12:29 +0200 Subject: [PATCH 08/12] "removing HEAD lines" --- .../integration/testsuites/vars/files/testsuite-core.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 8d179b1f25..3feefffd63 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -11,17 +11,14 @@ vars: skipTestWebModeler: '{{ .SKIP_TEST_WEBMODELER }}' testcases: -<<<<<<< HEAD - name: Core test suite is disabled -======= # https://docs.camunda.io/docs/self-managed/identity/user-guide/generating-m2m-tokens/ - name: TEST - Generating machine-to-machine token description: | Test generating tokens from Keycloak for components that use client type "CONFIDENTIAL". This test will not work with type "PUBLIC" because "Public client not allowed to retrieve service account". https://datatracker.ietf.org/doc/html/rfc6749#section-2.1 ->>>>>>> feb83bd5 (Update testsuite-core.yaml) steps: - type: exec script: echo 'Core test suite is disabled till full 8.7 refactor' @@ -374,7 +371,6 @@ testcases: url: "{{.localhosturl}}:8087" - component: keycloak url: "{{ .localhosturl }}:18080" - url: "{{.localhosturl}}:18080" method: GET url: "{{ .value.url }}" retry: 2 From 461d2d0c494c6d7bc71186ee7104f76a2ba4734d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Dec 2024 21:24:53 +0200 Subject: [PATCH 09/12] script is tested locally and passed --- .../testsuites/vars/files/testsuite-core.yaml | 92 +++++++++---------- 1 file changed, 45 insertions(+), 47 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 3feefffd63..16a42bd01c 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -13,7 +13,7 @@ vars: testcases: - name: Core test suite is disabled -# https://docs.camunda.io/docs/self-managed/identity/user-guide/generating-m2m-tokens/ + # https://docs.camunda.io/docs/self-managed/identity/user-guide/generating-m2m-tokens/ - name: TEST - Generating machine-to-machine token description: | Test generating tokens from Keycloak for components that use client type "CONFIDENTIAL". @@ -313,65 +313,63 @@ testcases: # - result.body ShouldContainSubstring core # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway - +############################################################################# +#- name: run command svc/camunda-zeebe-gateway +# steps: +# - type: exec +# script: "kubectl port-forward svc/camunda-zeebe-gateway 8080:8080 > /dev/null 2>&1 & curl localhost:8080" +#- name: Check camunda-operate +# steps: +# - type: http +# method: GET +# url: "http://localhost:8081" +# retry: 2 +# delay: 1 ########################################################Port forwarding Camunda components################################## - name: Port forwarding Camunda components steps: - name: "Port forward to {{ .value.component }} service " - vars: - portforward: kubectl port-forward svc type: exec range: - component: zeebe-gateway - script: "{{.portforward}}/camunda-zeebe-gateway 26500:26500" - - component: Operate - script: "{{.portforward}}/camunda-operate 8081:80" + serviceName: camunda-zeebe-gateway + servicePort: 26500 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}}" + - component: operate + serviceName: camunda-operate + servicePort: 8081 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - component: tasklist - script: "{{.portforward}}/camunda-tasklist 8082:80" + serviceName: camunda-tasklist + servicePort: 8082 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - component: optimize - script: "{{.portforward}}/camunda-optimize 8083:80" + serviceName: camunda-optimize + servicePort: 8083 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - component: web-modeler-webapp - script: "{{.portforward}}/camunda-web-modeler-webapp 8084:80" + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - component: connectors - script: "{{.portforward}}/camunda-connectors 8088:80" - - component: web-modeler-websockets - script: "{{.portforward}}/camunda-web-modeler-websockets 8085:80" + serviceName: camunda-connectors + servicePort: 8088 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + - component: console + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - component: console - script: "{{.portforward}}/camunda-console 8087:80" - - component: camunda-keycloak - script: "{{.portforward}}/camunda-keycloak 18080:80" - script: "{{ .value.script }}" + serviceName: camunda-console + servicePort: 8087 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + - component: keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + script: "{{.value.script}} " retry: 2 - delay: 1 + delay: 2 ##############Loop to verify port forwarding works ############### -- name: Verify port forwarding works - steps: - - name: "Verify port forwarding works for {{ .value.component }} service" - vars: - localhosturl: http://localhost - type: http - range: - - component: zeebe-gateway - url: "{{.localhosturl}}:26500" - - component: Operate - url: "{{.localhosturl}}:8081" - - component: tasklist - url: "{{.localhosturl}}:8082" - - component: optimize - url: "{{.localhosturl}}:8083" - - component: connectors - url: "{{.localhosturl}}:8088" - - component: web-modeler-webapp - url: "{{.localhosturl}}:8084" - - component: web-modeler-websockets - url: "{{.localhosturl}}:8085" - - component: operate - url: "{{.localhosturl}}:8087" - - component: keycloak - url: "{{ .localhosturl }}:18080" - method: GET - url: "{{ .value.url }}" - retry: 2 - delay: 3 From 55f2833c35b7a552ba78b921ae0ba01279fcbefe Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Dec 2024 21:30:10 +0200 Subject: [PATCH 10/12] commented line was deleted --- .../test/integration/testsuites/vars/files/testsuite-core.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index 16a42bd01c..f4df44947b 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -370,6 +370,3 @@ testcases: script: "{{.value.script}} " retry: 2 delay: 2 - -##############Loop to verify port forwarding works ############### - From 09d367b731bec7250407cfcf10cada095ddd2206 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Dec 2024 23:20:04 +0200 Subject: [PATCH 11/12] "All components are capitalized, deleting unnecessary lines,only one line for script" --- .../testsuites/vars/files/testsuite-core.yaml | 43 +++++-------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml index f4df44947b..9c2ab5d53e 100644 --- a/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-alpha/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -313,60 +313,39 @@ testcases: # - result.body ShouldContainSubstring core # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway -############################################################################# -#- name: run command svc/camunda-zeebe-gateway -# steps: -# - type: exec -# script: "kubectl port-forward svc/camunda-zeebe-gateway 8080:8080 > /dev/null 2>&1 & curl localhost:8080" -#- name: Check camunda-operate -# steps: -# - type: http -# method: GET -# url: "http://localhost:8081" -# retry: 2 -# delay: 1 ########################################################Port forwarding Camunda components################################## - name: Port forwarding Camunda components steps: - name: "Port forward to {{ .value.component }} service " type: exec range: - - component: zeebe-gateway + - component: Zeebe Gateway serviceName: camunda-zeebe-gateway servicePort: 26500 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}}" - - component: operate + - component: Operate serviceName: camunda-operate servicePort: 8081 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: tasklist + - component: Tasklist serviceName: camunda-tasklist servicePort: 8082 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: optimize + - component: Optimize serviceName: camunda-optimize servicePort: 8083 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: web-modeler-webapp + - component: Web-modeler-webapp serviceName: camunda-web-modeler-webapp servicePort: 8084 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: connectors + - component: Connectors serviceName: camunda-connectors servicePort: 8088 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: console + - component: Web Modeler Websockets serviceName: camunda-web-modeler-websockets - servicePort: 8085 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: console + servicePort: 8085 + - component: Console serviceName: camunda-console servicePort: 8087 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - - component: keycloak + - component: Keycloak serviceName: camunda-keycloak servicePort: 18080 - script: "kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " - script: "{{.value.script}} " + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " retry: 2 delay: 2 From 5721268773e8cadc4f069950bf84f0f363fd599a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Dec 2024 23:31:55 +0200 Subject: [PATCH 12/12] All changes are added to other versions --- .../testsuites/vars/files/testsuite-core.yaml | 36 ++++++++++++++++++ .../testsuites/vars/files/testsuite-core.yaml | 36 ++++++++++++++++++ .../testsuites/vars/files/testsuite-core.yaml | 37 +++++++++++++++++++ .../testsuites/vars/files/testsuite-core.yaml | 36 ++++++++++++++++++ .../testsuites/vars/files/testsuite-core.yaml | 36 ++++++++++++++++++ 5 files changed, 181 insertions(+) diff --git a/charts/camunda-platform-8.2/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-8.2/test/integration/testsuites/vars/files/testsuite-core.yaml index 907d54ecda..66b3ee79bd 100644 --- a/charts/camunda-platform-8.2/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-8.2/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -250,3 +250,39 @@ testcases: # = Response Body: {{ .result.body }} assertions: - result.statuscode ShouldEqual 200 + ########################################################Port forwarding Camunda components################################## +- name: Port forwarding Camunda components + steps: + - name: "Port forward to {{ .value.component }} service " + type: exec + range: + - component: Zeebe Gateway + serviceName: camunda-zeebe-gateway + servicePort: 26500 + - component: Operate + serviceName: camunda-operate + servicePort: 8081 + - component: Tasklist + serviceName: camunda-tasklist + servicePort: 8082 + - component: Optimize + serviceName: camunda-optimize + servicePort: 8083 + - component: Web-modeler-webapp + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + - component: Connectors + serviceName: camunda-connectors + servicePort: 8088 + - component: Web Modeler Websockets + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + - component: Console + serviceName: camunda-console + servicePort: 8087 + - component: Keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + retry: 2 + delay: 2 diff --git a/charts/camunda-platform-8.3/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-8.3/test/integration/testsuites/vars/files/testsuite-core.yaml index 9ce709d28f..73429b5317 100644 --- a/charts/camunda-platform-8.3/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-8.3/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -272,3 +272,39 @@ testcases: - result.body ShouldContainSubstring web-modeler-restapi - result.body ShouldContainSubstring zeebe - result.body ShouldContainSubstring zeebe-gateway + ########################################################Port forwarding Camunda components################################## +- name: Port forwarding Camunda components + steps: + - name: "Port forward to {{ .value.component }} service " + type: exec + range: + - component: Zeebe Gateway + serviceName: camunda-zeebe-gateway + servicePort: 26500 + - component: Operate + serviceName: camunda-operate + servicePort: 8081 + - component: Tasklist + serviceName: camunda-tasklist + servicePort: 8082 + - component: Optimize + serviceName: camunda-optimize + servicePort: 8083 + - component: Web-modeler-webapp + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + - component: Connectors + serviceName: camunda-connectors + servicePort: 8088 + - component: Web Modeler Websockets + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + - component: Console + serviceName: camunda-console + servicePort: 8087 + - component: Keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + retry: 2 + delay: 2 diff --git a/charts/camunda-platform-8.4/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-8.4/test/integration/testsuites/vars/files/testsuite-core.yaml index 9fccf68879..6db8d4a812 100644 --- a/charts/camunda-platform-8.4/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-8.4/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -298,3 +298,40 @@ testcases: # - result.body ShouldContainSubstring web-modeler-restapi # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway + + ########################################################Port forwarding Camunda components################################## +- name: Port forwarding Camunda components + steps: + - name: "Port forward to {{ .value.component }} service " + type: exec + range: + - component: Zeebe Gateway + serviceName: camunda-zeebe-gateway + servicePort: 26500 + - component: Operate + serviceName: camunda-operate + servicePort: 8081 + - component: Tasklist + serviceName: camunda-tasklist + servicePort: 8082 + - component: Optimize + serviceName: camunda-optimize + servicePort: 8083 + - component: Web-modeler-webapp + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + - component: Connectors + serviceName: camunda-connectors + servicePort: 8088 + - component: Web Modeler Websockets + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + - component: Console + serviceName: camunda-console + servicePort: 8087 + - component: Keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + retry: 2 + delay: 2 diff --git a/charts/camunda-platform-8.5/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-8.5/test/integration/testsuites/vars/files/testsuite-core.yaml index 62d344fbb7..b2cbd75e44 100644 --- a/charts/camunda-platform-8.5/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-8.5/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -313,3 +313,39 @@ testcases: # - result.body ShouldContainSubstring web-modeler-restapi # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway + ########################################################Port forwarding Camunda components################################## +- name: Port forwarding Camunda components + steps: + - name: "Port forward to {{ .value.component }} service " + type: exec + range: + - component: Zeebe Gateway + serviceName: camunda-zeebe-gateway + servicePort: 26500 + - component: Operate + serviceName: camunda-operate + servicePort: 8081 + - component: Tasklist + serviceName: camunda-tasklist + servicePort: 8082 + - component: Optimize + serviceName: camunda-optimize + servicePort: 8083 + - component: Web-modeler-webapp + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + - component: Connectors + serviceName: camunda-connectors + servicePort: 8088 + - component: Web Modeler Websockets + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + - component: Console + serviceName: camunda-console + servicePort: 8087 + - component: Keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + retry: 2 + delay: 2 diff --git a/charts/camunda-platform-8.6/test/integration/testsuites/vars/files/testsuite-core.yaml b/charts/camunda-platform-8.6/test/integration/testsuites/vars/files/testsuite-core.yaml index 82ac05e750..8cf882f6e1 100644 --- a/charts/camunda-platform-8.6/test/integration/testsuites/vars/files/testsuite-core.yaml +++ b/charts/camunda-platform-8.6/test/integration/testsuites/vars/files/testsuite-core.yaml @@ -318,3 +318,39 @@ testcases: # - result.body ShouldContainSubstring web-modeler-restapi # - result.body ShouldContainSubstring zeebe # - result.body ShouldContainSubstring zeebe-gateway + ########################################################Port forwarding Camunda components################################## +- name: Port forwarding Camunda components + steps: + - name: "Port forward to {{ .value.component }} service " + type: exec + range: + - component: Zeebe Gateway + serviceName: camunda-zeebe-gateway + servicePort: 26500 + - component: Operate + serviceName: camunda-operate + servicePort: 8081 + - component: Tasklist + serviceName: camunda-tasklist + servicePort: 8082 + - component: Optimize + serviceName: camunda-optimize + servicePort: 8083 + - component: Web-modeler-webapp + serviceName: camunda-web-modeler-webapp + servicePort: 8084 + - component: Connectors + serviceName: camunda-connectors + servicePort: 8088 + - component: Web Modeler Websockets + serviceName: camunda-web-modeler-websockets + servicePort: 8085 + - component: Console + serviceName: camunda-console + servicePort: 8087 + - component: Keycloak + serviceName: camunda-keycloak + servicePort: 18080 + script: " kubectl port-forward svc/{{.value.serviceName}} {{.value.servicePort}}:{{.value.servicePort}} > /dev/null 2>&1 & curl localhost:{{.value.servicePort}} " + retry: 2 + delay: 2