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
"""
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: