Generated by TestNG with ReportNG at 22:34 PDT on Wednesday 13 April 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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.142s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-04-13 22:48:31 |

2022-04-13 22:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:31 | ------------------------------------

2022-04-13 22:48:31 | [Mutex] waiting for: [configured:node:node-3b27aa12-a698-4281-9275-372997f75aec:node-d38f24b7-2651-4fc7-8fd4-acacab81e24a]

2022-04-13 22:48:31 | [Mutex] received everything.

2022-04-13 22:48:31 | [Mutex] isItemNotified: configured:node:node-3b27aa12-a698-4281-9275-372997f75aec:node-d38f24b7-2651-4fc7-8fd4-acacab81e24a :: true

2022-04-13 22:48:32 | [Mutex] waiting for: [received:nodes:4868b110-d3a1-4be2-b9c3-cb15ab64e3ba:localhost]

2022-04-13 22:48:32 | [Mutex] received everything.

2022-04-13 22:48:32 | [Mutex] isItemNotified: received:node:4868b110-d3a1-4be2-b9c3-cb15ab64e3ba:localhost:node-3b27aa12-a698-4281-9275-372997f75aec:Node 3b27aa12-a698-4281-9275-372997f75aec :: true

2022-04-13 22:48:32 | [Mutex] waiting for: [received:nodes:08c0522e-6f4d-4775-8678-b8af0fa537f7:localhost]

2022-04-13 22:48:32 | [Mutex] waiting for: [received:nodes:08c0522e-6f4d-4775-8678-b8af0fa537f7:localhost]

2022-04-13 22:48:32 | [Mutex] received everything.

2022-04-13 22:48:32 | [Mutex] isItemNotified: received:node:08c0522e-6f4d-4775-8678-b8af0fa537f7:localhost:node-3b27aa12-a698-4281-9275-372997f75aec:Node 3b27aa12-a698-4281-9275-372997f75aec :: false

createNodes 1.844s
2022-04-13 22:48:28 |

2022-04-13 22:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:28 | ------------------------------------

2022-04-13 22:48:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "pubsub#title": "Node 3b27aa12-a698-4281-9275-372997f75aec"
}

2022-04-13 22:48:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-13 22:48:30 | [Mutex] waiting for: [received:nodes:569c0c32-359b-4693-8530-d7c3dfa8c1fa:localhost]

2022-04-13 22:48:30 | [Mutex] waiting for: [received:nodes:569c0c32-359b-4693-8530-d7c3dfa8c1fa:localhost]

2022-04-13 22:48:30 | [Mutex] received everything.

2022-04-13 22:48:30 | [Mutex] isItemNotified: received:node:569c0c32-359b-4693-8530-d7c3dfa8c1fa:localhost:node-3b27aa12-a698-4281-9275-372997f75aec:Node 3b27aa12-a698-4281-9275-372997f75aec :: true

createSubnodes 1.030s
2022-04-13 22:48:30 |

2022-04-13 22:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:30 | ------------------------------------

2022-04-13 22:48:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d38f24b7-2651-4fc7-8fd4-acacab81e24a",
    "pubsub#title": "Node d38f24b7-2651-4fc7-8fd4-acacab81e24a"
}

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

2022-04-13 22:48:31 | [Mutex] waiting for: [received:nodes:1454a77a-c545-45a1-aca6-362b8c61e8f1:localhost]

2022-04-13 22:48:31 | [Mutex] received everything.

2022-04-13 22:48:31 | [Mutex] isItemNotified: received:node:1454a77a-c545-45a1-aca6-362b8c61e8f1:localhost:node-d38f24b7-2651-4fc7-8fd4-acacab81e24a:Node d38f24b7-2651-4fc7-8fd4-acacab81e24a :: true

deleteNodes 1.038s
2022-04-13 22:48:36 |

2022-04-13 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:36 | ------------------------------------

2022-04-13 22:48:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d38f24b7-2651-4fc7-8fd4-acacab81e24a"
}

2022-04-13 22:48:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-13 22:48:37 | [Mutex] waiting for: [received:nodes:da78883d-00e9-42a0-8021-50ba22cafccd:localhost]

2022-04-13 22:48:37 | [Mutex] received everything.

