Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 1 | # ================================================================================== |
| 2 | # Copyright (c) 2019 Nokia |
| 3 | # Copyright (c) 2018-2019 AT&T Intellectual Property. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ================================================================================== |
| 17 | [tox] |
| 18 | envlist = int |
| 19 | |
| 20 | [testenv:int] |
| 21 | whitelist_externals= |
| 22 | sleep |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 23 | helm |
Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 24 | ab |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 25 | echo |
| 26 | pkill |
| 27 | passenv = * |
Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 28 | deps = |
Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 29 | tavern |
| 30 | changedir=integration_tests |
| 31 | commands_pre= |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 32 | helm install --devel testreceiver -n testreceiver |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 33 | helm install --devel a1mediator/ -n a1 |
Tommy Carpenter | 296f8de | 2019-08-07 11:38:44 -0400 | [diff] [blame^] | 34 | sleep 20 |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 35 | ./portforward.sh |
Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 36 | sleep 2 |
| 37 | commands= |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 38 | echo "linting" |
| 39 | helm lint a1mediator/ |
| 40 | echo "running tavern" |
| 41 | pytest |
| 42 | echo "running ab" |
Tommy Carpenter | 2451446 | 2019-07-16 11:25:52 -0400 | [diff] [blame] | 43 | ab -n 100 -c 10 -u putdata -T application/json http://localhost:10000/ric/policies/admission_control_policy |
Tommy Carpenter | 5ad8f03 | 2019-05-30 14:33:21 -0400 | [diff] [blame] | 44 | commands_post= |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 45 | helm delete testreceiver |
| 46 | helm del --purge testreceiver |
Tommy Carpenter | 09edf28 | 2019-06-11 09:10:23 -0400 | [diff] [blame] | 47 | helm delete a1 |
| 48 | helm del --purge a1 |
| 49 | pkill -9 kubectl |
| 50 | sleep 10 |