Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tracetesting): changing env file name to yaml to avoid confusion with dotfiles #2542

Merged
merged 12 commits into from
May 26, 2023
Merged
10 changes: 5 additions & 5 deletions testing/server-tracetesting/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ echo "TRACETEST_ENDPOINT: $TRACETEST_ENDPOINT"
echo "DEMO_APP_URL: $DEMO_APP_URL"
echo "DEMO_APP_GRPC_URL: $DEMO_APP_GRPC_URL"

cat << EOF > .env
cat << EOF > tracetesting-env.yaml
type: Environment
spec:
id: .env
name: .env
id: tracetesting-env
name: tracetesting-env
values:
- key: TARGET_URL
value: $TARGET_URL
Expand All @@ -48,7 +48,7 @@ spec:
EOF

echo "Environment variables set:"
cat .env
cat tracetesting-env.yaml

echo "Setting up tracetest CLI configuration..."
cat << EOF > config.yml
Expand All @@ -69,7 +69,7 @@ run_test_suite_for_feature() {
junit_output='results/'$feature'_test_suite.xml'
definition='./features/'$feature'/_test_suite.yml'

$TRACETEST_CLI --config ./config.yml test run --definition $definition --environment ./.env --wait-for-result --junit $junit_output
$TRACETEST_CLI --config ./config.yml test run --definition $definition --environment ./tracetesting-env.yaml --wait-for-result --junit $junit_output
return $?
}

Expand Down