8 Commits

Author SHA1 Message Date
Steve Leon
732f4102b3 Adding some dbaas.py unittests
The tests added are createDB, deleteDB and deleteUser

tracked in Bug #1090139

Change-Id: I811a85bfe37ec4282864ec81328dc40c9b15f4ef
2012-12-14 10:38:47 -08:00
Nikhil Manchanda
5e7757faa6 Update tools/install_venv.py to work w/ latest pip
pip dropped the -E option as of 1.1; now to install in a virtualenv,
you just explicitly activate the virtualenv.  This commit fakes the
same behavior of explicitly specifying a virtualenv for installation
by altering tools/with_venv.sh to optionally take the -E flag

Fixes Bug #1081200

Change-Id: I470ba9563864337b8af2a79ae463e269ba66bf8f
2012-11-21 15:34:14 -05:00
Tim Simpson
c007356a78 Adding tests to Reddwarf.
The tests come from the Reddwarf Integration repository. wsgi_intercept
is used to allow the test code to hit the server code directly. It also
properly sets up the SqlLite database before each run.

* Adds an "event simulator" which queues up functions that would
  normally be spawned with eventlet. The various sleep functions are
  then swapped with a method that runs these faux-events.

* Adds many of the Reddwarf Integration tests. The idea is these
  could still run in a richer, real environment, but are running here
  enables us to quickly check feature breaks for each commit and
  lowers the learning curve necessary to test the API. The downside
  is some of these tests still have artifacts of their origins, such
  as (unused) classes to connect to MySQL databases. Some more work
  will be necessary to separate the "real mode" functionality of these
  tests further.

Implements: blueprint tox-tests
Change-Id: I9857f265c1cb46832906ef5e6a0c7bb4a092e637
2012-11-19 12:33:40 -06:00
Tim Simpson
11a3e531f7 Removes the vestigial tests.
This gets rid of the misleading tests in this repo which have not been
relied on for most of this project's life (for historical reasons, tests
are currently stored in the reddwarf_lite-integration repo).

Change-Id: Ic452396ac50ea252bbd34d41638c2f337da3ed2a
2012-11-02 16:19:55 -05:00
Monty Taylor
bdbb0a64a6 Aligned tox file with project.
Change-Id: Ib391c0d1025605fccda6405865bba5780ebb0c74
2012-10-26 13:21:45 -04:00
Monty Taylor
bc518af78b Added .gitreview file. 2012-10-26 13:12:07 -04:00
Tim Simpson
334a36ab68 Got the unit test venv environment working. 2012-03-07 08:47:10 -06:00
mbasnight
6a3f66f0e9 Adding the venv/unit test framework stuff
* run_tests stuff
* gerrit stuff
* test-requires for pip
2012-02-22 21:20:45 -06:00