summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common/Glusterfs.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2013-05-28 06:29:22 -0400
committerLuis Pabon <lpabon@redhat.com>2013-06-03 14:01:29 -0700
commita574805398d9bf28be6f357e26a2ba299a5b90e1 (patch)
tree1207d03d0419d14d99204b8313d95b991d73df8b /gluster/swift/common/Glusterfs.py
parent3c0cdd74ec1d8df3e452a6653f20bad6252b971c (diff)
Bring initial DiskDir module coverage to 97%.
This is quite ugly. Sorry. We ported a set of test from OpenStack Swift's test/unit/commont/test_db.py, the testAccountBroker and testContainerBroker, but because of the divergent nature of the current attempt UFO (Unified File and Object) implementation, it was not possible to use the interface calls directly. Instead, we are using these tests to make sure most of the code paths are exercised, and to define much of the expected behavior. Further refactoring, unit tests and functional test work will help us bring the code base and these tests closer to the originals in upstream OpenStack Swift (as of Havana). Change-Id: I095bb03619de6e7e1378b5252913e39b1ea8bf27 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/5135 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'gluster/swift/common/Glusterfs.py')
-rw-r--r--gluster/swift/common/Glusterfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gluster/swift/common/Glusterfs.py b/gluster/swift/common/Glusterfs.py
index 819a747..4506ef4 100644
--- a/gluster/swift/common/Glusterfs.py
+++ b/gluster/swift/common/Glusterfs.py
@@ -28,7 +28,7 @@ from gluster.swift.common.fs_utils import mkdirs
#
_fs_conf = ConfigParser()
MOUNT_IP = 'localhost'
-OBJECT_ONLY = False
+OBJECT_ONLY = True
RUN_DIR = '/var/run/swift'
SWIFT_DIR = '/etc/swift'
_do_getsize = False
@@ -40,7 +40,7 @@ if _fs_conf.read(os.path.join(SWIFT_DIR, 'fs.conf')):
try:
OBJECT_ONLY = _fs_conf.get('DEFAULT',
'object_only',
- "no") in TRUE_VALUES
+ "yes") in TRUE_VALUES
except (NoSectionError, NoOptionError):
pass
try: