d46be324e5
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
21 lines
560 B
Bash
21 lines
560 B
Bash
common_setup() {
|
|
load 'node_modules/bats-support/load'
|
|
load 'node_modules/bats-assert/load'
|
|
|
|
TESTDIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
DAGGER="${DAGGER_BINARY:-$TESTDIR/../cmd/dagger/dagger}"
|
|
export DAGGER
|
|
|
|
DAGGER_LOG_FORMAT="pretty"
|
|
export DAGGER_LOG_FORMAT
|
|
|
|
DAGGER_STORE="$(mktemp -d -t dagger-store-XXXXXX)"
|
|
export DAGGER_STORE
|
|
}
|
|
|
|
skip_unless_secrets_available() {
|
|
local inputFile="$1"
|
|
sops exec-file "$inputFile" echo > /dev/null 2>&1 || skip "$inputFile cannot be decrypted"
|
|
}
|