[bitnami/java-min] tests: use /shared/busybox to sleep (#77039)

This commit is contained in:
Juan Ariza Toledano
2025-02-06 13:47:20 +01:00
committed by GitHub
parent bb244f4222
commit 0fefb540fa
3 changed files with 17 additions and 9 deletions

View File

@@ -15,12 +15,6 @@ command:
exit-status: 0
stdout:
- "Hello World"
process:
jwebserver:
running: true
port:
tcp6:8000:
listening: true
{{- $releaseFile := readFile "/etc/os-release" }}
{{- if contains "photon" $releaseFile }}
file:
@@ -30,4 +24,4 @@ file:
owner: root
group: root
filetype: file
{{- end }}
{{- end }}

View File

@@ -8,6 +8,5 @@ files:
- /opt/bitnami/java/bin/java
- /opt/bitnami/java/bin/jfr
- /opt/bitnami/java/bin/jrunscript
- /opt/bitnami/java/bin/jwebserver
- /opt/bitnami/java/bin/keytool
- /opt/bitnami/java/bin/rmiregistry

View File

@@ -4,7 +4,7 @@
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
},
"runtime_parameters": "Y29tbWFuZDogWyJqd2Vic2VydmVyIiwgIi1iIiwgIjAuMC4wLjAiXQo="
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
@@ -34,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "java-min/goss/goss.yaml",
"vars_file": "java-min/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-java-min"
}
}
}
},
{
"action_id": "trivy",
"params": {