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

Test duration: 8.758s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-06-21 23:17:38 |

2020-06-21 23:17:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:38 | ------------------------------------

2020-06-21 23:17:38 | [Mutex] waiting for: [configured:node:node-edfbc415-9231-4647-ab2e-34f98cd015e2:node-f07cbf3c-d022-467d-bd14-033bea0c4047]

2020-06-21 23:17:39 | [Mutex] received everything.

2020-06-21 23:17:39 | [Mutex] isItemNotified: configured:node:node-edfbc415-9231-4647-ab2e-34f98cd015e2:node-f07cbf3c-d022-467d-bd14-033bea0c4047 :: true

2020-06-21 23:17:40 | [Mutex] waiting for: [received:nodes:db3a37f3-2bc2-4c43-a053-b74926bbfb1a:localhost]

2020-06-21 23:17:40 | [Mutex] received everything.

2020-06-21 23:17:40 | [Mutex] isItemNotified: received:node:db3a37f3-2bc2-4c43-a053-b74926bbfb1a:localhost:node-edfbc415-9231-4647-ab2e-34f98cd015e2:Node edfbc415-9231-4647-ab2e-34f98cd015e2 :: true

2020-06-21 23:17:40 | [Mutex] waiting for: [received:nodes:dcbc8977-1840-464c-b7e9-a9337ef5683c:localhost]

2020-06-21 23:17:40 | [Mutex] received everything.

2020-06-21 23:17:40 | [Mutex] isItemNotified: received:node:dcbc8977-1840-464c-b7e9-a9337ef5683c:localhost:node-edfbc415-9231-4647-ab2e-34f98cd015e2:Node edfbc415-9231-4647-ab2e-34f98cd015e2 :: false

createNodes 1.576s
2020-06-21 23:17:36 |

2020-06-21 23:17:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:36 | ------------------------------------

2020-06-21 23:17:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "pubsub#title": "Node edfbc415-9231-4647-ab2e-34f98cd015e2"
}

2020-06-21 23:17:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-21 23:17:37 | [Mutex] waiting for: [received:nodes:bd43233c-ff23-4ed2-8ad8-2e9b58ee05f4:localhost]

2020-06-21 23:17:37 | [Mutex] received everything.

2020-06-21 23:17:37 | [Mutex] isItemNotified: received:node:bd43233c-ff23-4ed2-8ad8-2e9b58ee05f4:localhost:node-edfbc415-9231-4647-ab2e-34f98cd015e2:Node edfbc415-9231-4647-ab2e-34f98cd015e2 :: true

createSubnodes 1.016s
2020-06-21 23:17:37 |

2020-06-21 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:37 | ------------------------------------

2020-06-21 23:17:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-f07cbf3c-d022-467d-bd14-033bea0c4047",
    "pubsub#title": "Node f07cbf3c-d022-467d-bd14-033bea0c4047"
}

2020-06-21 23:17:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-21 23:17:38 | [Mutex] waiting for: [received:nodes:06cae7d9-5dfb-4693-bc37-5fbed00e6137:localhost]

2020-06-21 23:17:38 | [Mutex] received everything.

2020-06-21 23:17:38 | [Mutex] isItemNotified: received:node:06cae7d9-5dfb-4693-bc37-5fbed00e6137:localhost:node-f07cbf3c-d022-467d-bd14-033bea0c4047:Node f07cbf3c-d022-467d-bd14-033bea0c4047 :: true

deleteNodes 1.018s
2020-06-21 23:17:43 |

2020-06-21 23:17:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:43 | ------------------------------------

2020-06-21 23:17:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f07cbf3c-d022-467d-bd14-033bea0c4047"
}

2020-06-21 23:17:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-21 23:17:44 | [Mutex] waiting for: [received:nodes:be8e7576-6e32-41b6-bad3-a054fa4a75c4:localhost]

2020-06-21 23:17:44 | [Mutex] received everything.

