glance.tests.functional.glare package

Submodules

glance.tests.functional.glare.test_glare module

class glance.tests.functional.glare.test_glare.Artifact(**kwargs)[source]

Bases: glance.common.glare.definitions.ArtifactType

created_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1350>
deleted_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1550>
depends_on = <glance.common.glare.definitions.ArtifactReference object at 0x7f2d88606c50>
depends_on_list = []
description = <glance.common.glare.definitions.Text object at 0x7f2d8f795ed0>
dict_prop = {}
dict_prop_strval = {}
id = <glance.common.glare.definitions.String object at 0x7f2d8f795910>
metadata = <glance.common.glare.declarative.ArtifactTypeMetadata object at 0x7f2d86209a50>
name = <glance.common.glare.definitions.String object at 0x7f2d8f795cd0>
owner = <glance.common.glare.definitions.String object at 0x7f2d8f7a1250>
prop1 = <glance.common.glare.definitions.String object at 0x7f2d89269f50>
prop2 = <glance.common.glare.definitions.Integer object at 0x7f2d892691d0>
prop_list = []
published_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a14d0>
state = <glance.common.glare.definitions.String object at 0x7f2d8f7a1110>
tags = []
tuple_prop = []
type_name = <glance.common.glare.definitions.String object at 0x7f2d8f795a90>
type_version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795b90>
updated_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1450>
version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795d90>
visibility = <glance.common.glare.definitions.String object at 0x7f2d8f7a1050>
class glance.tests.functional.glare.test_glare.ArtifactNoProps(**kwargs)[source]

Bases: glance.common.glare.definitions.ArtifactType

created_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1350>
deleted_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1550>
description = <glance.common.glare.definitions.Text object at 0x7f2d8f795ed0>
id = <glance.common.glare.definitions.String object at 0x7f2d8f795910>
metadata = <glance.common.glare.declarative.ArtifactTypeMetadata object at 0x7f2d84121850>
name = <glance.common.glare.definitions.String object at 0x7f2d8f795cd0>
owner = <glance.common.glare.definitions.String object at 0x7f2d8f7a1250>
published_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a14d0>
state = <glance.common.glare.definitions.String object at 0x7f2d8f7a1110>
tags = []
type_name = <glance.common.glare.definitions.String object at 0x7f2d8f795a90>
type_version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795b90>
updated_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1450>
version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795d90>
visibility = <glance.common.glare.definitions.String object at 0x7f2d8f7a1050>
class glance.tests.functional.glare.test_glare.ArtifactNoProps1(**kwargs)[source]

Bases: glance.common.glare.definitions.ArtifactType

created_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1350>
deleted_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1550>
description = <glance.common.glare.definitions.Text object at 0x7f2d8f795ed0>
id = <glance.common.glare.definitions.String object at 0x7f2d8f795910>
metadata = <glance.common.glare.declarative.ArtifactTypeMetadata object at 0x7f2d8882d250>
name = <glance.common.glare.definitions.String object at 0x7f2d8f795cd0>
owner = <glance.common.glare.definitions.String object at 0x7f2d8f7a1250>
published_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a14d0>
state = <glance.common.glare.definitions.String object at 0x7f2d8f7a1110>
tags = []
type_name = <glance.common.glare.definitions.String object at 0x7f2d8f795a90>
type_version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795b90>
updated_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1450>
version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795d90>
visibility = <glance.common.glare.definitions.String object at 0x7f2d8f7a1050>
class glance.tests.functional.glare.test_glare.ArtifactWithBlob(**kwargs)[source]

Bases: glance.common.glare.definitions.ArtifactType

blob1 = <glance.common.glare.definitions.BinaryObject object at 0x7f2d8882d850>
blob_list = []
created_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1350>
deleted_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1550>
description = <glance.common.glare.definitions.Text object at 0x7f2d8f795ed0>
id = <glance.common.glare.definitions.String object at 0x7f2d8f795910>
metadata = <glance.common.glare.declarative.ArtifactTypeMetadata object at 0x7f2d86fdb690>
name = <glance.common.glare.definitions.String object at 0x7f2d8f795cd0>
owner = <glance.common.glare.definitions.String object at 0x7f2d8f7a1250>
published_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a14d0>
state = <glance.common.glare.definitions.String object at 0x7f2d8f7a1110>
tags = []
type_name = <glance.common.glare.definitions.String object at 0x7f2d8f795a90>
type_version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795b90>
updated_at = <glance.common.glare.definitions.DateTime object at 0x7f2d8f7a1450>
version = <glance.common.glare.definitions.SemVerString object at 0x7f2d8f795d90>
visibility = <glance.common.glare.definitions.String object at 0x7f2d8f7a1050>
class glance.tests.functional.glare.test_glare.TestArtifacts(*args, **kwargs)[source]

Bases: glance.tests.functional.FunctionalTest

setUp()[source]
start_servers(**kwargs)[source]
tearDown()[source]
test_artifact_accessible_by_admin()[source]
test_artifact_inaccessible_by_different_user()[source]
test_bad_update_property()[source]
test_circular_dependency()[source]
test_create_artifact_bad_dependency_format()[source]

Invalid dependencies creation.

Dependencies should be passed: * as a list of ids if param is an ArtifactReferenceList * as an id if param is an ArtifactReference

test_create_artifact_dependency_list()[source]
test_create_artifact_empty_body()[source]
test_create_artifact_insufficient_arguments()[source]
test_create_artifact_invalid_properties()[source]

Any attempt to pass invalid properties should result in 400

test_create_artifact_no_properties()[source]

