From 900cbfc1f98ca13f99055cf3197e688e21bb0022 Mon Sep 17 00:00:00 2001 From: Stefan Drzazga Date: Wed, 15 Feb 2023 14:59:31 -0500 Subject: Add sentinel to terraform feature (#452) * Introducing Sentinel installation * Modifying docs for sentinel * Modifying tests for sentinel * Revert "Modifying docs for sentinel" This reverts commit 818894b22fe022d29d59d3748ddd6103616773a6. * Modifying docs for sentinel * Fixing duplication issue for sentinel url * Update src/terraform/install.sh Co-authored-by: Samruddhi Khandale * Increase minor version --------- Co-authored-by: Samruddhi Khandale --- test/terraform/install_sentinel.sh | 15 +++++++++++++++ test/terraform/scenarios.json | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/terraform/install_sentinel.sh (limited to 'test/terraform') diff --git a/test/terraform/install_sentinel.sh b/test/terraform/install_sentinel.sh new file mode 100644 index 0000000..e26ec33 --- /dev/null +++ b/test/terraform/install_sentinel.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Import test library for `check` command +source dev-container-features-test-lib + +# Check to make sure the user is vscode +check "user is vscode" whoami | grep vscode + +# Sentinel specific tests +check "sentinel" sentinel --version + +# Report result +reportResults \ No newline at end of file diff --git a/test/terraform/scenarios.json b/test/terraform/scenarios.json index 2365643..8977635 100644 --- a/test/terraform/scenarios.json +++ b/test/terraform/scenarios.json @@ -1,4 +1,12 @@ { + "install_sentinel": { + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "features": { + "terraform": { + "installSentinel": true + } + } + }, "install_tfsec": { "image": "mcr.microsoft.com/devcontainers/base:jammy", "features": { -- cgit v1.2.3