fix SkipTest imports in functests so they can be run directly by nose

Change-Id: I7ecc48f69ca677d5ecb0986ac4042688442355bb
This commit is contained in:
John Dickinson 2017-12-18 09:33:40 -08:00
parent 8dcef64975
commit 2cf5e7ceff
8 changed files with 9 additions and 16 deletions

View File

@ -18,14 +18,13 @@
import unittest2 import unittest2
import json import json
from uuid import uuid4 from uuid import uuid4
from unittest2 import SkipTest
from string import ascii_letters from string import ascii_letters
from six.moves import range from six.moves import range
from swift.common.middleware.acl import format_acl from swift.common.middleware.acl import format_acl
from test.functional import check_response, retry, requires_acls, \ from test.functional import check_response, retry, requires_acls, \
load_constraint load_constraint, SkipTest
import test.functional as tf import test.functional as tf

View File

@ -17,11 +17,10 @@
import json import json
import unittest2 import unittest2
from unittest2 import SkipTest
from uuid import uuid4 from uuid import uuid4
from test.functional import check_response, cluster_info, retry, \ from test.functional import check_response, cluster_info, retry, \
requires_acls, load_constraint, requires_policies requires_acls, load_constraint, requires_policies, SkipTest
import test.functional as tf import test.functional as tf
from six.moves import range from six.moves import range

View File

@ -18,14 +18,13 @@
import datetime import datetime
import json import json
import unittest2 import unittest2
from unittest2 import SkipTest
from uuid import uuid4 from uuid import uuid4
import time import time
from six.moves import range from six.moves import range
from test.functional import check_response, retry, requires_acls, \ from test.functional import check_response, retry, requires_acls, \
requires_policies requires_policies, SkipTest
import test.functional as tf import test.functional as tf

View File

@ -19,10 +19,9 @@ import hashlib
import itertools import itertools
import json import json
from copy import deepcopy from copy import deepcopy
from unittest2 import SkipTest
import test.functional as tf import test.functional as tf
from test.functional import cluster_info from test.functional import cluster_info, SkipTest
from test.functional.tests import Utils, Base, Base2, BaseEnv from test.functional.tests import Utils, Base, Base2, BaseEnv
from test.functional.swift_test_client import Connection, ResponseError from test.functional.swift_test_client import Connection, ResponseError

View File

@ -22,11 +22,11 @@ import time
from six.moves import urllib from six.moves import urllib
from uuid import uuid4 from uuid import uuid4
from unittest2 import SkipTest
from swift.common.utils import json, MD5_OF_EMPTY_STRING from swift.common.utils import json, MD5_OF_EMPTY_STRING
from swift.common.middleware.slo import SloGetContext from swift.common.middleware.slo import SloGetContext
from test.functional import check_response, retry, requires_acls, cluster_info from test.functional import check_response, retry, requires_acls, \
cluster_info, SkipTest
from test.functional.tests import Base, TestFileComparisonEnv, Utils, BaseEnv from test.functional.tests import Base, TestFileComparisonEnv, Utils, BaseEnv
from test.functional.test_slo import TestSloEnv from test.functional.test_slo import TestSloEnv
from test.functional.test_dlo import TestDloEnv from test.functional.test_dlo import TestDloEnv

View File

@ -19,14 +19,13 @@ import hashlib
import json import json
from copy import deepcopy from copy import deepcopy
from six.moves import urllib from six.moves import urllib
from unittest2 import SkipTest
from time import time, strftime, gmtime from time import time, strftime, gmtime
import test.functional as tf import test.functional as tf
from swift.common.middleware import tempurl from swift.common.middleware import tempurl
from test.functional import cluster_info from test.functional import cluster_info
from test.functional.tests import Utils, Base, Base2, BaseEnv from test.functional.tests import Utils, Base, Base2, BaseEnv
from test.functional import requires_acls from test.functional import requires_acls, SkipTest
from test.functional.swift_test_client import Account, Connection, \ from test.functional.swift_test_client import Account, Connection, \
ResponseError ResponseError

View File

@ -17,14 +17,13 @@
import json import json
import time import time
import unittest2 import unittest2
from unittest2 import SkipTest
import test.functional as tf import test.functional as tf
from copy import deepcopy from copy import deepcopy
from swift.common.utils import MD5_OF_EMPTY_STRING from swift.common.utils import MD5_OF_EMPTY_STRING
from test.functional.tests import Base, Base2, BaseEnv, Utils from test.functional.tests import Base, Base2, BaseEnv, Utils
from test.functional import cluster_info from test.functional import cluster_info, SkipTest
from test.functional.swift_test_client import Account, Connection, \ from test.functional.swift_test_client import Account, Connection, \
ResponseError ResponseError

View File

@ -26,7 +26,6 @@ import unittest2
import uuid import uuid
from copy import deepcopy from copy import deepcopy
import eventlet import eventlet
from unittest2 import SkipTest
from swift.common.http import is_success, is_client_error from swift.common.http import is_success, is_client_error
from email.utils import parsedate from email.utils import parsedate
@ -36,7 +35,7 @@ from test.functional import normalized_urls, load_constraint, cluster_info
from test.functional import check_response, retry from test.functional import check_response, retry
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, \
ResponseError ResponseError, SkipTest
def setUpModule(): def setUpModule():