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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ var versionCmd = &cobra.Command{
Short: "Print version information of Tracetest server",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(appInstance.Version())
fmt.Println("This is a temporary print")
},
}
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 -v --config ./config.yml test run --definition $definition --environment ./.env --wait-for-result --junit $junit_output
$TRACETEST_CLI --verbose --config ./config.yml test run --definition $definition --environment ./tracetesting-env.yaml --wait-for-result --junit $junit_output
return $?
}

Expand Down