Generated by TestNG with ReportNG at 22:16 PDT on Sunday 04 June 2023
root@8f5c98824654 / 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.628s

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

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

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

2023-06-04 22:30:41 | [Mutex] waiting for: [configured:node:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:node-6eecb36d-9ed8-40f2-97c1-3176c0097f14]

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

2023-06-04 22:30:42 | [Mutex] isItemNotified: configured:node:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:node-6eecb36d-9ed8-40f2-97c1-3176c0097f14 :: true

2023-06-04 22:30:43 | [Mutex] waiting for: [received:nodes:8ceb8345-8943-4054-8095-f45be7e53d19:localhost]

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

2023-06-04 22:30:43 | [Mutex] isItemNotified: received:node:8ceb8345-8943-4054-8095-f45be7e53d19:localhost:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3 :: true

2023-06-04 22:30:43 | [Mutex] waiting for: [received:nodes:a10f3220-2712-4e69-860c-f3bf243ff518:localhost]

2023-06-04 22:30:43 | [Mutex] waiting for: [received:nodes:a10f3220-2712-4e69-860c-f3bf243ff518:localhost]

2023-06-04 22:30:43 | [Mutex] waiting for: [received:nodes:a10f3220-2712-4e69-860c-f3bf243ff518:localhost]

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

2023-06-04 22:30:43 | [Mutex] isItemNotified: received:node:a10f3220-2712-4e69-860c-f3bf243ff518:localhost:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3 :: false

createNodes 1.602s
2023-06-04 22:30:39 |

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

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

2023-06-04 22:30:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "pubsub#title": "Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3"
}

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

2023-06-04 22:30:40 | [Mutex] waiting for: [received:nodes:413c8747-a32d-4ad5-83c2-d128d400cc62:localhost]

2023-06-04 22:30:40 | [Mutex] waiting for: [received:nodes:413c8747-a32d-4ad5-83c2-d128d400cc62:localhost]

2023-06-04 22:30:40 | [Mutex] waiting for: [received:nodes:413c8747-a32d-4ad5-83c2-d128d400cc62:localhost]

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

2023-06-04 22:30:40 | [Mutex] isItemNotified: received:node:413c8747-a32d-4ad5-83c2-d128d400cc62:localhost:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3 :: true

createSubnodes 1.024s
2023-06-04 22:30:40 |

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

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

2023-06-04 22:30:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6eecb36d-9ed8-40f2-97c1-3176c0097f14",
    "pubsub#title": "Node 6eecb36d-9ed8-40f2-97c1-3176c0097f14"
}

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

2023-06-04 22:30:41 | [Mutex] waiting for: [received:nodes:6e794cf2-d579-4aaf-a902-e509182f40b7:localhost]

2023-06-04 22:30:41 | [Mutex] waiting for: [received:nodes:6e794cf2-d579-4aaf-a902-e509182f40b7:localhost]

2023-06-04 22:30:41 | [Mutex] waiting for: [received:nodes:6e794cf2-d579-4aaf-a902-e509182f40b7:localhost]

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

2023-06-04 22:30:41 | [Mutex] isItemNotified: received:node:6e794cf2-d579-4aaf-a902-e509182f40b7:localhost:node-6eecb36d-9ed8-40f2-97c1-3176c0097f14:Node 6eecb36d-9ed8-40f2-97c1-3176c0097f14 :: true

deleteNodes 1.019s
2023-06-04 22:30:46 |

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

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

2023-06-04 22:30:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6eecb36d-9ed8-40f2-97c1-3176c0097f14"
}

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

2023-06-04 22:30:47 | [Mutex] waiting for: [received:nodes:4769acab-abe0-4bc3-a977-5dc73e3a6484:localhost]

2023-06-04 22:30:47 | [Mutex] waiting for: [received:nodes:4769acab-abe0-4bc3-a977-5dc73e3a6484:localhost]

2023-06-04 22:30:47 | [Mutex] waiting for: [received:nodes:4769acab-abe0-4bc3-a977-5dc73e3a6484:localhost]

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

2023-06-04 22:30:47 | [Mutex] isItemNotified: received:node:4769acab-abe0-4bc3-a977-5dc73e3a6484:localhost:node-6eecb36d-9ed8-40f2-97c1-3176c0097f14:Node 6eecb36d-9ed8-40f2-97c1-3176c0097f14 :: false

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

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

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

2023-06-04 22:30:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3"
}

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

2023-06-04 22:30:46 | [Mutex] waiting for: [received:nodes:f1b6b8c7-f12d-4895-a092-f3cc3818e70b:localhost]

2023-06-04 22:30:46 | [Mutex] waiting for: [received:nodes:f1b6b8c7-f12d-4895-a092-f3cc3818e70b:localhost]

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

2023-06-04 22:30:46 | [Mutex] isItemNotified: received:node:f1b6b8c7-f12d-4895-a092-f3cc3818e70b:localhost:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3 :: false

2023-06-04 22:30:46 | [Mutex] waiting for: [received:nodes:3f5cc2a2-47c7-41af-b560-fa6d887306c3:localhost]

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

2023-06-04 22:30:46 | [Mutex] isItemNotified: received:node:3f5cc2a2-47c7-41af-b560-fa6d887306c3:localhost:node-080bb0ea-16e6-42f3-8859-dfd080bdfac3:Node 080bb0ea-16e6-42f3-8859-dfd080bdfac3 :: false

publishItemsToNodes 0.052s
2023-06-04 22:30:44 |

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

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

2023-06-04 22:30:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "entry": "<test>item-8ad6e471-6bc3-4115-8215-00a26650c3a3</test>",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3"
}

2023-06-04 22:30:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3"
}

2023-06-04 22:30:44 | [Mutex] waiting for: [published:item:notifieditem-8ad6e471-6bc3-4115-8215-00a26650c3a3:admin@test-domain.com]

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

2023-06-04 22:30:44 | [Mutex] isItemNotified: published:item:notifieditem-8ad6e471-6bc3-4115-8215-00a26650c3a3:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-06-04 22:30:44 |

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

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

2023-06-04 22:30:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3"
}

2023-06-04 22:30:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3"
}

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

2023-06-04 22:30:44 | [Mutex] isItemNotified: retracted:item:notifieditem-8ad6e471-6bc3-4115-8215-00a26650c3a3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2023-06-04 22:30:44 |

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

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

2023-06-04 22:30:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3"
}

2023-06-04 22:30:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "item-id": "item-8ad6e471-6bc3-4115-8215-00a26650c3a3",
    "item": [
        "<item id=\"item-8ad6e471-6bc3-4115-8215-00a26650c3a3\"><test>item-8ad6e471-6bc3-4115-8215-00a26650c3a3</test></item>"
    ]
}

2023-06-04 22:30:44 | [Mutex] notify: [retrieved:item:item-8ad6e471-6bc3-4115-8215-00a26650c3a3:payload-matches:true:localhost]

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

2023-06-04 22:30:44 | [Mutex] isItemNotified: retrieved:item:item-8ad6e471-6bc3-4115-8215-00a26650c3a3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2023-06-04 22:30:44 |

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

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

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

2023-06-04 22:30:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
        "node-6eecb36d-9ed8-40f2-97c1-3176c0097f14",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-06-04 22:30:44 |

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

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

2023-06-04 22:30:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-080bb0ea-16e6-42f3-8859-dfd080bdfac3)"
}

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

subscribeNodes 1.012s
2023-06-04 22:30:43 |

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

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

2023-06-04 22:30:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2023-06-04 22:30:44 |

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

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

2023-06-04 22:30:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-080bb0ea-16e6-42f3-8859-dfd080bdfac3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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