Generated by TestNG with ReportNG at 22:15 PDT on Monday 27 March 2023
root@7c41cec37518 / 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.677s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.152s
2023-03-27 22:29:52 |

2023-03-27 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:52 | ------------------------------------

2023-03-27 22:29:52 | [Mutex] waiting for: [configured:node:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8]

2023-03-27 22:29:52 | [Mutex] received everything.

2023-03-27 22:29:52 | [Mutex] isItemNotified: configured:node:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8 :: true

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:44b386f9-af39-4d91-ae97-6085870c4007:localhost]

2023-03-27 22:29:53 | [Mutex] received everything.

2023-03-27 22:29:53 | [Mutex] isItemNotified: received:node:44b386f9-af39-4d91-ae97-6085870c4007:localhost:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:Node 5cfb1763-79a7-4231-8d1c-210aa0229f13 :: true

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:1ae599d3-560f-49e8-bb20-4751ee2d7e69:localhost]

2023-03-27 22:29:53 | [Mutex] received everything.

2023-03-27 22:29:53 | [Mutex] isItemNotified: received:node:1ae599d3-560f-49e8-bb20-4751ee2d7e69:localhost:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:Node 5cfb1763-79a7-4231-8d1c-210aa0229f13 :: false

createNodes 1.605s
2023-03-27 22:29:49 |

2023-03-27 22:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:49 | ------------------------------------

2023-03-27 22:29:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "pubsub#title": "Node 5cfb1763-79a7-4231-8d1c-210aa0229f13"
}

2023-03-27 22:29:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:51 | [Mutex] waiting for: [received:nodes:d366104a-da7c-4f4b-920b-eb49bbaa9573:localhost]

2023-03-27 22:29:51 | [Mutex] waiting for: [received:nodes:d366104a-da7c-4f4b-920b-eb49bbaa9573:localhost]

2023-03-27 22:29:51 | [Mutex] waiting for: [received:nodes:d366104a-da7c-4f4b-920b-eb49bbaa9573:localhost]

2023-03-27 22:29:51 | [Mutex] waiting for: [received:nodes:d366104a-da7c-4f4b-920b-eb49bbaa9573:localhost]

2023-03-27 22:29:51 | [Mutex] received everything.

2023-03-27 22:29:51 | [Mutex] isItemNotified: received:node:d366104a-da7c-4f4b-920b-eb49bbaa9573:localhost:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:Node 5cfb1763-79a7-4231-8d1c-210aa0229f13 :: true

createSubnodes 1.021s
2023-03-27 22:29:51 |

2023-03-27 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:51 | ------------------------------------

2023-03-27 22:29:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8",
    "pubsub#title": "Node 76f334e0-764f-4ca3-bfc9-9b711eb1aaf8"
}

2023-03-27 22:29:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost]

2023-03-27 22:29:52 | [Mutex] received everything.

2023-03-27 22:29:52 | [Mutex] isItemNotified: received:node:5bb1dde8-a3c6-454d-a876-3b02b296ca73:localhost:node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8:Node 76f334e0-764f-4ca3-bfc9-9b711eb1aaf8 :: true

deleteNodes 1.025s
2023-03-27 22:29:57 |

2023-03-27 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:57 | ------------------------------------

2023-03-27 22:29:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8"
}

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

2023-03-27 22:29:58 | [Mutex] waiting for: [received:nodes:e161e906-e22a-4642-8e1d-086756c3ddea:localhost]

2023-03-27 22:29:58 | [Mutex] waiting for: [received:nodes:e161e906-e22a-4642-8e1d-086756c3ddea:localhost]

2023-03-27 22:29:58 | [Mutex] received everything.

2023-03-27 22:29:58 | [Mutex] isItemNotified: received:node:e161e906-e22a-4642-8e1d-086756c3ddea:localhost:node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8:Node 76f334e0-764f-4ca3-bfc9-9b711eb1aaf8 :: false

deleteSubnodes 1.025s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13"
}

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

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:0c357b25-b680-4b4a-8d7c-ca36b691cf92:localhost]

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:0c357b25-b680-4b4a-8d7c-ca36b691cf92:localhost]

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:0c357b25-b680-4b4a-8d7c-ca36b691cf92:localhost]

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:0c357b25-b680-4b4a-8d7c-ca36b691cf92:localhost]

2023-03-27 22:29:57 | [Mutex] received everything.

2023-03-27 22:29:57 | [Mutex] isItemNotified: received:node:0c357b25-b680-4b4a-8d7c-ca36b691cf92:localhost:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:Node 5cfb1763-79a7-4231-8d1c-210aa0229f13 :: false

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:d119e648-e6c9-451d-8fcc-3956e82cf71c:localhost]

2023-03-27 22:29:57 | [Mutex] received everything.

2023-03-27 22:29:57 | [Mutex] isItemNotified: received:node:d119e648-e6c9-451d-8fcc-3956e82cf71c:localhost:node-5cfb1763-79a7-4231-8d1c-210aa0229f13:Node 5cfb1763-79a7-4231-8d1c-210aa0229f13 :: false

publishItemsToNodes 0.050s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "entry": "<test>item-37273971-3e68-496b-b2ee-299a545dc5de</test>",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de"
}

2023-03-27 22:29:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de"
}

2023-03-27 22:29:54 | [Mutex] received everything.

2023-03-27 22:29:54 | [Mutex] isItemNotified: published:item:notifieditem-37273971-3e68-496b-b2ee-299a545dc5de:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de"
}

2023-03-27 22:29:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de"
}

2023-03-27 22:29:54 | [Mutex] received everything.

2023-03-27 22:29:54 | [Mutex] isItemNotified: retracted:item:notifieditem-37273971-3e68-496b-b2ee-299a545dc5de:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de"
}

2023-03-27 22:29:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "item-id": "item-37273971-3e68-496b-b2ee-299a545dc5de",
    "item": [
        "<item id=\"item-37273971-3e68-496b-b2ee-299a545dc5de\"><test>item-37273971-3e68-496b-b2ee-299a545dc5de</test></item>"
    ]
}

2023-03-27 22:29:54 | [Mutex] notify: [retrieved:item:item-37273971-3e68-496b-b2ee-299a545dc5de:payload-matches:true:localhost]

2023-03-27 22:29:54 | [Mutex] received everything.

2023-03-27 22:29:54 | [Mutex] isItemNotified: retrieved:item:item-37273971-3e68-496b-b2ee-299a545dc5de:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

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

2023-03-27 22:29:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-76f334e0-764f-4ca3-bfc9-9b711eb1aaf8",
        "node-5cfb1763-79a7-4231-8d1c-210aa0229f13"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5cfb1763-79a7-4231-8d1c-210aa0229f13)"
}

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

subscribeNodes 1.018s
2023-03-27 22:29:53 |

2023-03-27 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:53 | ------------------------------------

2023-03-27 22:29:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-27 22:29:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5cfb1763-79a7-4231-8d1c-210aa0229f13",
    "jids": [
        "admin@test-domain.com"
    ]
}

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