Generated by TestNG with ReportNG at 22:15 PDT on Sunday 04 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.534s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-06-04 22:30:22 |

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

2023-06-04 22:30:22 | ------------------------------------

2023-06-04 22:30:22 | [Mutex] waiting for: [configured:node:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:node-48381a7e-05fe-478f-bab7-d2685a3d599e]

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

2023-06-04 22:30:22 | [Mutex] isItemNotified: configured:node:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:node-48381a7e-05fe-478f-bab7-d2685a3d599e :: true

2023-06-04 22:30:23 | [Mutex] waiting for: [received:nodes:32a29653-13dd-44bf-a077-017b2290c5bf:localhost]

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

2023-06-04 22:30:23 | [Mutex] isItemNotified: received:node:32a29653-13dd-44bf-a077-017b2290c5bf:localhost:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3 :: true

2023-06-04 22:30:23 | [Mutex] waiting for: [received:nodes:c11a04b7-b4b1-4007-b408-4e78df9455fd:localhost]

2023-06-04 22:30:23 | [Mutex] waiting for: [received:nodes:c11a04b7-b4b1-4007-b408-4e78df9455fd:localhost]

2023-06-04 22:30:23 | [Mutex] waiting for: [received:nodes:c11a04b7-b4b1-4007-b408-4e78df9455fd:localhost]

2023-06-04 22:30:23 | [Mutex] waiting for: [received:nodes:c11a04b7-b4b1-4007-b408-4e78df9455fd:localhost]

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

2023-06-04 22:30:23 | [Mutex] isItemNotified: received:node:c11a04b7-b4b1-4007-b408-4e78df9455fd:localhost:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3 :: false

createNodes 1.627s
2023-06-04 22:30:19 |

2023-06-04 22:30:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-04 22:30:19 | ------------------------------------

2023-06-04 22:30:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "pubsub#title": "Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3"
}

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

2023-06-04 22:30:21 | [Mutex] waiting for: [received:nodes:9683dfe9-185f-4c4d-8cc6-5ad6ddec70b9:localhost]

2023-06-04 22:30:21 | [Mutex] waiting for: [received:nodes:9683dfe9-185f-4c4d-8cc6-5ad6ddec70b9:localhost]

2023-06-04 22:30:21 | [Mutex] waiting for: [received:nodes:9683dfe9-185f-4c4d-8cc6-5ad6ddec70b9:localhost]

2023-06-04 22:30:21 | [Mutex] waiting for: [received:nodes:9683dfe9-185f-4c4d-8cc6-5ad6ddec70b9:localhost]

2023-06-04 22:30:21 | [Mutex] received everything.

2023-06-04 22:30:21 | [Mutex] isItemNotified: received:node:9683dfe9-185f-4c4d-8cc6-5ad6ddec70b9:localhost:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3 :: true

createSubnodes 1.019s
2023-06-04 22:30:21 |

2023-06-04 22:30:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-04 22:30:21 | ------------------------------------

2023-06-04 22:30:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-48381a7e-05fe-478f-bab7-d2685a3d599e",
    "pubsub#title": "Node 48381a7e-05fe-478f-bab7-d2685a3d599e"
}

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

2023-06-04 22:30:22 | [Mutex] waiting for: [received:nodes:1c13123e-1e5b-41c0-942e-071816db4ad8:localhost]

2023-06-04 22:30:22 | [Mutex] waiting for: [received:nodes:1c13123e-1e5b-41c0-942e-071816db4ad8:localhost]

2023-06-04 22:30:22 | [Mutex] waiting for: [received:nodes:1c13123e-1e5b-41c0-942e-071816db4ad8:localhost]

2023-06-04 22:30:22 | [Mutex] waiting for: [received:nodes:1c13123e-1e5b-41c0-942e-071816db4ad8:localhost]

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

2023-06-04 22:30:22 | [Mutex] isItemNotified: received:node:1c13123e-1e5b-41c0-942e-071816db4ad8:localhost:node-48381a7e-05fe-478f-bab7-d2685a3d599e:Node 48381a7e-05fe-478f-bab7-d2685a3d599e :: true

deleteNodes 1.015s
2023-06-04 22:30:26 |

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

2023-06-04 22:30:26 | ------------------------------------

2023-06-04 22:30:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-48381a7e-05fe-478f-bab7-d2685a3d599e"
}

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

2023-06-04 22:30:27 | [Mutex] waiting for: [received:nodes:ad75a0a4-96c1-4360-9089-9227b82742b2:localhost]

