Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 19 July 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.731s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-07-19 23:00:19 |

2022-07-19 23:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:19 | ------------------------------------

2022-07-19 23:00:19 | [Mutex] waiting for: [configured:node:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:node-1854704b-c12f-4350-8b42-348b38ae5775]

2022-07-19 23:00:19 | [Mutex] received everything.

2022-07-19 23:00:19 | [Mutex] isItemNotified: configured:node:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:node-1854704b-c12f-4350-8b42-348b38ae5775 :: true

2022-07-19 23:00:20 | [Mutex] waiting for: [received:nodes:253e1af3-9690-4d4e-94fb-7061f6f13644:localhost]

2022-07-19 23:00:20 | [Mutex] received everything.

2022-07-19 23:00:20 | [Mutex] isItemNotified: received:node:253e1af3-9690-4d4e-94fb-7061f6f13644:localhost:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c :: true

2022-07-19 23:00:20 | [Mutex] waiting for: [received:nodes:8cccf654-e9a5-4548-b86d-fa9e8b5973a7:localhost]

2022-07-19 23:00:20 | [Mutex] received everything.

2022-07-19 23:00:20 | [Mutex] isItemNotified: received:node:8cccf654-e9a5-4548-b86d-fa9e8b5973a7:localhost:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c :: false

createNodes 1.604s
2022-07-19 23:00:16 |

2022-07-19 23:00:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:16 | ------------------------------------

2022-07-19 23:00:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "pubsub#title": "Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c"
}

2022-07-19 23:00:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 23:00:18 | [Mutex] waiting for: [received:nodes:ab34eb6f-9481-4f93-b4a9-50bc853ddbbb:localhost]

2022-07-19 23:00:18 | [Mutex] received everything.

2022-07-19 23:00:18 | [Mutex] isItemNotified: received:node:ab34eb6f-9481-4f93-b4a9-50bc853ddbbb:localhost:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c :: true

createSubnodes 1.021s
2022-07-19 23:00:18 |

2022-07-19 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:18 | ------------------------------------

2022-07-19 23:00:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1854704b-c12f-4350-8b42-348b38ae5775",
    "pubsub#title": "Node 1854704b-c12f-4350-8b42-348b38ae5775"
}

2022-07-19 23:00:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 23:00:19 | [Mutex] waiting for: [received:nodes:1633f522-4f47-4524-a4f0-5bd90de83a8a:localhost]

2022-07-19 23:00:19 | [Mutex] received everything.

2022-07-19 23:00:19 | [Mutex] isItemNotified: received:node:1633f522-4f47-4524-a4f0-5bd90de83a8a:localhost:node-1854704b-c12f-4350-8b42-348b38ae5775:Node 1854704b-c12f-4350-8b42-348b38ae5775 :: true

deleteNodes 1.018s
2022-07-19 23:00:23 |

2022-07-19 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:23 | ------------------------------------

2022-07-19 23:00:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1854704b-c12f-4350-8b42-348b38ae5775"
}

2022-07-19 23:00:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 23:00:24 | [Mutex] waiting for: [received:nodes:dfe78a1c-ea1f-44bc-878e-052497d609c7:localhost]

2022-07-19 23:00:24 | [Mutex] waiting for: [received:nodes:dfe78a1c-ea1f-44bc-878e-052497d609c7:localhost]

2022-07-19 23:00:24 | [Mutex] waiting for: [received:nodes:dfe78a1c-ea1f-44bc-878e-052497d609c7:localhost]

2022-07-19 23:00:24 | [Mutex] received everything.

2022-07-19 23:00:24 | [Mutex] isItemNotified: received:node:dfe78a1c-ea1f-44bc-878e-052497d609c7:localhost:node-1854704b-c12f-4350-8b42-348b38ae5775:Node 1854704b-c12f-4350-8b42-348b38ae5775 :: false

deleteSubnodes 1.027s
2022-07-19 23:00:22 |

2022-07-19 23:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:22 | ------------------------------------

2022-07-19 23:00:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c"
}

2022-07-19 23:00:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 23:00:23 | [Mutex] waiting for: [received:nodes:48073216-3766-4484-b965-97976e334857:localhost]

2022-07-19 23:00:23 | [Mutex] waiting for: [received:nodes:48073216-3766-4484-b965-97976e334857:localhost]

2022-07-19 23:00:23 | [Mutex] waiting for: [received:nodes:48073216-3766-4484-b965-97976e334857:localhost]

2022-07-19 23:00:23 | [Mutex] received everything.

2022-07-19 23:00:23 | [Mutex] isItemNotified: received:node:48073216-3766-4484-b965-97976e334857:localhost:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c :: false

2022-07-19 23:00:23 | [Mutex] waiting for: [received:nodes:b8768f08-ab7e-4a8d-b3b7-053680e36b89:localhost]

2022-07-19 23:00:23 | [Mutex] received everything.

2022-07-19 23:00:23 | [Mutex] isItemNotified: received:node:b8768f08-ab7e-4a8d-b3b7-053680e36b89:localhost:node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c:Node 3d9ffc9a-4bc7-4ef8-84a7-367e9119400c :: false

publishItemsToNodes 0.071s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "entry": "<test>item-933eac50-070b-43b0-875e-96028afaabf6</test>",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6"
}

2022-07-19 23:00:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6"
}

2022-07-19 23:00:21 | [Mutex] waiting for: [published:item:notifieditem-933eac50-070b-43b0-875e-96028afaabf6:admin@test-domain.com]

2022-07-19 23:00:21 | [Mutex] received everything.

2022-07-19 23:00:21 | [Mutex] isItemNotified: published:item:notifieditem-933eac50-070b-43b0-875e-96028afaabf6:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6"
}

2022-07-19 23:00:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6"
}

2022-07-19 23:00:21 | [Mutex] received everything.

2022-07-19 23:00:21 | [Mutex] isItemNotified: retracted:item:notifieditem-933eac50-070b-43b0-875e-96028afaabf6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.037s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6"
}

2022-07-19 23:00:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "item-id": "item-933eac50-070b-43b0-875e-96028afaabf6",
    "item": [
        "<item id=\"item-933eac50-070b-43b0-875e-96028afaabf6\"><test>item-933eac50-070b-43b0-875e-96028afaabf6</test></item>"
    ]
}

2022-07-19 23:00:21 | [Mutex] notify: [retrieved:item:item-933eac50-070b-43b0-875e-96028afaabf6:payload-matches:true:localhost]

2022-07-19 23:00:21 | [Mutex] received everything.

2022-07-19 23:00:21 | [Mutex] isItemNotified: retrieved:item:item-933eac50-070b-43b0-875e-96028afaabf6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-19 23:00:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1854704b-c12f-4350-8b42-348b38ae5775",
        "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c)"
}

2022-07-19 23:00:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-19 23:00:20 |

2022-07-19 23:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:20 | ------------------------------------

2022-07-19 23:00:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 23:00:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-07-19 23:00:21 |

2022-07-19 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 23:00:21 | ------------------------------------

2022-07-19 23:00:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3d9ffc9a-4bc7-4ef8-84a7-367e9119400c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 23:00:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}