Rebase swiftonfile to swift 2.1.0 release
Change-Id: I10776fe7d4e3069201775ec6ceae96fd3db32125 Signed-off-by: Prashanth Pai <ppai@redhat.com>
This commit is contained in:
parent
d8765aac78
commit
52e764ecab
@ -1,7 +1,7 @@
|
|||||||
dnspython>=1.9.4
|
dnspython>=1.9.4
|
||||||
eventlet>=0.9.15
|
eventlet>=0.9.15
|
||||||
greenlet>=0.3.1
|
greenlet>=0.3.1
|
||||||
netifaces>=0.5
|
netifaces>=0.5,!=0.10.0,!=0.10.1
|
||||||
pastedeploy>=1.3.3
|
pastedeploy>=1.3.3
|
||||||
simplejson>=2.0.9
|
simplejson>=2.0.9
|
||||||
xattr>=0.4
|
xattr>=0.4
|
||||||
|
@ -45,6 +45,6 @@ class PkgInfo(object):
|
|||||||
###
|
###
|
||||||
### Change the Package version here
|
### Change the Package version here
|
||||||
###
|
###
|
||||||
_pkginfo = PkgInfo('2.0.0', '0', 'swiftonfile', False)
|
_pkginfo = PkgInfo('2.1.0', '0', 'swiftonfile', False)
|
||||||
__version__ = _pkginfo.pretty_version
|
__version__ = _pkginfo.pretty_version
|
||||||
__canonical_version__ = _pkginfo.canonical_version
|
__canonical_version__ = _pkginfo.canonical_version
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Hacking already pins down pep8, pyflakes and flake8
|
# Hacking already pins down pep8, pyflakes and flake8
|
||||||
hacking>=0.5.6,<0.6
|
hacking>=0.8.0,<0.9
|
||||||
coverage
|
coverage
|
||||||
nose
|
nose
|
||||||
nosexcover
|
nosexcover
|
||||||
openstack.nose_plugin
|
openstack.nose_plugin
|
||||||
nosehtmloutput
|
nosehtmloutput
|
||||||
|
oslosphinx
|
||||||
sphinx>=1.1.2,<1.2
|
sphinx>=1.1.2,<1.2
|
||||||
mock>=0.8.0
|
mock>=1.0
|
||||||
python-swiftclient
|
python-swiftclient
|
||||||
prettytable
|
|
||||||
|
@ -916,6 +916,11 @@ class TestObject(unittest.TestCase):
|
|||||||
if tf.skip:
|
if tf.skip:
|
||||||
raise SkipTest
|
raise SkipTest
|
||||||
|
|
||||||
|
try:
|
||||||
|
strict_cors = tf.cluster_info['swift']['strict_cors_mode']
|
||||||
|
except KeyError:
|
||||||
|
raise SkipTest("cors mode is unknown")
|
||||||
|
|
||||||
def put_cors_cont(url, token, parsed, conn, orig):
|
def put_cors_cont(url, token, parsed, conn, orig):
|
||||||
conn.request(
|
conn.request(
|
||||||
'PUT', '%s/%s' % (parsed.path, self.container),
|
'PUT', '%s/%s' % (parsed.path, self.container),
|
||||||
@ -989,11 +994,6 @@ class TestObject(unittest.TestCase):
|
|||||||
resp.read()
|
resp.read()
|
||||||
self.assertEquals(resp.status, 401)
|
self.assertEquals(resp.status, 401)
|
||||||
|
|
||||||
try:
|
|
||||||
strict_cors = tf.cluster_info['swift']['strict_cors_mode']
|
|
||||||
except KeyError:
|
|
||||||
strict_cors = False
|
|
||||||
|
|
||||||
if strict_cors:
|
if strict_cors:
|
||||||
resp = retry(check_cors,
|
resp = retry(check_cors,
|
||||||
'GET', 'cat', {'Origin': 'http://m.com'})
|
'GET', 'cat', {'Origin': 'http://m.com'})
|
||||||
|
@ -28,8 +28,6 @@ import uuid
|
|||||||
import eventlet
|
import eventlet
|
||||||
from nose import SkipTest
|
from nose import SkipTest
|
||||||
|
|
||||||
from swift.common.storage_policy import POLICY
|
|
||||||
|
|
||||||
from test.functional import normalized_urls, load_constraint, cluster_info
|
from test.functional import normalized_urls, load_constraint, cluster_info
|
||||||
import test.functional as tf
|
import test.functional as tf
|
||||||
from test.functional.swift_test_client import Account, Connection, File, \
|
from test.functional.swift_test_client import Account, Connection, File, \
|
||||||
@ -2121,13 +2119,13 @@ class TestCrossPolicyObjectVersioningEnv(object):
|
|||||||
|
|
||||||
cls.versions_container = cls.account.container(prefix + "-versions")
|
cls.versions_container = cls.account.container(prefix + "-versions")
|
||||||
if not cls.versions_container.create(
|
if not cls.versions_container.create(
|
||||||
{POLICY: policy['name']}):
|
{'X-Storage-Policy': policy['name']}):
|
||||||
raise ResponseError(cls.conn.response)
|
raise ResponseError(cls.conn.response)
|
||||||
|
|
||||||
cls.container = cls.account.container(prefix + "-objs")
|
cls.container = cls.account.container(prefix + "-objs")
|
||||||
if not cls.container.create(
|
if not cls.container.create(
|
||||||
hdrs={'X-Versions-Location': cls.versions_container.name,
|
hdrs={'X-Versions-Location': cls.versions_container.name,
|
||||||
POLICY: version_policy['name']}):
|
'X-Storage-Policy': version_policy['name']}):
|
||||||
raise ResponseError(cls.conn.response)
|
raise ResponseError(cls.conn.response)
|
||||||
|
|
||||||
container_info = cls.container.info()
|
container_info = cls.container.info()
|
||||||
|
6
tox.ini
6
tox.ini
@ -18,10 +18,10 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
NOSE_COVER_BRANCHES=1
|
NOSE_COVER_BRANCHES=1
|
||||||
NOSE_COVER_PACKAGE=swiftonfile
|
NOSE_COVER_PACKAGE=swiftonfile
|
||||||
deps =
|
deps =
|
||||||
# GitHub's .zip URL won't work! pip supports installing from git repos.
|
# Note: pip supports installing from git repos.
|
||||||
# https://pip.pypa.io/en/latest/reference/pip_install.html#git
|
# https://pip.pypa.io/en/latest/reference/pip_install.html#git
|
||||||
git+https://github.com/openstack/swift.git@2.0.0
|
# Example: git+https://github.com/openstack/swift.git@2.0.0
|
||||||
-r{toxinidir}/requirements.txt
|
https://launchpad.net/swift/juno/2.1.0/+download/swift-2.1.0.tar.gz
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
changedir = {toxinidir}/test/unit
|
changedir = {toxinidir}/test/unit
|
||||||
commands = nosetests -v {posargs}
|
commands = nosetests -v {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user