-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33d15cd
commit 1092b3d
Showing
3 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
description: | | ||
End-to-end tests for python initcontainer | ||
scenarios: | ||
- description: | | ||
This scenario will verify that transactions are reported by the | ||
before: | ||
- kubectl create namespace nr-${SCENARIO_TAG} | ||
- kubectl apply -f tests/python/customresource.yaml -n nr-${SCENARIO_TAG} | ||
- kubectl apply -f tests/python/python_test_app_deployment.yaml -n nr-${SCENARIO_TAG} | ||
- sleep 10 | ||
- kubectl wait --for=condition=Ready --namespace nr-${SCENARIO_TAG} --all pods | ||
- curl --fail-with-body $(minikube service python-test-app-service --url -n nr-${SCENARIO_TAG}) | ||
after: | ||
- kubectl delete -f tests/python/customresource.yaml -n nr-${SCENARIO_TAG} | ||
- kubectl delete -f tests/python/python_test_app_deployment.yaml -n nr-${SCENARIO_TAG} | ||
tests: | ||
nrqls: | ||
- query: FROM Metric SELECT latest(something) AS 'start_time' WHERE metricName = 'k8s.persistentvolume.createdAt' AND appName = 'k8s-e2e-test-app-${SCENARIO_TAG:-0}' | ||
expected_results: | ||
- key: "start_time" | ||
lowerBoundedValue: 0.0 | ||
entities: [] |