3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 #Creating virtual environment
9 virtualenv testapi_venv
10 source testapi_venv/bin/activate
12 # Install Pre-requisites
16 url="http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar"
18 #Check for jar file locally and in the repo
19 if [ ! -f swagger-codegen-cli.jar ];
21 wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar
24 # Start OPNFV Test API Server
25 cd utils/test/testapi/
26 pip install -r requirements.txt
28 opnfv-testapi -c ../../../testapi_venv/etc/opnfv_testapi/config.ini &