mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 07:27:44 +08:00
add one more test
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user