Generated by TestNG with ReportNG at 21:47 PST on Monday 27 February 2023
root@f9c07ffec79b / 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.597s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2023-02-27 22:01:35 |

2023-02-27 22:01:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:35 | ------------------------------------

2023-02-27 22:01:35 | [Mutex] waiting for: [configured:node:node-499d504d-3e61-43c4-aa41-17e42abf2595:node-3cfba64c-55a3-4fa4-b7cd-63f07c894980]

2023-02-27 22:01:35 | [Mutex] received everything.

2023-02-27 22:01:35 | [Mutex] isItemNotified: configured:node:node-499d504d-3e61-43c4-aa41-17e42abf2595:node-3cfba64c-55a3-4fa4-b7cd-63f07c894980 :: true

2023-02-27 22:01:36 | [Mutex] waiting for: [received:nodes:2ad1d21e-e331-440c-8eae-1970c3902f6d:localhost]

2023-02-27 22:01:36 | [Mutex] received everything.

2023-02-27 22:01:36 | [Mutex] isItemNotified: received:node:2ad1d21e-e331-440c-8eae-1970c3902f6d:localhost:node-499d504d-3e61-43c4-aa41-17e42abf2595:Node 499d504d-3e61-43c4-aa41-17e42abf2595 :: true

2023-02-27 22:01:36 | [Mutex] waiting for: [received:nodes:d39e0991-ef2b-49b5-b6e3-3d7f31371bbb:localhost]

2023-02-27 22:01:36 | [Mutex] waiting for: [received:nodes:d39e0991-ef2b-49b5-b6e3-3d7f31371bbb:localhost]

2023-02-27 22:01:36 | [Mutex] waiting for: [received:nodes:d39e0991-ef2b-49b5-b6e3-3d7f31371bbb:localhost]

2023-02-27 22:01:36 | [Mutex] waiting for: [received:nodes:d39e0991-ef2b-49b5-b6e3-3d7f31371bbb:localhost]

2023-02-27 22:01:36 | [Mutex] received everything.

2023-02-27 22:01:36 | [Mutex] isItemNotified: received:node:d39e0991-ef2b-49b5-b6e3-3d7f31371bbb:localhost:node-499d504d-3e61-43c4-aa41-17e42abf2595:Node 499d504d-3e61-43c4-aa41-17e42abf2595 :: false

createNodes 1.580s
2023-02-27 22:01:32 |

2023-02-27 22:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:32 | ------------------------------------

2023-02-27 22:01:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "pubsub#title": "Node 499d504d-3e61-43c4-aa41-17e42abf2595"
}

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

2023-02-27 22:01:34 | [Mutex] waiting for: [received:nodes:d1b8d855-cd9a-4957-8b0a-2f4f55bbd078:localhost]

2023-02-27 22:01:34 | [Mutex] waiting for: [received:nodes:d1b8d855-cd9a-4957-8b0a-2f4f55bbd078:localhost]

2023-02-27 22:01:34 | [Mutex] waiting for: [received:nodes:d1b8d855-cd9a-4957-8b0a-2f4f55bbd078:localhost]

2023-02-27 22:01:34 | [Mutex] waiting for: [received:nodes:d1b8d855-cd9a-4957-8b0a-2f4f55bbd078:localhost]

2023-02-27 22:01:34 | [Mutex] received everything.

2023-02-27 22:01:34 | [Mutex] isItemNotified: received:node:d1b8d855-cd9a-4957-8b0a-2f4f55bbd078:localhost:node-499d504d-3e61-43c4-aa41-17e42abf2595:Node 499d504d-3e61-43c4-aa41-17e42abf2595 :: true

createSubnodes 1.020s
2023-02-27 22:01:34 |

2023-02-27 22:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:34 | ------------------------------------

2023-02-27 22:01:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3cfba64c-55a3-4fa4-b7cd-63f07c894980",
    "pubsub#title": "Node 3cfba64c-55a3-4fa4-b7cd-63f07c894980"
}

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

2023-02-27 22:01:35 | [Mutex] waiting for: [received:nodes:52429393-4b5b-4e9a-b1b1-c2e5b6e3e477:localhost]

2023-02-27 22:01:35 | [Mutex] waiting for: [received:nodes:52429393-4b5b-4e9a-b1b1-c2e5b6e3e477:localhost]

2023-02-27 22:01:35 | [Mutex] waiting for: [received:nodes:52429393-4b5b-4e9a-b1b1-c2e5b6e3e477:localhost]

2023-02-27 22:01:35 | [Mutex] waiting for: [received:nodes:52429393-4b5b-4e9a-b1b1-c2e5b6e3e477:localhost]

2023-02-27 22:01:35 | [Mutex] received everything.

2023-02-27 22:01:35 | [Mutex] isItemNotified: received:node:52429393-4b5b-4e9a-b1b1-c2e5b6e3e477:localhost:node-3cfba64c-55a3-4fa4-b7cd-63f07c894980:Node 3cfba64c-55a3-4fa4-b7cd-63f07c894980 :: true

