Generated by TestNG with ReportNG at 22:21 PDT on Monday 20 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.752s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.143s
2022-06-20 22:35:35 |

2022-06-20 22:35:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:35 | ------------------------------------

2022-06-20 22:35:35 | [Mutex] waiting for: [configured:node:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:node-e74b5e75-a881-4a98-b227-c0bd40a42116]

2022-06-20 22:35:35 | [Mutex] received everything.

2022-06-20 22:35:35 | [Mutex] isItemNotified: configured:node:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:node-e74b5e75-a881-4a98-b227-c0bd40a42116 :: true

2022-06-20 22:35:36 | [Mutex] waiting for: [received:nodes:50904f53-f61c-4d75-98e2-924d7910a84b:localhost]

2022-06-20 22:35:36 | [Mutex] received everything.

2022-06-20 22:35:36 | [Mutex] isItemNotified: received:node:50904f53-f61c-4d75-98e2-924d7910a84b:localhost:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:Node 2bcbc833-6ca3-48fc-9baa-00a80e016253 :: true

2022-06-20 22:35:36 | [Mutex] waiting for: [received:nodes:965a15b8-ccb4-4235-96ed-99ece27e849a:localhost]

2022-06-20 22:35:36 | [Mutex] received everything.

2022-06-20 22:35:36 | [Mutex] isItemNotified: received:node:965a15b8-ccb4-4235-96ed-99ece27e849a:localhost:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:Node 2bcbc833-6ca3-48fc-9baa-00a80e016253 :: false

createNodes 1.615s
2022-06-20 22:35:32 |

2022-06-20 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:32 | ------------------------------------

2022-06-20 22:35:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "pubsub#title": "Node 2bcbc833-6ca3-48fc-9baa-00a80e016253"
}

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

2022-06-20 22:35:34 | [Mutex] waiting for: [received:nodes:9830301b-d8ba-4e47-a352-7615da1783d7:localhost]

2022-06-20 22:35:34 | [Mutex] received everything.

2022-06-20 22:35:34 | [Mutex] isItemNotified: received:node:9830301b-d8ba-4e47-a352-7615da1783d7:localhost:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:Node 2bcbc833-6ca3-48fc-9baa-00a80e016253 :: true

createSubnodes 1.029s
2022-06-20 22:35:34 |

2022-06-20 22:35:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:34 | ------------------------------------

2022-06-20 22:35:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e74b5e75-a881-4a98-b227-c0bd40a42116",
    "pubsub#title": "Node e74b5e75-a881-4a98-b227-c0bd40a42116"
}

2022-06-20 22:35:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:35:35 | [Mutex] waiting for: [received:nodes:00f47903-2d6b-4656-a6e9-71ffd7f0dcbd:localhost]

2022-06-20 22:35:35 | [Mutex] waiting for: [received:nodes:00f47903-2d6b-4656-a6e9-71ffd7f0dcbd:localhost]

2022-06-20 22:35:35 | [Mutex] received everything.

2022-06-20 22:35:35 | [Mutex] isItemNotified: received:node:00f47903-2d6b-4656-a6e9-71ffd7f0dcbd:localhost:node-e74b5e75-a881-4a98-b227-c0bd40a42116:Node e74b5e75-a881-4a98-b227-c0bd40a42116 :: true

deleteNodes 1.022s
2022-06-20 22:35:40 |

2022-06-20 22:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:40 | ------------------------------------

2022-06-20 22:35:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e74b5e75-a881-4a98-b227-c0bd40a42116"
}

2022-06-20 22:35:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:35:41 | [Mutex] waiting for: [received:nodes:e32a3d0d-dc3b-40dd-8782-b30427c557c5:localhost]

2022-06-20 22:35:41 | [Mutex] waiting for: [received:nodes:e32a3d0d-dc3b-40dd-8782-b30427c557c5:localhost]

2022-06-20 22:35:41 | [Mutex] waiting for: [received:nodes:e32a3d0d-dc3b-40dd-8782-b30427c557c5:localhost]

2022-06-20 22:35:41 | [Mutex] received everything.

