diff --git a/.vib/express/goss/goss.yaml b/.vib/express/goss/goss.yaml new file mode 100644 index 000000000000..f3ee64e8b5be --- /dev/null +++ b/.vib/express/goss/goss.yaml @@ -0,0 +1,8 @@ +gossfile: + # 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-files.yaml: {} + ../../common/goss/templates/check-linked-libraries.yaml: {} diff --git a/.vib/express/goss/vars.yaml b/.vib/express/goss/vars.yaml new file mode 100644 index 000000000000..fdc35b94ddde --- /dev/null +++ b/.vib/express/goss/vars.yaml @@ -0,0 +1,20 @@ +binaries: + - express + - gosu + - node + - python + - wait-for-port +directories: + - mode: "0775" + paths: + - /app + # We'll only look for the additional modules + # added at compilation time + - paths: + - /opt/bitnami/express/node_modules/angular + - /opt/bitnami/express/node_modules/bower + - /opt/bitnami/express/node_modules/mongoose +files: + - paths: + - /opt/bitnami/express/app.js +root_dir: /opt/bitnami diff --git a/.vib/express/vib-publish.json b/.vib/express/vib-publish.json index f58738648055..79db24109dc1 100644 --- a/.vib/express/vib-publish.json +++ b/.vib/express/vib-publish.json @@ -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": "express/goss/goss.yaml", + "vars_file": "express/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-express" + } + } + } + }, { "action_id": "trivy", "params": { diff --git a/.vib/express/vib-verify.json b/.vib/express/vib-verify.json index 835cd556e241..60d6d830c8ff 100644 --- a/.vib/express/vib-verify.json +++ b/.vib/express/vib-verify.json @@ -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": "express/goss/goss.yaml", + "vars_file": "express/goss/vars.yaml", + "remote": { + "pod": { + "workload": "deploy-express" + } + } + } + }, { "action_id": "trivy", "params": { @@ -50,4 +66,4 @@ ] } } -} \ No newline at end of file +}