Was this page helpful?
Before proceeding ensure the tests were built using the build procedures.
Integration tests rely on Cassandra Cluster Manager (CCM) to be installed.
Each test performs a setup, execute, and teardown. This ensures that each test has a clean and consistent run against the Apache Cassandra instance during the execution phase. Cluster instances are maintained for the entire duration of the test unless the test is chaotic at which point the cluster will be destroyed at the end.
Most of the tests performed will utilize a single node cluster; however a cluster may be as large as nine nodes depending on the test being performed.
/------------------\ /------------\ /-------------\ /----------\
| Integration Test | | CCM Bridge | | CCM Machine | | CCM Tool |
| cYEL | | cBLK | | cBLU | |cBLK |
\---------+--------/ \------+-----/ \-------+-----/ \-----+----/
: : : :
: Create and Start Cluster : : :
+++---------------------------->+++ Establish SSH Connection : :
| | | |----------------------------->+++ :
| | | | Connection Established | | :
| | | |<-----------------------------| | :
| | | | Create N-Node Cluster | | :
| | | |----------------------------->| | Execute Create Cluster :
| | | | | |--------------------------->+++
| | | | | | Download Cassandra | |
| | | | | |<---------------------------| |
| | | | | | Build Cassandra | |
| | | | | |<---------------------------| |
| | | | | | Start Cluster | |
| | | | | |<---------------------------+++
| | | | Cassandra Cluster Ready | | :
| | Cassandra Cluster is UP | |<-----------------------------+++ :
+++<----------------------------+++ : :
: : : :
: : : :
/-----------\ /------------\
| Unit Test | Perform Test | C++ Driver |
| cYEL +--------------------------------->| cBLU |
\-----+-----/ \------+-----/
^ |
| |
| Validate Results |
+-----------------------------------------------+
/------------\
| C++ Driver |
/--+------------+--\ /-------------\
| Integration Test | Perform Test | CCM Machine +------\
| cYEL +------------------------------------------------->| cBLU |NODE 1|
\--------+---------/ | +------/
^ | +------\
| | |NODE 2|
| Validate Results | +------/
+-----------------------------------+------------------------+ +------\
| | |NODE 3|
| | +------/
| \-------+-----/
| |
| |
| |
/---------+----------\ |
| Cassandra Cluster | |
| (or DSE) | Perform Test |
| +<--------------------+
| |
| {s} |
| cGRE |
\--------------------/
/------------------\ /------------\ /-------------\ /----------\
| Integration Test | | CCM Bridge | | CCM Machine | | CCM Tool |
| cYEL | | cBLK | | cBLU | | cBLK |
\---------+--------/ \------+-----/ \-------+-----/ \-----+----/
: : : :
: Stop and Destroy Cluster : : :
+++---------------------------->+++ Establish SSH Connection : :
| | | |----------------------------->+++ :
| | | | Connection Established | | :
| | | |<-----------------------------| | :
| | | | Destroy N-Node Cluster | | :
| | | |----------------------------->| | Remove Cluster :
| | | | | |-------------------------->+++
| | | | | | Stop Cassandra Instances | |
| | | | | |<--------------------------| |
| | | | | | Destroy Cluster | |
| | | | | |<--------------------------+++
| | | | Cluster Destroyed | | :
| | Cluster Destrored | |<-----------------------------+++ :
+++<----------------------------+++ : :
: : : :
: : : :
Here are some of the items being scheduled for future enhancements.
Incorporate integration tests into Jenkins environment
Updates to CCM Bridge
Allow files to be copied over SSH established connection
Was this page helpful?