rename tests -> api

Now that all the other tests are moved out of the tests directory
we can rename tests -> api to reflect that these tests are api
testing, and need to use only the internal clients.

Clean up references from other parts of OpenStack to the new api
namespace.

Reorder the imports as required with this naming change.

Added README.rst

Change-Id: I19203957f917b59e7c8a3838c590937752461a2f
This commit is contained in:
Sean Dague 2013-05-17 16:36:38 -04:00
parent 77800d3620
commit 1937d09fb0
105 changed files with 157 additions and 103 deletions

50
tempest/api/README.rst Normal file
View File

@ -0,0 +1,50 @@
Tempest Guide to API tests
========
What are these tests?
--------
One of Tempest's prime function is to ensure that your OpenStack cloud
works with the OpenStack API as documented. The current largest
portion of Tempest code is devoted to test cases that do exactly this.
It's also important to test not only the expected possitive path on
APIs, but also to provide them with invalid data to ensure they fail
in expected and documented ways. Over the course of the OpenStack
project Tempest has discovered many fundamental bugs by doing just
this.
In order for some APIs to return meaniful results, there must be
enough data in the system. This means these tests might start by
spinning up a server, image, etc, then opperating on it.
Why are these tests in tempest?
--------
This is one of the core missions for the Tempest project, and where it
started. Many people use this bit of function in Tempest to ensure
their clouds haven't broken the OpenStack API.
It could be argued that some of the negative testing could be done
back in the projects themselves, and we might evolve there over time,
but currently in the OpenStack gate this is a fundamentally important
place to keep things.
Scope of these tests
--------
API tests should always use the Tempest implementation of the
OpenStack API, as we want to ensure that bugs aren't hidden by the
official clients.
They should test specific API calls, and can build up complex state if
it's needed for the API call to be meaningful.
They should send not only good data, but bad data at the API and look
for error codes.
They should all be able to be run on their own, not depending on the
state created by a previous test.

View File

