diff --git a/test/tracetesting/business-tests/user-purchase-test-steps/01-add-product-to-cart.yaml b/test/tracetesting/business-tests/user-purchase-test-steps/01-add-product-to-cart.yaml index 62d8cb8a68..8e1d3a160b 100644 --- a/test/tracetesting/business-tests/user-purchase-test-steps/01-add-product-to-cart.yaml +++ b/test/tracetesting/business-tests/user-purchase-test-steps/01-add-product-to-cart.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Test spec: id: add-product diff --git a/test/tracetesting/business-tests/user-purchase-test-steps/02-checking-out-cart.yaml b/test/tracetesting/business-tests/user-purchase-test-steps/02-checking-out-cart.yaml index 02cc90ea7d..937f7e8b32 100644 --- a/test/tracetesting/business-tests/user-purchase-test-steps/02-checking-out-cart.yaml +++ b/test/tracetesting/business-tests/user-purchase-test-steps/02-checking-out-cart.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Test spec: id: checkout-shopping-cart diff --git a/test/tracetesting/business-tests/user-purchase.yaml b/test/tracetesting/business-tests/user-purchase.yaml index ed5e897f36..ecb7da6466 100644 --- a/test/tracetesting/business-tests/user-purchase.yaml +++ b/test/tracetesting/business-tests/user-purchase.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Transaction spec: id: user-purchase-product diff --git a/test/tracetesting/cli-config.yml b/test/tracetesting/cli-config.yml index cc15f11ad5..3cdc56fe2d 100755 --- a/test/tracetesting/cli-config.yml +++ b/test/tracetesting/cli-config.yml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + scheme: http endpoint: localhost:11633 analyticsEnabled: false diff --git a/test/tracetesting/run.bash b/test/tracetesting/run.bash index 36989106dc..628ee32d79 100755 --- a/test/tracetesting/run.bash +++ b/test/tracetesting/run.bash @@ -1,7 +1,20 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 #/bin/bash +# This script set up how to run Tracetest and which test files +# be executed + set -e +check_if_tracetest_is_installed() { + if ! command -v tracetest &> /dev/null + then + echo "tracetest CLI could not be found" + exit -1 + fi +} + run_tracetest() { test_file=$1 @@ -17,6 +30,8 @@ run_tracetest_with_env() { return $? } +check_if_tracetest_is_installed + echo "Starting tests..." EXIT_STATUS=0 diff --git a/test/tracetesting/tech-based-tests/ad-get.yaml b/test/tracetesting/tech-based-tests/ad-get.yaml index 9c485bcfa0..f626958099 100644 --- a/test/tracetesting/tech-based-tests/ad-get.yaml +++ b/test/tracetesting/tech-based-tests/ad-get.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Test spec: id: ad-get-ads diff --git a/test/tracetesting/tech-based-tests/currency-convert.yaml b/test/tracetesting/tech-based-tests/currency-convert.yaml index 3cd9811855..affebefdb6 100644 --- a/test/tracetesting/tech-based-tests/currency-convert.yaml +++ b/test/tracetesting/tech-based-tests/currency-convert.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Test spec: id: JVF5jfsVR diff --git a/test/tracetesting/tech-based-tests/currency-supported.yaml b/test/tracetesting/tech-based-tests/currency-supported.yaml index 1ce4abb65f..d4ead36a3c 100644 --- a/test/tracetesting/tech-based-tests/currency-supported.yaml +++ b/test/tracetesting/tech-based-tests/currency-supported.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + type: Test spec: id: currency-supported diff --git a/test/tracetesting/tracetest-config.yaml b/test/tracetesting/tracetest-config.yaml index 74196206d7..8cd23c94c4 100644 --- a/test/tracetesting/tracetest-config.yaml +++ b/test/tracetesting/tracetest-config.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + postgres: host: tracetest-postgres user: postgres diff --git a/test/tracetesting/tracetest-provision.yaml b/test/tracetesting/tracetest-provision.yaml index e07899819a..421a1acf40 100644 --- a/test/tracetesting/tracetest-provision.yaml +++ b/test/tracetesting/tracetest-provision.yaml @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + --- type: PollingProfile spec: