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
|
||||
eventlet>=0.9.15
|
||||
greenlet>=0.3.1
|
||||
netifaces>=0.5
|
||||
netifaces>=0.5,!=0.10.0,!=0.10.1
|
||||
pastedeploy>=1.3.3
|
||||
simplejson>=2.0.9
|
||||
xattr>=0.4
|
||||
|
@ -45,6 +45,6 @@ class PkgInfo(object):
|
||||
###
|
||||
### 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
|
||||
__canonical_version__ = _pkginfo.canonical_version
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Hacking already pins down pep8, pyflakes and flake8
|
||||
hacking>=0.5.6,<0.6
|
||||
hacking>=0.8.0,<0.9
|
||||
coverage
|
||||
nose
|
||||
nosexcover
|
||||
openstack.nose_plugin
|
||||
nosehtmloutput
|
||||
oslosphinx
|
||||
sphinx>=1.1.2,<1.2
|
||||
mock>=0.8.0
|
||||
mock>=1.0
|
||||
python-swiftclient
|
||||
prettytable
|
||||
|
@ -916,6 +916,11 @@ class TestObject(unittest.TestCase):
|
||||
if tf.skip:
|
||||
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):
|
||||
conn.request(
|
||||
'PUT', '%s/%s' % (parsed.path, self.container),
|
||||
@ -989,11 +994,6 @@ class TestObject(unittest.TestCase):
|
||||
resp.read()
|
||||
self.assertEquals(resp.status, 401)
|
||||
|
||||
try:
|
||||
strict_cors = tf.cluster_info['swift']['strict_cors_mode']
|
||||
except KeyError:
|
||||
strict_cors = False
|
||||
|
||||
if strict_cors:
|
||||
resp = retry(check_cors,
|
||||
'GET', 'cat', {'Origin': 'http://m.com'})
|
||||
|
@ -28,8 +28,6 @@ import uuid
|
||||
import eventlet
|
||||
from nose import SkipTest
|
||||
|
||||
from swift.common.storage_policy import POLICY
|
||||
|
||||
from test.functional import normalized_urls, load_constraint, cluster_info
|
||||
import test.functional as tf
|
||||
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")
|
||||
if not cls.versions_container.create(
|
||||
{POLICY: policy['name']}):
|
||||
{'X-Storage-Policy': policy['name']}):
|
||||
raise ResponseError(cls.conn.response)
|
||||
|
||||
cls.container = cls.account.container(prefix + "-objs")
|
||||
if not cls.container.create(
|
||||
hdrs={'X-Versions-Location': cls.versions_container.name,
|
||||
POLICY: version_policy['name']}):
|
||||
'X-Storage-Policy': version_policy['name']}):
|
||||
raise ResponseError(cls.conn.response)
|
||||
|
||||
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_PACKAGE=swiftonfile
|
||||
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
|
||||
git+https://github.com/openstack/swift.git@2.0.0
|
||||
-r{toxinidir}/requirements.txt
|
||||
# Example: git+https://github.com/openstack/swift.git@2.0.0
|
||||
https://launchpad.net/swift/juno/2.1.0/+download/swift-2.1.0.tar.gz
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
changedir = {toxinidir}/test/unit
|
||||
commands = nosetests -v {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user