X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox-integration.ini;h=e39a8cb93d9c77be4e69d6fb0c3ea1d9c00a257d;hb=refs%2Fchanges%2F64%2F1664%2F3;hp=aa2ce366d47915229a71e14183bb1288bac2085c;hpb=24514469850dc9a543869f132385633039c5f5a6;p=ric-plt%2Fa1.git diff --git a/tox-integration.ini b/tox-integration.ini index aa2ce36..e39a8cb 100644 --- a/tox-integration.ini +++ b/tox-integration.ini @@ -24,24 +24,35 @@ whitelist_externals= ab echo pkill + kubectl + getlogs.sh passenv = * deps = tavern changedir=integration_tests commands_pre= + echo "WARNING: make sure you're running with latest docker builds!" + sleep 5 helm install --devel testreceiver -n testreceiver - helm install --devel a1mediator/ -n a1 - sleep 10 + helm install --devel a1mediator -n a1 +# wait for helm charts + sleep 30 ./portforward.sh sleep 2 commands= echo "linting" - helm lint a1mediator/ + helm lint a1mediator + helm lint testreceiver echo "running tavern" - pytest +# run tavern + pytest --tavern-beta-new-traceback echo "running ab" - ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/admission_control_policy +# run apache bench + ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/a1-p/policytypes/20000/policies/admission_control_policy commands_post= +# echo "log collection" +# integration_tests/getlogs.sh + echo "teardown" helm delete testreceiver helm del --purge testreceiver helm delete a1