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

39 lines
976 B
YAML

# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
command:
check-app-version:
exec: grep "'version'\s*=>" /opt/bitnami/osclass/oc-content/languages/en_US/index.php
exit-status: 0
stdout:
- "{{ .Env.APP_VERSION }}"
check-enabled-modules:
exec: php -m
exit-status: 0
stdout:
{{ range $module := .Vars.phpmodules }}
- "{{ $module }}"
{{ end }}
file:
# HTTP vhost should have been properly rendered
/opt/bitnami/apache/conf/vhosts/osclass-vhost.conf:
exists: true
filetype: file
contains:
- /DocumentRoot.*/opt/bitnami/osclass/
- 'RewriteRule "^/oc-admin$"'
# HTTPS vhost should have been properly rendered
/opt/bitnami/apache/conf/vhosts/osclass-https-vhost.conf:
exists: true
filetype: file
contains:
- "SSLEngine on"
- /DocumentRoot.*/opt/bitnami/osclass/
- 'RewriteRule "^/oc-admin$"'
group:
daemon:
exists: true
user:
daemon:
exists: true