The environment has two parameters (set an environment variables):
CLOUDSIM_GATEWAY_HOST
which defaults tocloudsimplus-gateway
CLOUDSIM_GATEWAY_PORT
which defaults 25333
In the manual_tests
directory you can find three test scripts:
test_connect.py
- connects to the gateway directory and tries to tries to add/remove virtual machinestest_finish.py
- connects to the gateway directly and runs the simulation scenario until its endtest_run_env.py
- a smoke test which connects to the gateway through the Open AI Gym, performs 5 steps and stops
For testing it is usually a good idea to redirect the environment to a local gateway server by:
export CLOUDSIM_GATEWAY_HOST=localhost
pip install -e .
will install the package in dev mode and all its dependencies
We are working on getting the package to public PyPI repos. In the meantime you can install the package with:
pip install -e git+https://github.com/pkoperek/gym_cloudsimplus#egg=gym_cloudsimplus