[bitnami/cluster-autoscaler] Add VIB tests (#34259)
* [bitnami/cluster-autoscaler] Add VIB tests Signed-off-by: Andrés Bono <andresbono@vmware.com> * Apply suggestions from review Signed-off-by: Andrés Bono <andresbono@vmware.com> * Update .vib/cluster-autoscaler/goss/cluster-autoscaler.yaml Co-authored-by: Miguel Ruiz <miruiz@vmware.com> Signed-off-by: Andrés Bono <andresbono@vmware.com> --------- Signed-off-by: Andrés Bono <andresbono@vmware.com> Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
parent
78dd7a4c3d
commit
fd32f6f196
|
|
@ -0,0 +1,6 @@
|
|||
command:
|
||||
check-cluster-autoscaler-help:
|
||||
exec: cluster-autoscaler --help
|
||||
exit-status: 2
|
||||
stderr:
|
||||
- "Usage of cluster-autoscaler:"
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../cluster-autoscaler/goss/cluster-autoscaler.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-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: {}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
binaries:
|
||||
- cluster-autoscaler
|
||||
directories:
|
||||
- paths:
|
||||
- /opt/bitnami/cluster-autoscaler/log
|
||||
root_dir: /opt/bitnami
|
||||
|
|
@ -3,7 +3,8 @@
|
|||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
|
|
@ -82,6 +83,21 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "cluster-autoscaler/goss/goss.yaml",
|
||||
"vars_file": "cluster-autoscaler/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-cluster-autoscaler"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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": "cluster-autoscaler/goss/goss.yaml",
|
||||
"vars_file": "cluster-autoscaler/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-cluster-autoscaler"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue