asteris-llc/converge

View on GitHub
blackbox/test_apply_sourcefile_remote.sh
A

No issues here. Congrats!

#!/usr/bin/env bash
set -eo pipefail

ROOT=$(pwd)
SOURCE=${1:-http://localhost:4774/api/v1/resources/modules/sourceFile.hcl}

"$ROOT"/converge server --no-token --root "$ROOT"/samples &
PID=$!
function finish {
    kill -2 $PID
}
trap finish EXIT

sleep 0.5

"$ROOT"/blackbox/test_apply.sh "$SOURCE"

Size

Lines of code
16