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>¶
-
deleted_at
= <glance.common.glare.definitions.DateTime object>¶
-
depends_on
= <glance.common.glare.definitions.ArtifactReference object>¶
-
depends_on_list
= []¶
-
description
= <glance.common.glare.definitions.Text object>¶
-
dict_prop
= {}¶
-
dict_prop_strval
= {}¶
-
id
= <glance.common.glare.definitions.String object>¶
-
metadata
= <glance.common.glare.declarative.ArtifactTypeMetadata object>¶
-
name
= <glance.common.glare.definitions.String object>¶
-
owner
= <glance.common.glare.definitions.String object>¶
-
prop1
= <glance.common.glare.definitions.String object>¶
-
prop2
= <glance.common.glare.definitions.Integer object>¶
-
prop_list
= []¶
-
published_at
= <glance.common.glare.definitions.DateTime object>¶
-
state
= <glance.common.glare.definitions.String object>¶
-
tuple_prop
= []¶
-
type_name
= <glance.common.glare.definitions.String object>¶
-
type_version
= <glance.common.glare.definitions.SemVerString object>¶
-
updated_at
= <glance.common.glare.definitions.DateTime object>¶
-
version
= <glance.common.glare.definitions.SemVerString object>¶
-
visibility
= <glance.common.glare.definitions.String object>¶
-
-
class
glance.tests.functional.glare.test_glare.
ArtifactNoProps
(**kwargs)[source]¶ Bases:
glance.common.glare.definitions.ArtifactType
-
created_at
= <glance.common.glare.definitions.DateTime object>¶
-
deleted_at
= <glance.common.glare.definitions.DateTime object>¶
-
description
= <glance.common.glare.definitions.Text object>¶
-
id
= <glance.common.glare.definitions.String object>¶
-
metadata
= <glance.common.glare.declarative.ArtifactTypeMetadata object>¶
-
name
= <glance.common.glare.definitions.String object>¶
-
owner
= <glance.common.glare.definitions.String object>¶
-
published_at
= <glance.common.glare.definitions.DateTime object>¶
-
state
= <glance.common.glare.definitions.String object>¶
-
type_name
= <glance.common.glare.definitions.String object>¶
-
type_version
= <glance.common.glare.definitions.SemVerString object>¶
-
updated_at
= <glance.common.glare.definitions.DateTime object>¶
-
version
= <glance.common.glare.definitions.SemVerString object>¶
-
visibility
= <glance.common.glare.definitions.String object>¶
-
-
class
glance.tests.functional.glare.test_glare.
ArtifactNoProps1
(**kwargs)[source]¶ Bases:
glance.common.glare.definitions.ArtifactType
-
created_at
= <glance.common.glare.definitions.DateTime object>¶
-
deleted_at
= <glance.common.glare.definitions.DateTime object>¶
-
description
= <glance.common.glare.definitions.Text object>¶
-
id
= <glance.common.glare.definitions.String object>¶
-
metadata
= <glance.common.glare.declarative.ArtifactTypeMetadata object>¶
-
name
= <glance.common.glare.definitions.String object>¶
-
owner
= <glance.common.glare.definitions.String object>¶
-
published_at
= <glance.common.glare.definitions.DateTime object>¶
-
state
= <glance.common.glare.definitions.String object>¶
-
type_name
= <glance.common.glare.definitions.String object>¶
-
type_version
= <glance.common.glare.definitions.SemVerString object>¶
-
updated_at
= <glance.common.glare.definitions.DateTime object>¶
-
version
= <glance.common.glare.definitions.SemVerString object>¶
-
visibility
= <glance.common.glare.definitions.String object>¶
-
-
class
glance.tests.functional.glare.test_glare.
ArtifactWithBlob
(**kwargs)[source]¶ Bases:
glance.common.glare.definitions.ArtifactType
-
blob1
= <glance.common.glare.definitions.BinaryObject object>¶
-
blob_list
= []¶
-
created_at
= <glance.common.glare.definitions.DateTime object>¶
-
deleted_at
= <glance.common.glare.definitions.DateTime object>¶
-
description
= <glance.common.glare.definitions.Text object>¶
-
id
= <glance.common.glare.definitions.String object>¶
-
metadata
= <glance.common.glare.declarative.ArtifactTypeMetadata object>¶
-
name
= <glance.common.glare.definitions.String object>¶
-
owner
= <glance.common.glare.definitions.String object>¶
-
published_at
= <glance.common.glare.definitions.DateTime object>¶
-
state
= <glance.common.glare.definitions.String object>¶
-
type_name
= <glance.common.glare.definitions.String object>¶
-
type_version
= <glance.common.glare.definitions.SemVerString object>¶
-
updated_at
= <glance.common.glare.definitions.DateTime object>¶
-
version
= <glance.common.glare.definitions.SemVerString object>¶
-
visibility
= <glance.common.glare.definitions.String object>¶
-
-
class
glance.tests.functional.glare.test_glare.
TestArtifacts
(*args, **kwargs)[source]¶ Bases:
glance.tests.functional.FunctionalTest
-
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_invalid_properties
()[source]¶ Any attempt to pass invalid properties should result in 400
-
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_properties
()[source]¶ Create an artifact (with two deployer-defined properties)
-
test_get_artifact_none_show_level
()[source]¶ Create an artifact (with two deployer-defined properties)
-
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_artifacts_with_version
()[source]¶ Supplying precise artifact version does not break anything
-
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
-
users
= {'admin': {'id': 'f70a36c8-811a-496f-b2ae-2e0a1232297e', 'token': '8eacecd6-2b3a-4755-a4b2-8380b8b66cf2', 'tenant_id': 'd14454ab-aadf-495a-8dd0-f3025601b3e4', 'role': 'admin'}, 'user1': {'id': '40c15979-2119-4420-b7f1-27db0e734146', 'token': '07c5200e-8534-4d3c-a5d7-0e15d6fa5a72', 'tenant_id': '42df1bae-f9d5-45ed-adab-fe31084b7514', 'role': 'member'}, 'user2': {'id': '501dd792-8741-4b7b-8a08-4f1bc0b50eb4', 'token': '3b9381c5-9e5f-4346-a986-2408c73f2b15', 'tenant_id': 'bb8e58e6-317f-4783-b489-3315a7a0e263', 'role': 'member'}}¶
-