2022-06-20 22:35:41 | [Mutex] isItemNotified: received:node:e32a3d0d-dc3b-40dd-8782-b30427c557c5:localhost:node-e74b5e75-a881-4a98-b227-c0bd40a42116:Node e74b5e75-a881-4a98-b227-c0bd40a42116 :: false

deleteSubnodes 1.030s
2022-06-20 22:35:39 |

2022-06-20 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:39 | ------------------------------------

2022-06-20 22:35:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253"
}

2022-06-20 22:35:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:35:40 | [Mutex] waiting for: [received:nodes:0e8b7233-ddb5-4ef5-a42b-0043dbc6f551:localhost]

2022-06-20 22:35:40 | [Mutex] received everything.

2022-06-20 22:35:40 | [Mutex] isItemNotified: received:node:0e8b7233-ddb5-4ef5-a42b-0043dbc6f551:localhost:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:Node 2bcbc833-6ca3-48fc-9baa-00a80e016253 :: false

2022-06-20 22:35:40 | [Mutex] waiting for: [received:nodes:22917d1c-8e3c-4576-9127-f5e92f75aea8:localhost]

2022-06-20 22:35:40 | [Mutex] received everything.

2022-06-20 22:35:40 | [Mutex] isItemNotified: received:node:22917d1c-8e3c-4576-9127-f5e92f75aea8:localhost:node-2bcbc833-6ca3-48fc-9baa-00a80e016253:Node 2bcbc833-6ca3-48fc-9baa-00a80e016253 :: false

publishItemsToNodes 0.064s
2022-06-20 22:35:37 |

2022-06-20 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:37 | ------------------------------------

2022-06-20 22:35:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "entry": "<test>item-484b1b9a-57b7-4db5-8079-59fef9b9667c</test>",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c"
}

2022-06-20 22:35:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c"
}

2022-06-20 22:35:37 | [Mutex] waiting for: [published:item:notifieditem-484b1b9a-57b7-4db5-8079-59fef9b9667c:admin@test-domain.com]

2022-06-20 22:35:37 | [Mutex] received everything.

2022-06-20 22:35:37 | [Mutex] isItemNotified: published:item:notifieditem-484b1b9a-57b7-4db5-8079-59fef9b9667c:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-20 22:35:38 |

2022-06-20 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:38 | ------------------------------------

2022-06-20 22:35:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c"
}

2022-06-20 22:35:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c"
}

2022-06-20 22:35:38 | [Mutex] received everything.

2022-06-20 22:35:38 | [Mutex] isItemNotified: retracted:item:notifieditem-484b1b9a-57b7-4db5-8079-59fef9b9667c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2022-06-20 22:35:37 |

2022-06-20 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:37 | ------------------------------------

2022-06-20 22:35:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c"
}

2022-06-20 22:35:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "item-id": "item-484b1b9a-57b7-4db5-8079-59fef9b9667c",
    "item": [
        "<item id=\"item-484b1b9a-57b7-4db5-8079-59fef9b9667c\"><test>item-484b1b9a-57b7-4db5-8079-59fef9b9667c</test></item>"
    ]
}

2022-06-20 22:35:37 | [Mutex] notify: [retrieved:item:item-484b1b9a-57b7-4db5-8079-59fef9b9667c:payload-matches:true:localhost]

2022-06-20 22:35:37 | [Mutex] received everything.

2022-06-20 22:35:37 | [Mutex] isItemNotified: retrieved:item:item-484b1b9a-57b7-4db5-8079-59fef9b9667c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-06-20 22:35:37 |

2022-06-20 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:37 | ------------------------------------

2022-06-20 22:35:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-20 22:35:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
        "node-e74b5e75-a881-4a98-b227-c0bd40a42116"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-20 22:35:37 |

2022-06-20 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:37 | ------------------------------------

2022-06-20 22:35:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2bcbc833-6ca3-48fc-9baa-00a80e016253)"
}

2022-06-20 22:35:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-06-20 22:35:36 |

2022-06-20 22:35:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:36 | ------------------------------------

2022-06-20 22:35:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:35:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-06-20 22:35:38 |

2022-06-20 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:35:38 | ------------------------------------

2022-06-20 22:35:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2bcbc833-6ca3-48fc-9baa-00a80e016253",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:35:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}