# License for the specific language governing permissions and limitations
# under the License.
-import functools
import os
import re
import urlparse
import webob
-from xml.dom import minidom
-from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
from cinder import flags
from cinder.openstack.common import log as logging
-from cinder import quota
LOG = logging.getLogger(__name__)
from cinder.api.openstack import wsgi
from cinder.api.openstack import xmlutil
from cinder import volume
-from cinder import db
from cinder import exception
from cinder import flags
from cinder.openstack.common import log as logging
# under the License.
import webob
-from webob import exc
from xml.dom import minidom
from cinder.api.openstack import extensions
from cinder import volume
from cinder import exception
from cinder import flags
-from cinder import utils
from cinder.openstack.common import log as logging
from cinder.openstack.common.rpc import common as rpc_common
import inspect
from xml.dom import minidom
from xml.parsers import expat
-import math
-import time
from lxml import etree
import webob
import webob.dec
import webob.exc
-from cinder import context
from cinder import flags
from cinder.openstack.common import log as logging
from cinder.openstack.common import cfg
import distutils.version as dist_version
import os
-import sys
from cinder.db import migration
from cinder.db.sqlalchemy.session import get_engine
from cinder import exception
from cinder import flags
-from cinder import utils
from cinder.openstack.common import timeutils
# License for the specific language governing permissions and limitations
# under the License.
-import inspect
import uuid
from cinder.openstack.common import cfg
import copy
import logging
-import sys
import traceback
-from cinder.openstack.common import cfg
from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import importutils
from cinder.openstack.common import jsonutils
"""
import functools
-import os
-import shutil
import uuid
import unittest
from cinder.openstack.common import log as logging
from cinder.openstack.common import cfg
from cinder.openstack.common import timeutils
-from cinder import utils
from cinder import service
from cinder import tests
from cinder.tests import fake_flags
absdir = os.path.abspath(reldir)
sys.path.insert(0, absdir)
-from cinder import flags
from cinder.openstack.common import log as logging
-from cinder.openstack.common import cfg
class _AnsiColorizer(object):
# License for the specific language governing permissions and limitations
# under the License.
-import webob
-
def compare_links(actual, expected):
"""Compare xml atom links."""
Test suites for 'common' code used throughout the OpenStack HTTP API.
"""
-from lxml import etree
import webob
import webob.exc
-import xml.dom.minidom as minidom
-from cinder import exception
from cinder import test
from cinder.api.openstack import common
-from cinder.api.openstack import xmlutil
NS = "{http://docs.openstack.org/compute/api/v1.1}"
# vim: tabstop=4 shiftwidth=4 softtabstop=4
import inspect
-import json
import webob
from cinder import exception
from cinder import test
-from cinder import utils
from cinder.api.openstack import wsgi
from cinder.tests.api.openstack import fakes
-import cinder.context
class RequestTest(test.TestCase):
"""Stubouts, mocks and fixtures for the test suite"""
from cinder import db
-from cinder import exception
class FakeModel(object):
# under the License.
import httplib
-import urllib
import urlparse
from cinder.openstack.common import log as logging
# License for the specific language governing permissions and limitations
# under the License.
-from cinder.api.openstack.volume import extensions
from cinder import flags
from cinder.openstack.common import log as logging
from cinder.tests.integrated import integrated_helpers
from cinder.openstack.common import log as logging
from cinder.tests.integrated import integrated_helpers
from cinder.api.openstack import common
-from cinder.api.openstack import xmlutil
LOG = logging.getLogger(__name__)
Fakes For Scheduler tests.
"""
-import mox
-from cinder import db
from cinder.scheduler import host_manager
Tests For Scheduler
"""
-import datetime
-import json
from cinder import context
from cinder import db
-from cinder import exception
from cinder import flags
-from cinder.openstack.common.notifier import api as notifier
from cinder.openstack.common import rpc
-from cinder.openstack.common.rpc import common as rpc_common
from cinder.openstack.common import timeutils
from cinder.scheduler import driver
from cinder.scheduler import manager
from cinder import test
-from cinder.tests.scheduler import fakes
from cinder import utils
FLAGS = flags.FLAGS
# License for the specific language governing permissions and limitations
# under the License.
-import os
-import tempfile
from cinder import flags
from cinder.openstack.common import cfg
import ConfigParser
import commands
import os
-import unittest
import urlparse
from migrate.versioning import repository
# License for the specific language governing permissions and limitations
# under the License.
-import commands
-import errno
import glob
import os
-import select
-from eventlet import greenpool
-from eventlet import greenthread
-import lockfile
from cinder import exception
from cinder import test
-from cinder import utils
class ExceptionTestCase(test.TestCase):
from cinder.openstack.common import rpc
from cinder import test
from cinder import volume
-from cinder.scheduler import driver as scheduler_driver
FLAGS = flags.FLAGS
from cinder.openstack.common import excutils
from cinder.openstack.common import log as logging
from cinder import test
-from cinder import utils
from cinder.volume import storwize_svc
LOG = logging.getLogger(__name__)
# License for the specific language governing permissions and limitations
# under the License.
-from cinder import db
from cinder import test
from cinder.tests import utils as test_utils
import hashlib
import os
import os.path
-import socket
-import shutil
import StringIO
import tempfile
-import eventlet
-from eventlet import greenpool
-import iso8601
-import lockfile
import mox
import cinder
"""
import time
-import string
import suds
from suds import client
from cinder.openstack.common import cfg
from cinder.openstack.common import excutils
from cinder.openstack.common import log as logging
-from cinder import utils
from cinder.volume import san
LOG = logging.getLogger(__name__)