[bitnami/ejbca] Add VIB tests (#30865)
* [bitnami/ejbca] Add VIB tests Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add trigger Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Minor fixes Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Apply suggestions Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Remove triggers Signed-off-by: Miguel Ruiz <miruiz@vmware.com> --------- Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
parent
8aa7d02004
commit
3e9455abd6
|
|
@ -0,0 +1,10 @@
|
|||
command:
|
||||
check-ejbca-help:
|
||||
exec: ejbca.sh --help
|
||||
exit-status: 0
|
||||
group:
|
||||
wildfly:
|
||||
exists: true
|
||||
user:
|
||||
wildfly:
|
||||
exists: true
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../ejbca/goss/ejbca.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../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,25 @@
|
|||
binaries:
|
||||
- java
|
||||
- jboss-cli.sh
|
||||
- mysql
|
||||
- ejbca.sh
|
||||
files:
|
||||
- mode: "0664"
|
||||
paths:
|
||||
- /opt/bitnami/wildfly/bin/standalone.conf
|
||||
directories:
|
||||
- paths:
|
||||
- /opt/bitnami/ejbca/bin
|
||||
- /opt/bitnami/ejbca/dist
|
||||
- /opt/bitnami/ejbca/sql-scripts
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /opt/bitnami/ejbca
|
||||
- /opt/bitnami/wildfly
|
||||
- /opt/bitnami/ejbca/tmp
|
||||
- /bitnami/ejbca
|
||||
- /bitnami/wildfly
|
||||
- /opt/bitnami/wildfly/standalone
|
||||
- /opt/bitnami/wildfly/domain
|
||||
- /opt/bitnami/wildfly/tmp
|
||||
root_dir: /opt/bitnami
|
||||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -33,6 +34,21 @@
|
|||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "ejbca/goss/goss.yaml",
|
||||
"vars_file": "ejbca/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-ejbca"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
|
@ -77,9 +93,9 @@
|
|||
"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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -29,6 +30,21 @@
|
|||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "ejbca/goss/goss.yaml",
|
||||
"vars_file": "ejbca/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-ejbca"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue