Skip to content

Create managed object #5

Description

@scfx

For a test case I need the option to create an inventory item (device protocol). Would be nice if the managed object is cleaned up afterwards:

I think of something like this:

    """Create a managed object

    This keyword can be used to create a Cumulocity managed object. Managed object will be deleted on clean up.

    Examples:
        | ${mo}= | Create Managed Object | fragments={name:"Some_name", type:"my_type"} |
        | ${mo}= | Create Managed Object | fragments={name:"Some_name", type:"my_type"} | otherInfo=foobar |


    Args:
        fragments (Union[Dict[str, Any], str]): Fragments to be included in the managed object body.
            If a string is provided it will be parsed as json. Defaults to {}

    Returns:
        Dict[str, Any]: Managed object json
    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions