Moving more tests to appropriate locations

Change-Id: I06aa8d8f31593cfea6e26560d6af2caf6a29194d
This commit is contained in:
Rick Harris 2013-05-24 23:31:01 +00:00
parent 0d81ea487f
commit f7c35a2956
9 changed files with 3 additions and 3 deletions

View File

@ -14,6 +14,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.
import warnings
from migrate.changeset import UniqueConstraint from migrate.changeset import UniqueConstraint
from sqlalchemy.dialects import mysql from sqlalchemy.dialects import mysql
@ -28,8 +29,7 @@ from sqlalchemy.types import UserDefinedType, NullType
from nova.db.sqlalchemy import api as db from nova.db.sqlalchemy import api as db
from nova.db.sqlalchemy import utils from nova.db.sqlalchemy import utils
from nova import exception from nova import exception
from nova.tests import test_migrations from nova.tests.db import test_migrations
import warnings
class CustomType(UserDefinedType): class CustomType(UserDefinedType):

View File

@ -1427,7 +1427,7 @@ class TestBaremetalMigrations(BaseMigrationTestCase, CommonTestsMixIn):
super(TestBaremetalMigrations, self).__init__(*args, **kwargs) super(TestBaremetalMigrations, self).__init__(*args, **kwargs)
self.DEFAULT_CONFIG_FILE = os.path.join(os.path.dirname(__file__), self.DEFAULT_CONFIG_FILE = os.path.join(os.path.dirname(__file__),
'virt/baremetal/test_baremetal_migrations.conf') '../virt/baremetal/test_baremetal_migrations.conf')
# Test machines can set the NOVA_TEST_MIGRATIONS_CONF variable # Test machines can set the NOVA_TEST_MIGRATIONS_CONF variable
# to override the location of the config file for migration testing # to override the location of the config file for migration testing
self.CONFIG_FILE_PATH = os.environ.get( self.CONFIG_FILE_PATH = os.environ.get(