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

Test duration: 9.054s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2019-11-21 05:26:20 |

2019-11-21 05:26:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:20 | ------------------------------------

2019-11-21 05:26:20 | [Mutex] waiting for: [configured:node:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:node-3f5c0d9c-130d-40ab-8f91-79528a780de8]

2019-11-21 05:26:20 | [Mutex] received everything.

2019-11-21 05:26:20 | [Mutex] isItemNotified: configured:node:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:node-3f5c0d9c-130d-40ab-8f91-79528a780de8 :: true

2019-11-21 05:26:21 | [Mutex] waiting for: [received:nodes:cb8626ef-5d2b-4f4c-a967-27691ee74702:localhost]

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

2019-11-21 05:26:21 | [Mutex] isItemNotified: received:node:cb8626ef-5d2b-4f4c-a967-27691ee74702:localhost:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:Node f3dae175-d053-4ceb-a80f-dbc0065ba467 :: true

2019-11-21 05:26:21 | [Mutex] waiting for: [received:nodes:c6797a0d-0503-4ab5-87a5-52ffa54b5c24:localhost]

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

2019-11-21 05:26:21 | [Mutex] isItemNotified: received:node:c6797a0d-0503-4ab5-87a5-52ffa54b5c24:localhost:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:Node f3dae175-d053-4ceb-a80f-dbc0065ba467 :: false

createNodes 1.709s
2019-11-21 05:26:17 |

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

2019-11-21 05:26:17 | ------------------------------------

2019-11-21 05:26:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "pubsub#title": "Node f3dae175-d053-4ceb-a80f-dbc0065ba467"
}

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

2019-11-21 05:26:19 | [Mutex] waiting for: [received:nodes:8f488bea-7f71-4107-8fac-039115517642:localhost]

2019-11-21 05:26:19 | [Mutex] received everything.

2019-11-21 05:26:19 | [Mutex] isItemNotified: received:node:8f488bea-7f71-4107-8fac-039115517642:localhost:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:Node f3dae175-d053-4ceb-a80f-dbc0065ba467 :: true

createSubnodes 1.022s
2019-11-21 05:26:19 |

2019-11-21 05:26:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:19 | ------------------------------------

2019-11-21 05:26:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-3f5c0d9c-130d-40ab-8f91-79528a780de8",
    "pubsub#title": "Node 3f5c0d9c-130d-40ab-8f91-79528a780de8"
}

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

2019-11-21 05:26:20 | [Mutex] waiting for: [received:nodes:e25db206-21df-416d-9075-b3369305d5af:localhost]

2019-11-21 05:26:20 | [Mutex] received everything.

2019-11-21 05:26:20 | [Mutex] isItemNotified: received:node:e25db206-21df-416d-9075-b3369305d5af:localhost:node-3f5c0d9c-130d-40ab-8f91-79528a780de8:Node 3f5c0d9c-130d-40ab-8f91-79528a780de8 :: true

deleteNodes 1.019s
2019-11-21 05:26:25 |

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

2019-11-21 05:26:25 | ------------------------------------

2019-11-21 05:26:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f5c0d9c-130d-40ab-8f91-79528a780de8"
}

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

2019-11-21 05:26:26 | [Mutex] waiting for: [received:nodes:51453ad8-8b6f-40ad-b11d-57fc24f3ed1d:localhost]

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

2019-11-21 05:26:26 | [Mutex] isItemNotified: received:node:51453ad8-8b6f-40ad-b11d-57fc24f3ed1d:localhost:node-3f5c0d9c-130d-40ab-8f91-79528a780de8:Node 3f5c0d9c-130d-40ab-8f91-79528a780de8 :: false

deleteSubnodes 1.028s
2019-11-21 05:26:24 |

2019-11-21 05:26:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:24 | ------------------------------------

2019-11-21 05:26:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467"
}

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

