[bitnami/*] feat: Enable Goss tests for several scratch images - ii (#77138)

This commit is contained in:
Juan Ariza Toledano
2025-02-10 14:18:39 +01:00
committed by GitHub
parent 6bc6671755
commit b30856c9e6
44 changed files with 519 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
command:
check-argo-help:
exec:
- /argo
- --help
exit-status: 0
stdout:
- "Usage:"
- "argo [flags]"

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../argo-workflow-cli/goss/argo-workflow-cli.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/argo-workflows/.spdx-argo-workflows.spdx
- mode: "0755"
paths:
- /argo
version:
bin_name: /argo
flag: version

View File

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

View File

@@ -0,0 +1,9 @@
command:
check-workflow-controller-help:
exec:
- /workflow-controller
- --help
exit-status: 0
stdout:
- "Usage:"
- "workflow-controller [flags]"

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../argo-workflow-controller/goss/argo-workflow-controller.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/argo-workflow-controller/.spdx-argo-workflow-controller.spdx
- mode: "0755"
paths:
- /workflow-controller
version:
bin_name: /workflow-controller
flag: version

View File

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

View File

@@ -0,0 +1,8 @@
command:
check-artifact-cas-help:
exec:
- /artifact-cas
- --help
exit-status: 0
stderr:
- "Usage of /artifact-cas"

View File

@@ -0,0 +1,9 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../chainloop-artifact-cas/goss/chainloop-artifact-cas.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,7 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/chainloop/.spdx-chainloop-artifact-cas.spdx
- mode: "0755"
paths:
- /artifact-cas

View File

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

View File

@@ -0,0 +1,8 @@
command:
check-atlas-help:
exec:
- /atlas
- --help
exit-status: 0
stdout:
- "atlas [command]"

View File

@@ -0,0 +1,11 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../chainloop-control-plane-migrations/goss/chainloop-control-plane-migrations.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-directories.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,11 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/chainloop/.spdx-chainloop-control-plane-migrations.spdx
- mode: "0755"
paths:
- /atlas
directories:
- mode: "0755"
paths:
- /migrations

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
@@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "chainloop-control-plane-migrations/goss/goss.yaml",
"vars_file": "chainloop-control-plane-migrations/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-chainloop-control-plane-migrations"
}
}
}
},
{
"action_id": "trivy",
"params": {

View File

@@ -0,0 +1,8 @@
command:
check-control-plane-help:
exec:
- /control-plane
- --help
exit-status: 2
stderr:
- "Usage of /control-plane"

View File

@@ -0,0 +1,9 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../chainloop-control-plane/goss/chainloop-control-plane.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,7 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/chainloop/.spdx-chainloop.spdx
- mode: "0755"
paths:
- /control-plane

View File

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

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../kaniko/goss/kaniko.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,17 @@
command:
check-executor-help:
exec:
- /kaniko/executor
- --help
exit-status: 0
stdout:
- "Usage:"
- "executor [command]"
check-warmer-help:
exec:
- /kaniko/warmer
- --help
exit-status: 0
stdout:
- "Usage:"
- "cache warmer [flags]"

View File

@@ -0,0 +1,14 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/kaniko/.spdx-kaniko.spdx
- mode: "0755"
paths:
- /kaniko/docker-credential-acr-env
- /kaniko/docker-credential-ecr-login
- /kaniko/docker-credential-gcr
- /kaniko/executor
- /kaniko/warmer
version:
bin_name: /kaniko/executor
flag: version

View File

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

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../kube-rbac-proxy/goss/kube-rbac-proxy.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-kube-rbac-proxy-help:
exec:
- /kube-rbac-proxy
- --help
exit-status: 0
stdout:
- "Usage:"
- "kube-rbac-proxy [flags]"

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/kube-rbac-proxy/.spdx-kube-rbac-proxy.spdx
- mode: "0755"
paths:
- /kube-rbac-proxy
version:
bin_name: /kube-rbac-proxy
flag: --version

View File

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

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../pinniped/goss/pinniped.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stderr.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,18 @@
command:
check-pinniped-concierge-help:
exec:
- /pinniped-concierge
- --help
exit-status: 0
stdout:
- "Usage:"
- "pinniped-concierge [flags]"
file:
/pinniped-concierge:
exists: true
filetype: symlink
linked-to: pinniped-server
/pinniped-supervisor:
exists: true
filetype: symlink
linked-to: pinniped-server

View File

@@ -0,0 +1,11 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/pinniped/.spdx-pinniped.spdx
- mode: "0755"
paths:
- /pinniped-concierge-kube-cert-agent
- /pinniped-server
version:
bin_name: /pinniped-concierge
flag: --help

View File

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

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../rabbitmq-cluster-operator/goss/rabbitmq-cluster-operator.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-manager-help:
exec:
- /manager
- --help
exit-status: 0
stdout:
- "Usage:"
- "manager [flags]"

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/rabbitmq-cluster-operator/.spdx-rabbitmq-cluster-operator.spdx
- mode: "0755"
paths:
- /manager
version:
bin_name: /manager
flag: version

View File

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

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../rmq-default-credential-updater/goss/rmq-default-credential-updater.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-default-user-credential-updater-help:
exec:
- /default-user-credential-updater
- --help
exit-status: 0
stdout:
- "Usage:"
- "default-user-credential-updater [flags]"

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/rmq-default-credential-updater/.spdx-rmq-default-credential-updater.spdx
- mode: "0755"
paths:
- /default-user-credential-updater
version:
bin_name: /default-user-credential-updater
flag: version

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
@@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "rmq-default-credential-updater/goss/goss.yaml",
"vars_file": "rmq-default-credential-updater/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-rmq-default-credential-updater"
}
}
}
},
{
"action_id": "trivy",
"params": {

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../rmq-messaging-topology-operator/goss/rmq-messaging-topology-operator.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-manager-help:
exec:
- /manager
- --help
exit-status: 0
stdout:
- "Usage:"
- "manager [flags]"

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/rmq-messaging-topology-operator/.spdx-rmq-messaging-topology-operator.spdx
- mode: "0755"
paths:
- /manager
version:
bin_name: /manager
flag: version

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
@@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "rmq-messaging-topology-operator/goss/goss.yaml",
"vars_file": "rmq-messaging-topology-operator/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-rmq-messaging-topology-operator"
}
}
}
},
{
"action_id": "trivy",
"params": {