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
Move integration tests to k8s
[ric-plt/a1.git]
/
tox-integration.ini
diff --git
a/tox-integration.ini
b/tox-integration.ini
index
539da92
..
fb005a0
100644
(file)
--- a/
tox-integration.ini
+++ b/
tox-integration.ini
@@
-20,18
+20,34
@@
envlist = int
[testenv:int]
whitelist_externals=
sleep
[testenv:int]
whitelist_externals=
sleep
- docker-compose
+ helm
ab
ab
+ echo
+ pkill
+passenv = *
deps =
deps =
- pytest-xdist
tavern
changedir=integration_tests
commands_pre=
tavern
changedir=integration_tests
commands_pre=
- docker-compose up --build -d
+ helm install --devel testreceiver -n testreceiver
+ helm install --devel delayreceiver -n delayreceiver
+ helm install --devel a1mediator/ -n a1
+ sleep 10
+ ./portforward.sh
sleep 2
commands=
sleep 2
commands=
-# helm lint a1mediator/
- pytest -n 2
+ echo "linting"
+ helm lint a1mediator/
+ echo "running tavern"
+ pytest
+ echo "running ab"
ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/control_admission_time
commands_post=
ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/control_admission_time
commands_post=
- docker-compose down
+ helm delete testreceiver
+ helm del --purge testreceiver
+ helm delete delayreceiver
+ helm del --purge delayreceiver
+ helm delete a1
+ helm del --purge a1
+ pkill -9 kubectl
+ sleep 10