2019-11-21 05:26:25 | [Mutex] waiting for: [received:nodes:5e9c662d-6709-4888-be4b-7495a131c73b:localhost]

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

2019-11-21 05:26:25 | [Mutex] isItemNotified: received:node:5e9c662d-6709-4888-be4b-7495a131c73b:localhost:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:Node f3dae175-d053-4ceb-a80f-dbc0065ba467 :: false

2019-11-21 05:26:25 | [Mutex] waiting for: [received:nodes:6bd1e5ea-f7d2-42b1-90bc-184f1fd04e46:localhost]

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

2019-11-21 05:26:25 | [Mutex] isItemNotified: received:node:6bd1e5ea-f7d2-42b1-90bc-184f1fd04e46:localhost:node-f3dae175-d053-4ceb-a80f-dbc0065ba467:Node f3dae175-d053-4ceb-a80f-dbc0065ba467 :: false

publishItemsToNodes 0.033s
2019-11-21 05:26:22 |

2019-11-21 05:26:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:22 | ------------------------------------

2019-11-21 05:26:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "entry": "<test>item-7f677551-f294-49b1-86a7-f259a7953787</test>",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787"
}

2019-11-21 05:26:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787"
}

2019-11-21 05:26:22 | [Mutex] waiting for: [published:item:notifieditem-7f677551-f294-49b1-86a7-f259a7953787:admin@localhost]

2019-11-21 05:26:22 | [Mutex] received everything.

2019-11-21 05:26:22 | [Mutex] isItemNotified: published:item:notifieditem-7f677551-f294-49b1-86a7-f259a7953787:admin@localhost :: true

retractItemsFromNodes 0.056s
2019-11-21 05:26:22 |

2019-11-21 05:26:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:22 | ------------------------------------

2019-11-21 05:26:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787"
}

2019-11-21 05:26:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787"
}

2019-11-21 05:26:23 | [Mutex] received everything.

2019-11-21 05:26:23 | [Mutex] isItemNotified: retracted:item:notifieditem-7f677551-f294-49b1-86a7-f259a7953787:admin@localhost :: true

retrieveItemsFromNodes 0.057s
2019-11-21 05:26:22 |

2019-11-21 05:26:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:22 | ------------------------------------

2019-11-21 05:26:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787"
}

2019-11-21 05:26:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "item-id": "item-7f677551-f294-49b1-86a7-f259a7953787",
    "item": [
        "<item id=\"item-7f677551-f294-49b1-86a7-f259a7953787\"><test>item-7f677551-f294-49b1-86a7-f259a7953787</test></item>"
    ]
}

2019-11-21 05:26:22 | [Mutex] notify: [retrieved:item:item-7f677551-f294-49b1-86a7-f259a7953787:payload-matches:true:localhost]

2019-11-21 05:26:22 | [Mutex] received everything.

2019-11-21 05:26:22 | [Mutex] isItemNotified: retrieved:item:item-7f677551-f294-49b1-86a7-f259a7953787:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2019-11-21 05:26:22 |

2019-11-21 05:26:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:22 | ------------------------------------

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

2019-11-21 05:26:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
        "node-3f5c0d9c-130d-40ab-8f91-79528a780de8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2019-11-21 05:26:22 |

2019-11-21 05:26:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:22 | ------------------------------------

2019-11-21 05:26:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-f3dae175-d053-4ceb-a80f-dbc0065ba467)"
}

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

subscribeNodes 1.012s
2019-11-21 05:26:21 |

2019-11-21 05:26:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:21 | ------------------------------------

2019-11-21 05:26:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "jids": [
        "admin@localhost"
    ]
}

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

unsubscribeNodes 1.067s
2019-11-21 05:26:23 |

2019-11-21 05:26:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-21 05:26:23 | ------------------------------------

2019-11-21 05:26:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f3dae175-d053-4ceb-a80f-dbc0065ba467",
    "jids": [
        "admin@localhost"
    ]
}

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