Skip to content

Commit

Permalink
fix(tracetesting): changing env file name to yaml to avoid confusion …
Browse files Browse the repository at this point in the history
…with dotfiles (#2542)
  • Loading branch information
danielbdias authored and schoren committed Jun 5, 2023
1 parent ae6fd0d commit f9a38f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit f9a38f6

Please sign in to comment.