@ -36,7 +36,7 @@ MULTI_USER = True
# All compute tests -- single setup function # All compute tests -- single setup function
def generic_setup_package(): def generic_setup_package():
LOG.debug("Entering tempest.tests.compute.setup_package") LOG.debug("Entering tempest.api.compute.setup_package")
global MULTI_USER, DISK_CONFIG_ENABLED, FLAVOR_EXTRA_DATA_ENABLED global MULTI_USER, DISK_CONFIG_ENABLED, FLAVOR_EXTRA_DATA_ENABLED
os = clients.Manager() os = clients.Manager()

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class AggregatesAdminTestJSON(base.BaseComputeAdminTest): class AggregatesAdminTestJSON(base.BaseComputeAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class AvailabilityZoneAdminTestJSON(base.BaseComputeAdminTest): class AvailabilityZoneAdminTestJSON(base.BaseComputeAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class FixedIPsBase(base.BaseComputeAdminTest): class FixedIPsBase(base.BaseComputeAdminTest):

View File

@ -15,12 +15,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api import compute
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_int_id from tempest.common.utils.data_utils import rand_int_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class FlavorsAdminTestJSON(base.BaseComputeAdminTest): class FlavorsAdminTestJSON(base.BaseComputeAdminTest):

View File

@ -15,12 +15,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api import compute
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_int_id from tempest.common.utils.data_utils import rand_int_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class FlavorsAccessTestJSON(base.BaseComputeAdminTest): class FlavorsAccessTestJSON(base.BaseComputeAdminTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api import compute
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class FlavorsExtraSpecsTestJSON(base.BaseComputeAdminTest): class FlavorsExtraSpecsTestJSON(base.BaseComputeAdminTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class QuotasAdminTestJSON(base.BaseComputeAdminTest): class QuotasAdminTestJSON(base.BaseComputeAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServicesAdminTestJSON(base.BaseComputeAdminTest): class ServicesAdminTestJSON(base.BaseComputeAdminTest):

View File

@ -18,11 +18,11 @@
import logging import logging
import time import time
from tempest.api import compute
from tempest import clients from tempest import clients
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
import tempest.test import tempest.test
from tempest.tests import compute
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class FlavorsTestJSON(base.BaseComputeTest): class FlavorsTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class FloatingIPsTestJSON(base.BaseComputeTest): class FloatingIPsTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class FloatingIPDetailsTestJSON(base.BaseComputeTest): class FloatingIPDetailsTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ImagesMetadataTestJSON(base.BaseComputeTest): class ImagesMetadataTestJSON(base.BaseComputeTest):

View File

@ -17,13 +17,13 @@
import testtools import testtools
from tempest.api import compute
from tempest.api.compute import base
from tempest import clients from tempest import clients
from tempest.common.utils.data_utils import parse_image_id from tempest.common.utils.data_utils import parse_image_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class ImagesTestJSON(base.BaseComputeTest): class ImagesTestJSON(base.BaseComputeTest):

View File

@ -17,13 +17,13 @@
import testtools import testtools
from tempest.api import compute
from tempest.api.compute import base
from tempest import clients from tempest import clients
from tempest.common.utils.data_utils import parse_image_id from tempest.common.utils.data_utils import parse_image_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class ImagesOneServerTestJSON(base.BaseComputeTest): class ImagesOneServerTestJSON(base.BaseComputeTest):

View File

@ -15,11 +15,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import parse_image_id from tempest.common.utils.data_utils import parse_image_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ListImageFiltersTestJSON(base.BaseComputeTest): class ListImageFiltersTestJSON(base.BaseComputeTest):

View File

@ -15,8 +15,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ListImagesTestJSON(base.BaseComputeTest): class ListImagesTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class KeyPairsTestJSON(base.BaseComputeTest): class KeyPairsTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class AbsoluteLimitsTestJSON(base.BaseComputeTest): class AbsoluteLimitsTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class SecurityGroupRulesTestJSON(base.BaseComputeTest): class SecurityGroupRulesTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class SecurityGroupsTestJSON(base.BaseComputeTest): class SecurityGroupsTestJSON(base.BaseComputeTest):

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.tests.compute import base from tempest.api.compute import base
import time import time

View File

@ -20,13 +20,12 @@ import base64
import netaddr import netaddr
import testtools import testtools
from tempest.api import compute
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.common.utils.linux.remote_client import RemoteClient from tempest.common.utils.linux.remote_client import RemoteClient
import tempest.config import tempest.config
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
@attr(type='smoke') @attr(type='smoke')

View File

@ -17,9 +17,9 @@
import testtools import testtools
from tempest.api import compute
from tempest.api.compute import base
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class ServerDiskConfigTestJSON(base.BaseComputeTest): class ServerDiskConfigTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class InstanceActionsTestJSON(base.BaseComputeTest): class InstanceActionsTestJSON(base.BaseComputeTest):

View File

@ -15,14 +15,13 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from tempest.api.compute import base
from tempest.api import utils
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
from tempest.tests import utils
import testtools
class ListServerFiltersTestJSON(base.BaseComputeTest): class ListServerFiltersTestJSON(base.BaseComputeTest):

View File

@ -16,10 +16,10 @@
# under the License. # under the License.
from tempest.api import compute
from tempest.api.compute import base
from tempest import clients from tempest import clients
from tempest import exceptions from tempest import exceptions
from tempest.tests import compute
from tempest.tests.compute import base
class ListServersNegativeTestJSON(base.BaseComputeTest): class ListServersNegativeTestJSON(base.BaseComputeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class MultipleCreateTestJSON(base.BaseComputeTest): class MultipleCreateTestJSON(base.BaseComputeTest):

View File

@ -20,13 +20,13 @@ import time
import testtools import testtools
from tempest.api import compute
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.common.utils.linux.remote_client import RemoteClient from tempest.common.utils.linux.remote_client import RemoteClient
import tempest.config import tempest.config
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests import compute
from tempest.tests.compute import base
class ServerActionsTestJSON(base.BaseComputeTest): class ServerActionsTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServerAddressesTest(base.BaseComputeTest): class ServerAddressesTest(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServerMetadataTestJSON(base.BaseComputeTest): class ServerMetadataTestJSON(base.BaseComputeTest):

View File

@ -17,9 +17,9 @@
import base64 import base64
from tempest.api.compute import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServerPersonalityTestJSON(base.BaseComputeTest): class ServerPersonalityTestJSON(base.BaseComputeTest):

View File

@ -15,11 +15,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
import tempest.config import tempest.config
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServerRescueTestJSON(base.BaseComputeTest): class ServerRescueTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServersTestJSON(base.BaseComputeTest): class ServersTestJSON(base.BaseComputeTest):

View File

@ -17,11 +17,11 @@
import sys import sys
from tempest.api.compute import base
from tempest import clients from tempest import clients
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ServersNegativeTest(base.BaseComputeTest): class ServersNegativeTest(base.BaseComputeTest):

View File

@ -17,10 +17,10 @@
import netaddr import netaddr
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
@attr(type='smoke') @attr(type='smoke')

View File

@ -15,12 +15,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api import compute
from tempest.api.compute import base
from tempest import clients from tempest import clients
from tempest.common.utils.data_utils import parse_image_id from tempest.common.utils.data_utils import parse_image_id
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.tests import compute
from tempest.tests.compute import base
class AuthorizationTestJSON(base.BaseComputeTest): class AuthorizationTestJSON(base.BaseComputeTest):

View File

@ -16,8 +16,8 @@
# under the License. # under the License.
from tempest.api.compute import base
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class ExtensionsTestJSON(base.BaseComputeTest): class ExtensionsTestJSON(base.BaseComputeTest):

View File

@ -20,10 +20,10 @@ import string
import testtools import testtools
from tempest.api.compute import base
from tempest import config from tempest import config
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
@attr(category='live-migration') @attr(category='live-migration')

View File

@ -15,8 +15,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class QuotasTestJSON(base.BaseComputeTest): class QuotasTestJSON(base.BaseComputeTest):

View File

@ -17,10 +17,10 @@
import testtools import testtools
from tempest.api.compute import base
from tempest.common.utils.linux.remote_client import RemoteClient from tempest.common.utils.linux.remote_client import RemoteClient
import tempest.config import tempest.config
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class AttachVolumeTestJSON(base.BaseComputeTest): class AttachVolumeTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.compute import base
class VolumesGetTestJSON(base.BaseComputeTest): class VolumesGetTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.tests.compute import base
class VolumesTestJSON(base.BaseComputeTest): class VolumesTestJSON(base.BaseComputeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.tests.compute import base
class VolumesNegativeTest(base.BaseComputeTest): class VolumesNegativeTest(base.BaseComputeTest):

View File

@ -22,4 +22,4 @@ LOG = logging.getLogger(__name__)
# All identity tests -- single setup function # All identity tests -- single setup function
def setup_package(): def setup_package():
LOG.debug("Entering tempest.tests.identity.setup_package") LOG.debug("Entering tempest.api.identity.setup_package")

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class RolesTestJSON(base.BaseIdentityAdminTest): class RolesTestJSON(base.BaseIdentityAdminTest):

View File

@ -16,10 +16,10 @@
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class ServicesTestJSON(base.BaseIdentityAdminTest): class ServicesTestJSON(base.BaseIdentityAdminTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class TenantsTestJSON(base.BaseIdentityAdminTest): class TenantsTestJSON(base.BaseIdentityAdminTest):

View File

@ -15,12 +15,13 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from testtools.matchers._basic import Contains
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
import testtools
from testtools.matchers._basic import Contains
class UsersTestJSON(base.BaseIdentityAdminTest): class UsersTestJSON(base.BaseIdentityAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class EndPointsTestJSON(base.BaseIdentityAdminTest): class EndPointsTestJSON(base.BaseIdentityAdminTest):

View File

@ -16,9 +16,9 @@
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class ServicesTestJSON(base.BaseIdentityAdminTest): class ServicesTestJSON(base.BaseIdentityAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.identity import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.identity import base
class UsersV3TestJSON(base.BaseIdentityAdminTest): class UsersV3TestJSON(base.BaseIdentityAdminTest):

View File

@ -16,9 +16,9 @@
import cStringIO as StringIO import cStringIO as StringIO
from tempest.api.image import base
from tempest import clients from tempest import clients
from tempest.test import attr from tempest.test import attr
from tempest.tests.image import base
class ImageMembersTests(base.BaseV1ImageTest): class ImageMembersTests(base.BaseV1ImageTest):

View File

@ -17,9 +17,9 @@
import cStringIO as StringIO import cStringIO as StringIO
from tempest.api.image import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.image import base
class CreateRegisterImagesTest(base.BaseV1ImageTest): class CreateRegisterImagesTest(base.BaseV1ImageTest):

View File

@ -19,9 +19,9 @@
import cStringIO as StringIO import cStringIO as StringIO
import random import random
from tempest.api.image import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.image import base
class CreateRegisterImagesTest(base.BaseV2ImageTest): class CreateRegisterImagesTest(base.BaseV2ImageTest):

View File

@ -17,10 +17,10 @@
import netaddr import netaddr
from tempest.api.network import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.network import base
class NetworksTest(base.BaseNetworkTest): class NetworksTest(base.BaseNetworkTest):

View File

@ -16,10 +16,10 @@
# under the License. # under the License.
from tempest.api.identity.base import DataGenerator
from tempest import clients from tempest import clients
from tempest import exceptions from tempest import exceptions
import tempest.test import tempest.test
from tempest.tests.identity.base import DataGenerator
class BaseObjectTest(tempest.test.BaseTestCase): class BaseObjectTest(tempest.test.BaseTestCase):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
class AccountTest(base.BaseObjectTest): class AccountTest(base.BaseObjectTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import arbitrary_string from tempest.common.utils.data_utils import arbitrary_string
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
class ContainerTest(base.BaseObjectTest): class ContainerTest(base.BaseObjectTest):

View File

@ -15,11 +15,13 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import time
import testtools
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
import testtools
import time
class ContainerSyncTest(base.BaseObjectTest): class ContainerSyncTest(base.BaseObjectTest):

View File

@ -15,13 +15,15 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import time
import testtools
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import arbitrary_string from tempest.common.utils.data_utils import arbitrary_string
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
import testtools
import time
class ObjectExpiryTest(base.BaseObjectTest): class ObjectExpiryTest(base.BaseObjectTest):

View File

@ -15,13 +15,15 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import time
import testtools
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import arbitrary_string from tempest.common.utils.data_utils import arbitrary_string
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
import testtools
import time
class ObjectTest(base.BaseObjectTest): class ObjectTest(base.BaseObjectTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.object_storage import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.object_storage import base
class ContainerTest(base.BaseObjectTest): class ContainerTest(base.BaseObjectTest):

View File

@ -18,12 +18,12 @@
import logging import logging
import testtools import testtools
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import config from tempest import config
from tempest.services.volume.json.admin import volume_types_client from tempest.services.volume.json.admin import volume_types_client
from tempest.services.volume.json import volumes_client from tempest.services.volume.json import volumes_client
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume.base import BaseVolumeTest
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.services.volume.json.admin import volume_types_client from tempest.services.volume.json.admin import volume_types_client
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume.base import BaseVolumeTest
class VolumeTypesTest(BaseVolumeTest): class VolumeTypesTest(BaseVolumeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class VolumeTypesExtraSpecsTest(base.BaseVolumeAdminTest): class VolumeTypesExtraSpecsTest(base.BaseVolumeAdminTest):

View File

@ -17,10 +17,10 @@
import uuid import uuid
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class ExtraSpecsNegativeTest(base.BaseVolumeAdminTest): class ExtraSpecsNegativeTest(base.BaseVolumeAdminTest):

View File

@ -17,9 +17,9 @@
import uuid import uuid
from tempest.api.volume import base
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class VolumeTypesNegativeTest(base.BaseVolumeAdminTest): class VolumeTypesNegativeTest(base.BaseVolumeAdminTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume.base import BaseVolumeTest
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume.base import BaseVolumeTest
class VolumesActionsTest(BaseVolumeTest): class VolumesActionsTest(BaseVolumeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class VolumesGetTest(base.BaseVolumeTest): class VolumesGetTest(base.BaseVolumeTest):

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class VolumesListTest(base.BaseVolumeTest): class VolumesListTest(base.BaseVolumeTest):

View File

@ -15,10 +15,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from tempest.api.volume import base
from tempest.common.utils.data_utils import rand_name from tempest.common.utils.data_utils import rand_name
from tempest import exceptions from tempest import exceptions
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
class VolumesNegativeTest(base.BaseVolumeTest): class VolumesNegativeTest(base.BaseVolumeTest):

View File

@ -14,8 +14,8 @@
import logging import logging
from tempest.api.volume import base
from tempest.test import attr from tempest.test import attr
from tempest.tests.volume import base
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

Some files were not shown because too many files have changed in this diff Show More