Use uuidsentinel from oslo.utils
oslo.utils release 3.37.0 [1] introduced uuidsentinel [2]. This change rips out nova's uuidsentinel and replaces it with the one from oslo.utils. [1] https://review.openstack.org/#/c/599754/ [2] https://review.openstack.org/#/c/594179/ Change-Id: I7f5f08691ca3f73073c66c29dddb996fb2c2b266 Depends-On: https://review.openstack.org/600041
This commit is contained in:
parent
0f102089dd
commit
8e1ca5bf34
@ -90,7 +90,7 @@ oslo.reports==1.18.0
|
|||||||
oslo.rootwrap==5.8.0
|
oslo.rootwrap==5.8.0
|
||||||
oslo.serialization==2.18.0
|
oslo.serialization==2.18.0
|
||||||
oslo.service==1.24.0
|
oslo.service==1.24.0
|
||||||
oslo.utils==3.33.0
|
oslo.utils==3.37.0
|
||||||
oslo.versionedobjects==1.31.2
|
oslo.versionedobjects==1.31.2
|
||||||
oslo.vmware==2.17.0
|
oslo.vmware==2.17.0
|
||||||
oslotest==3.2.0
|
oslotest==3.2.0
|
||||||
|
@ -42,6 +42,7 @@ from oslo_config import fixture as config_fixture
|
|||||||
from oslo_log.fixture import logging_error as log_fixture
|
from oslo_log.fixture import logging_error as log_fixture
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_versionedobjects import fixture as ovo_fixture
|
from oslo_versionedobjects import fixture as ovo_fixture
|
||||||
from oslotest import mock_fixture
|
from oslotest import mock_fixture
|
||||||
@ -60,7 +61,6 @@ from nova.objects import base as objects_base
|
|||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests.unit import conf_fixture
|
from nova.tests.unit import conf_fixture
|
||||||
from nova.tests.unit import policy_fixture
|
from nova.tests.unit import policy_fixture
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.virt import images
|
from nova.virt import images
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ from oslo_config import cfg
|
|||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
from oslo_messaging import conffixture as messaging_conffixture
|
from oslo_messaging import conffixture as messaging_conffixture
|
||||||
from oslo_privsep import daemon as privsep_daemon
|
from oslo_privsep import daemon as privsep_daemon
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
from requests import adapters
|
from requests import adapters
|
||||||
from wsgi_intercept import interceptor
|
from wsgi_intercept import interceptor
|
||||||
@ -57,7 +58,6 @@ from nova import rpc
|
|||||||
from nova import service
|
from nova import service
|
||||||
from nova.tests.functional.api import client
|
from nova.tests.functional.api import client
|
||||||
from nova.tests.functional.api.openstack.placement.fixtures import placement
|
from nova.tests.functional.api.openstack.placement.fixtures import placement
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
_TRUE_VALUES = ('True', 'true', '1', 'yes')
|
_TRUE_VALUES = ('True', 'true', '1', 'yes')
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
import os_traits
|
import os_traits
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
@ -19,7 +20,6 @@ from nova.api.openstack.placement import lib as placement_lib
|
|||||||
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
"""Base class and convenience utilities for functional placement tests."""
|
"""Base class and convenience utilities for functional placement tests."""
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova.api.openstack.placement import exception
|
from nova.api.openstack.placement import exception
|
||||||
@ -20,7 +20,6 @@ from nova.api.openstack.placement.objects import project as project_obj
|
|||||||
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
||||||
from nova.api.openstack.placement.objects import user as user_obj
|
from nova.api.openstack.placement.objects import user as user_obj
|
||||||
from nova.tests.functional.api.openstack.placement import base
|
from nova.tests.functional.api.openstack.placement import base
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
def create_provider(context, name, *aggs, **kwargs):
|
def create_provider(context, name, *aggs, **kwargs):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
from nova.api.openstack.placement import db_api
|
from nova.api.openstack.placement import db_api
|
||||||
@ -22,7 +23,7 @@ from nova.api.openstack.placement.objects import user as user_obj
|
|||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova.tests.functional.api.openstack.placement import base
|
from nova.tests.functional.api.openstack.placement import base
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
CONSUMER_TBL = consumer_obj.CONSUMER_TBL
|
CONSUMER_TBL = consumer_obj.CONSUMER_TBL
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack.placement import exception
|
from nova.api.openstack.placement import exception
|
||||||
from nova.api.openstack.placement.objects import project as project_obj
|
from nova.api.openstack.placement.objects import project as project_obj
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ProjectTestCase(tb.PlacementDbBaseTestCase):
|
class ProjectTestCase(tb.PlacementDbBaseTestCase):
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack.placement import exception
|
from nova.api.openstack.placement import exception
|
||||||
from nova.api.openstack.placement.objects import consumer as consumer_obj
|
from nova.api.openstack.placement.objects import consumer as consumer_obj
|
||||||
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
def alloc_for_rc(alloc_list, rc):
|
def alloc_for_rc(alloc_list, rc):
|
||||||
|
@ -15,6 +15,7 @@ import functools
|
|||||||
import mock
|
import mock
|
||||||
import os_traits
|
import os_traits
|
||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
import nova
|
import nova
|
||||||
@ -24,7 +25,6 @@ from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
|||||||
from nova.db.sqlalchemy import api_models as models
|
from nova.db.sqlalchemy import api_models as models
|
||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
DISK_INVENTORY = dict(
|
DISK_INVENTORY = dict(
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack.placement import exception
|
from nova.api.openstack.placement import exception
|
||||||
from nova.api.openstack.placement.objects import user as user_obj
|
from nova.api.openstack.placement.objects import user as user_obj
|
||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class UserTestCase(tb.PlacementDbBaseTestCase):
|
class UserTestCase(tb.PlacementDbBaseTestCase):
|
||||||
|
@ -17,6 +17,7 @@ from oslo_config import cfg
|
|||||||
from oslo_config import fixture as config_fixture
|
from oslo_config import fixture as config_fixture
|
||||||
from oslo_middleware import cors
|
from oslo_middleware import cors
|
||||||
from oslo_policy import opts as policy_opts
|
from oslo_policy import opts as policy_opts
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
from oslotest import output
|
from oslotest import output
|
||||||
|
|
||||||
@ -31,7 +32,6 @@ from nova.tests import fixtures
|
|||||||
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
from nova.tests.functional.api.openstack.placement.db import test_base as tb
|
||||||
from nova.tests.functional.api.openstack.placement.fixtures import capture
|
from nova.tests.functional.api.openstack.placement.fixtures import capture
|
||||||
from nova.tests.unit import policy_fixture
|
from nova.tests.unit import policy_fixture
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
|
|
||||||
from nova.api.openstack.placement import direct
|
from nova.api.openstack.placement import direct
|
||||||
from nova.tests.functional.api.openstack.placement import base
|
from nova.tests.functional.api.openstack.placement import base
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -13,12 +13,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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova.objects import keypair as keypair_obj
|
from nova.objects import keypair as keypair_obj
|
||||||
from nova.tests.functional.api_sample_tests import api_sample_base
|
from nova.tests.functional.api_sample_tests import api_sample_base
|
||||||
from nova.tests.unit import fake_crypto
|
from nova.tests.unit import fake_crypto
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class KeyPairsSampleJsonTest(api_sample_base.ApiSampleTestBaseV21):
|
class KeyPairsSampleJsonTest(api_sample_base.ApiSampleTestBaseV21):
|
||||||
|
@ -15,10 +15,11 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.tests.functional.api_sample_tests import api_sample_base
|
from nova.tests.functional.api_sample_tests import api_sample_base
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE(ShaoHe Feng) here I can not use uuidsentinel, it generate a random
|
# NOTE(ShaoHe Feng) here I can not use uuidsentinel, it generate a random
|
||||||
|
@ -12,11 +12,10 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.tests.functional.api import client as api_client
|
from nova.tests.functional.api import client as api_client
|
||||||
from nova.tests.functional import api_samples_test_base
|
from nova.tests.functional import api_samples_test_base
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class VirtualInterfacesJsonTest(api_samples_test_base.ApiSampleTestBase):
|
class VirtualInterfacesJsonTest(api_samples_test_base.ApiSampleTestBase):
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import api as compute_api
|
from nova.compute import api as compute_api
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import objects
|
from nova import objects
|
||||||
@ -24,7 +26,7 @@ from nova.tests.functional.api_sample_tests import test_servers
|
|||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
COMPUTE_VERSION_OLD_ATTACH_FLOW = \
|
COMPUTE_VERSION_OLD_ATTACH_FLOW = \
|
||||||
compute_api.CINDER_V3_ATTACH_MIN_COMPUTE_VERSION - 1
|
compute_api.CINDER_V3_ATTACH_MIN_COMPUTE_VERSION - 1
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import api as compute_api
|
from nova.compute import api as compute_api
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -18,7 +19,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeHostAPIMultiCellTestCase(test.NoDBTestCase):
|
class ComputeHostAPIMultiCellTestCase(test.NoDBTestCase):
|
||||||
|
@ -12,13 +12,14 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import instance_list
|
from nova.compute import instance_list
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova.db import api as db
|
from nova.db import api as db
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class InstanceListTestCase(test.TestCase):
|
class InstanceListTestCase(test.TestCase):
|
||||||
|
@ -12,12 +12,13 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
|
|
||||||
from nova.compute import migration_list
|
from nova.compute import migration_list
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
class TestMigrationListObjects(test.TestCase):
|
class TestMigrationListObjects(test.TestCase):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import power_state
|
from nova.compute import power_state
|
||||||
from nova.compute import resource_tracker
|
from nova.compute import resource_tracker
|
||||||
@ -22,9 +23,9 @@ from nova import objects
|
|||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests.functional import test_report_client as test_base
|
from nova.tests.functional import test_report_client as test_base
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova.virt import driver as virt_driver
|
from nova.virt import driver as virt_driver
|
||||||
|
|
||||||
|
|
||||||
CONF = conf.CONF
|
CONF = conf.CONF
|
||||||
VCPU = fields.ResourceClass.VCPU
|
VCPU = fields.ResourceClass.VCPU
|
||||||
MEMORY_MB = fields.ResourceClass.MEMORY_MB
|
MEMORY_MB = fields.ResourceClass.MEMORY_MB
|
||||||
|
@ -14,6 +14,7 @@ from copy import deepcopy
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -24,7 +25,6 @@ import nova.objects.aggregate as aggregate_obj
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests.unit.objects.test_objects import compare_obj as base_compare
|
from nova.tests.unit.objects.test_objects import compare_obj as base_compare
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
SUBS = {'metadata': 'metadetails'}
|
SUBS = {'metadata': 'metadetails'}
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.objects import fields as obj_fields
|
from nova.objects import fields as obj_fields
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
_HOSTNAME = 'fake-host'
|
_HOSTNAME = 'fake-host'
|
||||||
_NODENAME = 'fake-node'
|
_NODENAME = 'fake-node'
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -19,7 +20,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ConnectionSwitchTestCase(test.NoDBTestCase):
|
class ConnectionSwitchTestCase(test.NoDBTestCase):
|
||||||
|
@ -12,13 +12,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.
|
||||||
|
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_versionedobjects import fixture as ovo_fixture
|
from oslo_versionedobjects import fixture as ovo_fixture
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
class ConsoleAuthTokenTestCase(test.TestCase):
|
class ConsoleAuthTokenTestCase(test.TestCase):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -20,7 +21,6 @@ from nova.objects import cell_mapping
|
|||||||
from nova.objects import host_mapping
|
from nova.objects import host_mapping
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
sample_mapping = {'host': 'fake-host',
|
sample_mapping = {'host': 'fake-host',
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_versionedobjects import fixture as ovo_fixture
|
from oslo_versionedobjects import fixture as ovo_fixture
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -19,7 +20,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.objects import base
|
from nova.objects import base
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class InstanceGroupObjectTestCase(test.TestCase):
|
class InstanceGroupObjectTestCase(test.TestCase):
|
||||||
|
@ -10,6 +10,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 oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova.compute import vm_states
|
from nova.compute import vm_states
|
||||||
@ -20,7 +21,6 @@ from nova.objects import instance
|
|||||||
from nova.objects import instance_mapping
|
from nova.objects import instance_mapping
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
sample_mapping = {'instance_uuid': '',
|
sample_mapping = {'instance_uuid': '',
|
||||||
|
@ -22,6 +22,7 @@ import string
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
import nova.conf
|
import nova.conf
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -34,7 +35,6 @@ from nova.tests.unit import cast_as_call
|
|||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
import nova.tests.unit.image.fake
|
import nova.tests.unit.image.fake
|
||||||
from nova.tests.unit import policy_fixture
|
from nova.tests.unit import policy_fixture
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova.virt import fake
|
from nova.virt import fake
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova.compute import instance_actions
|
from nova.compute import instance_actions
|
||||||
@ -21,7 +22,7 @@ from nova import conf
|
|||||||
from nova.tests.functional import integrated_helpers
|
from nova.tests.functional import integrated_helpers
|
||||||
import nova.tests.unit.image.fake
|
import nova.tests.unit.image.fake
|
||||||
from nova.tests.unit.virt.libvirt import fakelibvirt
|
from nova.tests.unit.virt.libvirt import fakelibvirt
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = conf.CONF
|
CONF = conf.CONF
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
import copy
|
import copy
|
||||||
from keystoneauth1 import exceptions as kse
|
from keystoneauth1 import exceptions as kse
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
from nova.api.openstack.placement import direct
|
from nova.api.openstack.placement import direct
|
||||||
@ -31,7 +32,7 @@ from nova import rc_fields as fields
|
|||||||
from nova.scheduler.client import report
|
from nova.scheduler.client import report
|
||||||
from nova.scheduler import utils
|
from nova.scheduler import utils
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = conf.CONF
|
CONF = conf.CONF
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ import zlib
|
|||||||
import mock
|
import mock
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_serialization import base64
|
from oslo_serialization import base64
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -40,7 +41,6 @@ from nova.tests.unit.api.openstack import fakes
|
|||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
import nova.tests.unit.image.fake
|
import nova.tests.unit.image.fake
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova.virt import fake
|
from nova.virt import fake
|
||||||
from nova import volume
|
from nova import volume
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests.functional.api import client
|
from nova.tests.functional.api import client
|
||||||
from nova.tests.functional import integrated_helpers
|
from nova.tests.functional import integrated_helpers
|
||||||
from nova.tests.functional import test_servers
|
from nova.tests.functional import test_servers
|
||||||
from nova.tests.unit import policy_fixture
|
from nova.tests.unit import policy_fixture
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
def create_request_body():
|
def create_request_body():
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
"""Tests for the aggregates admin api."""
|
"""Tests for the aggregates admin api."""
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
from nova.api.openstack import api_version_request
|
from nova.api.openstack import api_version_request
|
||||||
@ -27,7 +28,6 @@ from nova import objects
|
|||||||
from nova.objects import base as obj_base
|
from nova.objects import base as obj_base
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
def _make_agg_obj(agg_dict):
|
def _make_agg_obj(agg_dict):
|
||||||
|
@ -16,6 +16,7 @@ import datetime
|
|||||||
|
|
||||||
import iso8601
|
import iso8601
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
|
|
||||||
from nova.api.openstack.compute import availability_zone as az_v21
|
from nova.api.openstack.compute import availability_zone as az_v21
|
||||||
from nova.api.openstack.compute import servers as servers_v21
|
from nova.api.openstack.compute import servers as servers_v21
|
||||||
@ -30,7 +31,6 @@ from nova.tests.unit.api.openstack import fakes
|
|||||||
from nova.tests.unit.image import fake
|
from nova.tests.unit.image import fake
|
||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests.unit.objects import test_service
|
from nova.tests.unit.objects import test_service
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
FAKE_UUID = fakes.FAKE_UUID
|
FAKE_UUID = fakes.FAKE_UUID
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -27,7 +28,6 @@ from nova import policy
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
FAKE_UUID = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
|
FAKE_UUID = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import testtools
|
import testtools
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -24,7 +25,6 @@ from nova import exception
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack.compute import (extended_volumes
|
from nova.api.openstack.compute import (extended_volumes
|
||||||
as extended_volumes_v21)
|
as extended_volumes_v21)
|
||||||
@ -26,7 +27,7 @@ from nova import test
|
|||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
UUID1 = '00000000-0000-0000-0000-000000000001'
|
UUID1 = '00000000-0000-0000-0000-000000000001'
|
||||||
UUID2 = '00000000-0000-0000-0000-000000000002'
|
UUID2 = '00000000-0000-0000-0000-000000000002'
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -29,7 +30,6 @@ from nova.objects import base as obj_base
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_network
|
from nova.tests.unit import fake_network
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
FAKE_UUID = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
|
FAKE_UUID = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import testtools
|
import testtools
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
@ -27,7 +28,6 @@ from nova import test
|
|||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_hosts
|
from nova.tests.unit import fake_hosts
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
def stub_service_get_all(context, disabled=None):
|
def stub_service_get_all(context, disabled=None):
|
||||||
|
@ -18,6 +18,7 @@ import copy
|
|||||||
import mock
|
import mock
|
||||||
import netaddr
|
import netaddr
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ from nova import objects
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CPU_INFO = """
|
CPU_INFO = """
|
||||||
{"arch": "x86_64",
|
{"arch": "x86_64",
|
||||||
|
@ -17,6 +17,7 @@ import copy
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
@ -30,7 +31,7 @@ from nova import policy
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_server_actions
|
from nova.tests.unit import fake_server_actions
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
FAKE_UUID = fake_server_actions.FAKE_UUID
|
FAKE_UUID = fake_server_actions.FAKE_UUID
|
||||||
FAKE_REQUEST_ID = fake_server_actions.FAKE_REQUEST_ID1
|
FAKE_REQUEST_ID = fake_server_actions.FAKE_REQUEST_ID1
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
@ -26,7 +27,6 @@ from nova import objects
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack.compute import admin_only_action_common
|
from nova.tests.unit.api.openstack.compute import admin_only_action_common
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class MigrateServerTestsV21(admin_only_action_common.CommonTests):
|
class MigrateServerTestsV21(admin_only_action_common.CommonTests):
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
from webob import exc
|
from webob import exc
|
||||||
|
|
||||||
@ -25,7 +26,6 @@ from nova import objects
|
|||||||
from nova.objects import base
|
from nova.objects import base
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
fake_migrations = [
|
fake_migrations = [
|
||||||
|
@ -22,6 +22,7 @@ import iso8601
|
|||||||
import mock
|
import mock
|
||||||
import netaddr
|
import netaddr
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from nova.api.openstack.compute import networks as networks_v21
|
from nova.api.openstack.compute import networks as networks_v21
|
||||||
@ -34,9 +35,9 @@ from nova.network.neutronv2 import api as neutron
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
import nova.utils
|
import nova.utils
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
FAKE_NETWORK_PROJECT_ID = '6133f8b603924f45bc0c9e21f6df12fa'
|
FAKE_NETWORK_PROJECT_ID = '6133f8b603924f45bc0c9e21f6df12fa'
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ from neutronclient.common import exceptions as n_exc
|
|||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ from nova.objects import instance as instance_obj
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack.compute import test_security_groups
|
from nova.tests.unit.api.openstack.compute import test_security_groups
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
UUID_SERVER = uuids.server
|
UUID_SERVER = uuids.server
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ import mock
|
|||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from nova.api.openstack.compute import security_groups as \
|
from nova.api.openstack.compute import security_groups as \
|
||||||
@ -30,7 +31,7 @@ from nova import objects
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
FAKE_UUID1 = 'a47ae74e-ab08-447f-8eee-ffd43fc46c16'
|
FAKE_UUID1 = 'a47ae74e-ab08-447f-8eee-ffd43fc46c16'
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -31,7 +32,7 @@ from nova.tests.unit.api.openstack import fakes
|
|||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests.unit.image import fake
|
from nova.tests.unit.image import fake
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
FAKE_UUID = fakes.FAKE_UUID
|
FAKE_UUID = fakes.FAKE_UUID
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack.compute import server_diagnostics
|
from nova.api.openstack.compute import server_diagnostics
|
||||||
from nova.api.openstack import wsgi as os_wsgi
|
from nova.api.openstack import wsgi as os_wsgi
|
||||||
@ -23,7 +24,7 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
UUID = uuids.abc
|
UUID = uuids.abc
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from nova.api.openstack.compute import server_external_events \
|
from nova.api.openstack.compute import server_external_events \
|
||||||
@ -22,7 +23,7 @@ from nova import objects
|
|||||||
from nova.objects import instance as instance_obj
|
from nova.objects import instance as instance_obj
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
fake_instances = {
|
fake_instances = {
|
||||||
'00000000-0000-0000-0000-000000000001': objects.Instance(id=1,
|
'00000000-0000-0000-0000-000000000001': objects.Instance(id=1,
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ from nova import context
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import copy
|
import copy
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
@ -29,7 +30,6 @@ from nova import test
|
|||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import policy_fixture
|
from nova.tests.unit import policy_fixture
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
class AttrDict(dict):
|
class AttrDict(dict):
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
@ -28,7 +29,6 @@ from nova import exception
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -17,6 +17,7 @@ import copy
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ from nova import objects
|
|||||||
from nova.objects import base
|
from nova.objects import base
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
SERVER_UUID = uuids.server_uuid
|
SERVER_UUID = uuids.server_uuid
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
@ -26,7 +27,6 @@ from nova import policy
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ServerStartStopTestV21(test.TestCase):
|
class ServerStartStopTestV21(test.TestCase):
|
||||||
|
@ -26,6 +26,7 @@ from oslo_serialization import base64
|
|||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
@ -67,9 +68,9 @@ from nova.tests.unit import fake_instance
|
|||||||
from nova.tests.unit import fake_network
|
from nova.tests.unit import fake_network
|
||||||
from nova.tests.unit.image import fake
|
from nova.tests.unit.image import fake
|
||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils as nova_utils
|
from nova import utils as nova_utils
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
FAKE_UUID = fakes.FAKE_UUID
|
FAKE_UUID = fakes.FAKE_UUID
|
||||||
|
@ -19,6 +19,7 @@ import datetime
|
|||||||
import iso8601
|
import iso8601
|
||||||
import mock
|
import mock
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import six
|
import six
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ from nova import test
|
|||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit.objects import test_service
|
from nova.tests.unit.objects import test_service
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
# This is tied into the os-services API samples functional tests.
|
# This is tied into the os-services API samples functional tests.
|
||||||
FAKE_UUID_COMPUTE_HOST1 = 'e81d66a4-ddd3-4aba-8a84-171d1cb4d339'
|
FAKE_UUID_COMPUTE_HOST1 = 'e81d66a4-ddd3-4aba-8a84-171d1cb4d339'
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from nova.api.openstack.compute import shelve as shelve_v21
|
from nova.api.openstack.compute import shelve as shelve_v21
|
||||||
@ -22,7 +23,6 @@ from nova import policy
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
class ShelvePolicyTestV21(test.NoDBTestCase):
|
class ShelvePolicyTestV21(test.NoDBTestCase):
|
||||||
|
@ -17,6 +17,7 @@ import datetime
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
import webob
|
import webob
|
||||||
@ -31,7 +32,6 @@ from nova import objects
|
|||||||
from nova import policy
|
from nova import policy
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.api.openstack import api_version_request as avr
|
from nova.api.openstack import api_version_request as avr
|
||||||
from nova.api.openstack.compute import views
|
from nova.api.openstack.compute import views
|
||||||
@ -23,7 +24,6 @@ from nova.api import wsgi
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
NS = {
|
NS = {
|
||||||
|
@ -20,6 +20,7 @@ import fixtures
|
|||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
from six.moves import urllib
|
from six.moves import urllib
|
||||||
import webob
|
import webob
|
||||||
@ -41,9 +42,9 @@ from nova import test
|
|||||||
from nova.tests.unit.api.openstack import fakes
|
from nova.tests.unit.api.openstack import fakes
|
||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova.volume import cinder
|
from nova.volume import cinder
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
# This is the server ID.
|
# This is the server ID.
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import testtools
|
import testtools
|
||||||
@ -19,7 +20,6 @@ from nova.api.openstack.placement import context
|
|||||||
from nova.api.openstack.placement import exception
|
from nova.api.openstack.placement import exception
|
||||||
from nova.api.openstack.placement.objects import resource_provider
|
from nova.api.openstack.placement.objects import resource_provider
|
||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
_RESOURCE_CLASS_NAME = 'DISK_GB'
|
_RESOURCE_CLASS_NAME = 'DISK_GB'
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import microversion_parse
|
import microversion_parse
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import routes
|
import routes
|
||||||
import testtools
|
import testtools
|
||||||
import webob
|
import webob
|
||||||
@ -22,7 +23,6 @@ import webob
|
|||||||
from nova.api.openstack.placement import handler
|
from nova.api.openstack.placement import handler
|
||||||
from nova.api.openstack.placement.handlers import root
|
from nova.api.openstack.placement.handlers import root
|
||||||
from nova.api.openstack.placement import microversion
|
from nova.api.openstack.placement import microversion
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
# Used in tests below
|
# Used in tests below
|
||||||
|
@ -20,6 +20,7 @@ import microversion_parse
|
|||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_middleware import request_id
|
from oslo_middleware import request_id
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import testtools
|
import testtools
|
||||||
import webob
|
import webob
|
||||||
@ -34,7 +35,7 @@ from nova.api.openstack.placement.objects import project as project_obj
|
|||||||
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
||||||
from nova.api.openstack.placement.objects import user as user_obj
|
from nova.api.openstack.placement.objects import user as user_obj
|
||||||
from nova.api.openstack.placement import util
|
from nova.api.openstack.placement import util
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ import mock
|
|||||||
from mox3 import mox
|
from mox3 import mox
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova.cells import messaging
|
from nova.cells import messaging
|
||||||
@ -40,7 +41,6 @@ from nova import test
|
|||||||
from nova.tests.unit.cells import fakes
|
from nova.tests.unit.cells import fakes
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests.unit import fake_server_actions
|
from nova.tests.unit import fake_server_actions
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class CellsMessageClassesTestCase(test.NoDBTestCase):
|
class CellsMessageClassesTestCase(test.NoDBTestCase):
|
||||||
|
@ -17,6 +17,7 @@ Tests For Cells RPCAPI
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from nova.cells import rpcapi as cells_rpcapi
|
from nova.cells import rpcapi as cells_rpcapi
|
||||||
@ -24,7 +25,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class CellsAPITestCase(test.NoDBTestCase):
|
class CellsAPITestCase(test.NoDBTestCase):
|
||||||
|
@ -18,6 +18,7 @@ Tests For CellsScheduler
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import block_device
|
from nova import block_device
|
||||||
@ -31,7 +32,6 @@ from nova import objects
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.cells import fakes
|
from nova.tests.unit.cells import fakes
|
||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ from six.moves import StringIO
|
|||||||
from keystoneauth1 import exceptions as ks_exc
|
from keystoneauth1 import exceptions as ks_exc
|
||||||
from keystoneauth1 import loading as keystone
|
from keystoneauth1 import loading as keystone
|
||||||
from keystoneauth1 import session
|
from keystoneauth1 import session
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
from requests import models
|
from requests import models
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ from nova.objects import request_spec as reqspec_obj
|
|||||||
from nova import rc_fields as fields
|
from nova import rc_fields as fields
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ import oslo_messaging as messaging
|
|||||||
from oslo_serialization import base64
|
from oslo_serialization import base64
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
@ -85,7 +86,6 @@ from nova.tests.unit.objects import test_flavor
|
|||||||
from nova.tests.unit.objects import test_instance_numa_topology
|
from nova.tests.unit.objects import test_instance_numa_topology
|
||||||
from nova.tests.unit.objects import test_migration
|
from nova.tests.unit.objects import test_migration
|
||||||
from nova.tests.unit import utils as test_utils
|
from nova.tests.unit import utils as test_utils
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.virt import block_device as driver_block_device
|
from nova.virt import block_device as driver_block_device
|
||||||
from nova.virt.block_device import DriverVolumeBlockDevice as driver_bdm_volume
|
from nova.virt.block_device import DriverVolumeBlockDevice as driver_bdm_volume
|
||||||
@ -94,6 +94,7 @@ from nova.virt import fake
|
|||||||
from nova.virt import hardware
|
from nova.virt import hardware
|
||||||
from nova.volume import cinder
|
from nova.volume import cinder
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ from mox3 import mox
|
|||||||
from oslo_messaging import exceptions as oslo_exceptions
|
from oslo_messaging import exceptions as oslo_exceptions
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
@ -60,7 +61,6 @@ from nova.tests.unit.image import fake as fake_image
|
|||||||
from nova.tests.unit import matchers
|
from nova.tests.unit import matchers
|
||||||
from nova.tests.unit.objects import test_flavor
|
from nova.tests.unit.objects import test_flavor
|
||||||
from nova.tests.unit.objects import test_migration
|
from nova.tests.unit.objects import test_migration
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.volume import cinder
|
from nova.volume import cinder
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ import functools
|
|||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova import block_device
|
from nova import block_device
|
||||||
@ -43,7 +44,6 @@ from nova.tests.unit.compute import test_compute
|
|||||||
from nova.tests.unit.compute import test_shelve
|
from nova.tests.unit.compute import test_shelve
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests.unit.objects import test_flavor
|
from nova.tests.unit.objects import test_flavor
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
ORIG_COMPUTE_API = None
|
ORIG_COMPUTE_API = None
|
||||||
|
@ -27,6 +27,7 @@ import netaddr
|
|||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
@ -65,7 +66,6 @@ from nova.tests.unit import fake_network_cache_model
|
|||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
from nova.tests.unit.objects import test_instance_fault
|
from nova.tests.unit.objects import test_instance_fault
|
||||||
from nova.tests.unit.objects import test_instance_info_cache
|
from nova.tests.unit.objects import test_instance_info_cache
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.virt.block_device import DriverVolumeBlockDevice as driver_bdm_volume
|
from nova.virt.block_device import DriverVolumeBlockDevice as driver_bdm_volume
|
||||||
from nova.virt import driver as virt_driver
|
from nova.virt import driver as virt_driver
|
||||||
|
@ -22,6 +22,7 @@ import traceback
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -48,7 +49,6 @@ from nova.tests.unit import fake_network
|
|||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
from nova.tests.unit import fake_server_actions
|
from nova.tests.unit import fake_server_actions
|
||||||
from nova.tests.unit.objects import test_flavor
|
from nova.tests.unit.objects import test_flavor
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
FAKE_IMAGE_REF = uuids.image_ref
|
FAKE_IMAGE_REF = uuids.image_ref
|
||||||
|
@ -19,6 +19,7 @@ import copy
|
|||||||
import fixtures
|
import fixtures
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from nova.api.openstack.compute import services
|
from nova.api.openstack.compute import services
|
||||||
@ -34,7 +35,6 @@ from nova.tests.unit.api.openstack import fakes
|
|||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
from nova.tests.unit.objects import test_objects
|
from nova.tests.unit.objects import test_objects
|
||||||
from nova.tests.unit.objects import test_service
|
from nova.tests.unit.objects import test_service
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeHostAPITestCase(test.TestCase):
|
class ComputeHostAPITestCase(test.TestCase):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import instance_list
|
from nova.compute import instance_list
|
||||||
from nova.compute import multi_cell_list
|
from nova.compute import multi_cell_list
|
||||||
@ -18,7 +19,7 @@ from nova import context as nova_context
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures
|
from nova.tests import fixtures
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
FAKE_CELLS = [objects.CellMapping(), objects.CellMapping()]
|
FAKE_CELLS = [objects.CellMapping(), objects.CellMapping()]
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@ from contextlib import contextmanager
|
|||||||
import copy
|
import copy
|
||||||
import datetime
|
import datetime
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import multi_cell_list
|
from nova.compute import multi_cell_list
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class TestUtils(test.NoDBTestCase):
|
class TestUtils(test.NoDBTestCase):
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import provider_tree
|
from nova.compute import provider_tree
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class TestProviderTree(test.NoDBTestCase):
|
class TestProviderTree(test.NoDBTestCase):
|
||||||
|
@ -16,6 +16,7 @@ import datetime
|
|||||||
from keystoneauth1 import exceptions as ks_exc
|
from keystoneauth1 import exceptions as ks_exc
|
||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
@ -38,7 +39,6 @@ from nova.scheduler.client import report
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_notifier
|
from nova.tests.unit import fake_notifier
|
||||||
from nova.tests.unit.objects import test_pci_device as fake_pci_device
|
from nova.tests.unit.objects import test_pci_device as fake_pci_device
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova.virt import driver
|
from nova.virt import driver
|
||||||
|
|
||||||
_HOSTNAME = 'fake-host'
|
_HOSTNAME = 'fake-host'
|
||||||
|
@ -18,6 +18,7 @@ Unit Tests for nova.compute.rpcapi
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import rpcapi as compute_rpcapi
|
from nova.compute import rpcapi as compute_rpcapi
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -29,7 +30,6 @@ from nova import test
|
|||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_flavor
|
from nova.tests.unit import fake_flavor
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeRpcAPITestCase(test.NoDBTestCase):
|
class ComputeRpcAPITestCase(test.NoDBTestCase):
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova.compute import claims
|
from nova.compute import claims
|
||||||
@ -28,7 +29,7 @@ from nova import objects
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit.compute import test_compute
|
from nova.tests.unit.compute import test_compute
|
||||||
from nova.tests.unit.image import fake as fake_image
|
from nova.tests.unit.image import fake as fake_image
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""Tests for compute node stats."""
|
"""Tests for compute node stats."""
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import stats
|
from nova.compute import stats
|
||||||
from nova.compute import task_states
|
from nova.compute import task_states
|
||||||
from nova.compute import vm_states
|
from nova.compute import vm_states
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class StatsTestCase(test.NoDBTestCase):
|
class StatsTestCase(test.NoDBTestCase):
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from nova.compute import power_state
|
from nova.compute import power_state
|
||||||
@ -26,7 +27,6 @@ from nova.scheduler import utils as scheduler_utils
|
|||||||
from nova import servicegroup
|
from nova import servicegroup
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
from nova.compute import rpcapi as compute_rpcapi
|
from nova.compute import rpcapi as compute_rpcapi
|
||||||
from nova.conductor.tasks import migrate
|
from nova.conductor.tasks import migrate
|
||||||
@ -23,7 +24,6 @@ from nova import test
|
|||||||
from nova.tests.unit.conductor.test_conductor import FakeContext
|
from nova.tests.unit.conductor.test_conductor import FakeContext
|
||||||
from nova.tests.unit import fake_flavor
|
from nova.tests.unit import fake_flavor
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class MigrationTaskTestCase(test.NoDBTestCase):
|
class MigrationTaskTestCase(test.NoDBTestCase):
|
||||||
|
@ -20,6 +20,7 @@ import copy
|
|||||||
import mock
|
import mock
|
||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_versionedobjects import exception as ovo_exc
|
from oslo_versionedobjects import exception as ovo_exc
|
||||||
import six
|
import six
|
||||||
@ -57,9 +58,9 @@ from nova.tests.unit import fake_notifier
|
|||||||
from nova.tests.unit import fake_request_spec
|
from nova.tests.unit import fake_request_spec
|
||||||
from nova.tests.unit import fake_server_actions
|
from nova.tests.unit import fake_server_actions
|
||||||
from nova.tests.unit import utils as test_utils
|
from nova.tests.unit import utils as test_utils
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = conf.CONF
|
CONF = conf.CONF
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ import copy
|
|||||||
import socket
|
import socket
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
|
|
||||||
import nova.conf
|
import nova.conf
|
||||||
from nova.console.securityproxy import base
|
from nova.console.securityproxy import base
|
||||||
@ -27,7 +28,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_console_auth_token as fake_ca
|
from nova.tests.unit import fake_console_auth_token as fake_ca
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
@ -19,6 +19,7 @@ Tests for Consoleauth Code.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -26,7 +27,6 @@ from nova.consoleauth import manager
|
|||||||
from nova import context
|
from nova import context
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class ConsoleauthTestCase(test.NoDBTestCase):
|
class ConsoleauthTestCase(test.NoDBTestCase):
|
||||||
|
@ -32,6 +32,7 @@ from oslo_db.sqlalchemy import update_match
|
|||||||
from oslo_db.sqlalchemy import utils as sqlalchemyutils
|
from oslo_db.sqlalchemy import utils as sqlalchemyutils
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import fixture as utils_fixture
|
from oslo_utils import fixture as utils_fixture
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
@ -64,9 +65,9 @@ from nova.objects import fields
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests.unit import fake_console_auth_token
|
from nova.tests.unit import fake_console_auth_token
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
get_engine = sqlalchemy_api.get_engine
|
get_engine = sqlalchemy_api.get_engine
|
||||||
|
@ -19,6 +19,7 @@ from migrate import UniqueConstraint
|
|||||||
from migrate.versioning import api as versioning_api
|
from migrate.versioning import api as versioning_api
|
||||||
import mock
|
import mock
|
||||||
from oslo_db.sqlalchemy import utils as db_utils
|
from oslo_db.sqlalchemy import utils as db_utils
|
||||||
|
from oslo_utils.fixture import uuidsentinel
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -29,7 +30,6 @@ from nova import exception
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import fixtures as nova_fixtures
|
from nova.tests import fixtures as nova_fixtures
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
|
|
||||||
|
|
||||||
class TestNullInstanceUuidScanDB(test.TestCase):
|
class TestNullInstanceUuidScanDB(test.TestCase):
|
||||||
|
@ -13,11 +13,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 oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova import block_device
|
from nova import block_device
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
def fake_bdm_object(context, bdm_dict):
|
def fake_bdm_object(context, bdm_dict):
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -20,7 +21,6 @@ from nova import objects
|
|||||||
from nova.objects import fields
|
from nova.objects import fields
|
||||||
from nova.tests.unit import fake_block_device
|
from nova.tests.unit import fake_block_device
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
def fake_db_req(**updates):
|
def fake_db_req(**updates):
|
||||||
|
@ -12,10 +12,11 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# 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 oslo_utils.fixture import uuidsentinel
|
||||||
|
|
||||||
from nova.tests import uuidsentinel
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
fake_token = uuidsentinel.token
|
fake_token = uuidsentinel.token
|
||||||
fake_token_hash = utils.get_sha256_str(fake_token)
|
fake_token_hash = utils.get_sha256_str(fake_token)
|
||||||
fake_instance_uuid = uuidsentinel.instance
|
fake_instance_uuid = uuidsentinel.instance
|
||||||
|
@ -13,8 +13,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 oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
|
||||||
from nova.compute import api as compute_api
|
from nova.compute import api as compute_api
|
||||||
@ -34,7 +34,6 @@ from nova.tests.unit.objects import test_fixed_ip
|
|||||||
from nova.tests.unit.objects import test_instance_info_cache
|
from nova.tests.unit.objects import test_instance_info_cache
|
||||||
from nova.tests.unit.objects import test_pci_device
|
from nova.tests.unit.objects import test_pci_device
|
||||||
from nova.tests.unit import utils
|
from nova.tests.unit import utils
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
HOST = "testhost"
|
HOST = "testhost"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.tests.unit import fake_flavor
|
from nova.tests.unit import fake_flavor
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
INSTANCE_NUMA_TOPOLOGY = objects.InstanceNUMATopology(
|
INSTANCE_NUMA_TOPOLOGY = objects.InstanceNUMATopology(
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
"""Implementation of a fake volume API."""
|
"""Implementation of a fake volume API."""
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
import nova.conf
|
import nova.conf
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -25,6 +25,7 @@ from glanceclient.v1 import images
|
|||||||
from glanceclient.v2 import schemas
|
from glanceclient.v2 import schemas
|
||||||
from keystoneauth1 import loading as ks_loading
|
from keystoneauth1 import loading as ks_loading
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
import six
|
import six
|
||||||
from six.moves import StringIO
|
from six.moves import StringIO
|
||||||
import testtools
|
import testtools
|
||||||
@ -36,7 +37,7 @@ from nova.image import glance
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import service_auth
|
from nova import service_auth
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
NOW_GLANCE_FORMAT = "2010-10-11T10:30:22.000000"
|
NOW_GLANCE_FORMAT = "2010-10-11T10:30:22.000000"
|
||||||
|
@ -17,6 +17,7 @@ import mock
|
|||||||
from neutronclient.common import exceptions as n_exc
|
from neutronclient.common import exceptions as n_exc
|
||||||
from neutronclient.neutron import v2_0 as neutronv20
|
from neutronclient.neutron import v2_0 as neutronv20
|
||||||
from neutronclient.v2_0 import client
|
from neutronclient.v2_0 import client
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
|
||||||
from nova import context
|
from nova import context
|
||||||
@ -24,7 +25,6 @@ from nova import exception
|
|||||||
from nova.network.security_group import neutron_driver
|
from nova.network.security_group import neutron_driver
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class TestNeutronDriver(test.NoDBTestCase):
|
class TestNeutronDriver(test.NoDBTestCase):
|
||||||
|
@ -19,6 +19,7 @@ import copy
|
|||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova.compute import flavors
|
from nova.compute import flavors
|
||||||
@ -37,7 +38,7 @@ from nova.tests.unit.api.openstack import fakes
|
|||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests.unit.objects import test_fixed_ip
|
from nova.tests.unit.objects import test_fixed_ip
|
||||||
from nova.tests.unit.objects import test_virtual_interface
|
from nova.tests.unit.objects import test_virtual_interface
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
FAKE_UUID = 'a47ae74e-ab08-547f-9eee-ffd23fc46c16'
|
FAKE_UUID = 'a47ae74e-ab08-547f-9eee-ffd23fc46c16'
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ import netifaces
|
|||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import fileutils
|
from oslo_utils import fileutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
import nova.conf
|
import nova.conf
|
||||||
@ -35,9 +36,9 @@ from nova.network import linux_net
|
|||||||
from nova.network import linux_utils as linux_net_utils
|
from nova.network import linux_utils as linux_net_utils
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = nova.conf.CONF
|
CONF = nova.conf.CONF
|
||||||
|
|
||||||
instances = {uuids.instance_1:
|
instances = {uuids.instance_1:
|
||||||
|
@ -24,6 +24,7 @@ from oslo_config import cfg
|
|||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo_utils import netutils
|
from oslo_utils import netutils
|
||||||
import six
|
import six
|
||||||
@ -53,9 +54,9 @@ from nova.tests.unit.objects import test_floating_ip
|
|||||||
from nova.tests.unit.objects import test_network
|
from nova.tests.unit.objects import test_network
|
||||||
from nova.tests.unit.objects import test_service
|
from nova.tests.unit.objects import test_service
|
||||||
from nova.tests.unit import utils as test_utils
|
from nova.tests.unit import utils as test_utils
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ from oslo_config import cfg
|
|||||||
from oslo_config import fixture as config_fixture
|
from oslo_config import fixture as config_fixture
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import requests_mock
|
import requests_mock
|
||||||
@ -53,7 +54,7 @@ from nova import service_auth
|
|||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests.unit import fake_requests as fake_req
|
from nova.tests.unit import fake_requests as fake_req
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_utils.fixture import uuidsentinel as uuids
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova import context as nova_context
|
from nova import context as nova_context
|
||||||
@ -20,7 +21,6 @@ from nova.notifications.objects import instance as instance_notification
|
|||||||
from nova import objects
|
from nova import objects
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.tests.unit import fake_instance
|
from nova.tests.unit import fake_instance
|
||||||
from nova.tests import uuidsentinel as uuids
|
|
||||||
|
|
||||||
|
|
||||||
class TestInstanceNotification(test.NoDBTestCase):
|
class TestInstanceNotification(test.NoDBTestCase):
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user