mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 14:08:07 +08:00
[bitnami/jmx-exporter] Add VIB tests (#30690)
* [bitnami/jmx-exporter] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
committed by
GitHub
parent
cddf8537aa
commit
f5454aecc1
10
.vib/jmx-exporter/goss/goss.yaml
Normal file
10
.vib/jmx-exporter/goss/goss.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../jmx-exporter/goss/jmx-exporter.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-files.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
8
.vib/jmx-exporter/goss/jmx-exporter.yaml
Normal file
8
.vib/jmx-exporter/goss/jmx-exporter.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
# The exporter jar doesn't really have a help flag
|
||||
# and exits with a "status=1" when not properly started.
|
||||
check-jmx-http-server:
|
||||
exec: java -jar /opt/bitnami/jmx-exporter/jmx_prometheus_httpserver.jar
|
||||
exit-status: 1
|
||||
stderr:
|
||||
- /Usage.*WebServer/
|
||||
7
.vib/jmx-exporter/goss/vars.yaml
Normal file
7
.vib/jmx-exporter/goss/vars.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
binaries:
|
||||
- java
|
||||
files:
|
||||
- paths:
|
||||
- /opt/bitnami/jmx-exporter/jmx_prometheus_javaagent.jar
|
||||
- /opt/bitnami/jmx-exporter/example_configs/httpserver_sample_config.yml
|
||||
root_dir: /opt/bitnami
|
||||
@@ -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": "jmx-exporter/goss/goss.yaml",
|
||||
"vars_file": "jmx-exporter/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-jmx-exporter"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": "jmx-exporter/goss/goss.yaml",
|
||||
"vars_file": "jmx-exporter/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-jmx-exporter"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user