mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 17:04:00 +02:00
[bitnami/ghost] Add Ghost vib tests (#31589)
* [bitnami/ghost] Add VIB tests Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
file:
|
||||
# Check if node executable directory is symlinked to default bin directory
|
||||
/opt/bitnami/ghost/bin:
|
||||
filetype: symlink
|
||||
linked-to: /opt/bitnami/ghost/versions/{{ .Env.APP_VERSION }}/node_modules/.bin
|
||||
exists: true
|
||||
user:
|
||||
ghost:
|
||||
exists: true
|
||||
group:
|
||||
ghost:
|
||||
exists: true
|
||||
@@ -0,0 +1,14 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../ghost/goss/ghost.yaml: {}
|
||||
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-app-version.yaml: {}
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-directories.yaml: {}
|
||||
../../common/goss/templates/check-files.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
@@ -0,0 +1,29 @@
|
||||
binaries:
|
||||
- mysql
|
||||
- node
|
||||
- python
|
||||
directories:
|
||||
- paths:
|
||||
- /home/ghost
|
||||
- paths:
|
||||
# Check that permissions of some directories have been
|
||||
# specifically set to 777 in postunpack phase
|
||||
- paths:
|
||||
- /bitnami/ghost
|
||||
- /opt/bitnami/ghost
|
||||
- /opt/bitnami/ghost/content
|
||||
- /opt/bitnami/ghost/content/logs
|
||||
- /.ghost
|
||||
mode: "0777"
|
||||
files:
|
||||
- paths:
|
||||
- /opt/bitnami/ghost/.ghost-cli
|
||||
mode: "0666"
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: cd /opt/bitnami/ghost && ghost
|
||||
flag: --version
|
||||
sed_in_place:
|
||||
exclude_paths:
|
||||
# Ignore Ghost node_modules directory (not bitnami-related)
|
||||
- .*\/ghost\/versions\/.*\/node_modules.*
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -77,9 +78,24 @@
|
||||
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
|
||||
"path": "/{VIB_ENV_PATH}",
|
||||
"authn": {
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "ghost/goss/goss.yaml",
|
||||
"vars_file": "ghost/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-ghost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -46,6 +47,21 @@
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "ghost/goss/goss.yaml",
|
||||
"vars_file": "ghost/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-ghost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user