Generated by TestNG with ReportNG at 22:30 PDT on Tuesday 04 July 2023
root@cc7d7fbb25f7 / 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.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2023-07-04 22:45:48 |

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

2023-07-04 22:45:48 | ------------------------------------

2023-07-04 22:45:48 | [Mutex] waiting for: [configured:node:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:node-5a9a3a44-56db-4610-89e0-ac64a0e810ec]

2023-07-04 22:45:48 | [Mutex] received everything.

2023-07-04 22:45:48 | [Mutex] isItemNotified: configured:node:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:node-5a9a3a44-56db-4610-89e0-ac64a0e810ec :: true

2023-07-04 22:45:49 | [Mutex] waiting for: [received:nodes:7f75a4a2-0b25-4494-84e9-d423ad9ed9ff:localhost]

2023-07-04 22:45:49 | [Mutex] received everything.

2023-07-04 22:45:49 | [Mutex] isItemNotified: received:node:7f75a4a2-0b25-4494-84e9-d423ad9ed9ff:localhost:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:Node 2493f2a3-12d4-4df2-934d-37affd6c1b32 :: true

2023-07-04 22:45:49 | [Mutex] waiting for: [received:nodes:4a1e4cb2-4787-4435-94dc-4159c2b3a782:localhost]

2023-07-04 22:45:49 | [Mutex] waiting for: [received:nodes:4a1e4cb2-4787-4435-94dc-4159c2b3a782:localhost]

2023-07-04 22:45:49 | [Mutex] waiting for: [received:nodes:4a1e4cb2-4787-4435-94dc-4159c2b3a782:localhost]

2023-07-04 22:45:49 | [Mutex] waiting for: [received:nodes:4a1e4cb2-4787-4435-94dc-4159c2b3a782:localhost]

2023-07-04 22:45:49 | [Mutex] received everything.

2023-07-04 22:45:49 | [Mutex] isItemNotified: received:node:4a1e4cb2-4787-4435-94dc-4159c2b3a782:localhost:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:Node 2493f2a3-12d4-4df2-934d-37affd6c1b32 :: false

createNodes 1.581s
2023-07-04 22:45:46 |

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

2023-07-04 22:45:46 | ------------------------------------

2023-07-04 22:45:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "pubsub#title": "Node 2493f2a3-12d4-4df2-934d-37affd6c1b32"
}

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

2023-07-04 22:45:47 | [Mutex] waiting for: [received:nodes:736f2a5e-1e53-46ed-a26b-3cb4706816aa:localhost]

2023-07-04 22:45:47 | [Mutex] waiting for: [received:nodes:736f2a5e-1e53-46ed-a26b-3cb4706816aa:localhost]

2023-07-04 22:45:47 | [Mutex] waiting for: [received:nodes:736f2a5e-1e53-46ed-a26b-3cb4706816aa:localhost]

2023-07-04 22:45:47 | [Mutex] received everything.

2023-07-04 22:45:47 | [Mutex] isItemNotified: received:node:736f2a5e-1e53-46ed-a26b-3cb4706816aa:localhost:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:Node 2493f2a3-12d4-4df2-934d-37affd6c1b32 :: true

createSubnodes 1.037s
2023-07-04 22:45:47 |

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

2023-07-04 22:45:47 | ------------------------------------

2023-07-04 22:45:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5a9a3a44-56db-4610-89e0-ac64a0e810ec",
    "pubsub#title": "Node 5a9a3a44-56db-4610-89e0-ac64a0e810ec"
}

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

2023-07-04 22:45:48 | [Mutex] waiting for: [received:nodes:babbd8ea-6a6e-4dfb-ae7a-821a1a31fc3e:localhost]

2023-07-04 22:45:48 | [Mutex] received everything.

2023-07-04 22:45:48 | [Mutex] isItemNotified: received:node:babbd8ea-6a6e-4dfb-ae7a-821a1a31fc3e:localhost:node-5a9a3a44-56db-4610-89e0-ac64a0e810ec:Node 5a9a3a44-56db-4610-89e0-ac64a0e810ec :: true

deleteNodes 1.025s
2023-07-04 22:45:53 |

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

2023-07-04 22:45:53 | ------------------------------------

2023-07-04 22:45:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5a9a3a44-56db-4610-89e0-ac64a0e810ec"
}

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

2023-07-04 22:45:54 | [Mutex] waiting for: [received:nodes:8aed4e36-6dd1-455e-a6fc-1358f0167056:localhost]

