Generated by TestNG with ReportNG at 06:35 PDT on Friday 23 September 2022
root@ed1b7dd8a1b3 / 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.711s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2022-09-23 06:50:21 |

2022-09-23 06:50:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:21 | ------------------------------------

2022-09-23 06:50:21 | [Mutex] waiting for: [configured:node:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:node-730789e9-dbac-444b-b287-01d66b154623]

2022-09-23 06:50:21 | [Mutex] received everything.

2022-09-23 06:50:21 | [Mutex] isItemNotified: configured:node:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:node-730789e9-dbac-444b-b287-01d66b154623 :: true

2022-09-23 06:50:22 | [Mutex] waiting for: [received:nodes:957be05b-c111-4954-99a9-8fb39c6be4c3:localhost]

2022-09-23 06:50:22 | [Mutex] received everything.

2022-09-23 06:50:22 | [Mutex] isItemNotified: received:node:957be05b-c111-4954-99a9-8fb39c6be4c3:localhost:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6 :: true

2022-09-23 06:50:22 | [Mutex] waiting for: [received:nodes:08702923-7b14-4bd2-98cd-7372004d9764:localhost]

2022-09-23 06:50:22 | [Mutex] waiting for: [received:nodes:08702923-7b14-4bd2-98cd-7372004d9764:localhost]

2022-09-23 06:50:22 | [Mutex] received everything.

2022-09-23 06:50:22 | [Mutex] isItemNotified: received:node:08702923-7b14-4bd2-98cd-7372004d9764:localhost:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6 :: false

createNodes 1.589s
2022-09-23 06:50:19 |

2022-09-23 06:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:19 | ------------------------------------

2022-09-23 06:50:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "pubsub#title": "Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6"
}

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

2022-09-23 06:50:20 | [Mutex] waiting for: [received:nodes:8d16bef7-81e7-468b-893f-41af3890965d:localhost]

2022-09-23 06:50:20 | [Mutex] received everything.

2022-09-23 06:50:20 | [Mutex] isItemNotified: received:node:8d16bef7-81e7-468b-893f-41af3890965d:localhost:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6 :: true

createSubnodes 1.023s
2022-09-23 06:50:20 |

2022-09-23 06:50:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:20 | ------------------------------------

2022-09-23 06:50:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-730789e9-dbac-444b-b287-01d66b154623",
    "pubsub#title": "Node 730789e9-dbac-444b-b287-01d66b154623"
}

2022-09-23 06:50:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:50:21 | [Mutex] waiting for: [received:nodes:a19759cd-c800-441c-858e-95701c82ba03:localhost]

2022-09-23 06:50:21 | [Mutex] waiting for: [received:nodes:a19759cd-c800-441c-858e-95701c82ba03:localhost]

2022-09-23 06:50:21 | [Mutex] received everything.

2022-09-23 06:50:21 | [Mutex] isItemNotified: received:node:a19759cd-c800-441c-858e-95701c82ba03:localhost:node-730789e9-dbac-444b-b287-01d66b154623:Node 730789e9-dbac-444b-b287-01d66b154623 :: true

deleteNodes 1.025s
2022-09-23 06:50:26 |

2022-09-23 06:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:26 | ------------------------------------

2022-09-23 06:50:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-730789e9-dbac-444b-b287-01d66b154623"
}

2022-09-23 06:50:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:50:27 | [Mutex] waiting for: [received:nodes:e6ae7cf3-777d-4597-a359-151209416b03:localhost]

2022-09-23 06:50:27 | [Mutex] waiting for: [received:nodes:e6ae7cf3-777d-4597-a359-151209416b03:localhost]

2022-09-23 06:50:27 | [Mutex] received everything.

2022-09-23 06:50:27 | [Mutex] isItemNotified: received:node:e6ae7cf3-777d-4597-a359-151209416b03:localhost:node-730789e9-dbac-444b-b287-01d66b154623:Node 730789e9-dbac-444b-b287-01d66b154623 :: false

deleteSubnodes 1.025s
2022-09-23 06:50:25 |

2022-09-23 06:50:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:25 | ------------------------------------

2022-09-23 06:50:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6"
}

2022-09-23 06:50:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:50:26 | [Mutex] waiting for: [received:nodes:5423c5f3-9627-40bf-8998-fd81a954b18b:localhost]

2022-09-23 06:50:26 | [Mutex] waiting for: [received:nodes:5423c5f3-9627-40bf-8998-fd81a954b18b:localhost]

2022-09-23 06:50:26 | [Mutex] received everything.

2022-09-23 06:50:26 | [Mutex] isItemNotified: received:node:5423c5f3-9627-40bf-8998-fd81a954b18b:localhost:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6 :: false

2022-09-23 06:50:26 | [Mutex] waiting for: [received:nodes:0b95e763-798b-4747-9d63-859c37a9ebe8:localhost]

2022-09-23 06:50:26 | [Mutex] received everything.

2022-09-23 06:50:26 | [Mutex] isItemNotified: received:node:0b95e763-798b-4747-9d63-859c37a9ebe8:localhost:node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6:Node d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6 :: false

publishItemsToNodes 0.041s
2022-09-23 06:50:23 |

2022-09-23 06:50:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:23 | ------------------------------------

2022-09-23 06:50:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "entry": "<test>item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a</test>",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a"
}

2022-09-23 06:50:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a"
}

2022-09-23 06:50:23 | [Mutex] waiting for: [published:item:notifieditem-19dcda37-1fc6-40ff-9adb-3c2380d3d82a:admin@test-domain.com]

2022-09-23 06:50:23 | [Mutex] received everything.

2022-09-23 06:50:23 | [Mutex] isItemNotified: published:item:notifieditem-19dcda37-1fc6-40ff-9adb-3c2380d3d82a:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-09-23 06:50:24 |

2022-09-23 06:50:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:24 | ------------------------------------

2022-09-23 06:50:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a"
}

2022-09-23 06:50:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a"
}

2022-09-23 06:50:24 | [Mutex] received everything.

2022-09-23 06:50:24 | [Mutex] isItemNotified: retracted:item:notifieditem-19dcda37-1fc6-40ff-9adb-3c2380d3d82a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2022-09-23 06:50:23 |

2022-09-23 06:50:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:23 | ------------------------------------

2022-09-23 06:50:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a"
}

2022-09-23 06:50:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "item-id": "item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a",
    "item": [
        "<item id=\"item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a\"><test>item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a</test></item>"
    ]
}

2022-09-23 06:50:23 | [Mutex] notify: [retrieved:item:item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a:payload-matches:true:localhost]

2022-09-23 06:50:23 | [Mutex] received everything.

2022-09-23 06:50:23 | [Mutex] isItemNotified: retrieved:item:item-19dcda37-1fc6-40ff-9adb-3c2380d3d82a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-23 06:50:23 |

2022-09-23 06:50:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:23 | ------------------------------------

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

2022-09-23 06:50:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
        "node-730789e9-dbac-444b-b287-01d66b154623"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-23 06:50:23 |

2022-09-23 06:50:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:23 | ------------------------------------

2022-09-23 06:50:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6)"
}

2022-09-23 06:50:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-23 06:50:22 |

2022-09-23 06:50:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:22 | ------------------------------------

2022-09-23 06:50:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-09-23 06:50:24 |

2022-09-23 06:50:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:50:24 | ------------------------------------

2022-09-23 06:50:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d0d2a8ba-4d4e-4f0f-94f6-e7dbff8d99b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-23 06:50:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}