mirror of
https://github.com/bitnami/containers.git
synced 2026-02-18 12:27:16 +08:00
[bitnami/neo4j] Add VIB tests (#29690)
* [bitnami/neo4j] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Add VIB triggers Signed-off-by: FraPazGal <fdepaz@vmware.com> * Use backward-compatible version test Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Apply suggestion and trigger VIB Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove gosu check Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
committed by
GitHub
parent
548496df86
commit
18dc254b03
12
.vib/neo4j/goss/goss.yaml
Normal file
12
.vib/neo4j/goss/goss.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../neo4j/goss/neo4j.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-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
24
.vib/neo4j/goss/neo4j.yaml
Normal file
24
.vib/neo4j/goss/neo4j.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
file:
|
||||
# Check config files
|
||||
/opt/bitnami/neo4j/conf/apoc.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0664"
|
||||
contains:
|
||||
- /file\.enabled.*true/
|
||||
/opt/bitnami/neo4j/conf/neo4j.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
contains:
|
||||
{{ if regexMatch "^4.+" .Env.APP_VERSION }}
|
||||
- /dbms\.directories\.data.*\/bitnami\/neo4j\/data/
|
||||
{{ else if regexMatch "^5.+" .Env.APP_VERSION }}
|
||||
- /server\.directories\.data.*\/bitnami\/neo4j\/data/
|
||||
{{ end }}
|
||||
command:
|
||||
check-neo4j-daemon:
|
||||
exec: neo4j start; neo4j status
|
||||
exit-status: 0
|
||||
timeout: 10000
|
||||
stdout:
|
||||
- "Neo4j is running"
|
||||
27
.vib/neo4j/goss/vars.yaml
Normal file
27
.vib/neo4j/goss/vars.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
binaries:
|
||||
- cypher-shell
|
||||
- java
|
||||
- neo4j
|
||||
- neo4j-admin
|
||||
directories:
|
||||
- mode: "0555"
|
||||
paths:
|
||||
- /bitnami/neo4j/import
|
||||
- /bitnami/neo4j/certificates
|
||||
- /bitnami/neo4j/conf
|
||||
- /bitnami/neo4j/plugins
|
||||
- /opt/bitnami/neo4j/lib
|
||||
- /docker-entrypoint-initdb.d
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /bitnami/neo4j/data
|
||||
- /bitnami/neo4j/metrics
|
||||
- /opt/bitnami/neo4j/conf
|
||||
- /opt/bitnami/neo4j/plugins
|
||||
- /opt/bitnami/neo4j/logs
|
||||
- /opt/bitnami/neo4j/run
|
||||
- /opt/bitnami/neo4j/.home
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: neo4j
|
||||
flag: --version
|
||||
@@ -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": "neo4j/goss/goss.yaml",
|
||||
"vars_file": "neo4j/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-neo4j"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": "neo4j/goss/goss.yaml",
|
||||
"vars_file": "neo4j/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-neo4j"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user