Trove/integration-testing
Testing with Reddwarf and Redstack
In order to get reddwarf configured for testing, we need to:
- Install proboscis and other test packages
- Set up the local apt-repo on the host
- Update the testing config files
- Update keystone and create test users (eg. daffy, chunk, etc)
- Create the guest image using dib and upload it to glance.
Fortunately there's a single redstack command that will do all this for you. Simply run:
$ ~/reddwarf-integration/scripts/redstack post-devstack mysql
In order to fix network access issues for guest instances in Devstack, run:
$ sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
Once you have this up and running, you can use redstack's interfaces into nova-client and python-reddwarfclient to interact with Nova and Reddwarf.
- $ ~/reddwarf-integration/scripts/redstack nova-client list
- $ ~/reddwarf-integration/scripts/redstack rd-client instance list
- $ ~/reddwarf-integration/scripts/redstack rd-client instance create --name test --size 2
You can run the tests by:
$ ~/reddwarf-integration/scripts/redstack int-tests
This runs all the black-box tests by default. You can run a different group of tests by using the group parameter.
- You can run the simple tests by: $ ~/reddwarf-integration/scripts/redstack int-tests --group simple