2023-07-04 22:45:54 | [Mutex] waiting for: [received:nodes:8aed4e36-6dd1-455e-a6fc-1358f0167056:localhost]

2023-07-04 22:45:54 | [Mutex] received everything.

2023-07-04 22:45:54 | [Mutex] isItemNotified: received:node:8aed4e36-6dd1-455e-a6fc-1358f0167056:localhost:node-5a9a3a44-56db-4610-89e0-ac64a0e810ec:Node 5a9a3a44-56db-4610-89e0-ac64a0e810ec :: false

deleteSubnodes 1.028s
2023-07-04 22:45:52 |

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

2023-07-04 22:45:52 | ------------------------------------

2023-07-04 22:45:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32"
}

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

2023-07-04 22:45:53 | [Mutex] waiting for: [received:nodes:52742761-688a-4998-b0d4-747702059117:localhost]

2023-07-04 22:45:53 | [Mutex] waiting for: [received:nodes:52742761-688a-4998-b0d4-747702059117:localhost]

2023-07-04 22:45:53 | [Mutex] waiting for: [received:nodes:52742761-688a-4998-b0d4-747702059117:localhost]

2023-07-04 22:45:53 | [Mutex] waiting for: [received:nodes:52742761-688a-4998-b0d4-747702059117:localhost]

2023-07-04 22:45:53 | [Mutex] received everything.

2023-07-04 22:45:53 | [Mutex] isItemNotified: received:node:52742761-688a-4998-b0d4-747702059117:localhost:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:Node 2493f2a3-12d4-4df2-934d-37affd6c1b32 :: false

2023-07-04 22:45:53 | [Mutex] waiting for: [received:nodes:15e875e2-5e66-461c-a4a7-90e8fcfaa41d:localhost]

2023-07-04 22:45:53 | [Mutex] received everything.

2023-07-04 22:45:53 | [Mutex] isItemNotified: received:node:15e875e2-5e66-461c-a4a7-90e8fcfaa41d:localhost:node-2493f2a3-12d4-4df2-934d-37affd6c1b32:Node 2493f2a3-12d4-4df2-934d-37affd6c1b32 :: false

publishItemsToNodes 0.030s
2023-07-04 22:45:50 |

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

2023-07-04 22:45:50 | ------------------------------------

2023-07-04 22:45:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "entry": "<test>item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2</test>",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2"
}

2023-07-04 22:45:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2"
}

2023-07-04 22:45:50 | [Mutex] waiting for: [published:item:notifieditem-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2:admin@test-domain.com]

2023-07-04 22:45:50 | [Mutex] received everything.

2023-07-04 22:45:50 | [Mutex] isItemNotified: published:item:notifieditem-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2023-07-04 22:45:51 |

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

2023-07-04 22:45:51 | ------------------------------------

2023-07-04 22:45:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2"
}

2023-07-04 22:45:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2"
}

2023-07-04 22:45:51 | [Mutex] received everything.

2023-07-04 22:45:51 | [Mutex] isItemNotified: retracted:item:notifieditem-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.128s
2023-07-04 22:45:50 |

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

2023-07-04 22:45:50 | ------------------------------------

2023-07-04 22:45:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2"
}

2023-07-04 22:45:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "item-id": "item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2",
    "item": [
        "<item id=\"item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2\"><test>item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2</test></item>"
    ]
}

2023-07-04 22:45:50 | [Mutex] notify: [retrieved:item:item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2:payload-matches:true:localhost]

2023-07-04 22:45:50 | [Mutex] received everything.

2023-07-04 22:45:50 | [Mutex] isItemNotified: retrieved:item:item-ae4146a8-5ca5-4202-8dcd-367e6ccc00f2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-04 22:45:50 |

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

2023-07-04 22:45:50 | ------------------------------------

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

2023-07-04 22:45:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5a9a3a44-56db-4610-89e0-ac64a0e810ec",
        "test",
        "node-2493f2a3-12d4-4df2-934d-37affd6c1b32"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-07-04 22:45:50 |

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

2023-07-04 22:45:50 | ------------------------------------

2023-07-04 22:45:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2493f2a3-12d4-4df2-934d-37affd6c1b32)"
}

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

subscribeNodes 1.014s
2023-07-04 22:45:49 |

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

2023-07-04 22:45:49 | ------------------------------------

2023-07-04 22:45:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2023-07-04 22:45:51 |

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

2023-07-04 22:45:51 | ------------------------------------

2023-07-04 22:45:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2493f2a3-12d4-4df2-934d-37affd6c1b32",
    "jids": [
        "admin@test-domain.com"
    ]
}

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