Update to later rmr-python
[ric-plt/a1.git] / tox-integration.ini
index e636aed..fb996d1 100644 (file)
@@ -20,17 +20,31 @@ envlist = int
 [testenv:int]
 whitelist_externals=
     sleep
-    docker-compose
+    helm
     ab
+    echo
+    pkill
+passenv = *
 deps =
-    pytest-xdist
     tavern
 changedir=integration_tests
 commands_pre=
-    docker-compose up --build -d
+    helm install --devel testreceiver -n testreceiver
+    helm install --devel a1mediator/ -n a1
+    sleep 20
+    ./portforward.sh
     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/
+    echo "running tavern"
+    pytest
+    echo "running ab"
+    ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/admission_control_policy
 commands_post=
-    docker-compose down
+    helm delete testreceiver
+    helm del --purge testreceiver
+    helm delete a1
+    helm del --purge a1
+    pkill -9 kubectl
+    sleep 10