Generated by TestNG with ReportNG at 22:45 PDT on Thursday 22 June 2023
root@1512af24e4a5 / Java 17.0.6 (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.635s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2023-06-22 23:00:24 |

2023-06-22 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:24 | ------------------------------------

2023-06-22 23:00:24 | [Mutex] waiting for: [configured:node:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4]

2023-06-22 23:00:24 | [Mutex] received everything.

2023-06-22 23:00:24 | [Mutex] isItemNotified: configured:node:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4 :: true

2023-06-22 23:00:25 | [Mutex] waiting for: [received:nodes:dbfb6caa-4b50-4033-8ad6-c8821e796ffd:localhost]

2023-06-22 23:00:25 | [Mutex] received everything.

2023-06-22 23:00:25 | [Mutex] isItemNotified: received:node:dbfb6caa-4b50-4033-8ad6-c8821e796ffd:localhost:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d :: true

2023-06-22 23:00:25 | [Mutex] waiting for: [received:nodes:94c1d89b-cf12-4f2d-b895-a56597b8ece7:localhost]

2023-06-22 23:00:25 | [Mutex] received everything.

2023-06-22 23:00:25 | [Mutex] isItemNotified: received:node:94c1d89b-cf12-4f2d-b895-a56597b8ece7:localhost:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d :: false

createNodes 1.664s
2023-06-22 23:00:22 |

2023-06-22 23:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:22 | ------------------------------------

2023-06-22 23:00:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "pubsub#title": "Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d"
}

2023-06-22 23:00:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-22 23:00:23 | [Mutex] waiting for: [received:nodes:96fbd1bd-da59-4372-a829-bfda4b318170:localhost]

2023-06-22 23:00:23 | [Mutex] waiting for: [received:nodes:96fbd1bd-da59-4372-a829-bfda4b318170:localhost]

2023-06-22 23:00:23 | [Mutex] waiting for: [received:nodes:96fbd1bd-da59-4372-a829-bfda4b318170:localhost]

2023-06-22 23:00:23 | [Mutex] waiting for: [received:nodes:96fbd1bd-da59-4372-a829-bfda4b318170:localhost]

2023-06-22 23:00:23 | [Mutex] received everything.

2023-06-22 23:00:23 | [Mutex] isItemNotified: received:node:96fbd1bd-da59-4372-a829-bfda4b318170:localhost:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d :: true

createSubnodes 1.024s
2023-06-22 23:00:23 |

2023-06-22 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:23 | ------------------------------------

2023-06-22 23:00:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4",
    "pubsub#title": "Node a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4"
}

2023-06-22 23:00:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-22 23:00:24 | [Mutex] waiting for: [received:nodes:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost]

2023-06-22 23:00:24 | [Mutex] waiting for: [received:nodes:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost]

2023-06-22 23:00:24 | [Mutex] waiting for: [received:nodes:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost]

2023-06-22 23:00:24 | [Mutex] waiting for: [received:nodes:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost]

2023-06-22 23:00:24 | [Mutex] waiting for: [received:nodes:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost]

2023-06-22 23:00:24 | [Mutex] received everything.

2023-06-22 23:00:24 | [Mutex] isItemNotified: received:node:1729a6dd-57d2-4ea5-b587-48e116277f10:localhost:node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4:Node a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4 :: true

deleteNodes 1.015s
2023-06-22 23:00:29 |

2023-06-22 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:29 | ------------------------------------

2023-06-22 23:00:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4"
}

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

2023-06-22 23:00:30 | [Mutex] waiting for: [received:nodes:6256c3b2-4ce8-4809-8d8c-61a8a7aab41d:localhost]

2023-06-22 23:00:30 | [Mutex] waiting for: [received:nodes:6256c3b2-4ce8-4809-8d8c-61a8a7aab41d:localhost]

2023-06-22 23:00:30 | [Mutex] waiting for: [received:nodes:6256c3b2-4ce8-4809-8d8c-61a8a7aab41d:localhost]

2023-06-22 23:00:30 | [Mutex] received everything.

