Alternatively, you can try running the same test system with a Vagrant VM setup using Ansible
mkdir headless
cd headless
git clone https://gist.github.com/7d9d8079aff00304254277004078a842.git .
Make sure setup.sh
has the right IP (see 192.168.99.100
, adjust). This’ll be parametrized (TODO).
Boot the VM
vagrant up
If Vagrant throws an error
sudo rm -rf /opt/vagrant/embedded/bin/curl
source on StackOverflow. Because vagrant distributes its own version of curl.
... wait
(TODO: make reference to that code prototype somewhere accessible.)
Configure integration-testing
config to point to IP, replace <password>
and 192.168.99.100
accordingly
vi default-test-config.json
integration-testing
code is in /vagrant/integration-testing
, go on.
cd ..
vagrant ssh
cd /vagrant/integration-testing
make
Finish up manually what'll be automated pretty soon...
source bin/activate
cd api.common/
pip install -r requirements.txt
cd ..
PYTHONPATH="$(pwd)/" bin/pytest tests/features/login/test_login.py
Using it looks like the following screenshot.