Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add release file for ric-plt-a1:1.0.4
[ric-plt/a1.git]
/
tox-integration.ini
diff --git
a/tox-integration.ini
b/tox-integration.ini
index
e636aed
..
e39a8cb
100644
(file)
--- a/
tox-integration.ini
+++ b/
tox-integration.ini
@@
-20,17
+20,42
@@
envlist = int
[testenv:int]
whitelist_externals=
sleep
[testenv:int]
whitelist_externals=
sleep
- docker-compose
+ helm
ab
ab
+ echo
+ pkill
+ kubectl
+ getlogs.sh
+passenv = *
deps =
deps =
- pytest-xdist
tavern
changedir=integration_tests
commands_pre=
tavern
changedir=integration_tests
commands_pre=
- docker-compose up --build -d
+ 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
+# wait for helm charts
+ sleep 30
+ ./portforward.sh
sleep 2
commands=
sleep 2
commands=
- pytest -n 2
- ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/control_admission_time
+ echo "linting"
+ helm lint a1mediator
+ helm lint testreceiver
+ echo "running tavern"
+# run tavern
+ pytest --tavern-beta-new-traceback
+ echo "running ab"
+# 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=
commands_post=
- docker-compose down
+# echo "log collection"
+# integration_tests/getlogs.sh
+ echo "teardown"
+ helm delete testreceiver
+ helm del --purge testreceiver
+ helm delete a1
+ helm del --purge a1
+ pkill -9 kubectl
+ sleep 10