Skip to content

Commit

Permalink
removing unecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Sep 2, 2024
1 parent aa6e839 commit b93ead9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
# Get the required information here: https://app.tracetest.io/retrieve-token
- TRACETEST_API_KEY=${TRACETEST_TOKEN}
- TRACETEST_ENVIRONMENT_ID=${TRACETEST_ENVIRONMENT_ID}
- TRACETEST_SERVER_URL=${TRACETEST_SERVER_URL}

tracetest-apply:
build:
Expand All @@ -17,8 +16,6 @@ services:
environment:
TRACETEST_TOKEN: ${TRACETEST_TOKEN}
TRACETEST_ENVIRONMENT_ID: ${TRACETEST_ENVIRONMENT_ID}
SERVER_URL: ${TRACETEST_SERVER_URL}
TRACETEST_DEV: true
entrypoint:
- bash
- /resources/apply.sh
Expand All @@ -38,8 +35,6 @@ services:
environment:
TRACETEST_TOKEN: ${TRACETEST_TOKEN}
TRACETEST_ENVIRONMENT_ID: ${TRACETEST_ENVIRONMENT_ID}
SERVER_URL: ${TRACETEST_SERVER_URL}
TRACETEST_DEV: true
entrypoint:
- bash
- /resources/run.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ set -e

TOKEN=$TRACETEST_TOKEN
ENVIRONMENT_ID=$TRACETEST_ENVIRONMENT_ID
SERVER_URL=$SERVER_URL

apply() {
echo "Configuring TraceTest"
tracetest configure --token $TOKEN --environment $ENVIRONMENT_ID --server-url $SERVER_URL
tracetest configure --token $TOKEN --environment $ENVIRONMENT_ID

echo "Applying Resources"
tracetest apply datastore -f /resources/datastore.yaml
Expand Down
3 changes: 1 addition & 2 deletions examples/tracetest-jaeger-graphql-pokeshop/resources/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ set -e

TOKEN=$TRACETEST_TOKEN
ENVIRONMENT_ID=$TRACETEST_ENVIRONMENT_ID
SERVER_URL=$SERVER_URL

run() {
echo "Configuring Tracetest"
tracetest configure --token $TOKEN --environment $ENVIRONMENT_ID --server-url $SERVER_URL
tracetest configure --token $TOKEN --environment $ENVIRONMENT_ID

echo "Running Trace-Based Tests..."
tracetest run test -f /resources/test.yaml
Expand Down

0 comments on commit b93ead9

Please sign in to comment.