* chore(e2e): Add docker-based scenario for Admin UI tests * test(e2e): Trim space in worker_led_token output
14 lines
497 B
Bash
14 lines
497 B
Bash
#!/bin/bash
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
DIR=$(pwd)
|
|
|
|
SCRIPTS_DIR=$( cd -- "$( dirname -- "$0" )" &> /dev/null && pwd )
|
|
STATEDIR=$(ls -td $SCRIPTS_DIR/../.enos/*/ | head -1) # get latest directory
|
|
|
|
cd $STATEDIR
|
|
terraform show -json terraform.tfstate | jq -r '.values.root_module.child_modules[].resources[] | select(.address=="module.run_e2e_test.enos_local_exec.run_e2e_test") | .values.environment | to_entries[] | "export \(.key)=\(.value|@sh)"'
|
|
|
|
cd $DIR
|