rackerlabs/blueflood — pull request #137 by dlobue (2013-11-20 23:03:23+00:00)
Title: Dynamic allocate cass ports

This PR adds functionality to dynamically allocates & reserves port numbers for use by cassandra. This should prevent test failures caused by a port already being bound.

This change will require configuring the failsafe maven plugin to set system properties for use by the integration tests. Example:

org.apache.maven.plugins
maven-failsafe-plugin
2.15

integration-tests

integration-test

${cassandra.listenAddress}:${cassandra.rpcPort}
${cassandra.rpcPort}

It also disables the cassandra runner by default since not all blueflood modules have integration tests or necessarily need cassandra for their integration tests.

Cassandra will need to be enabled on a per-module basis. See blueflood-http/pom.xml for an example.

note to self: create wiki page on how to enable cassandra runner for integration tests