diff options
author | Peter Portante <peter.portante@redhat.com> | 2012-11-08 01:16:56 -0500 |
---|---|---|
committer | Peter Portante <peter.portante@redhat.com> | 2013-04-29 16:35:56 -0400 |
commit | dd826e28c7b34603771d5652574a8df235637380 (patch) | |
tree | f9900d838bb0c6e31cc00816f39edd11ff3eb236 /swift/1.4.8/test/unit | |
parent | b85ce6f7e1513cd53a5adce7942a469fc96d38f3 (diff) |
object-storage: final changes to remove swift diff
Final set of changes to remove the diffs carried to make UFO work with
OpenStack Swift. The code is now a complete layering on top of OpenStack Swift
where we either "monkey patch" or subclass as necessary.
See BZ 870589 (https://bugzilla.redhat.com/show_bug.cgi?id=870589).
There are a lot of changes here due for the most part to rearranging the
directory hierarchy to have create a proper python module hierarchy under the
"gluster" namespace. Plugin references have been removed. The differences that
used to be in the swift.diff file are now replaced with server implementations
for account, container, object, and proxy that subclass the swift versions.
Additionally, the plugins/conf directory has been moved to the "etc"
directory, and the plugins/bin directory promoted a level.
Unit tests pass.
A new setup.py file is provided so that the install process can use it for
creating all the necessary python install infrastructure (eggs and paste
support).
A new RPM spec file is provided which to properly install the new code, and
the sample configuration files have been modified to reference the new python
egg.
Change-Id: I4316c1b66dca80f847fe9b0d583174689c175599
BUG: 870589
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/4180
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Mohammed Junaid <junaid@redhat.com>
Tested-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'swift/1.4.8/test/unit')
-rw-r--r-- | swift/1.4.8/test/unit/common/__init__.py (renamed from swift/1.4.8/test/unit/plugins/__init__.py) | 0 | ||||
-rw-r--r-- | swift/1.4.8/test/unit/common/data/account_tree.tar.bz2 (renamed from swift/1.4.8/test/unit/plugins/data/account_tree.tar.bz2) | bin | 228 -> 228 bytes | |||
-rw-r--r-- | swift/1.4.8/test/unit/common/data/container_tree.tar.bz2 (renamed from swift/1.4.8/test/unit/plugins/data/container_tree.tar.bz2) | bin | 282 -> 282 bytes | |||
-rw-r--r-- | swift/1.4.8/test/unit/common/test_utils.py (renamed from swift/1.4.8/test/unit/plugins/test_utils.py) | 10 |
4 files changed, 5 insertions, 5 deletions
diff --git a/swift/1.4.8/test/unit/plugins/__init__.py b/swift/1.4.8/test/unit/common/__init__.py index e69de29..e69de29 100644 --- a/swift/1.4.8/test/unit/plugins/__init__.py +++ b/swift/1.4.8/test/unit/common/__init__.py diff --git a/swift/1.4.8/test/unit/plugins/data/account_tree.tar.bz2 b/swift/1.4.8/test/unit/common/data/account_tree.tar.bz2 Binary files differindex cb23e4d..cb23e4d 100644 --- a/swift/1.4.8/test/unit/plugins/data/account_tree.tar.bz2 +++ b/swift/1.4.8/test/unit/common/data/account_tree.tar.bz2 diff --git a/swift/1.4.8/test/unit/plugins/data/container_tree.tar.bz2 b/swift/1.4.8/test/unit/common/data/container_tree.tar.bz2 Binary files differindex b4a1492..b4a1492 100644 --- a/swift/1.4.8/test/unit/plugins/data/container_tree.tar.bz2 +++ b/swift/1.4.8/test/unit/common/data/container_tree.tar.bz2 diff --git a/swift/1.4.8/test/unit/plugins/test_utils.py b/swift/1.4.8/test/unit/common/test_utils.py index 92c7ff0..ec66324 100644 --- a/swift/1.4.8/test/unit/plugins/test_utils.py +++ b/swift/1.4.8/test/unit/common/test_utils.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -""" Tests for plugins.utils """ +""" Tests for common.utils """ import os import unittest @@ -26,7 +26,7 @@ import tarfile import shutil from collections import defaultdict from swift.common.utils import normalize_timestamp -from swift.plugins import utils +from gluster.swift.common import utils # # Somewhat hacky way of emulating the operation of xattr calls. They are made @@ -119,7 +119,7 @@ class SimMemcache(object): class TestUtils(unittest.TestCase): - """ Tests for plugins.utils """ + """ Tests for common.utils """ def setUp(self): _initxattr() @@ -753,7 +753,7 @@ class TestUtils(unittest.TestCase): def test_get_container_details_from_fs(self): td = tempfile.mkdtemp() - tf = tarfile.open("plugins/data/account_tree.tar.bz2", "r:bz2") + tf = tarfile.open("common/data/account_tree.tar.bz2", "r:bz2") orig_cwd = os.getcwd() os.chdir(td) tf.extractall() @@ -776,7 +776,7 @@ class TestUtils(unittest.TestCase): def test_get_account_details_from_fs(self): td = tempfile.mkdtemp() - tf = tarfile.open("plugins/data/container_tree.tar.bz2", "r:bz2") + tf = tarfile.open("common/data/container_tree.tar.bz2", "r:bz2") orig_cwd = os.getcwd() os.chdir(td) tf.extractall() |