getlogs.sh
passenv = *
deps =
- tavern
+ tavern == 1.2.2 # pin the version
changedir=integration_tests
commands_pre=
- echo "WARNING: make sure you're running with latest docker builds!"
- sleep 5
+ echo "WARNING: make sure you are running with latest docker builds!"
+# Fish function that builds and tags the 3 receivers. Run from integration_tests/testxappcode/
+#function a1intbuild
+# docker build -t a1:latest .
+# cd integration_tests/testxappcode
+# docker build -t testreceiver:latest . -f Dockerfile-test-receiver
+# docker build -t delayreceiver:latest . -f Dockerfile-delay-receiver
+# docker build -t queryreceiver:latest . -f Dockerfile-query-receiver
+# cd ../..
+#end
+ sleep 3
# helm v3 is helm install [name] [chart]
+ echo "linting"
+ helm lint a1mediator
+ helm lint testreceiver
+ helm lint dbaas-service
helm install --devel testreceiver testreceiver
helm install --devel a1 a1mediator
helm install --devel dbaas dbaas-service
-# wait for helm charts
- sleep 30
+ kubectl get pods --namespace=default
+ echo "delay so pods can start"
+ sleep 60
+ kubectl get pods --namespace=default
+ echo "forward ports"
./portforward.sh
- sleep 2
+ echo "delay so port forward can start"
+ sleep 5
commands=
- echo "linting"
- helm lint a1mediator
- helm lint testreceiver
- helm lint dbaas-service
- echo "running tavern"
-# run tavern
- pytest --tavern-beta-new-traceback test_a1.tavern.yaml
- echo "running ab"
-# run apache bench
- ab -n 100 -c 10 -v 4 http://localhost:10000/a1-p/healthcheck
+ echo "running tavern via pytest"
+ pytest --version
+ pytest test_a1.tavern.yaml
+ echo "running apache bench (ab) on healthcheck endpoint"
+ # use -v 4 to make ab chatty
+ ab -n 100 -c 10 -v 0 http://localhost:10000/a1-p/healthcheck
commands_post=
echo "log collection"
- integration_tests/getlogs.sh
+ ./getlogs.sh
echo "teardown"
helm delete testreceiver
helm delete a1