Generated by TestNG with ReportNG at 22:23 PDT on Tuesday 17 May 2022
root@61c39d2ed70d / 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.663s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.072s
2022-05-17 22:38:59 |

2022-05-17 22:38:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:38:59 | ------------------------------------

2022-05-17 22:38:59 | [Mutex] waiting for: [configured:node:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:node-91dac795-583a-4c62-8fa7-a85ebafd1208]

2022-05-17 22:38:59 | [Mutex] received everything.

2022-05-17 22:38:59 | [Mutex] isItemNotified: configured:node:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:node-91dac795-583a-4c62-8fa7-a85ebafd1208 :: true

2022-05-17 22:39:00 | [Mutex] waiting for: [received:nodes:76a2fbcc-b6fe-41a9-888f-631e7ca8f264:localhost]

2022-05-17 22:39:00 | [Mutex] received everything.

2022-05-17 22:39:00 | [Mutex] isItemNotified: received:node:76a2fbcc-b6fe-41a9-888f-631e7ca8f264:localhost:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60 :: true

2022-05-17 22:39:00 | [Mutex] waiting for: [received:nodes:2903c5bc-50d7-4471-9b64-ea21a69a3d2e:localhost]

2022-05-17 22:39:00 | [Mutex] received everything.

2022-05-17 22:39:00 | [Mutex] isItemNotified: received:node:2903c5bc-50d7-4471-9b64-ea21a69a3d2e:localhost:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60 :: false

createNodes 1.616s
2022-05-17 22:38:56 |

2022-05-17 22:38:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:38:56 | ------------------------------------

2022-05-17 22:38:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "pubsub#title": "Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60"
}

2022-05-17 22:38:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 22:38:58 | [Mutex] waiting for: [received:nodes:62336591-d48f-4a19-824f-33bc136d3511:localhost]

2022-05-17 22:38:58 | [Mutex] received everything.

2022-05-17 22:38:58 | [Mutex] isItemNotified: received:node:62336591-d48f-4a19-824f-33bc136d3511:localhost:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60 :: true

createSubnodes 1.022s
2022-05-17 22:38:58 |

2022-05-17 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:38:58 | ------------------------------------

2022-05-17 22:38:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-91dac795-583a-4c62-8fa7-a85ebafd1208",
    "pubsub#title": "Node 91dac795-583a-4c62-8fa7-a85ebafd1208"
}

2022-05-17 22:38:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 22:38:59 | [Mutex] waiting for: [received:nodes:c03907a2-0460-4ddc-a5c3-73bb524a61fc:localhost]

2022-05-17 22:38:59 | [Mutex] received everything.

2022-05-17 22:38:59 | [Mutex] isItemNotified: received:node:c03907a2-0460-4ddc-a5c3-73bb524a61fc:localhost:node-91dac795-583a-4c62-8fa7-a85ebafd1208:Node 91dac795-583a-4c62-8fa7-a85ebafd1208 :: true

deleteNodes 1.028s
2022-05-17 22:39:04 |

2022-05-17 22:39:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:04 | ------------------------------------

2022-05-17 22:39:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-91dac795-583a-4c62-8fa7-a85ebafd1208"
}

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

2022-05-17 22:39:05 | [Mutex] waiting for: [received:nodes:51e30889-fb14-4ea2-aa91-984466d67bac:localhost]

2022-05-17 22:39:05 | [Mutex] waiting for: [received:nodes:51e30889-fb14-4ea2-aa91-984466d67bac:localhost]

2022-05-17 22:39:05 | [Mutex] received everything.

2022-05-17 22:39:05 | [Mutex] isItemNotified: received:node:51e30889-fb14-4ea2-aa91-984466d67bac:localhost:node-91dac795-583a-4c62-8fa7-a85ebafd1208:Node 91dac795-583a-4c62-8fa7-a85ebafd1208 :: false

deleteSubnodes 1.024s
2022-05-17 22:39:02 |

2022-05-17 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:02 | ------------------------------------

2022-05-17 22:39:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60"
}

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

2022-05-17 22:39:04 | [Mutex] waiting for: [received:nodes:0a558755-23be-48c2-a3a0-37a82c8b77a1:localhost]

2022-05-17 22:39:04 | [Mutex] received everything.

2022-05-17 22:39:04 | [Mutex] isItemNotified: received:node:0a558755-23be-48c2-a3a0-37a82c8b77a1:localhost:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60 :: false

2022-05-17 22:39:04 | [Mutex] waiting for: [received:nodes:4ada1f13-d9c3-41f0-9e71-21ebf9183ed9:localhost]

2022-05-17 22:39:04 | [Mutex] received everything.

2022-05-17 22:39:04 | [Mutex] isItemNotified: received:node:4ada1f13-d9c3-41f0-9e71-21ebf9183ed9:localhost:node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60:Node f3bcc9ec-e53a-4297-bc5f-3c3b35227d60 :: false

publishItemsToNodes 0.038s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "entry": "<test>item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36</test>",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36"
}

2022-05-17 22:39:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36"
}

2022-05-17 22:39:01 | [Mutex] waiting for: [published:item:notifieditem-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36:admin@test-domain.com]

2022-05-17 22:39:01 | [Mutex] received everything.

2022-05-17 22:39:01 | [Mutex] isItemNotified: published:item:notifieditem-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36"
}

2022-05-17 22:39:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36"
}

2022-05-17 22:39:01 | [Mutex] received everything.

2022-05-17 22:39:01 | [Mutex] isItemNotified: retracted:item:notifieditem-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36"
}

2022-05-17 22:39:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "item-id": "item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36",
    "item": [
        "<item id=\"item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36\"><test>item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36</test></item>"
    ]
}

2022-05-17 22:39:01 | [Mutex] notify: [retrieved:item:item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36:payload-matches:true:localhost]

2022-05-17 22:39:01 | [Mutex] received everything.

2022-05-17 22:39:01 | [Mutex] isItemNotified: retrieved:item:item-2b8bc1b1-4ca1-4df8-8417-90b528ca1a36:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-17 22:39:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
        "node-91dac795-583a-4c62-8fa7-a85ebafd1208"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60)"
}

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

subscribeNodes 1.015s
2022-05-17 22:39:00 |

2022-05-17 22:39:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:00 | ------------------------------------

2022-05-17 22:39:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-17 22:39:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-05-17 22:39:01 |

2022-05-17 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 22:39:01 | ------------------------------------

2022-05-17 22:39:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f3bcc9ec-e53a-4297-bc5f-3c3b35227d60",
    "jids": [
        "admin@test-domain.com"
    ]
}

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