Merge "Order imports in alphabetical order (8/9)"
This commit is contained in:
commit
3aaa843d1f
@ -28,9 +28,9 @@ from heat.db import api as db_api
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
|
||||
class NestedStackTest(HeatTestCase):
|
||||
|
@ -12,21 +12,21 @@
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
import mox
|
||||
|
||||
import mox
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.engine import clients
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import net
|
||||
from heat.engine.resources.neutron import provider_net
|
||||
from heat.engine.resources.neutron import subnet
|
||||
from heat.engine.resources.neutron import router
|
||||
from heat.engine.resources.neutron.neutron import NeutronResource as qr
|
||||
from heat.engine.resources.neutron import provider_net
|
||||
from heat.engine.resources.neutron import router
|
||||
from heat.engine.resources.neutron import subnet
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
|
@ -12,10 +12,11 @@
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
from testtools import skipIf
|
||||
import uuid
|
||||
|
||||
import mox
|
||||
from oslo.config import cfg
|
||||
import uuid
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.common import template_format
|
||||
from heat.db import api as db_api
|
||||
|
@ -18,12 +18,12 @@ from testtools import skipIf
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import firewall
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
neutronclient = try_import('neutronclient.v2_0.client')
|
||||
|
||||
|
@ -19,12 +19,12 @@ from testtools import skipIf
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import loadbalancer
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.v1_1 import fakes as nova_fakes
|
||||
|
||||
neutronclient = try_import('neutronclient.v2_0.client')
|
||||
|
@ -15,12 +15,12 @@ from testtools import skipIf
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import metering
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
neutronclient = try_import('neutronclient.v2_0.client')
|
||||
|
||||
|
@ -14,18 +14,18 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from mox import IgnoreArg
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import network_gateway
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
from mox import IgnoreArg
|
||||
|
||||
neutronclient = try_import('neutronclient.v2_0.client')
|
||||
neutronV20 = try_import('neutronclient.neutron.v2_0')
|
||||
|
@ -11,6 +11,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
from neutronclient.v2_0 import client as neutronclient
|
||||
from novaclient.v1_1 import security_group_rules as nova_sgr
|
||||
from novaclient.v1_1 import security_groups as nova_sg
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
@ -18,13 +23,8 @@ from heat.engine import parser
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.fakes import FakeKeystoneClient
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.tests import utils
|
||||
|
||||
from novaclient.v1_1 import security_groups as nova_sg
|
||||
from novaclient.v1_1 import security_group_rules as nova_sgr
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
from neutronclient.v2_0 import client as neutronclient
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
class SecurityGroupTest(HeatTestCase):
|
||||
|
@ -18,12 +18,12 @@ from testtools import skipIf
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources.neutron import vpnservice
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
|
||||
neutronclient = try_import('neutronclient.v2_0.client')
|
||||
|
@ -11,14 +11,14 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
nokey_template = '''
|
||||
|
@ -11,20 +11,15 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from oslo.config import cfg
|
||||
|
||||
from heat.openstack.common import timeutils
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
|
||||
# imports for mocking
|
||||
from heat.engine import signal_responder as signal
|
||||
from heat.engine import stack_resource
|
||||
from heat.engine.resources import autoscaling
|
||||
from heat.engine.resources import image
|
||||
from heat.engine.resources import instance
|
||||
@ -32,13 +27,14 @@ from heat.engine.resources import loadbalancer
|
||||
from heat.engine.resources import nova_keypair
|
||||
from heat.engine.resources import user
|
||||
from heat.engine.resources import wait_condition as waitc
|
||||
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests import utils
|
||||
from heat.engine import signal_responder as signal
|
||||
from heat.engine import stack_resource
|
||||
from heat.openstack.common import timeutils
|
||||
from heat.tests import common
|
||||
|
||||
from heat.tests import generic_resource
|
||||
# reuse the same template than autoscaling tests
|
||||
from heat.tests.test_autoscaling import as_template
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
class NotificationTest(common.HeatTestCase):
|
||||
|
@ -10,16 +10,16 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from novaclient.v1_1 import client as novaclient
|
||||
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine.resources.nova_floatingip import NovaFloatingIp
|
||||
from heat.engine.resources.nova_floatingip import NovaFloatingIpAssociation
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
from novaclient.v1_1 import client as novaclient
|
||||
|
||||
|
||||
floating_ip_template = '''
|
||||
{
|
||||
|
@ -17,11 +17,11 @@ import copy
|
||||
from novaclient import exceptions as nova_exceptions
|
||||
|
||||
from heat.engine import clients
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import nova_keypair
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
class NovaKeyPairTest(HeatTestCase):
|
||||
|
@ -15,11 +15,11 @@ import uuid
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine.clients import troveclient
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.clients import troveclient
|
||||
from heat.engine.resources import os_database
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
|
@ -11,15 +11,15 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
|
||||
import testtools
|
||||
import json
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import identifier
|
||||
from heat.engine import constraints as constr
|
||||
from heat.engine import parameters
|
||||
from heat.engine import template
|
||||
from heat.engine import constraints as constr
|
||||
|
||||
|
||||
class ParameterTest(testtools.TestCase):
|
||||
|
@ -12,35 +12,32 @@
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import mock
|
||||
import time
|
||||
|
||||
from keystoneclient import exceptions as kc_exceptions
|
||||
import mock
|
||||
from mox import IgnoreArg
|
||||
from oslo.config import cfg
|
||||
from six.moves import xrange
|
||||
|
||||
from heat.engine import environment
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.common import urlfetch
|
||||
import heat.db.api as db_api
|
||||
import heat.engine.cfn.functions
|
||||
from heat.engine import clients
|
||||
from heat.engine import environment
|
||||
from heat.engine import function
|
||||
from heat.engine import resource
|
||||
from heat.engine import parameters
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine import template
|
||||
|
||||
import heat.engine.cfn.functions
|
||||
|
||||
from heat.tests.fakes import FakeKeystoneClient
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.fakes import FakeKeystoneClient
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
|
||||
import heat.db.api as db_api
|
||||
|
||||
|
||||
def join(raw):
|
||||
|
@ -14,10 +14,11 @@
|
||||
|
||||
import pkgutil
|
||||
import sys
|
||||
|
||||
import testtools
|
||||
|
||||
import heat.engine
|
||||
from heat.common import plugin_loader
|
||||
import heat.engine
|
||||
|
||||
|
||||
class PluginLoaderTest(testtools.TestCase):
|
||||
|
@ -11,15 +11,15 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import testtools
|
||||
|
||||
from heat.engine import constraints
|
||||
from heat.common import exception
|
||||
from heat.engine import constraints
|
||||
from heat.engine.hot import parameters as hot_param
|
||||
from heat.engine import parameters
|
||||
from heat.engine import properties
|
||||
from heat.engine import resources
|
||||
from heat.engine import support
|
||||
import testtools
|
||||
|
||||
|
||||
class PropertySchemaTest(testtools.TestCase):
|
||||
|
@ -11,15 +11,15 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import os
|
||||
import uuid
|
||||
import json
|
||||
|
||||
import testscenarios
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import urlfetch
|
||||
from heat.common import template_format
|
||||
from heat.common import urlfetch
|
||||
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
@ -28,8 +28,8 @@ from heat.engine import resource
|
||||
from heat.engine import resources
|
||||
from heat.engine.resources import template_resource
|
||||
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from testtools.matchers import HasLength
|
||||
from testtools.matchers import MatchesRegex
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
@ -20,9 +22,6 @@ from heat.engine.resources.random_string import RandomString
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
from testtools.matchers import MatchesRegex
|
||||
from testtools.matchers import HasLength
|
||||
|
||||
|
||||
class TestRandomString(HeatTestCase):
|
||||
|
||||
|
@ -11,24 +11,24 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import itertools
|
||||
import json
|
||||
import uuid
|
||||
|
||||
import mock
|
||||
|
||||
from heat.common import exception
|
||||
import heat.db.api as db_api
|
||||
from heat.engine import dependencies
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine import template
|
||||
from heat.engine import environment
|
||||
from heat.openstack.common.gettextutils import _
|
||||
import heat.db.api as db_api
|
||||
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import generic_resource as generic_rsrc
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
|
@ -17,8 +17,8 @@ import mock
|
||||
|
||||
from heat.common import exception
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import resource_group
|
||||
from heat.engine import scheduler
|
||||
from heat.tests import common
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests import utils
|
||||
|
@ -13,11 +13,11 @@
|
||||
import mock
|
||||
|
||||
from heat.common import template_format
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import instance
|
||||
from heat.engine import scheduler
|
||||
|
||||
from heat.tests import utils
|
||||
from heat.tests import common
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
restarter_template = '''
|
||||
|
@ -24,9 +24,9 @@ import stubout
|
||||
import testtools
|
||||
|
||||
from heat.common import identifier
|
||||
from heat.openstack.common import rpc
|
||||
from heat.rpc import api as rpc_api
|
||||
from heat.rpc import client as rpc_client
|
||||
from heat.openstack.common import rpc
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
|
@ -16,14 +16,14 @@ from testtools import skipIf
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.engine.resources import s3
|
||||
from heat.engine import resource
|
||||
from heat.engine import clients
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources import s3
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
|
||||
swiftclient = try_import('swiftclient.client')
|
||||
|
||||
|
@ -12,9 +12,8 @@
|
||||
|
||||
import itertools
|
||||
|
||||
from heat.scaling import template
|
||||
from heat.common import short_id
|
||||
|
||||
from heat.scaling import template
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
|
||||
|
@ -13,21 +13,22 @@
|
||||
|
||||
import collections
|
||||
|
||||
from heat.engine import clients
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
from neutronclient.v2_0 import client as neutronclient
|
||||
from novaclient.v1_1 import security_group_rules as nova_sgr
|
||||
from novaclient.v1_1 import security_groups as nova_sg
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.fakes import FakeKeystoneClient
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
from novaclient.v1_1 import security_groups as nova_sg
|
||||
from novaclient.v1_1 import security_group_rules as nova_sgr
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
from neutronclient.v2_0 import client as neutronclient
|
||||
|
||||
NovaSG = collections.namedtuple('NovaSG',
|
||||
' '.join([
|
||||
|
@ -13,28 +13,29 @@
|
||||
|
||||
import collections
|
||||
import copy
|
||||
import mock
|
||||
import mox
|
||||
import uuid
|
||||
|
||||
from heat.engine import environment
|
||||
from heat.tests.v1_1 import fakes as fakes_v1_1
|
||||
from heat.tests import fakes
|
||||
import mock
|
||||
import mox
|
||||
from novaclient import exceptions
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import image
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.engine.resources import server as servers
|
||||
from heat.engine.resources.software_config import software_config as sc
|
||||
from heat.openstack.common import uuidutils
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import uuidutils
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
from novaclient import exceptions
|
||||
from heat.tests.v1_1 import fakes as fakes_v1_1
|
||||
|
||||
|
||||
wp_template = '''
|
||||
|
@ -13,18 +13,19 @@
|
||||
|
||||
import copy
|
||||
import uuid
|
||||
|
||||
import mox
|
||||
|
||||
from heat.engine import environment
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
instance_template = '''
|
||||
|
@ -13,13 +13,9 @@
|
||||
|
||||
import datetime
|
||||
|
||||
from keystoneclient import exceptions as kc_exceptions
|
||||
from oslo.config import cfg
|
||||
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests import fakes
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
|
||||
@ -31,7 +27,10 @@ from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine import stack_user
|
||||
|
||||
from keystoneclient import exceptions as kc_exceptions
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
test_template_signal = '''
|
||||
|
@ -11,14 +11,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from heatclient.exc import HTTPNotFound
|
||||
import mock
|
||||
|
||||
from heat.common import exception
|
||||
from heat.engine import parser
|
||||
from heat.engine import template
|
||||
from heat.engine.resources.software_config import software_deployment as sd
|
||||
from heatclient.exc import HTTPNotFound
|
||||
|
||||
from heat.engine import template
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
|
@ -10,34 +10,33 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import uuid
|
||||
from datetime import datetime
|
||||
from datetime import timedelta
|
||||
import uuid
|
||||
|
||||
import fixtures
|
||||
from json import loads
|
||||
from json import dumps
|
||||
from json import loads
|
||||
import mock
|
||||
import mox
|
||||
|
||||
from heat.db.sqlalchemy import api as db_api
|
||||
from heat.engine import environment
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.engine.resource import Resource
|
||||
from heat.common import context
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.db.sqlalchemy import api as db_api
|
||||
from heat.engine import clients
|
||||
from heat.engine.clients import novaclient
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine.resource import Resource
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common import timeutils
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
from heat.engine.clients import novaclient
|
||||
|
||||
wp_template = '''
|
||||
{
|
||||
"AWSTemplateFormatVersion" : "2010-09-09",
|
||||
|
@ -11,13 +11,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import testtools
|
||||
|
||||
from heat.db.sqlalchemy.types import LongText
|
||||
from heat.db.sqlalchemy.types import Json
|
||||
from sqlalchemy import types
|
||||
from sqlalchemy.dialects.mysql.base import MySQLDialect
|
||||
from sqlalchemy.dialects.sqlite.base import SQLiteDialect
|
||||
from sqlalchemy import types
|
||||
import testtools
|
||||
|
||||
from heat.db.sqlalchemy.types import Json
|
||||
from heat.db.sqlalchemy.types import LongText
|
||||
|
||||
|
||||
class LongTextTest(testtools.TestCase):
|
||||
|
@ -11,13 +11,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from heat.common import exception
|
||||
from heat.db import api as db_api
|
||||
from heat.engine import stack_lock
|
||||
from heat.openstack.common.rpc import proxy
|
||||
from heat.openstack.common.rpc import common as rpc_common
|
||||
from heat.openstack.common.rpc import proxy
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.common import exception
|
||||
|
||||
|
||||
class StackLockTest(HeatTestCase):
|
||||
|
@ -11,12 +11,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
import mox
|
||||
import uuid
|
||||
|
||||
from heat.common import template_format
|
||||
import mock
|
||||
import mox
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
|
@ -12,22 +12,19 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from heat.tests import fakes
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from keystoneclient import exceptions as kc_exceptions
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import short_id
|
||||
from heat.common import template_format
|
||||
|
||||
from heat.db import api as db_api
|
||||
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine import stack_user
|
||||
|
||||
from keystoneclient import exceptions as kc_exceptions
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import generic_resource
|
||||
from heat.tests import utils
|
||||
|
||||
|
||||
user_template = '''
|
||||
|
@ -14,9 +14,8 @@
|
||||
import mock
|
||||
|
||||
from heat.engine import parser
|
||||
from heat.engine.resources.software_config import structured_config as sc
|
||||
from heat.engine import template
|
||||
import heat.engine.resources.software_config.structured_config as sc
|
||||
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
|
@ -13,15 +13,14 @@
|
||||
|
||||
|
||||
import mox
|
||||
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.common import template_format
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.engine.resources import swift
|
||||
from heat.engine import clients
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources import swift
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
|
@ -12,13 +12,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
from heat.common import exception
|
||||
|
||||
from heat.engine.cfn.template import CfnTemplate
|
||||
from heat.engine import plugin_manager
|
||||
from heat.engine import template
|
||||
from heat.engine.cfn.template import CfnTemplate
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
|
||||
class TestTemplatePluginManager(HeatTestCase):
|
||||
|
@ -11,15 +11,16 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
import os
|
||||
|
||||
import mock
|
||||
import testtools
|
||||
import yaml
|
||||
|
||||
from heat.engine import clients
|
||||
from heat.common import config
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
|
@ -12,16 +12,14 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
import requests
|
||||
from requests import exceptions
|
||||
|
||||
from oslo.config import cfg
|
||||
from six.moves import cStringIO
|
||||
|
||||
from heat.common import urlfetch
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
from heat.openstack.common.py3kcompat import urlutils
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
||||
|
||||
class Response:
|
||||
|
@ -20,8 +20,8 @@ from heat.common import short_id
|
||||
from heat.common import template_format
|
||||
from heat.db import api as db_api
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import user
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
|
@ -15,19 +15,19 @@ import collections
|
||||
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.engine import clients
|
||||
from heat.engine import environment
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import clients
|
||||
from heat.engine import environment
|
||||
from heat.engine.hot.template import HOTemplate
|
||||
from heat.engine import parser
|
||||
from heat.engine import resources
|
||||
from heat.engine.resources import instance as instances
|
||||
from heat.engine import service
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.engine import parser
|
||||
from heat.engine.hot.template import HOTemplate
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
test_template_volumeattach = '''
|
||||
{
|
||||
|
@ -14,25 +14,23 @@
|
||||
|
||||
import json
|
||||
|
||||
from cinderclient.v1 import client as cinderclient
|
||||
import mox
|
||||
|
||||
from testtools import skipIf
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import scheduler
|
||||
from heat.engine import clients
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources import image
|
||||
from heat.engine.resources import instance
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.engine.resources import volume as vol
|
||||
from heat.engine import clients
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common.importutils import try_import
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.v1_1 import fakes
|
||||
from heat.tests import utils
|
||||
|
||||
from cinderclient.v1 import client as cinderclient
|
||||
from heat.tests.v1_1 import fakes
|
||||
|
||||
|
||||
volume_backups = try_import('cinderclient.v1.volume_backups')
|
||||
|
@ -15,8 +15,8 @@ from testtools import skipIf
|
||||
|
||||
from heat.common import exception
|
||||
from heat.common import template_format
|
||||
from heat.engine import parser
|
||||
from heat.engine import clients
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
|
@ -12,25 +12,24 @@
|
||||
# under the License.
|
||||
|
||||
import datetime
|
||||
import uuid
|
||||
import json
|
||||
import mox
|
||||
import time
|
||||
import uuid
|
||||
|
||||
import mox
|
||||
from oslo.config import cfg
|
||||
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
|
||||
import heat.db.api as db_api
|
||||
from heat.common import template_format
|
||||
from heat.common import identifier
|
||||
from heat.common import template_format
|
||||
import heat.db.api as db_api
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.engine.resources import wait_condition as wc
|
||||
from heat.engine import scheduler
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import fakes
|
||||
from heat.tests import utils
|
||||
|
||||
test_template_waitcondition = '''
|
||||
{
|
||||
|
@ -13,13 +13,14 @@
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
import mox
|
||||
import heat.db.api as db_api
|
||||
|
||||
from heat.common import exception
|
||||
from heat.openstack.common import timeutils
|
||||
from heat.engine import watchrule
|
||||
import heat.db.api as db_api
|
||||
from heat.engine import parser
|
||||
from heat.engine import watchrule
|
||||
from heat.openstack.common import timeutils
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests import utils
|
||||
|
||||
|
@ -17,17 +17,15 @@ import string
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
from oslo.config import cfg
|
||||
import sqlalchemy
|
||||
|
||||
from heat.common import context
|
||||
from heat.common import exception
|
||||
from heat.db import api as db_api
|
||||
from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
|
||||
from heat.db import api as db_api
|
||||
from heat.openstack.common.db.sqlalchemy import session
|
||||
|
||||
get_engine = session.get_engine
|
||||
|
Loading…
Reference in New Issue
Block a user