Unit tests should not require server(s) to be started

Bug #843182 reported by klmitch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Unassigned

Bug Description

Unit tests do not need to have the keystone and other servers started up in order to test the code paths.

I'm going to refactor the unit tests in the following way:

a) Remove need to have a Keystone server up and running
b) Use base test classes for handling creation of fixtures
c) Have tests runnable with a simple call to $> nosetests
d) All fixtures should be created with the DB API, not the HTTP API
e) Remove all the unnecessary munging of sys.paths in each test file (nose can handle this for ya)

Expect a pull request sometime today. :)
-jay

Revision history for this message
klmitch (q-noreply) wrote :

Awesome! Kevin also started plugging in `dtest`. Try this from test/functional:

    ./run_tests.py -u admin -p secrete -D -k http://127.0.0.1:8081/v2.0

but I think he said dtest and nose are compatible (or he was making them so). Any thoughts?

Revision history for this message
klmitch (q-noreply) wrote :

I'll check it out :) I looked at his merge request for dtest integration in nova...

Revision history for this message
klmitch (q-noreply) wrote :

@jaypipes - run_tests.py in /test/ does this now. THere are some in-elegancies we will clean up, but wanted to close this out for D2.

Revision history for this message
klmitch (q-noreply) wrote :

Pull 80 improves on this quite a bit: https://github.com/rackspace/keystone/pull/80

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.