Create an artifact with minimum parameters

test_create_artifact_no_such_version()[source]

Creation impossible without specifying a correct version.

An attempt to create an artifact out of existing plugin but with a wrong version should result in 400 BadRequest ‘No such plugin has been loaded’

test_create_artifact_no_type_version_specified()[source]

Creation impossible without specifying a version.

It should not be possible to create an artifact out of existing plugin without specifying any version

test_create_artifact_not_all_properties()[source]

Create artifact with minimal properties.

Checks that it is possible to create an artifact by passing all required properties but omitting some not required

test_create_artifact_with_dependency()[source]
test_create_artifact_with_properties()[source]

Create an artifact (with two deployer-defined properties)

test_create_dependency_list_same_id()[source]
test_create_public_artifact()[source]

Create an artifact with visibility set to public

test_delete_artifact()[source]
test_delete_artifact_no_such_id()[source]
test_delete_artifact_with_blob()[source]
test_delete_artifact_with_dependency(*args, **kwargs)[source]
test_download_file()[source]
test_file_w_unknown_size()[source]
test_filter_by_bad_version()[source]
test_filter_by_dict_props()[source]
test_filter_by_ge_version()[source]
test_filter_by_gt_version()[source]
test_filter_by_latest_version()[source]
test_filter_by_le_version()[source]
test_filter_by_lt_version()[source]
test_filter_by_ne_version()[source]
test_filter_by_non_dict_props()[source]
test_filter_by_pre_release_version()[source]
test_filter_by_range_props()[source]
test_filter_by_tags()[source]
test_filter_by_version_only()[source]
test_get_artifact_basic_show_level()[source]
test_get_artifact_by_id()[source]
test_get_artifact_by_id_any_version()[source]
test_get_artifact_invalid_show_level()[source]
test_get_artifact_no_such_id()[source]
test_get_artifact_none_show_level()[source]

Create an artifact (with two deployer-defined properties)

test_get_artifact_present_id_wrong_type()[source]
test_invalid_content_type()[source]
test_limit()[source]
test_list_any_artifacts()[source]

Returns information about all draft artifacts with given endpoint

test_list_artifact_no_such_version()[source]

Version filtering should be applied for existing plugins.

An attempt to retrieve an artifact out of existing plugin but with a wrong version should result in 400 BadRequest ‘No such plugin has been loaded’

test_list_artifact_types()[source]
test_list_artifacts_by_state()[source]

Returns last version of artifacts with given state

test_list_artifacts_with_pagination()[source]

List artifacts with pagination

test_list_artifacts_with_version()[source]

Supplying precise artifact version does not break anything

test_list_last_version()[source]

/artifacts/endpoint == /artifacts/endpoint/all-versions

test_no_mutable_change_in_published_state()[source]
test_operation_patch_with_blob()[source]
test_public_artifact_accessible_by_different_user()[source]
test_public_artifact_editable_by_admin()[source]
test_public_artifact_not_editable_by_different_user()[source]
test_publish_artifact()[source]
test_sort()[source]
test_transformation_versions()[source]
test_update_array_property_by_add_op()[source]
test_update_array_property_by_remove_op()[source]
test_update_array_property_by_replace_op()[source]
test_update_artifact()[source]
test_update_artifact_properties()[source]
test_update_artifact_remove_property()[source]
test_update_dependency()[source]
test_update_dependency_circular_reference()[source]
test_update_dict_property_by_add_op()[source]
test_update_dict_property_by_remove_op()[source]
test_update_dict_property_by_replace_op()[source]
test_update_dict_property_change_values(*args, **kwargs)[source]
test_update_different_depths_levels()[source]
test_update_empty_array_property_by_add_op()[source]

Test jsonpatch add.

According to RFC 6902: * if the array is empty, ‘/array/0’ is a valid path

test_update_empty_dict_property_by_remove_op()[source]
test_update_empty_dict_property_by_replace_op()[source]
test_update_multiple_properties()[source]
test_update_nonexistent_property_by_add_op()[source]
test_update_nonexistent_property_by_remove_op()[source]
test_update_nonexistent_property_by_replace_op()[source]
test_update_property()[source]
test_update_remove_non_existent_artifact_properties()[source]
test_update_replace_non_existent_artifact_properties()[source]
test_update_tuple_property_by_index()[source]
test_update_wrong_property_type()[source]
test_upload_file()[source]
test_upload_file_with_invalid_content_type()[source]
test_upload_list_files()[source]
users = {'user2': {'role': 'member', 'tenant_id': '70055b81-d456-4e8a-9414-a83dbf26a1b8', 'id': '8eda6fa1-f4a8-4b39-bf44-83f6ca2403e9', 'token': '67b8a6de-231e-4d65-a67f-95abe744b74a'}, 'user1': {'role': 'member', 'tenant_id': 'cdb449e8-2119-48aa-959d-e7ccfb314c31', 'id': 'c8eb2526-d1be-431e-8275-536a077eb1be', 'token': 'b450ff35-eece-4db5-a7a2-194cbbd0ff2d'}, 'admin': {'role': 'admin', 'tenant_id': '1ee4880d-d65f-475c-aeab-2ed404a807a3', 'id': '45722035-219d-4836-a197-806d45443ac3', 'token': 'a8c9eb11-623f-4099-9d12-aa934db6f846'}}
class glance.tests.functional.glare.test_glare.TestRouter(mapper)[source]

Bases: glance.api.glare.v0_1.router.API

Module contents

Table Of Contents

Previous topic

glance.tests.functional.db package

Next topic

glance.tests.functional.v1 package

Project Source

This Page