Files
containers/.vib/osclass/goss/osclass.yaml
Carlos Rodríguez Hernández 3a07ef0579 Update Goss scripts making it compatible with Goss 4 (#51894)
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2023-10-17 18:02:23 +02:00

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
contents:
- /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
contents:
- "SSLEngine on"
- /DocumentRoot.*/opt/bitnami/osclass/
- 'RewriteRule "^/oc-admin$"'
group:
daemon:
exists: true
user:
daemon:
exists: true