bitnami-containers/.vib/openresty/goss/openresty.yaml

46 lines
1.1 KiB
YAML

file:
/opt/bitnami/openresty/nginx/html:
exists: true
filetype: symlink
linked-to: /app
/opt/bitnami/openresty/nginx/conf/bitnami/certs:
exists: true
filetype: symlink
linked-to: /certs
/opt/bitnami/openresty/nginx/logs/access.log:
exists: true
filetype: symlink
linked-to: /dev/stdout
/opt/bitnami/openresty/nginx/logs/error.log:
exists: true
filetype: symlink
linked-to: /dev/stderr
# Check custom configuration
/opt/bitnami/openresty/nginx/conf/nginx.conf:
exists: true
filetype: file
contains:
- /listen.*8080/
/opt/bitnami/openresty/nginx/conf/fastcgi_params:
exists: true
filetype: file
contains:
- /fastcgi_param.*HTTP_PROXY.*""/
command:
# Revisions are displayed as "x.y.z.r" instead of "x.y.z-r"
check-app-version:
exec: openresty -v 2>&1 | grep $(echo $APP_VERSION | tr '-' '.')
exit-status: 0
check-config:
exec: openresty -t 2>&1
exit-status: 0
stdout:
- /syntax.*ok/
- /test.*successful/
check-compilation-options:
exec: openresty -V 2>&1
exit-status: 0
stdout:
- pcre-jit
- compat