2023-06-04 22:30:27 | [Mutex] waiting for: [received:nodes:ad75a0a4-96c1-4360-9089-9227b82742b2:localhost]

2023-06-04 22:30:27 | [Mutex] waiting for: [received:nodes:ad75a0a4-96c1-4360-9089-9227b82742b2:localhost]

2023-06-04 22:30:27 | [Mutex] received everything.

2023-06-04 22:30:27 | [Mutex] isItemNotified: received:node:ad75a0a4-96c1-4360-9089-9227b82742b2:localhost:node-48381a7e-05fe-478f-bab7-d2685a3d599e:Node 48381a7e-05fe-478f-bab7-d2685a3d599e :: false

deleteSubnodes 1.024s
2023-06-04 22:30:25 |

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

2023-06-04 22:30:25 | ------------------------------------

2023-06-04 22:30:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3"
}

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

2023-06-04 22:30:26 | [Mutex] waiting for: [received:nodes:05e6da12-938f-4658-bdd8-5914dc40517a:localhost]

2023-06-04 22:30:26 | [Mutex] waiting for: [received:nodes:05e6da12-938f-4658-bdd8-5914dc40517a:localhost]

2023-06-04 22:30:26 | [Mutex] waiting for: [received:nodes:05e6da12-938f-4658-bdd8-5914dc40517a:localhost]

2023-06-04 22:30:26 | [Mutex] waiting for: [received:nodes:05e6da12-938f-4658-bdd8-5914dc40517a:localhost]

2023-06-04 22:30:26 | [Mutex] received everything.

2023-06-04 22:30:26 | [Mutex] isItemNotified: received:node:05e6da12-938f-4658-bdd8-5914dc40517a:localhost:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3 :: false

2023-06-04 22:30:26 | [Mutex] waiting for: [received:nodes:8303cc30-4b9b-44fc-9e08-0756b9c9d48a:localhost]

2023-06-04 22:30:26 | [Mutex] received everything.

2023-06-04 22:30:26 | [Mutex] isItemNotified: received:node:8303cc30-4b9b-44fc-9e08-0756b9c9d48a:localhost:node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3:Node 36eabf8a-7e18-4c37-9270-a59a8d6f5fa3 :: false

publishItemsToNodes 0.053s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

2023-06-04 22:30:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "entry": "<test>item-85182f8e-984d-456a-b89c-f7bf293a8aa8</test>",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8"
}

2023-06-04 22:30:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8"
}

2023-06-04 22:30:24 | [Mutex] waiting for: [published:item:notifieditem-85182f8e-984d-456a-b89c-f7bf293a8aa8:admin@test-domain.com]

2023-06-04 22:30:24 | [Mutex] received everything.

2023-06-04 22:30:24 | [Mutex] isItemNotified: published:item:notifieditem-85182f8e-984d-456a-b89c-f7bf293a8aa8:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

2023-06-04 22:30:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8"
}

2023-06-04 22:30:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8"
}

2023-06-04 22:30:24 | [Mutex] received everything.

2023-06-04 22:30:24 | [Mutex] isItemNotified: retracted:item:notifieditem-85182f8e-984d-456a-b89c-f7bf293a8aa8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.028s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

2023-06-04 22:30:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8"
}

2023-06-04 22:30:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "item-id": "item-85182f8e-984d-456a-b89c-f7bf293a8aa8",
    "item": [
        "<item id=\"item-85182f8e-984d-456a-b89c-f7bf293a8aa8\"><test>item-85182f8e-984d-456a-b89c-f7bf293a8aa8</test></item>"
    ]
}

2023-06-04 22:30:24 | [Mutex] notify: [retrieved:item:item-85182f8e-984d-456a-b89c-f7bf293a8aa8:payload-matches:true:localhost]

2023-06-04 22:30:24 | [Mutex] received everything.

2023-06-04 22:30:24 | [Mutex] isItemNotified: retrieved:item:item-85182f8e-984d-456a-b89c-f7bf293a8aa8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

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

2023-06-04 22:30:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-48381a7e-05fe-478f-bab7-d2685a3d599e",
        "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

2023-06-04 22:30:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3)"
}

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

subscribeNodes 1.009s
2023-06-04 22:30:23 |

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

2023-06-04 22:30:23 | ------------------------------------

2023-06-04 22:30:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2023-06-04 22:30:24 |

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

2023-06-04 22:30:24 | ------------------------------------

2023-06-04 22:30:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-36eabf8a-7e18-4c37-9270-a59a8d6f5fa3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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