Merge "py3: Finish porting func tests"
This commit is contained in:
commit
2cee9f750f
@ -43,8 +43,6 @@ from swift.common.storage_policy import parse_storage_policies, PolicyError
|
|||||||
from swift.common.utils import set_swift_dir
|
from swift.common.utils import set_swift_dir
|
||||||
|
|
||||||
from test import get_config, listen_zero
|
from test import get_config, listen_zero
|
||||||
from test.functional.swift_test_client import Account, Connection, Container, \
|
|
||||||
ResponseError
|
|
||||||
|
|
||||||
from test.unit import debug_logger, FakeMemcache
|
from test.unit import debug_logger, FakeMemcache
|
||||||
# importing skip_if_no_xattrs so that functional tests can grab it from the
|
# importing skip_if_no_xattrs so that functional tests can grab it from the
|
||||||
@ -75,6 +73,10 @@ eventlet.hubs.use_hub(utils.get_hub())
|
|||||||
eventlet.patcher.monkey_patch(all=False, socket=True)
|
eventlet.patcher.monkey_patch(all=False, socket=True)
|
||||||
eventlet.debug.hub_exceptions(False)
|
eventlet.debug.hub_exceptions(False)
|
||||||
|
|
||||||
|
# swift_test_client import from swiftclient, so move after the monkey-patching
|
||||||
|
from test.functional.swift_test_client import Account, Connection, Container, \
|
||||||
|
ResponseError
|
||||||
|
|
||||||
from swiftclient import get_auth, http_connection
|
from swiftclient import get_auth, http_connection
|
||||||
|
|
||||||
has_insecure = False
|
has_insecure = False
|
||||||
|
29
tox.ini
29
tox.ini
@ -46,48 +46,29 @@ commands = ./.functests {posargs}
|
|||||||
|
|
||||||
[testenv:func-py3]
|
[testenv:func-py3]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands =
|
commands = ./.functests {posargs}
|
||||||
nosetests {posargs: \
|
|
||||||
test/functional/s3api/test_acl.py \
|
|
||||||
test/functional/s3api/test_multi_delete.py \
|
|
||||||
test/functional/s3api/test_multi_upload.py \
|
|
||||||
test/functional/s3api/test_object.py \
|
|
||||||
test/functional/s3api/test_presigned.py \
|
|
||||||
test/functional/s3api/test_service.py \
|
|
||||||
test/functional/test_access_control.py \
|
|
||||||
test/functional/test_account.py \
|
|
||||||
test/functional/test_container.py \
|
|
||||||
test/functional/test_dlo.py \
|
|
||||||
test/functional/test_domain_remap.py \
|
|
||||||
test/functional/test_object.py \
|
|
||||||
test/functional/test_slo.py \
|
|
||||||
test/functional/test_staticweb.py \
|
|
||||||
test/functional/test_symlink.py \
|
|
||||||
test/functional/test_tempurl.py \
|
|
||||||
test/functional/test_versioned_writes.py \
|
|
||||||
test/functional/tests.py}
|
|
||||||
|
|
||||||
[testenv:func-ec-py3]
|
[testenv:func-ec-py3]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {[testenv:func-py3]commands}
|
commands = ./.functests {posargs}
|
||||||
setenv = SWIFT_TEST_IN_PROCESS=1
|
setenv = SWIFT_TEST_IN_PROCESS=1
|
||||||
SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec
|
SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec
|
||||||
|
|
||||||
[testenv:func-s3api-py3]
|
[testenv:func-s3api-py3]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {[testenv:func-py3]commands}
|
commands = ./.functests {posargs}
|
||||||
setenv = SWIFT_TEST_IN_PROCESS=1
|
setenv = SWIFT_TEST_IN_PROCESS=1
|
||||||
SWIFT_TEST_IN_PROCESS_CONF_LOADER=s3api
|
SWIFT_TEST_IN_PROCESS_CONF_LOADER=s3api
|
||||||
|
|
||||||
[testenv:func-encryption-py3]
|
[testenv:func-encryption-py3]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {[testenv:func-py3]commands}
|
commands = ./.functests {posargs}
|
||||||
setenv = SWIFT_TEST_IN_PROCESS=1
|
setenv = SWIFT_TEST_IN_PROCESS=1
|
||||||
SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption
|
SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption
|
||||||
|
|
||||||
[testenv:func-domain-remap-staticweb-py3]
|
[testenv:func-domain-remap-staticweb-py3]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {[testenv:func-py3]commands}
|
commands = ./.functests {posargs}
|
||||||
setenv = SWIFT_TEST_IN_PROCESS=1
|
setenv = SWIFT_TEST_IN_PROCESS=1
|
||||||
SWIFT_TEST_IN_PROCESS_CONF_LOADER=domain_remap_staticweb
|
SWIFT_TEST_IN_PROCESS_CONF_LOADER=domain_remap_staticweb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user