2022-04-13 22:48:37 | [Mutex] isItemNotified: received:node:da78883d-00e9-42a0-8021-50ba22cafccd:localhost:node-d38f24b7-2651-4fc7-8fd4-acacab81e24a:Node d38f24b7-2651-4fc7-8fd4-acacab81e24a :: false

deleteSubnodes 1.030s
2022-04-13 22:48:35 |

2022-04-13 22:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:35 | ------------------------------------

2022-04-13 22:48:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec"
}

2022-04-13 22:48:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-13 22:48:36 | [Mutex] waiting for: [received:nodes:76e7c25a-631c-4cab-a82a-f9382c1013b1:localhost]

2022-04-13 22:48:36 | [Mutex] waiting for: [received:nodes:76e7c25a-631c-4cab-a82a-f9382c1013b1:localhost]

2022-04-13 22:48:36 | [Mutex] received everything.

2022-04-13 22:48:36 | [Mutex] isItemNotified: received:node:76e7c25a-631c-4cab-a82a-f9382c1013b1:localhost:node-3b27aa12-a698-4281-9275-372997f75aec:Node 3b27aa12-a698-4281-9275-372997f75aec :: false

2022-04-13 22:48:36 | [Mutex] waiting for: [received:nodes:7ea90410-d615-484c-aa14-650375ee5edb:localhost]

2022-04-13 22:48:36 | [Mutex] received everything.

2022-04-13 22:48:36 | [Mutex] isItemNotified: received:node:7ea90410-d615-484c-aa14-650375ee5edb:localhost:node-3b27aa12-a698-4281-9275-372997f75aec:Node 3b27aa12-a698-4281-9275-372997f75aec :: false

publishItemsToNodes 0.048s
2022-04-13 22:48:33 |

2022-04-13 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:33 | ------------------------------------

2022-04-13 22:48:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "entry": "<test>item-7149b3cd-5a53-4298-893c-0dee8b88a9da</test>",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da"
}

2022-04-13 22:48:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da"
}

2022-04-13 22:48:33 | [Mutex] received everything.

2022-04-13 22:48:33 | [Mutex] isItemNotified: published:item:notifieditem-7149b3cd-5a53-4298-893c-0dee8b88a9da:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-04-13 22:48:33 |

2022-04-13 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:33 | ------------------------------------

2022-04-13 22:48:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da"
}

2022-04-13 22:48:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da"
}

2022-04-13 22:48:34 | [Mutex] received everything.

2022-04-13 22:48:34 | [Mutex] isItemNotified: retracted:item:notifieditem-7149b3cd-5a53-4298-893c-0dee8b88a9da:admin@test-domain.com :: true

retrieveItemsFromNodes 0.097s
2022-04-13 22:48:33 |

2022-04-13 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:33 | ------------------------------------

2022-04-13 22:48:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da"
}

2022-04-13 22:48:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "item-id": "item-7149b3cd-5a53-4298-893c-0dee8b88a9da",
    "item": [
        "<item id=\"item-7149b3cd-5a53-4298-893c-0dee8b88a9da\"><test>item-7149b3cd-5a53-4298-893c-0dee8b88a9da</test></item>"
    ]
}

2022-04-13 22:48:33 | [Mutex] notify: [retrieved:item:item-7149b3cd-5a53-4298-893c-0dee8b88a9da:payload-matches:true:localhost]

2022-04-13 22:48:33 | [Mutex] received everything.

2022-04-13 22:48:33 | [Mutex] isItemNotified: retrieved:item:item-7149b3cd-5a53-4298-893c-0dee8b88a9da:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-04-13 22:48:33 |

2022-04-13 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:33 | ------------------------------------

2022-04-13 22:48:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-04-13 22:48:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3b27aa12-a698-4281-9275-372997f75aec",
        "test",
        "node-d38f24b7-2651-4fc7-8fd4-acacab81e24a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-04-13 22:48:33 |

2022-04-13 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:33 | ------------------------------------

2022-04-13 22:48:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3b27aa12-a698-4281-9275-372997f75aec)"
}

2022-04-13 22:48:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-04-13 22:48:32 |

2022-04-13 22:48:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:32 | ------------------------------------

2022-04-13 22:48:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-13 22:48:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-04-13 22:48:34 |

2022-04-13 22:48:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 22:48:34 | ------------------------------------

2022-04-13 22:48:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3b27aa12-a698-4281-9275-372997f75aec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-13 22:48:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}