mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 03:48:09 +00:00
Cloud SDK Library
Using Swagger Autogenerated CloudSDK Library as a pip installer.
Follow the setps below to setup the environment for your development Environment
mkdir ~/.pip
echo "[global]" > ~/.pip/pip.conf
echo "index-url = https://pypi.org/simple" >> ~/.pip/pip.conf
echo "extra-index-url = https://tip-read:tip-read@tip.jfrog.io/artifactory/api/pypi/tip-wlan-python-pypi-local/simple" >> ~/.pip/pip.conf
after that do the following in this folder
pip3 install -r requirements.txt
Now your cloud sdk code is downloaded
Docker
Alternatively you can use provided dockerfiles to develop\lint your code:
docker build -t wlan-cloud-test -f dockerfile .
docker build -t wlan-cloud-lint -f dockerfile-lint .
and then you can do something like this to lint your code:
docker run -it --rm -v %path_to_this_dir%/tests wlan-tip-lint cloudsdk.py
and you can use something like this to develop your code:
docker run -it -v %path_to_this_dir%/tests wlan-tip-test