mirror of
https://github.com/bitnami/containers.git
synced 2026-04-06 09:17:43 +08:00
[bitnami/jsonnet] Add VIB tests (#29331)
* [bitnami/jsonnet] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Trigger VIB Signed-off-by: FraPazGal <fdepaz@vmware.com> * Add jsonnet test and remove ca one Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove ca test Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove unused files Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
committed by
GitHub
parent
01c90c2faa
commit
d4aaf8bce4
10
.vib/jsonnet/goss/goss.yaml
Normal file
10
.vib/jsonnet/goss/goss.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../jsonnet/goss/jsonnet.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-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
6
.vib/jsonnet/goss/jsonnet.yaml
Normal file
6
.vib/jsonnet/goss/jsonnet.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
command:
|
||||
check-jsonnet-file:
|
||||
exec: jsonnet ./jsonnet/goss/testfiles/test_template.jsonnet
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- VIB
|
||||
6
.vib/jsonnet/goss/testfiles/test_template.jsonnet
Normal file
6
.vib/jsonnet/goss/testfiles/test_template.jsonnet
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
test: {
|
||||
name: 'VIB',
|
||||
welcome: 'Hello World!',
|
||||
},
|
||||
}
|
||||
7
.vib/jsonnet/goss/vars.yaml
Normal file
7
.vib/jsonnet/goss/vars.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
binaries:
|
||||
- jsonnet
|
||||
- jsonnetfmt
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: jsonnet
|
||||
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": "jsonnet/goss/goss.yaml",
|
||||
"vars_file": "jsonnet/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-jsonnet"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": "jsonnet/goss/goss.yaml",
|
||||
"vars_file": "jsonnet/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-jsonnet"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user