Skip to content
Snippets Groups Projects
Commit a5be0bc9 authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-7573 OZG-7987 check if enabled

parent c7dd67f8
Branches
Tags
1 merge request!23Ozg 7573 forwarding interface
...@@ -163,11 +163,12 @@ spec: ...@@ -163,11 +163,12 @@ spec:
- name: grpc_client_zufi-manager_negotiationType - name: grpc_client_zufi-manager_negotiationType
value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "PLAINTEXT" }} value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "PLAINTEXT" }}
{{- end}} {{- end}}
{{- if (.Values.forwarding).enabled }}
- name: grpc_client_forwarder_address - name: grpc_client_forwarder_address
value: {{ (.Values.forwarder).address }} value: {{ (.Values.forwarding).address }}
- name: grpc_client_forwarder_negotiationType - name: grpc_client_forwarder_negotiationType
value: {{ (.Values.forwarder).grpcClientNegotiationType | default "TLS" }} value: {{ (.Values.forwarding).grpcClientNegotiationType | default "TLS" }}
{{- end }}
{{- if not (.Values.database).useExternal }} {{- if not (.Values.database).useExternal }}
- name: spring_data_mongodb_uri - name: spring_data_mongodb_uri
valueFrom: valueFrom:
......
...@@ -35,9 +35,22 @@ set: ...@@ -35,9 +35,22 @@ set:
bezeichner: helm bezeichner: helm
imagePullSecret: test-image-pull-secret imagePullSecret: test-image-pull-secret
tests: tests:
- it: should be disabled by default
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_forwarder_address
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_forwarder_negotiationType
any: true
- it: should set the grpc forwarder client address - it: should set the grpc forwarder client address
set: set:
forwarder: forwarding:
enabled: true
address: https://forwarder.my-wonderful-domain.local:9000 address: https://forwarder.my-wonderful-domain.local:9000
asserts: asserts:
- contains: - contains:
...@@ -46,6 +59,9 @@ tests: ...@@ -46,6 +59,9 @@ tests:
name: grpc_client_forwarder_address name: grpc_client_forwarder_address
value: https://forwarder.my-wonderful-domain.local:9000 value: https://forwarder.my-wonderful-domain.local:9000
- it: should set the default negotiation type - it: should set the default negotiation type
set:
forwarding:
enabled: true
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -54,7 +70,8 @@ tests: ...@@ -54,7 +70,8 @@ tests:
value: TLS value: TLS
- it: should set the negotiation type - it: should set the negotiation type
set: set:
forwarder: forwarding:
enabled: true
grpcClientNegotiationType: PLAINTEXT grpcClientNegotiationType: PLAINTEXT
asserts: asserts:
- contains: - contains:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment