[bitnami/tensorflow-resnet] Add VIB tests (#34975)

* [bitnami/tensorflow-resnet] Add initial tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/tensorflow-resnet] Add change in docker-compose file to trigger tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/tensorflow-resnet] Delete trigger in docker-compose file

Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com>

---------

Signed-off-by: Cori Avila <amisericordi@vmware.com>
Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com>
This commit is contained in:
Cori Avila
2023-05-24 17:49:35 +02:00
committed by GitHub
parent 0ae5a9355d
commit 29ec6e8e3e
5 changed files with 51 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
gossfile:
# Goss tests exclusive to the current container
../../tensorflow-resnet/goss/tensorflow-resnet.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-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}
../../common/goss/templates/check-spdx.yaml: {}

View File

@@ -0,0 +1,4 @@
command:
check-app-binary:
exec: resnet_client_cc
exit-status: 255

View File

@@ -0,0 +1,3 @@
binaries:
- resnet_client_cc
root_dir: /opt/bitnami

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "tensorflow-resnet/goss/goss.yaml",
"vars_file": "tensorflow-resnet/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-tensorflow-resnet"
}
}
}
},
{
"action_id": "trivy",
"params": {

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@@ -29,6 +30,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "tensorflow-resnet/goss/goss.yaml",
"vars_file": "tensorflow-resnet/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-tensorflow-resnet"
}
}
}
},
{
"action_id": "trivy",
"params": {