~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/test.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short, Adam Gandleman
  • Date: 2012-02-03 09:03:12 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120203090312-v0f0yt3tx1dfbd4r
Tags: 2012.1~e4~20120203.12454-0ubuntu1
[ Adam Gandelman ]
[Chuck Short]
* New upstream version.
* debian/control: Replace m2crpto with python-crypto.
  (LP: #917851)
* debian/*.upstart.in, debian/nova-common.postinst,
  debian/nova_sudoers: Change default shell to /bin/false.
  (LP: #890362)

[Adam Gandleman]
* debian/nova-common.{install, postinst}: Install policy.json on all
  Nova nodes (LP: #923817)
* debian/rules: Remove installation of policy.json (moved to nova-common),
  point to the correct upstream git repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import nose.plugins.skip
34
34
import stubout
35
35
 
 
36
from nova.common import cfg
36
37
from nova import flags
37
38
import nova.image.fake
38
39
from nova import log
42
43
from nova.virt import fake
43
44
 
44
45
 
 
46
test_opts = [
 
47
    cfg.StrOpt('sqlite_clean_db',
 
48
               default='clean.sqlite',
 
49
               help='File name of clean sqlite db'),
 
50
    cfg.BoolOpt('fake_tests',
 
51
                default=True,
 
52
                help='should we use everything for testing'),
 
53
    ]
 
54
 
45
55
FLAGS = flags.FLAGS
46
 
flags.DEFINE_string('sqlite_clean_db', 'clean.sqlite',
47
 
                    'File name of clean sqlite db')
48
 
flags.DEFINE_bool('fake_tests', True,
49
 
                  'should we use everything for testing')
 
56
FLAGS.add_options(test_opts)
50
57
 
51
58
LOG = log.getLogger('nova.tests')
52
59