Exemplo n.º 1
0
class ImageAsAnArtifact(v1.ImageAsAnArtifact):
    __type_version__ = '1.1'

    icons = definitions.BinaryObjectList()

    similar_images = (definitions.ArtifactReferenceList(
        references=definitions.ArtifactReference('Image')))
Exemplo n.º 2
0
class BaseArtifact(definitions.ArtifactType):
    __type_version__ = "1.0"
    prop1 = definitions.String()
    prop2 = definitions.Integer()
    int_list = definitions.Array(
        item_type=definitions.Integer(max_value=10, min_value=1))
    depends_on = definitions.ArtifactReference(type_name='MyArtifact')
    references = definitions.ArtifactReferenceList()

    image_file = definitions.BinaryObject()
    screenshots = definitions.BinaryObjectList()
Exemplo n.º 3
0
class SerTestType(defs.ArtifactType):
    some_string = defs.String()
    some_text = defs.Text()
    some_version = defs.SemVerString()
    some_int = defs.Integer()
    some_numeric = defs.Numeric()
    some_bool = defs.Boolean()
    some_array = defs.Array()
    another_array = defs.Array(
        item_type=[defs.Integer(), defs.Numeric(), defs.Boolean()])
    some_dict = defs.Dict()
    another_dict = defs.Dict(
        properties={'foo': defs.Integer(), 'bar': defs.Boolean()})
    some_ref = defs.ArtifactReference()
    some_ref_list = defs.ArtifactReferenceList()
    some_blob = defs.BinaryObject()
    some_blob_list = defs.BinaryObjectList()
Exemplo n.º 4
0
 class TestType(defs.ArtifactType):
     image_file = defs.BinaryObject(max_file_size=201054,
                                    min_locations=1,
                                    max_locations=5)
     screen_shots = defs.BinaryObjectList(
         objects=defs.BinaryObject(min_file_size=100), min_count=1)
class ArtifactStub(definitions.ArtifactType):
    file = definitions.BinaryObject()
    file_list = definitions.BinaryObjectList()