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

Test duration: 9.080s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-06-01 22:33:14 |

2020-06-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:14 | ------------------------------------

2020-06-01 22:33:14 | [Mutex] waiting for: [configured:node:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:node-ea69aafd-c00d-4615-8f38-59fd256e1c46]

2020-06-01 22:33:14 | [Mutex] received everything.

2020-06-01 22:33:14 | [Mutex] isItemNotified: configured:node:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:node-ea69aafd-c00d-4615-8f38-59fd256e1c46 :: true

2020-06-01 22:33:15 | [Mutex] waiting for: [received:nodes:ad4dbb6a-dc36-48e4-96bb-d91d8763662b:localhost]

2020-06-01 22:33:15 | [Mutex] received everything.

2020-06-01 22:33:15 | [Mutex] isItemNotified: received:node:ad4dbb6a-dc36-48e4-96bb-d91d8763662b:localhost:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:Node b26d47a8-70bf-422c-aa98-22f3f31c914e :: true

2020-06-01 22:33:15 | [Mutex] waiting for: [received:nodes:d86f7e6d-6433-4de0-9c11-0a3fb3e539d5:localhost]

2020-06-01 22:33:15 | [Mutex] received everything.

2020-06-01 22:33:15 | [Mutex] isItemNotified: received:node:d86f7e6d-6433-4de0-9c11-0a3fb3e539d5:localhost:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:Node b26d47a8-70bf-422c-aa98-22f3f31c914e :: false

createNodes 1.789s
2020-06-01 22:33:11 |

2020-06-01 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:11 | ------------------------------------

2020-06-01 22:33:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "pubsub#title": "Node b26d47a8-70bf-422c-aa98-22f3f31c914e"
}

2020-06-01 22:33:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-01 22:33:13 | [Mutex] waiting for: [received:nodes:c8b3db87-0c1e-43f6-8a71-ca95e962ea6a:localhost]

2020-06-01 22:33:13 | [Mutex] waiting for: [received:nodes:c8b3db87-0c1e-43f6-8a71-ca95e962ea6a:localhost]

2020-06-01 22:33:13 | [Mutex] received everything.

2020-06-01 22:33:13 | [Mutex] isItemNotified: received:node:c8b3db87-0c1e-43f6-8a71-ca95e962ea6a:localhost:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:Node b26d47a8-70bf-422c-aa98-22f3f31c914e :: true

createSubnodes 1.020s
2020-06-01 22:33:13 |

2020-06-01 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:13 | ------------------------------------

2020-06-01 22:33:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-ea69aafd-c00d-4615-8f38-59fd256e1c46",
    "pubsub#title": "Node ea69aafd-c00d-4615-8f38-59fd256e1c46"
}

2020-06-01 22:33:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-01 22:33:14 | [Mutex] waiting for: [received:nodes:df9adeb1-6b6d-44d2-8298-e76a65ebac2e:localhost]

2020-06-01 22:33:14 | [Mutex] received everything.

2020-06-01 22:33:14 | [Mutex] isItemNotified: received:node:df9adeb1-6b6d-44d2-8298-e76a65ebac2e:localhost:node-ea69aafd-c00d-4615-8f38-59fd256e1c46:Node ea69aafd-c00d-4615-8f38-59fd256e1c46 :: true

deleteNodes 1.015s
2020-06-01 22:33:19 |

2020-06-01 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:19 | ------------------------------------

2020-06-01 22:33:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ea69aafd-c00d-4615-8f38-59fd256e1c46"
}

2020-06-01 22:33:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-01 22:33:20 | [Mutex] waiting for: [received:nodes:1a16baad-5620-4b0a-a546-85204401ac5b:localhost]

2020-06-01 22:33:20 | [Mutex] received everything.

2020-06-01 22:33:20 | [Mutex] isItemNotified: received:node:1a16baad-5620-4b0a-a546-85204401ac5b:localhost:node-ea69aafd-c00d-4615-8f38-59fd256e1c46:Node ea69aafd-c00d-4615-8f38-59fd256e1c46 :: false

deleteSubnodes 1.022s
2020-06-01 22:33:18 |

2020-06-01 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:18 | ------------------------------------

2020-06-01 22:33:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e"
}

