glance.tests.functional.db package¶
Subpackages¶
- glance.tests.functional.db.migrations package
- Submodules
- glance.tests.functional.db.migrations.test_mitaka01 module
- glance.tests.functional.db.migrations.test_mitaka02 module
- glance.tests.functional.db.migrations.test_ocata01 module
- glance.tests.functional.db.migrations.test_ocata_contract01 module
- glance.tests.functional.db.migrations.test_ocata_expand01 module
- glance.tests.functional.db.migrations.test_ocata_migrate01 module
- Module contents
Submodules¶
glance.tests.functional.db.base module¶
-
class
glance.tests.functional.db.base.
DriverTests
[source]¶ Bases:
object
-
test_image_destroy_with_delete_all
()[source]¶ Check the image child element’s _image_delete_all methods.
checks if all the image_delete_all methods deletes only the child elements of the image to be deleted.
-
test_image_get_all_marker_deleted_showing_deleted
()[source]¶ Specify a deleted image as a marker if showing deleted images.
A non-admin user has to explicitly ask for deleted images, and should only see deleted images in the results
-
test_image_get_all_marker_deleted_showing_deleted_as_admin
()[source]¶ Specify a deleted image as a marker if showing deleted images.
-
test_image_get_all_marker_null_container_format_asc
()[source]¶ Check an image with container_format null is handled
Check an image with container_format null is handled when marker is specified and order is ascending
-
test_image_get_all_marker_null_container_format_desc
()[source]¶ Check an image with container_format null is handled
Check an image with container_format null is handled when marker is specified and order is descending
-
test_image_get_all_marker_null_disk_format_asc
()[source]¶ Check an image with disk_format null is handled
Check an image with disk_format null is handled when marker is specified and order is ascending
-
test_image_get_all_marker_null_disk_format_desc
()[source]¶ Check an image with disk_format null is handled
Check an image with disk_format null is handled when marker is specified and order is descending
-
test_image_get_all_marker_null_name_asc
()[source]¶ Check an image with name null is handled
Check an image with name null is handled when marker is specified and order is ascending
-
test_image_get_all_marker_null_name_desc
()[source]¶ Check an image with name null is handled
Check an image with name null is handled marker is specified and order is descending
-
-
class
glance.tests.functional.db.base.
MembershipVisibilityTests
[source]¶ Bases:
object
-
test_admin_finding_owner1s_image_members
()[source]¶ Admin should see all memberships of owner1’s image
-
test_owner1_finding_user1_memberships
()[source]¶ Owner1 should see images it owns that are shared with User1.
-
test_user1_finding_owner1s_image_members
()[source]¶ User1 should see its own membership of owner1’s image
-
glance.tests.functional.db.base_glare module¶
glance.tests.functional.db.base_metadef module¶
-
class
glance.tests.functional.db.base_metadef.
MetadefDriverTests
[source]¶ Bases:
glance.tests.functional.db.base_metadef.MetadefNamespaceTests
,glance.tests.functional.db.base_metadef.MetadefResourceTypeTests
,glance.tests.functional.db.base_metadef.MetadefResourceTypeAssociationTests
,glance.tests.functional.db.base_metadef.MetadefPropertyTests
,glance.tests.functional.db.base_metadef.MetadefObjectTests
,glance.tests.functional.db.base_metadef.MetadefTagTests
-
class
glance.tests.functional.db.base_metadef.
MetadefResourceTypeAssociationTests
[source]¶ Bases:
object
-
class
glance.tests.functional.db.base_metadef.
TestMetadefDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.utils.BaseTestCase
Test Driver class for Metadef tests.
glance.tests.functional.db.test_migrations module¶
-
class
glance.tests.functional.db.test_migrations.
ModelsMigrationsSyncMysql
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.test_migrations.ModelsMigrationSyncMixin
,oslo_db.sqlalchemy.test_migrations.ModelsMigrationsSync
,oslo_db.sqlalchemy.test_base.MySQLOpportunisticTestCase
-
class
glance.tests.functional.db.test_migrations.
ModelsMigrationsSyncPostgres
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.test_migrations.ModelsMigrationSyncMixin
,oslo_db.sqlalchemy.test_migrations.ModelsMigrationsSync
,oslo_db.sqlalchemy.test_base.PostgreSQLOpportunisticTestCase
-
class
glance.tests.functional.db.test_migrations.
ModelsMigrationsSyncSqlite
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.test_migrations.ModelsMigrationSyncMixin
,oslo_db.sqlalchemy.test_migrations.ModelsMigrationsSync
,oslo_db.sqlalchemy.test_base.DbTestCase
-
class
glance.tests.functional.db.test_migrations.
TestMigrations
(*args, **kwargs)[source]¶ Bases:
oslo_db.sqlalchemy.test_base.DbTestCase
,glance.tests.utils.BaseTestCase
-
class
glance.tests.functional.db.test_migrations.
TestMysqlMigrations
(*args, **kwargs)[source]¶ Bases:
oslo_db.sqlalchemy.test_base.MySQLOpportunisticTestCase
,glance.tests.functional.db.test_migrations.AlembicMigrationsMixin
-
class
glance.tests.functional.db.test_migrations.
TestPostgresqlMigrations
(*args, **kwargs)[source]¶ Bases:
oslo_db.sqlalchemy.test_base.PostgreSQLOpportunisticTestCase
,glance.tests.functional.db.test_migrations.AlembicMigrationsMixin
-
class
glance.tests.functional.db.test_migrations.
TestSqliteMigrations
(*args, **kwargs)[source]¶ Bases:
oslo_db.sqlalchemy.test_base.DbTestCase
,glance.tests.functional.db.test_migrations.AlembicMigrationsMixin
glance.tests.functional.db.test_registry module¶
-
class
glance.tests.functional.db.test_registry.
FunctionalInitWrapper
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_registry.
TestRegistryDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestDriver
,glance.tests.functional.db.base.DriverTests
,glance.tests.functional.db.test_registry.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_registry.
TestRegistryMetadefDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base_metadef.TestMetadefDriver
,glance.tests.functional.db.base_metadef.MetadefDriverTests
,glance.tests.functional.db.test_registry.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_registry.
TestRegistryQuota
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.DriverQuotaTests
,glance.tests.functional.db.test_registry.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_registry.
TestTasksDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TaskTests
,glance.tests.functional.db.test_registry.FunctionalInitWrapper
glance.tests.functional.db.test_rpc_endpoint module¶
glance.tests.functional.db.test_simple module¶
-
class
glance.tests.functional.db.test_simple.
TestSimpleDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestDriver
,glance.tests.functional.db.base.DriverTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_simple.
TestSimpleMembershipVisibility
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestMembershipVisibility
,glance.tests.functional.db.base.MembershipVisibilityTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_simple.
TestSimpleQuota
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.DriverQuotaTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_simple.
TestSimpleTask
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TaskTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_simple.
TestSimpleVisibility
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestVisibility
,glance.tests.functional.db.base.VisibilityTests
,glance.tests.functional.db.base.FunctionalInitWrapper
glance.tests.functional.db.test_sqlalchemy module¶
-
class
glance.tests.functional.db.test_sqlalchemy.
TestArtifacts
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base_glare.ArtifactsTestDriver
,glance.tests.functional.db.base_glare.ArtifactTests
-
class
glance.tests.functional.db.test_sqlalchemy.
TestDBPurge
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.DBPurgeTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestMetadefSqlAlchemyDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base_metadef.TestMetadefDriver
,glance.tests.functional.db.base_metadef.MetadefDriverTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyDBDataIntegrity
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestDriver
,glance.tests.functional.db.base.FunctionalInitWrapper
Test class for checking the data integrity in the database.
Helpful in testing scenarios specific to the sqlalchemy api.
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyDriver
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestDriver
,glance.tests.functional.db.base.DriverTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyMembershipVisibility
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestMembershipVisibility
,glance.tests.functional.db.base.MembershipVisibilityTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyQuota
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.DriverQuotaTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyTask
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TaskTests
,glance.tests.functional.db.base.FunctionalInitWrapper
-
class
glance.tests.functional.db.test_sqlalchemy.
TestSqlAlchemyVisibility
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.db.base.TestVisibility
,glance.tests.functional.db.base.VisibilityTests
,glance.tests.functional.db.base.FunctionalInitWrapper