Fix integration tests for iotdm project
[integration/test.git] / csit / libraries / criotdm.py
index 85bb13719a41ffb35f839d2477ea016a506fd700..05ede4f7a2a2ba02665f404448f46a55b5d11c4a 100644 (file)
@@ -82,11 +82,26 @@ def delete_resource_with_command(connection, resid, command):
     return connection.response
 
 
+def child_resource(response):
+    """Return child resource."""
+    return ciotdm.childResource(response)
+
+
+def child_resource_first(response):
+    """Return child resource on top of dictionary."""
+    return ciotdm.childResourceFirst(response)
+
+
 def resid(response):
     """Return resource ID."""
     return ciotdm.resid(response)
 
 
+def parent_id(response):
+    """Return parent ID."""
+    return ciotdm.parent(response)
+
+
 def name(response):
     """Return resourceName."""
     resource_name = ciotdm.name(response)
@@ -105,6 +120,36 @@ def last_modified_time(response):
     return ciotdm.lastModifiedTime(response)
 
 
+def state_tag(response):
+    """Return resource state tag."""
+    return ciotdm.stateTag(response)
+
+
+def current_number_of_instances(response):
+    """Return current number of instances."""
+    return ciotdm.currentNumberOfInstances(response)
+
+
+def current_byte_size(response):
+    """Return current byte size."""
+    return ciotdm.currentByteSize(response)
+
+
+def max_number_of_instances(response):
+    """Return max number of instances."""
+    return ciotdm.maxNumberOfInstances(response)
+
+
+def content(response):
+    """Return content child from response."""
+    return ciotdm.content(response)
+
+
+def max_byte_size(response):
+    """Return max byte size."""
+    return ciotdm.maxByteSize(response)
+
+
 def status_code(response):
     """Return resource status_code."""
     return response.status_code