2020-06-21 23:17:44 | [Mutex] isItemNotified: received:node:be8e7576-6e32-41b6-bad3-a054fa4a75c4:localhost:node-f07cbf3c-d022-467d-bd14-033bea0c4047:Node f07cbf3c-d022-467d-bd14-033bea0c4047 :: false

deleteSubnodes 1.023s
2020-06-21 23:17:42 |

2020-06-21 23:17:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:42 | ------------------------------------

2020-06-21 23:17:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2"
}

2020-06-21 23:17:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-21 23:17:43 | [Mutex] waiting for: [received:nodes:fe671026-a9cd-4878-9812-702c5e971c81:localhost]

2020-06-21 23:17:43 | [Mutex] received everything.

2020-06-21 23:17:43 | [Mutex] isItemNotified: received:node:fe671026-a9cd-4878-9812-702c5e971c81:localhost:node-edfbc415-9231-4647-ab2e-34f98cd015e2:Node edfbc415-9231-4647-ab2e-34f98cd015e2 :: false

2020-06-21 23:17:43 | [Mutex] waiting for: [received:nodes:3a6002b4-6877-488d-b9bb-3369537036a9:localhost]

2020-06-21 23:17:43 | [Mutex] received everything.

2020-06-21 23:17:43 | [Mutex] isItemNotified: received:node:3a6002b4-6877-488d-b9bb-3369537036a9:localhost:node-edfbc415-9231-4647-ab2e-34f98cd015e2:Node edfbc415-9231-4647-ab2e-34f98cd015e2 :: false

publishItemsToNodes 0.034s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "entry": "<test>item-5ab15a96-136c-4feb-a916-24a2b8559475</test>",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475"
}

2020-06-21 23:17:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475"
}

2020-06-21 23:17:41 | [Mutex] waiting for: [published:item:notifieditem-5ab15a96-136c-4feb-a916-24a2b8559475:admin@localhost]

2020-06-21 23:17:41 | [Mutex] received everything.

2020-06-21 23:17:41 | [Mutex] isItemNotified: published:item:notifieditem-5ab15a96-136c-4feb-a916-24a2b8559475:admin@localhost :: true

retractItemsFromNodes 0.048s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475"
}

2020-06-21 23:17:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475"
}

2020-06-21 23:17:41 | [Mutex] received everything.

2020-06-21 23:17:41 | [Mutex] isItemNotified: retracted:item:notifieditem-5ab15a96-136c-4feb-a916-24a2b8559475:admin@localhost :: true

retrieveItemsFromNodes 0.083s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475"
}

2020-06-21 23:17:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "item-id": "item-5ab15a96-136c-4feb-a916-24a2b8559475",
    "item": [
        "<item id=\"item-5ab15a96-136c-4feb-a916-24a2b8559475\"><test>item-5ab15a96-136c-4feb-a916-24a2b8559475</test></item>"
    ]
}

2020-06-21 23:17:41 | [Mutex] notify: [retrieved:item:item-5ab15a96-136c-4feb-a916-24a2b8559475:payload-matches:true:localhost]

2020-06-21 23:17:41 | [Mutex] received everything.

2020-06-21 23:17:41 | [Mutex] isItemNotified: retrieved:item:item-5ab15a96-136c-4feb-a916-24a2b8559475:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}

2020-06-21 23:17:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
        "node-f07cbf3c-d022-467d-bd14-033bea0c4047",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-edfbc415-9231-4647-ab2e-34f98cd015e2)"
}

2020-06-21 23:17:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2020-06-21 23:17:40 |

2020-06-21 23:17:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:40 | ------------------------------------

2020-06-21 23:17:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "jids": [
        "admin@localhost"
    ]
}

2020-06-21 23:17:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2020-06-21 23:17:41 |

2020-06-21 23:17:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-21 23:17:41 | ------------------------------------

2020-06-21 23:17:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-edfbc415-9231-4647-ab2e-34f98cd015e2",
    "jids": [
        "admin@localhost"
    ]
}

2020-06-21 23:17:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}