X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox-integration.ini;h=62670ef541efa4526805ca48cdc9f49b1fe0ba6b;hb=552bc9d3c4b3e5d01d9ddd687fb2f40f8eac4d10;hp=b3a918348a68dd11b9fec06668c85a09f7cd8bcf;hpb=971c91cbf40d7d735c4cc8c8871b1a4d677a6496;p=ric-plt%2Fa1.git diff --git a/tox-integration.ini b/tox-integration.ini index b3a9183..62670ef 100644 --- a/tox-integration.ini +++ b/tox-integration.ini @@ -1,6 +1,6 @@ # ================================================================================== -# Copyright (c) 2019 Nokia -# Copyright (c) 2018-2019 AT&T Intellectual Property. +# Copyright (c) 2019-2020 Nokia +# Copyright (c) 2018-2020 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,27 +24,40 @@ whitelist_externals= ab echo pkill + kubectl + getlogs.sh passenv = * deps = tavern changedir=integration_tests commands_pre= - helm install --devel testreceiver -n testreceiver - helm install --devel a1mediator/ -n a1 - sleep 10 + echo "WARNING: make sure you're running with latest docker builds!" + sleep 5 +# helm v3 is helm install [name] [chart] + helm install --devel testreceiver testreceiver + helm install --devel a1 a1mediator + helm install --devel dbaas dbaas-service +# wait for helm charts + sleep 30 ./portforward.sh sleep 2 commands= echo "linting" - helm lint a1mediator/ + helm lint a1mediator + helm lint testreceiver + helm lint dbaas-service echo "running tavern" - pytest +# run tavern + pytest --tavern-beta-new-traceback test_a1.tavern.yaml echo "running ab" - ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/control_admission_time +# run apache bench + ab -n 100 -c 10 -v 4 http://localhost:10000/a1-p/healthcheck commands_post= + echo "log collection" + integration_tests/getlogs.sh + echo "teardown" helm delete testreceiver - helm del --purge testreceiver helm delete a1 - helm del --purge a1 + helm delete dbaas pkill -9 kubectl sleep 10