Difference between revisions of "MagnetoDB/QA/Tests on local env workflow"
(→All local environment without CCM and Devstack) |
|||
Line 20: | Line 20: | ||
cqlsh> CREATE KEYSPACE user_default_tenant WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; | cqlsh> CREATE KEYSPACE user_default_tenant WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; | ||
</pre> | </pre> | ||
+ | |||
+ | 4. Clone MagnetoDB repo | ||
+ | <pre> | ||
+ | $ git clone https://github.com/stackforge/magnetodb.git | ||
+ | $ cd magnetodb | ||
+ | </pre> | ||
+ | |||
+ | 5. Run tox with necessary parameters: | ||
+ | |||
+ | * to start unit tests | ||
+ | <pre> | ||
+ | $ tox | ||
+ | </pre> | ||
+ | |||
+ | * to start Cassandra implementation tests | ||
+ | <pre> | ||
+ | $ tox -e cassandra-impl | ||
+ | </pre> | ||
+ | |||
+ | * to start stable tempest tests | ||
+ | <pre> | ||
+ | $ tox -e tempest-stable | ||
+ | </pre> | ||
+ | |||
+ | * to start in_progress tempest tests | ||
+ | <pre> | ||
+ | $ tox -e tempest-in-progress | ||
+ | </pre> | ||
+ | |||
+ | * to start not_ready tempest tests | ||
+ | <pre> | ||
+ | $ tox -e tempest-not-ready | ||
+ | </pre> | ||
+ | |||
+ | Each group of tests run in individual venv and need some time for install requirements. |
Revision as of 10:09, 3 April 2014
All local environment without CCM and Devstack
1. Download Cassandra 2.0.6
2. Run Cassandra single node instance
$ cd apache-cassandra-2.0.6/bin $ sudo ./cassandra -f
3. Run CQLSH
$ cd apache-cassandra-2.0.6/bin $ ./cqlsh
create service keyspaces and table
cqlsh> CREATE KEYSPACE magnetodb WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; cqlsh> CREATE TABLE magnetodb.table_info(tenant text, name text, exists int, "schema" text, status text, internal_name text, PRIMARY KEY(tenant, name)); cqlsh> CREATE KEYSPACE user_default_tenant WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
4. Clone MagnetoDB repo
$ git clone https://github.com/stackforge/magnetodb.git $ cd magnetodb
5. Run tox with necessary parameters:
- to start unit tests
$ tox
- to start Cassandra implementation tests
$ tox -e cassandra-impl
- to start stable tempest tests
$ tox -e tempest-stable
- to start in_progress tempest tests
$ tox -e tempest-in-progress
- to start not_ready tempest tests
$ tox -e tempest-not-ready
Each group of tests run in individual venv and need some time for install requirements.