cyberark/secretless-broker

View on GitHub
demos/k8s-demo/test

Summary

Maintainability
Test Coverage
#!/bin/bash

set -e
set -o pipefail

# setup environment variables
export BACKEND_NAMESPACE="${TEST_NAMESPACE}-backend"
export APP_NAMESPACE="${TEST_NAMESPACE}-app"

log=log.txt
rm -rf ${log}

function cleanup() {
  echo "Cleaning up previous deployments"
  ./stop &> ${log}
}
trap cleanup EXIT INT QUIT

function main() {
  cleanup

  # Deploy and test the results
  ./01_security_admin_steps
  ./02_app_developer_steps
}

main