bitnami-containers/.vib/common/goss/templates/check-app-version-no-shell-...

22 lines
622 B
YAML

# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
########################
# Checks asset version via its binary inspecting stdout
# Uses a format compatible with containers without shell
# Needed vars:
# - .Vars.version.bin_name (String)
# - .Vars.version.flag (String)
########################
command:
check-app-version-no-shell-stdout:
exec:
- {{ .Vars.version.bin_name }}
- {{ .Vars.version.flag }}
exit-status: 0
{{- if hasKey .Vars.version "timeout" }}
timeout: {{ .Vars.version.timeout }}
{{- end }}
stdout:
- "{{ .Env.APP_VERSION }}"