Generated by TestNG with ReportNG at 22:08 PST on Tuesday 16 November 2021
root@b2c2a8eba6e6 / 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.058s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.150s
2021-11-16 22:21:35 |

2021-11-16 22:21:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:35 | ------------------------------------

2021-11-16 22:21:35 | [Mutex] waiting for: [configured:node:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:node-6a08216c-0768-4923-936f-b5982836103e]

2021-11-16 22:21:36 | [Mutex] received everything.

2021-11-16 22:21:36 | [Mutex] isItemNotified: configured:node:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:node-6a08216c-0768-4923-936f-b5982836103e :: true

2021-11-16 22:21:37 | [Mutex] waiting for: [received:nodes:82fdcc97-482c-425d-9b86-52340ed7da4a:localhost]

2021-11-16 22:21:37 | [Mutex] received everything.

2021-11-16 22:21:37 | [Mutex] isItemNotified: received:node:82fdcc97-482c-425d-9b86-52340ed7da4a:localhost:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc :: true

2021-11-16 22:21:37 | [Mutex] waiting for: [received:nodes:46ffe036-9984-4643-8bc9-42a4405bc8ea:localhost]

2021-11-16 22:21:37 | [Mutex] received everything.

2021-11-16 22:21:37 | [Mutex] isItemNotified: received:node:46ffe036-9984-4643-8bc9-42a4405bc8ea:localhost:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc :: false

createNodes 1.738s
2021-11-16 22:21:33 |

2021-11-16 22:21:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:33 | ------------------------------------

2021-11-16 22:21: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-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "pubsub#title": "Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc"
}

2021-11-16 22:21:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:21:34 | [Mutex] waiting for: [received:nodes:afdd434a-823e-41bf-b980-6cef2795b6c6:localhost]

2021-11-16 22:21:34 | [Mutex] received everything.

2021-11-16 22:21:34 | [Mutex] isItemNotified: received:node:afdd434a-823e-41bf-b980-6cef2795b6c6:localhost:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc :: true

createSubnodes 1.022s
2021-11-16 22:21:34 |

2021-11-16 22:21:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:34 | ------------------------------------

2021-11-16 22:21: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-6a08216c-0768-4923-936f-b5982836103e",
    "pubsub#title": "Node 6a08216c-0768-4923-936f-b5982836103e"
}

2021-11-16 22:21:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:21:35 | [Mutex] waiting for: [received:nodes:a3fd9b32-1c6b-4222-8c52-5f907cada70d:localhost]

2021-11-16 22:21:35 | [Mutex] received everything.

2021-11-16 22:21:35 | [Mutex] isItemNotified: received:node:a3fd9b32-1c6b-4222-8c52-5f907cada70d:localhost:node-6a08216c-0768-4923-936f-b5982836103e:Node 6a08216c-0768-4923-936f-b5982836103e :: true

deleteNodes 1.030s
2021-11-16 22:21:40 |

2021-11-16 22:21:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:40 | ------------------------------------

2021-11-16 22:21:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6a08216c-0768-4923-936f-b5982836103e"
}

2021-11-16 22:21:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:21:41 | [Mutex] waiting for: [received:nodes:2b20581d-55ea-4cfb-923d-05e2106ec9ca:localhost]

2021-11-16 22:21:41 | [Mutex] received everything.

2021-11-16 22:21:41 | [Mutex] isItemNotified: received:node:2b20581d-55ea-4cfb-923d-05e2106ec9ca:localhost:node-6a08216c-0768-4923-936f-b5982836103e:Node 6a08216c-0768-4923-936f-b5982836103e :: false

deleteSubnodes 1.028s
2021-11-16 22:21:39 |

2021-11-16 22:21:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:39 | ------------------------------------

2021-11-16 22:21:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc"
}

2021-11-16 22:21:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:21:40 | [Mutex] waiting for: [received:nodes:65189227-493c-4c82-b703-99c12aaea4ba:localhost]

2021-11-16 22:21:40 | [Mutex] waiting for: [received:nodes:65189227-493c-4c82-b703-99c12aaea4ba:localhost]

2021-11-16 22:21:40 | [Mutex] received everything.

2021-11-16 22:21:40 | [Mutex] isItemNotified: received:node:65189227-493c-4c82-b703-99c12aaea4ba:localhost:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc :: false

2021-11-16 22:21:40 | [Mutex] waiting for: [received:nodes:d02903d8-1730-4b34-a326-e642f77fe57e:localhost]

2021-11-16 22:21:40 | [Mutex] received everything.

2021-11-16 22:21:40 | [Mutex] isItemNotified: received:node:d02903d8-1730-4b34-a326-e642f77fe57e:localhost:node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc:Node c2a66f14-07cc-4797-9ef5-e8137e5b29dc :: false

publishItemsToNodes 0.031s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "entry": "<test>item-4850f5f5-dd11-4e42-ab19-57ec0a02abec</test>",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec"
}

2021-11-16 22:21:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec"
}

2021-11-16 22:21:38 | [Mutex] received everything.

2021-11-16 22:21:38 | [Mutex] isItemNotified: published:item:notifieditem-4850f5f5-dd11-4e42-ab19-57ec0a02abec:admin@test-domain.com :: true

retractItemsFromNodes 0.123s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec"
}

2021-11-16 22:21:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec"
}

2021-11-16 22:21:38 | [Mutex] received everything.

2021-11-16 22:21:38 | [Mutex] isItemNotified: retracted:item:notifieditem-4850f5f5-dd11-4e42-ab19-57ec0a02abec:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec"
}

2021-11-16 22:21:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "item-id": "item-4850f5f5-dd11-4e42-ab19-57ec0a02abec",
    "item": [
        "<item id=\"item-4850f5f5-dd11-4e42-ab19-57ec0a02abec\"><test>item-4850f5f5-dd11-4e42-ab19-57ec0a02abec</test></item>"
    ]
}

2021-11-16 22:21:38 | [Mutex] notify: [retrieved:item:item-4850f5f5-dd11-4e42-ab19-57ec0a02abec:payload-matches:true:localhost]

2021-11-16 22:21:38 | [Mutex] received everything.

2021-11-16 22:21:38 | [Mutex] isItemNotified: retrieved:item:item-4850f5f5-dd11-4e42-ab19-57ec0a02abec:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-11-16 22:21:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
        "node-6a08216c-0768-4923-936f-b5982836103e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc)"
}

2021-11-16 22:21:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-11-16 22:21:37 |

2021-11-16 22:21:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:37 | ------------------------------------

2021-11-16 22:21:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-16 22:21:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-11-16 22:21:38 |

2021-11-16 22:21:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:21:38 | ------------------------------------

2021-11-16 22:21:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c2a66f14-07cc-4797-9ef5-e8137e5b29dc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-16 22:21:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}