Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubectl port-froward to integration tests #2645

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
- honorLabels: true
path: /actuator/prometheus
port: http
interval: 10s
interval: 10s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ vars:
testcases:

- name: Core test suite is disabled
# https://docs.camunda.io/docs/self-managed/identity/user-guide/generating-m2m-tokens/
mabdelgowa marked this conversation as resolved.
Show resolved Hide resolved
- 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
steps:
- type: exec
script: echo 'Core test suite is disabled till full 8.7 refactor'
Expand Down Expand Up @@ -305,3 +311,41 @@ testcases:
# - result.body ShouldContainSubstring optimize
# - result.body ShouldContainSubstring web-modeler-restapi
# - result.body ShouldContainSubstring core
# - result.body ShouldContainSubstring zeebe
# - result.body ShouldContainSubstring zeebe-gateway
########################################################Port forwarding Camunda components##################################
- name: Port forwarding Camunda components
mabdelgowa marked this conversation as resolved.
Show resolved Hide resolved
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
Loading