File tree Expand file tree Collapse file tree 6 files changed +53
-17
lines changed Expand file tree Collapse file tree 6 files changed +53
-17
lines changed Original file line number Diff line number Diff line change 1
- description : End-to-end tests for dotnet initcontainer
1
+ description : End-to-end tests for .NET initcontainer
2
2
custom_test_key : tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
5
5
before :
6
+ # Deploy test app chart
6
7
- helm install test-dotnet ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default
7
8
- sleep 5
8
- - kubectl wait --for=condition=Ready -n default --all pods
9
- # - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1)
10
- - sleep 15 # give the agent time to connect
9
+ # Recreate test app pod to ensure instrumentation resource is used
10
+ - kubectl delete pods -l "app=test-app-dotnet"
11
+ # Wait for pods to pass healthchecks
12
+ - sleep 5
13
+ - kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
14
+ # Ensure initcontainer was attached by operator
15
+ - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
16
+ # Give the agent time to connect
17
+ - sleep 15
18
+ # Send traffic to test app to generate transactions
11
19
- curl --fail-with-body $(minikube service test-app-dotnet-service --url -n default)/WeatherForecast
12
20
tests :
13
21
nrqls :
Original file line number Diff line number Diff line change 1
- description : End-to-end tests for java initcontainer
1
+ description : End-to-end tests for Java initcontainer
2
2
custom_test_key : tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
5
5
before :
6
+ # Deploy test app chart
6
7
- helm install test-java ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default
8
+ - sleep 5
9
+ # Recreate test app pod to ensure instrumentation resource is used
10
+ - kubectl delete pods -l "app=test-app-java"
11
+ # Wait for pods to pass healthchecks
7
12
- sleep 120
8
- - kubectl wait --for=condition=Ready -n default --all pods
9
- # - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1)
13
+ - kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
14
+ # Ensure initcontainer was attached by operator
15
+ - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
16
+ # Send traffic to test app to generate transactions
10
17
- curl --fail-with-body $(minikube service test-app-java-service --url -n default)
11
18
tests :
12
19
nrqls :
Original file line number Diff line number Diff line change @@ -3,10 +3,17 @@ custom_test_key: tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
5
5
before :
6
+ # Deploy test app chart
6
7
- helm install test-nodejs ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default
7
8
- sleep 5
8
- - kubectl wait --for=condition=Ready -n default --all pods
9
- # - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1)
9
+ # Recreate test app pod to ensure instrumentation resource is used
10
+ - kubectl delete pods -l "app=test-app-nodejs"
11
+ # Wait for pods to pass healthchecks
12
+ - sleep 5
13
+ - kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
14
+ # Ensure initcontainer was attached by operator
15
+ - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
16
+ # Send traffic to test app to generate transactions
10
17
- curl --fail-with-body $(minikube service test-app-nodejs-service --url -n default)
11
18
tests :
12
19
nrqls :
Original file line number Diff line number Diff line change 1
- description : End-to-end tests for php initcontainer
1
+ description : End-to-end tests for PHP initcontainer
2
2
custom_test_key : tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
5
5
before :
6
- - helm install test-php ./chart/ --set=scenarioTag="${SCENARIO_TAG}" ${TEST_APP_HELM_CHART_ARGS} -n default
6
+ # Deploy test app chart
7
+ - helm install test-php ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default
8
+ - sleep 5
9
+ # Recreate test app pod to ensure instrumentation resource is used
10
+ - kubectl delete pods -l "app=test-app-php"
11
+ # Wait for pods to pass healthchecks
7
12
- sleep 5
8
13
- kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
9
- # - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1)
14
+ # Ensure initcontainer was attached by operator
15
+ - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
16
+ # Send traffic to test app to generate transactions
10
17
- curl --fail-with-body $(minikube service test-app-php-service --url -n default)
11
18
- sleep 5
12
19
- curl --fail-with-body $(minikube service test-app-php-service --url -n default)
Original file line number Diff line number Diff line change 1
- description : End-to-end tests for python initcontainer
1
+ description : End-to-end tests for Python initcontainer
2
2
custom_test_key : tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
@@ -8,8 +8,8 @@ scenarios:
8
8
- sleep 5
9
9
# Recreate test app pod to ensure instrumentation resource is used
10
10
- kubectl delete pods -l "app=test-app-python"
11
- - sleep 5
12
11
# Wait for pods to pass healthchecks
12
+ - sleep 5
13
13
- kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
14
14
# Ensure initcontainer was attached by operator
15
15
- kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
Original file line number Diff line number Diff line change 1
- description : End-to-end tests for ruby initcontainer
1
+ description : End-to-end tests for Ruby initcontainer
2
2
custom_test_key : tags.testKey
3
3
scenarios :
4
4
- description : This scenario will verify that a transaction is reported by the test app after a curl request
5
5
before :
6
+ # Deploy test app chart
6
7
- helm install test-ruby ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default
7
8
- sleep 5
8
- - kubectl wait --for=condition=Ready -n default --all pods
9
- # - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1)
9
+ # Recreate test app pod to ensure instrumentation resource is used
10
+ - kubectl delete pods -l "app=test-app-ruby"
11
+ # Wait for pods to pass healthchecks
12
+ - sleep 5
13
+ - kubectl wait --for=condition=Ready -n default --all pods --timeout=2m
14
+ # Ensure initcontainer was attached by operator
15
+ - kubectl get pods --output yaml | yq '.items[].spec.initContainers[].name' | grep -q "newrelic-instrumentation-" || { echo -e "===== Operator failed to attach initcontainer. =====" >&2; exit 1; }
16
+ # Send traffic to test app to generate transactions
10
17
- curl --fail-with-body $(minikube service test-app-ruby-service --url -n default)/
11
18
tests :
12
19
nrqls :
You can’t perform that action at this time.
0 commit comments