2023-06-22 23:00:30 | [Mutex] isItemNotified: received:node:6256c3b2-4ce8-4809-8d8c-61a8a7aab41d:localhost:node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4:Node a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4 :: false

deleteSubnodes 1.026s
2023-06-22 23:00:28 |

2023-06-22 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:28 | ------------------------------------

2023-06-22 23:00:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d"
}

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

2023-06-22 23:00:29 | [Mutex] waiting for: [received:nodes:2c477859-d781-4acd-bef7-e47fe6829cbc:localhost]

2023-06-22 23:00:29 | [Mutex] waiting for: [received:nodes:2c477859-d781-4acd-bef7-e47fe6829cbc:localhost]

2023-06-22 23:00:29 | [Mutex] waiting for: [received:nodes:2c477859-d781-4acd-bef7-e47fe6829cbc:localhost]

2023-06-22 23:00:29 | [Mutex] waiting for: [received:nodes:2c477859-d781-4acd-bef7-e47fe6829cbc:localhost]

2023-06-22 23:00:29 | [Mutex] received everything.

2023-06-22 23:00:29 | [Mutex] isItemNotified: received:node:2c477859-d781-4acd-bef7-e47fe6829cbc:localhost:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d :: false

2023-06-22 23:00:29 | [Mutex] waiting for: [received:nodes:199eac12-9e4c-4631-acd6-ff94cf4a9894:localhost]

2023-06-22 23:00:29 | [Mutex] received everything.

2023-06-22 23:00:29 | [Mutex] isItemNotified: received:node:199eac12-9e4c-4631-acd6-ff94cf4a9894:localhost:node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d:Node bef4fc5b-2b1f-4c3a-bb14-0071d340c15d :: false

publishItemsToNodes 0.057s
2023-06-22 23:00:26 |

2023-06-22 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:26 | ------------------------------------

2023-06-22 23:00:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "entry": "<test>item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9</test>",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9"
}

2023-06-22 23:00:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9"
}

2023-06-22 23:00:26 | [Mutex] waiting for: [published:item:notifieditem-c8b0487d-7fe7-46c7-a255-279d76d9f3f9:admin@test-domain.com]

2023-06-22 23:00:27 | [Mutex] received everything.

2023-06-22 23:00:27 | [Mutex] isItemNotified: published:item:notifieditem-c8b0487d-7fe7-46c7-a255-279d76d9f3f9:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-06-22 23:00:27 |

2023-06-22 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:27 | ------------------------------------

2023-06-22 23:00:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9"
}

2023-06-22 23:00:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9"
}

2023-06-22 23:00:27 | [Mutex] received everything.

2023-06-22 23:00:27 | [Mutex] isItemNotified: retracted:item:notifieditem-c8b0487d-7fe7-46c7-a255-279d76d9f3f9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2023-06-22 23:00:27 |

2023-06-22 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:27 | ------------------------------------

2023-06-22 23:00:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9"
}

2023-06-22 23:00:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "item-id": "item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9",
    "item": [
        "<item id=\"item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9\"><test>item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9</test></item>"
    ]
}

2023-06-22 23:00:27 | [Mutex] notify: [retrieved:item:item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9:payload-matches:true:localhost]

2023-06-22 23:00:27 | [Mutex] received everything.

2023-06-22 23:00:27 | [Mutex] isItemNotified: retrieved:item:item-c8b0487d-7fe7-46c7-a255-279d76d9f3f9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-06-22 23:00:27 |

2023-06-22 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:27 | ------------------------------------

2023-06-22 23:00:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-06-22 23:00:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
        "test",
        "node-a3ca74de-d7c0-4bd7-9f1a-5684d06d04b4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-06-22 23:00:27 |

2023-06-22 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:27 | ------------------------------------

2023-06-22 23:00:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d)"
}

2023-06-22 23:00:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-06-22 23:00:25 |

2023-06-22 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:25 | ------------------------------------

2023-06-22 23:00:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-22 23:00:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-06-22 23:00:27 |

2023-06-22 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 23:00:27 | ------------------------------------

2023-06-22 23:00:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bef4fc5b-2b1f-4c3a-bb14-0071d340c15d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-22 23:00:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}