2020-06-01 22:33:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-06-01 22:33:19 | [Mutex] waiting for: [received:nodes:3b95e38d-b77c-42ec-9dff-aaaf984c9efd:localhost]

2020-06-01 22:33:19 | [Mutex] received everything.

2020-06-01 22:33:19 | [Mutex] isItemNotified: received:node:3b95e38d-b77c-42ec-9dff-aaaf984c9efd:localhost:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:Node b26d47a8-70bf-422c-aa98-22f3f31c914e :: false

2020-06-01 22:33:19 | [Mutex] waiting for: [received:nodes:c3e0b5f2-eab8-45ec-871f-55bb0bef8730:localhost]

2020-06-01 22:33:19 | [Mutex] received everything.

2020-06-01 22:33:19 | [Mutex] isItemNotified: received:node:c3e0b5f2-eab8-45ec-871f-55bb0bef8730:localhost:node-b26d47a8-70bf-422c-aa98-22f3f31c914e:Node b26d47a8-70bf-422c-aa98-22f3f31c914e :: false

publishItemsToNodes 0.038s
2020-06-01 22:33:16 |

2020-06-01 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:16 | ------------------------------------

2020-06-01 22:33:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "entry": "<test>item-121ba8e8-153e-4bc8-974f-c58c54ef9d69</test>",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69"
}

2020-06-01 22:33:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69"
}

2020-06-01 22:33:16 | [Mutex] waiting for: [published:item:notifieditem-121ba8e8-153e-4bc8-974f-c58c54ef9d69:admin@localhost]

2020-06-01 22:33:16 | [Mutex] received everything.

2020-06-01 22:33:16 | [Mutex] isItemNotified: published:item:notifieditem-121ba8e8-153e-4bc8-974f-c58c54ef9d69:admin@localhost :: true

retractItemsFromNodes 0.052s
2020-06-01 22:33:17 |

2020-06-01 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:17 | ------------------------------------

2020-06-01 22:33:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69"
}

2020-06-01 22:33:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69"
}

2020-06-01 22:33:17 | [Mutex] received everything.

2020-06-01 22:33:17 | [Mutex] isItemNotified: retracted:item:notifieditem-121ba8e8-153e-4bc8-974f-c58c54ef9d69:admin@localhost :: true

retrieveItemsFromNodes 0.057s
2020-06-01 22:33:16 |

2020-06-01 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:16 | ------------------------------------

2020-06-01 22:33:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69"
}

2020-06-01 22:33:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "item-id": "item-121ba8e8-153e-4bc8-974f-c58c54ef9d69",
    "item": [
        "<item id=\"item-121ba8e8-153e-4bc8-974f-c58c54ef9d69\"><test>item-121ba8e8-153e-4bc8-974f-c58c54ef9d69</test></item>"
    ]
}

2020-06-01 22:33:16 | [Mutex] notify: [retrieved:item:item-121ba8e8-153e-4bc8-974f-c58c54ef9d69:payload-matches:true:localhost]

2020-06-01 22:33:16 | [Mutex] received everything.

2020-06-01 22:33:16 | [Mutex] isItemNotified: retrieved:item:item-121ba8e8-153e-4bc8-974f-c58c54ef9d69:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-06-01 22:33:16 |

2020-06-01 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:16 | ------------------------------------

2020-06-01 22:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}

2020-06-01 22:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ea69aafd-c00d-4615-8f38-59fd256e1c46",
        "node-b26d47a8-70bf-422c-aa98-22f3f31c914e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-06-01 22:33:16 |

2020-06-01 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:16 | ------------------------------------

2020-06-01 22:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-b26d47a8-70bf-422c-aa98-22f3f31c914e)"
}

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

subscribeNodes 1.008s
2020-06-01 22:33:15 |

2020-06-01 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:15 | ------------------------------------

2020-06-01 22:33:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "jids": [
        "admin@localhost"
    ]
}

2020-06-01 22:33:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.112s
2020-06-01 22:33:17 |

2020-06-01 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-06-01 22:33:17 | ------------------------------------

2020-06-01 22:33:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b26d47a8-70bf-422c-aa98-22f3f31c914e",
    "jids": [
        "admin@localhost"
    ]
}

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