mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +08:00
[bitnami/*] feat: Enable Goss tests for several scratch images (#77079)
This commit is contained in:
committed by
GitHub
parent
8dc8abbc66
commit
c4a06dfb9d
8
.vib/charts-syncer/goss/charts-syncer.yaml
Normal file
8
.vib/charts-syncer/goss/charts-syncer.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-charts-syncer-help:
|
||||
exec:
|
||||
- /charts-syncer
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "charts-syncer [command]"
|
||||
10
.vib/charts-syncer/goss/goss.yaml
Normal file
10
.vib/charts-syncer/goss/goss.yaml
Normal 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
|
||||
../../charts-syncer/goss/charts-syncer.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: {}
|
||||
10
.vib/charts-syncer/goss/vars.yaml
Normal file
10
.vib/charts-syncer/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/charts-syncer/.spdx-charts-syncer.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /charts-syncer
|
||||
version:
|
||||
bin_name: /charts-syncer
|
||||
flag: version
|
||||
@@ -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": "charts-syncer/goss/goss.yaml",
|
||||
"vars_file": "charts-syncer/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-charts-syncer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
10
.vib/kubeapps-apprepository-controller/goss/goss.yaml
Normal file
10
.vib/kubeapps-apprepository-controller/goss/goss.yaml
Normal 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
|
||||
../../kubeapps-apprepository-controller/goss/kubeapps-apprepository-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: {}
|
||||
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-apprepository-controller-help:
|
||||
exec:
|
||||
- /apprepository-controller
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "apprepository-controller [flags]"
|
||||
10
.vib/kubeapps-apprepository-controller/goss/vars.yaml
Normal file
10
.vib/kubeapps-apprepository-controller/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/kubeapps-apprepository-controller/.spdx-kubeapps-apprepository-controller.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /apprepository-controller
|
||||
version:
|
||||
bin_name: /apprepository-controller
|
||||
flag: --version
|
||||
@@ -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": "kubeapps-apprepository-controller/goss/goss.yaml",
|
||||
"vars_file": "kubeapps-apprepository-controller/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-kubeapps-apprepository-controller"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
10
.vib/kubeapps-asset-syncer/goss/goss.yaml
Normal file
10
.vib/kubeapps-asset-syncer/goss/goss.yaml
Normal 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
|
||||
../../kubeapps-asset-syncer/goss/kubeapps-asset-syncer.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: {}
|
||||
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-asset-syncer-help:
|
||||
exec:
|
||||
- /asset-syncer
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "asset-syncer [flags]"
|
||||
10
.vib/kubeapps-asset-syncer/goss/vars.yaml
Normal file
10
.vib/kubeapps-asset-syncer/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/kubeapps-asset-syncer/.spdx-kubeapps-asset-syncer.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /asset-syncer
|
||||
version:
|
||||
bin_name: /asset-syncer
|
||||
flag: --version
|
||||
@@ -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": "kubeapps-asset-syncer/goss/goss.yaml",
|
||||
"vars_file": "kubeapps-asset-syncer/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-kubeapps-asset-syncer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
10
.vib/oras/goss/goss.yaml
Normal file
10
.vib/oras/goss/goss.yaml
Normal 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
|
||||
../../oras/goss/oras.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: {}
|
||||
8
.vib/oras/goss/oras.yaml
Normal file
8
.vib/oras/goss/oras.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-oras-help:
|
||||
exec:
|
||||
- /oras
|
||||
- help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "oras [command]"
|
||||
10
.vib/oras/goss/vars.yaml
Normal file
10
.vib/oras/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/oras/.spdx-oras.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /oras
|
||||
version:
|
||||
bin_name: /oras
|
||||
flag: version
|
||||
@@ -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": "oras/goss/goss.yaml",
|
||||
"vars_file": "oras/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-oras"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
10
.vib/sealed-secrets-controller/goss/goss.yaml
Normal file
10
.vib/sealed-secrets-controller/goss/goss.yaml
Normal 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
|
||||
../../sealed-secrets-controller/goss/sealed-secrets-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: {}
|
||||
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-controller-help:
|
||||
exec:
|
||||
- /controller
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "Usage of /controller"
|
||||
10
.vib/sealed-secrets-controller/goss/vars.yaml
Normal file
10
.vib/sealed-secrets-controller/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/sealed-secrets/.spdx-sealed-secrets.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /controller
|
||||
version:
|
||||
bin_name: /controller
|
||||
flag: --version
|
||||
@@ -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": "sealed-secrets-controller/goss/goss.yaml",
|
||||
"vars_file": "sealed-secrets-controller/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-sealed-secrets-controller"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
10
.vib/sealed-secrets-kubeseal/goss/goss.yaml
Normal file
10
.vib/sealed-secrets-kubeseal/goss/goss.yaml
Normal 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
|
||||
../../sealed-secrets-kubeseal/goss/sealed-secrets-kubeseal.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: {}
|
||||
@@ -0,0 +1,8 @@
|
||||
command:
|
||||
check-kubeseal-help:
|
||||
exec:
|
||||
- /kubeseal
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "Usage of /kubeseal"
|
||||
10
.vib/sealed-secrets-kubeseal/goss/vars.yaml
Normal file
10
.vib/sealed-secrets-kubeseal/goss/vars.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/sealed-secrets/.spdx-sealed-secrets.spdx
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /kubeseal
|
||||
version:
|
||||
bin_name: /kubeseal
|
||||
flag: --version
|
||||
@@ -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": "sealed-secrets-kubeseal/goss/goss.yaml",
|
||||
"vars_file": "sealed-secrets-kubeseal/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-sealed-secrets-kubeseal"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
Reference in New Issue
Block a user