Generated by TestNG with ReportNG at 21:18 PST on Tuesday 15 February 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.296s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-02-15 21:34:36 |

2022-02-15 21:34:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:36 | ------------------------------------

2022-02-15 21:34:36 | [Mutex] waiting for: [configured:node:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:node-5ed4d859-147c-4d87-8d93-41704469ed63]

2022-02-15 21:34:36 | [Mutex] received everything.

2022-02-15 21:34:36 | [Mutex] isItemNotified: configured:node:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:node-5ed4d859-147c-4d87-8d93-41704469ed63 :: true

2022-02-15 21:34:37 | [Mutex] waiting for: [received:nodes:cf88c3a9-8b81-485c-a604-75f6111c366b:localhost]

2022-02-15 21:34:37 | [Mutex] received everything.

2022-02-15 21:34:37 | [Mutex] isItemNotified: received:node:cf88c3a9-8b81-485c-a604-75f6111c366b:localhost:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f :: true

2022-02-15 21:34:37 | [Mutex] waiting for: [received:nodes:5694d714-4c2a-4ac1-812d-f469fa5a63e8:localhost]

2022-02-15 21:34:37 | [Mutex] received everything.

2022-02-15 21:34:37 | [Mutex] isItemNotified: received:node:5694d714-4c2a-4ac1-812d-f469fa5a63e8:localhost:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f :: false

createNodes 1.863s
2022-02-15 21:34:33 |

2022-02-15 21:34:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:33 | ------------------------------------

2022-02-15 21:34:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "pubsub#title": "Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f"
}

2022-02-15 21:34:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:34:35 | [Mutex] waiting for: [received:nodes:bad08c6a-f06c-4087-a711-ba6bad27e1b1:localhost]

2022-02-15 21:34:35 | [Mutex] received everything.

2022-02-15 21:34:35 | [Mutex] isItemNotified: received:node:bad08c6a-f06c-4087-a711-ba6bad27e1b1:localhost:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f :: true

createSubnodes 1.032s
2022-02-15 21:34:35 |

2022-02-15 21:34:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:35 | ------------------------------------

2022-02-15 21:34:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5ed4d859-147c-4d87-8d93-41704469ed63",
    "pubsub#title": "Node 5ed4d859-147c-4d87-8d93-41704469ed63"
}

2022-02-15 21:34:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:34:36 | [Mutex] waiting for: [received:nodes:fb4920ea-a4fa-4454-b6cb-268d728b1e6e:localhost]

2022-02-15 21:34:36 | [Mutex] received everything.

2022-02-15 21:34:36 | [Mutex] isItemNotified: received:node:fb4920ea-a4fa-4454-b6cb-268d728b1e6e:localhost:node-5ed4d859-147c-4d87-8d93-41704469ed63:Node 5ed4d859-147c-4d87-8d93-41704469ed63 :: true

deleteNodes 1.022s
2022-02-15 21:34:41 |

2022-02-15 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:41 | ------------------------------------

2022-02-15 21:34:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ed4d859-147c-4d87-8d93-41704469ed63"
}

2022-02-15 21:34:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:34:42 | [Mutex] waiting for: [received:nodes:73de535a-a8ba-4d77-bf37-d04782d40f11:localhost]

2022-02-15 21:34:42 | [Mutex] waiting for: [received:nodes:73de535a-a8ba-4d77-bf37-d04782d40f11:localhost]

2022-02-15 21:34:42 | [Mutex] received everything.

2022-02-15 21:34:42 | [Mutex] isItemNotified: received:node:73de535a-a8ba-4d77-bf37-d04782d40f11:localhost:node-5ed4d859-147c-4d87-8d93-41704469ed63:Node 5ed4d859-147c-4d87-8d93-41704469ed63 :: false

deleteSubnodes 1.041s
2022-02-15 21:34:40 |

2022-02-15 21:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:40 | ------------------------------------

2022-02-15 21:34:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f"
}

2022-02-15 21:34:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:34:41 | [Mutex] waiting for: [received:nodes:cd05d44a-f357-4fcb-8bc2-a55640ec5190:localhost]

2022-02-15 21:34:41 | [Mutex] waiting for: [received:nodes:cd05d44a-f357-4fcb-8bc2-a55640ec5190:localhost]

2022-02-15 21:34:41 | [Mutex] received everything.

2022-02-15 21:34:41 | [Mutex] isItemNotified: received:node:cd05d44a-f357-4fcb-8bc2-a55640ec5190:localhost:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f :: false

2022-02-15 21:34:41 | [Mutex] waiting for: [received:nodes:556887a9-0cc9-4266-a246-b76eb3173d2b:localhost]

2022-02-15 21:34:41 | [Mutex] received everything.

2022-02-15 21:34:41 | [Mutex] isItemNotified: received:node:556887a9-0cc9-4266-a246-b76eb3173d2b:localhost:node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f:Node 3fe1972c-a2a4-40f7-b34b-fc7f2feba14f :: false

publishItemsToNodes 0.066s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "entry": "<test>item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7</test>",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7"
}

2022-02-15 21:34:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7"
}

2022-02-15 21:34:38 | [Mutex] waiting for: [published:item:notifieditem-53c2ddb1-e0b9-4036-a98b-6a33504a8de7:admin@test-domain.com]

2022-02-15 21:34:38 | [Mutex] received everything.

2022-02-15 21:34:38 | [Mutex] isItemNotified: published:item:notifieditem-53c2ddb1-e0b9-4036-a98b-6a33504a8de7:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7"
}

2022-02-15 21:34:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7"
}

2022-02-15 21:34:38 | [Mutex] received everything.

2022-02-15 21:34:38 | [Mutex] isItemNotified: retracted:item:notifieditem-53c2ddb1-e0b9-4036-a98b-6a33504a8de7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.037s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7"
}

2022-02-15 21:34:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "item-id": "item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7",
    "item": [
        "<item id=\"item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7\"><test>item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7</test></item>"
    ]
}

2022-02-15 21:34:38 | [Mutex] notify: [retrieved:item:item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7:payload-matches:true:localhost]

2022-02-15 21:34:38 | [Mutex] received everything.

2022-02-15 21:34:38 | [Mutex] isItemNotified: retrieved:item:item-53c2ddb1-e0b9-4036-a98b-6a33504a8de7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-15 21:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5ed4d859-147c-4d87-8d93-41704469ed63",
        "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f)"
}

2022-02-15 21:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-02-15 21:34:37 |

2022-02-15 21:34:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:37 | ------------------------------------

2022-02-15 21:34:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:34:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-02-15 21:34:38 |

2022-02-15 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:34:38 | ------------------------------------

2022-02-15 21:34:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3fe1972c-a2a4-40f7-b34b-fc7f2feba14f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:34:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}