add one more test

This commit is contained in:
Stavros kois
2022-12-02 00:19:14 +02:00
parent 699784e238
commit 2f1b87f21c
2 changed files with 16 additions and 1 deletions

View File

@@ -48,6 +48,21 @@ tests:
- failedTemplate:
errorMessage: Invalid probe name (invalid_probe_name). Valid options are (liveness, readiness, startup)
- it: should fail with probe type auto and port protocol UDP
set:
probes:
liveness:
type: AUTO
service:
main:
ports:
main:
port: 65535
protocol: UDP
asserts:
- failedTemplate:
errorMessage: UDP Probes are not supported. Please use a different probe type or disable probes.
- it: should fail without commands on exec probe
set:
probes:

View File

@@ -60,7 +60,7 @@
{{- else if (eq $probeType "GRPC") }}
{{- printf "grpc:" | nindent 2 }}
{{- else if (eq $probeType "UDP") -}}
{{- fail "UDP Probes are not supported. Please use a different probe or disable probes." -}}
{{- fail "UDP Probes are not supported. Please use a different probe type or disable probes." -}}
{{- end -}}
{{- $probePort := $primaryPort.port -}}