Fixed quotes in _assert_tables() method
We suppose, that for some reason we need double-quotes around the some table names (see change id Id93283905256247bdd2663b799d41a7925804542) but there is also can be normal case, when we have table names without quotes Related to blueprint db-use-oslo-common-code Change-Id: I834cafc6796d517d731c3324fff5008c08b31f7a
This commit is contained in:
parent
9a1049f9f6
commit
9941a51aa1
@ -58,8 +58,13 @@ class TestGlanceManage(functional.FunctionalTest):
|
||||
|
||||
#NOTE(bcwaldon): For some reason we need double-quotes around
|
||||
# these two table names
|
||||
self.assertTrue('CREATE TABLE "image_members"' in out)
|
||||
self.assertTrue('CREATE TABLE "image_properties"' in out)
|
||||
# NOTE(vsergeyev): There are some cases when we have no double-quotes
|
||||
self.assertTrue(
|
||||
'CREATE TABLE "image_members"' in out or
|
||||
'CREATE TABLE image_members' in out)
|
||||
self.assertTrue(
|
||||
'CREATE TABLE "image_properties"' in out or
|
||||
'CREATE TABLE image_properties' in out)
|
||||
|
||||
@depends_on_exe('sqlite3')
|
||||
@skip_if_disabled
|
||||
|
Loading…
Reference in New Issue
Block a user