deleteNodes 1.020s
2023-02-27 22:01:39 |

2023-02-27 22:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:39 | ------------------------------------

2023-02-27 22:01:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3cfba64c-55a3-4fa4-b7cd-63f07c894980"
}

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

2023-02-27 22:01:40 | [Mutex] waiting for: [received:nodes:c58b6af8-ae5c-472c-9151-78d4825d4f75:localhost]

2023-02-27 22:01:40 | [Mutex] waiting for: [received:nodes:c58b6af8-ae5c-472c-9151-78d4825d4f75:localhost]

2023-02-27 22:01:40 | [Mutex] waiting for: [received:nodes:c58b6af8-ae5c-472c-9151-78d4825d4f75:localhost]

2023-02-27 22:01:40 | [Mutex] received everything.

2023-02-27 22:01:40 | [Mutex] isItemNotified: received:node:c58b6af8-ae5c-472c-9151-78d4825d4f75:localhost:node-3cfba64c-55a3-4fa4-b7cd-63f07c894980:Node 3cfba64c-55a3-4fa4-b7cd-63f07c894980 :: false

deleteSubnodes 1.024s
2023-02-27 22:01:38 |

2023-02-27 22:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:38 | ------------------------------------

2023-02-27 22:01:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595"
}

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

2023-02-27 22:01:39 | [Mutex] waiting for: [received:nodes:f10abb1c-c0a2-4592-8d67-8f102066fb22:localhost]

2023-02-27 22:01:39 | [Mutex] received everything.

2023-02-27 22:01:39 | [Mutex] isItemNotified: received:node:f10abb1c-c0a2-4592-8d67-8f102066fb22:localhost:node-499d504d-3e61-43c4-aa41-17e42abf2595:Node 499d504d-3e61-43c4-aa41-17e42abf2595 :: false

2023-02-27 22:01:39 | [Mutex] waiting for: [received:nodes:07d43e11-c73e-4052-abad-3757930e1f7f:localhost]

2023-02-27 22:01:39 | [Mutex] received everything.

2023-02-27 22:01:39 | [Mutex] isItemNotified: received:node:07d43e11-c73e-4052-abad-3757930e1f7f:localhost:node-499d504d-3e61-43c4-aa41-17e42abf2595:Node 499d504d-3e61-43c4-aa41-17e42abf2595 :: false

publishItemsToNodes 0.049s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

2023-02-27 22:01:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "entry": "<test>item-473a250a-ee51-4192-980a-5bb61150cee2</test>",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2"
}

2023-02-27 22:01:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2"
}

2023-02-27 22:01:37 | [Mutex] waiting for: [published:item:notifieditem-473a250a-ee51-4192-980a-5bb61150cee2:admin@test-domain.com]

2023-02-27 22:01:37 | [Mutex] received everything.

2023-02-27 22:01:37 | [Mutex] isItemNotified: published:item:notifieditem-473a250a-ee51-4192-980a-5bb61150cee2:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

2023-02-27 22:01:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2"
}

2023-02-27 22:01:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2"
}

2023-02-27 22:01:37 | [Mutex] received everything.

2023-02-27 22:01:37 | [Mutex] isItemNotified: retracted:item:notifieditem-473a250a-ee51-4192-980a-5bb61150cee2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

2023-02-27 22:01:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2"
}

2023-02-27 22:01:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "item-id": "item-473a250a-ee51-4192-980a-5bb61150cee2",
    "item": [
        "<item id=\"item-473a250a-ee51-4192-980a-5bb61150cee2\"><test>item-473a250a-ee51-4192-980a-5bb61150cee2</test></item>"
    ]
}

2023-02-27 22:01:37 | [Mutex] notify: [retrieved:item:item-473a250a-ee51-4192-980a-5bb61150cee2:payload-matches:true:localhost]

2023-02-27 22:01:37 | [Mutex] received everything.

2023-02-27 22:01:37 | [Mutex] isItemNotified: retrieved:item:item-473a250a-ee51-4192-980a-5bb61150cee2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

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

2023-02-27 22:01:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3cfba64c-55a3-4fa4-b7cd-63f07c894980",
        "test",
        "node-499d504d-3e61-43c4-aa41-17e42abf2595"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

2023-02-27 22:01:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-499d504d-3e61-43c4-aa41-17e42abf2595)"
}

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

subscribeNodes 1.008s
2023-02-27 22:01:36 |

2023-02-27 22:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:36 | ------------------------------------

2023-02-27 22:01:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2023-02-27 22:01:37 |

2023-02-27 22:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 22:01:37 | ------------------------------------

2023-02-27 22:01:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-499d504d-3e61-43c4-aa41-17e42abf2595",
    "jids": [
        "admin@test-domain.com"
    ]
}

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