~ubuntu-branches/ubuntu/trusty/cinder/trusty

« back to all changes in this revision

Viewing changes to cinder/tests/fake_flags.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-22 09:57:46 UTC
  • Revision ID: package-import@ubuntu.com-20120522095746-9lm71yvzltjybk4b
Tags: upstream-2012.2~f1~20120503.2
ImportĀ upstreamĀ versionĀ 2012.2~f1~20120503.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright 2010 United States Government as represented by the
 
4
# Administrator of the National Aeronautics and Space Administration.
 
5
# All Rights Reserved.
 
6
#
 
7
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
8
#    not use this file except in compliance with the License. You may obtain
 
9
#    a copy of the License at
 
10
#
 
11
#         http://www.apache.org/licenses/LICENSE-2.0
 
12
#
 
13
#    Unless required by applicable law or agreed to in writing, software
 
14
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
15
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
16
#    License for the specific language governing permissions and limitations
 
17
#    under the License.
 
18
 
 
19
from cinder import flags
 
20
 
 
21
FLAGS = flags.FLAGS
 
22
 
 
23
flags.DECLARE('volume_driver', 'cinder.volume.manager')
 
24
FLAGS.set_default('volume_driver', 'cinder.volume.driver.FakeISCSIDriver')
 
25
FLAGS.set_default('connection_type', 'fake')
 
26
FLAGS.set_default('fake_rabbit', True)
 
27
FLAGS.set_default('rpc_backend', 'cinder.rpc.impl_fake')
 
28
flags.DECLARE('iscsi_num_targets', 'cinder.volume.driver')
 
29
FLAGS.set_default('iscsi_num_targets', 8)
 
30
FLAGS.set_default('verbose', True)
 
31
FLAGS.set_default('sql_connection', "sqlite://")
 
32
FLAGS.set_default('sqlite_synchronous', False)
 
33
flags.DECLARE('policy_file', 'cinder.policy')
 
34
FLAGS.set_default('policy_file', 'cinder/tests/policy.json')