[bitnami/postgres-exporter] Add VIB tests (#30753)
* [bitnami/postgres-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:
parent
eb612c17d3
commit
26b64be3fc
|
|
@ -0,0 +1,9 @@
|
||||||
|
gossfile:
|
||||||
|
# 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-linked-libraries.yaml: {}
|
||||||
|
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||||
|
../../common/goss/templates/check-spdx.yaml: {}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
binaries:
|
||||||
|
- postgres_exporter
|
||||||
|
root_dir: /opt/bitnami
|
||||||
|
version:
|
||||||
|
bin_name: postgres_exporter
|
||||||
|
flag: --version
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
"resources": {
|
"resources": {
|
||||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||||
"path": "{VIB_ENV_PATH}"
|
"path": "{VIB_ENV_PATH}"
|
||||||
}
|
},
|
||||||
|
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||||
},
|
},
|
||||||
"phases": {
|
"phases": {
|
||||||
"package": {
|
"package": {
|
||||||
|
|
@ -77,9 +78,24 @@
|
||||||
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
|
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
|
||||||
"path": "/{VIB_ENV_PATH}",
|
"path": "/{VIB_ENV_PATH}",
|
||||||
"authn": {
|
"authn": {
|
||||||
"header": "Authorization",
|
"header": "Authorization",
|
||||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action_id": "goss",
|
||||||
|
"params": {
|
||||||
|
"resources": {
|
||||||
|
"path": "/.vib"
|
||||||
|
},
|
||||||
|
"tests_file": "postgres-exporter/goss/goss.yaml",
|
||||||
|
"vars_file": "postgres-exporter/goss/vars.yaml",
|
||||||
|
"remote": {
|
||||||
|
"pod": {
|
||||||
|
"workload": "deploy-postgres-exporter"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
"resources": {
|
"resources": {
|
||||||
"url": "{SHA_ARCHIVE}",
|
"url": "{SHA_ARCHIVE}",
|
||||||
"path": "{VIB_ENV_PATH}"
|
"path": "{VIB_ENV_PATH}"
|
||||||
}
|
},
|
||||||
|
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||||
},
|
},
|
||||||
"phases": {
|
"phases": {
|
||||||
"package": {
|
"package": {
|
||||||
|
|
@ -46,6 +47,21 @@
|
||||||
"OS"
|
"OS"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action_id": "goss",
|
||||||
|
"params": {
|
||||||
|
"resources": {
|
||||||
|
"path": "/.vib"
|
||||||
|
},
|
||||||
|
"tests_file": "postgres-exporter/goss/goss.yaml",
|
||||||
|
"vars_file": "postgres-exporter/goss/vars.yaml",
|
||||||
|
"remote": {
|
||||||
|
"pod": {
|
||||||
|
"workload": "deploy-postgres-exporter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue