REST: Node and item manipulation using REST API - JSON - #4728

Test duration: 8.990s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2019-11-25 21:17:59 |

2019-11-25 21:17:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:17:59 | ------------------------------------

2019-11-25 21:17:59 | [Mutex] waiting for: [configured:node:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:node-28527113-538e-43d2-b275-de31934aca18]

2019-11-25 21:17:59 | [Mutex] received everything.

2019-11-25 21:17:59 | [Mutex] isItemNotified: configured:node:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:node-28527113-538e-43d2-b275-de31934aca18 :: true

2019-11-25 21:18:00 | [Mutex] waiting for: [received:nodes:79133068-9838-42f0-984f-e3e0805caa87:localhost]

2019-11-25 21:18:00 | [Mutex] received everything.

2019-11-25 21:18:00 | [Mutex] isItemNotified: received:node:79133068-9838-42f0-984f-e3e0805caa87:localhost:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:Node 17fadfed-b7de-472e-bbe4-d553821d5d3d :: true

2019-11-25 21:18:00 | [Mutex] waiting for: [received:nodes:6ace20d3-5df5-4ee0-96fb-5f451f01fb39:localhost]

2019-11-25 21:18:00 | [Mutex] received everything.

2019-11-25 21:18:00 | [Mutex] isItemNotified: received:node:6ace20d3-5df5-4ee0-96fb-5f451f01fb39:localhost:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:Node 17fadfed-b7de-472e-bbe4-d553821d5d3d :: false

createNodes 1.665s
2019-11-25 21:17:56 |

2019-11-25 21:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:17:56 | ------------------------------------

2019-11-25 21:17:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "pubsub#title": "Node 17fadfed-b7de-472e-bbe4-d553821d5d3d"
}

2019-11-25 21:17:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-25 21:17:58 | [Mutex] waiting for: [received:nodes:ece139e1-27b6-4c7a-ba7c-8b77fe1079f9:localhost]

2019-11-25 21:17:58 | [Mutex] received everything.

2019-11-25 21:17:58 | [Mutex] isItemNotified: received:node:ece139e1-27b6-4c7a-ba7c-8b77fe1079f9:localhost:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:Node 17fadfed-b7de-472e-bbe4-d553821d5d3d :: true

createSubnodes 1.023s
2019-11-25 21:17:58 |

2019-11-25 21:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:17:58 | ------------------------------------

2019-11-25 21:17:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-28527113-538e-43d2-b275-de31934aca18",
    "pubsub#title": "Node 28527113-538e-43d2-b275-de31934aca18"
}

2019-11-25 21:17:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-25 21:17:59 | [Mutex] waiting for: [received:nodes:cb73f5f1-480a-4264-933b-ee39e9cad391:localhost]

2019-11-25 21:17:59 | [Mutex] received everything.

2019-11-25 21:17:59 | [Mutex] isItemNotified: received:node:cb73f5f1-480a-4264-933b-ee39e9cad391:localhost:node-28527113-538e-43d2-b275-de31934aca18:Node 28527113-538e-43d2-b275-de31934aca18 :: true

deleteNodes 1.026s
2019-11-25 21:18:04 |

2019-11-25 21:18:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:04 | ------------------------------------

2019-11-25 21:18:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-28527113-538e-43d2-b275-de31934aca18"
}

2019-11-25 21:18:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-25 21:18:05 | [Mutex] waiting for: [received:nodes:e3f046fa-ab6c-4009-bd6f-910038e3808d:localhost]

2019-11-25 21:18:05 | [Mutex] waiting for: [received:nodes:e3f046fa-ab6c-4009-bd6f-910038e3808d:localhost]

2019-11-25 21:18:05 | [Mutex] received everything.

2019-11-25 21:18:05 | [Mutex] isItemNotified: received:node:e3f046fa-ab6c-4009-bd6f-910038e3808d:localhost:node-28527113-538e-43d2-b275-de31934aca18:Node 28527113-538e-43d2-b275-de31934aca18 :: false

deleteSubnodes 1.049s
2019-11-25 21:18:02 |

2019-11-25 21:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:02 | ------------------------------------

2019-11-25 21:18:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d"
}

2019-11-25 21:18:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-25 21:18:03 | [Mutex] waiting for: [received:nodes:3c4eb358-38f6-4be1-8bbb-6a74ed8d3ad3:localhost]

2019-11-25 21:18:04 | [Mutex] received everything.

2019-11-25 21:18:04 | [Mutex] isItemNotified: received:node:3c4eb358-38f6-4be1-8bbb-6a74ed8d3ad3:localhost:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:Node 17fadfed-b7de-472e-bbe4-d553821d5d3d :: false

2019-11-25 21:18:04 | [Mutex] waiting for: [received:nodes:828473c4-4652-465d-b44d-5a96d8b231cf:localhost]

2019-11-25 21:18:04 | [Mutex] received everything.

2019-11-25 21:18:04 | [Mutex] isItemNotified: received:node:828473c4-4652-465d-b44d-5a96d8b231cf:localhost:node-17fadfed-b7de-472e-bbe4-d553821d5d3d:Node 17fadfed-b7de-472e-bbe4-d553821d5d3d :: false

publishItemsToNodes 0.060s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "entry": "<test>item-62f90bff-8a6e-4e82-a5e6-c1fad4872214</test>",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214"
}

2019-11-25 21:18:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214"
}

2019-11-25 21:18:01 | [Mutex] waiting for: [published:item:notifieditem-62f90bff-8a6e-4e82-a5e6-c1fad4872214:admin@localhost]

2019-11-25 21:18:01 | [Mutex] received everything.

2019-11-25 21:18:01 | [Mutex] isItemNotified: published:item:notifieditem-62f90bff-8a6e-4e82-a5e6-c1fad4872214:admin@localhost :: true

retractItemsFromNodes 0.067s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214"
}

2019-11-25 21:18:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214"
}

2019-11-25 21:18:01 | [Mutex] received everything.

2019-11-25 21:18:01 | [Mutex] isItemNotified: retracted:item:notifieditem-62f90bff-8a6e-4e82-a5e6-c1fad4872214:admin@localhost :: true

retrieveItemsFromNodes 0.014s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214"
}

2019-11-25 21:18:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "item-id": "item-62f90bff-8a6e-4e82-a5e6-c1fad4872214",
    "item": [
        "<item id=\"item-62f90bff-8a6e-4e82-a5e6-c1fad4872214\"><test>item-62f90bff-8a6e-4e82-a5e6-c1fad4872214</test></item>"
    ]
}

2019-11-25 21:18:01 | [Mutex] notify: [retrieved:item:item-62f90bff-8a6e-4e82-a5e6-c1fad4872214:payload-matches:true:localhost]

2019-11-25 21:18:01 | [Mutex] received everything.

2019-11-25 21:18:01 | [Mutex] isItemNotified: retrieved:item:item-62f90bff-8a6e-4e82-a5e6-c1fad4872214:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}

2019-11-25 21:18:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
        "node-28527113-538e-43d2-b275-de31934aca18"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-17fadfed-b7de-472e-bbe4-d553821d5d3d)"
}

2019-11-25 21:18:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2019-11-25 21:18:00 |

2019-11-25 21:18:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:00 | ------------------------------------

2019-11-25 21:18:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "jids": [
        "admin@localhost"
    ]
}

2019-11-25 21:18:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2019-11-25 21:18:01 |

2019-11-25 21:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-25 21:18:01 | ------------------------------------

2019-11-25 21:18:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-17fadfed-b7de-472e-bbe4-d553821d5d3d",
    "jids": [
        "admin@localhost"
    ]
}

2019-11-25 21:18:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}