Generated by TestNG with ReportNG at 22:30 PDT on Tuesday 25 August 2020
root@f09c7b422724 / 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.056s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-08-25 22:48:22 |

2020-08-25 22:48:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:22 | ------------------------------------

2020-08-25 22:48:22 | [Mutex] waiting for: [configured:node:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:node-25cfa54f-fb82-430d-b47f-cc6b96c82984]

2020-08-25 22:48:22 | [Mutex] received everything.

2020-08-25 22:48:22 | [Mutex] isItemNotified: configured:node:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:node-25cfa54f-fb82-430d-b47f-cc6b96c82984 :: true

2020-08-25 22:48:23 | [Mutex] waiting for: [received:nodes:aac386e8-8669-4a1d-bd86-7b79e900a974:localhost]

2020-08-25 22:48:23 | [Mutex] waiting for: [received:nodes:aac386e8-8669-4a1d-bd86-7b79e900a974:localhost]

2020-08-25 22:48:23 | [Mutex] received everything.

2020-08-25 22:48:23 | [Mutex] isItemNotified: received:node:aac386e8-8669-4a1d-bd86-7b79e900a974:localhost:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff :: true

2020-08-25 22:48:23 | [Mutex] waiting for: [received:nodes:d7bc3bf9-045d-4321-927b-5fb9e4dfc258:localhost]

2020-08-25 22:48:23 | [Mutex] received everything.

2020-08-25 22:48:23 | [Mutex] isItemNotified: received:node:d7bc3bf9-045d-4321-927b-5fb9e4dfc258:localhost:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff :: false

createNodes 1.662s
2020-08-25 22:48:19 |

2020-08-25 22:48:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:19 | ------------------------------------

2020-08-25 22:48:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "pubsub#title": "Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff"
}

2020-08-25 22:48:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 22:48:21 | [Mutex] waiting for: [received:nodes:62ec328a-e111-42cf-a710-f215c0dc8e22:localhost]

2020-08-25 22:48:21 | [Mutex] received everything.

2020-08-25 22:48:21 | [Mutex] isItemNotified: received:node:62ec328a-e111-42cf-a710-f215c0dc8e22:localhost:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff :: true

createSubnodes 1.027s
2020-08-25 22:48:21 |

2020-08-25 22:48:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:21 | ------------------------------------

2020-08-25 22:48:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-25cfa54f-fb82-430d-b47f-cc6b96c82984",
    "pubsub#title": "Node 25cfa54f-fb82-430d-b47f-cc6b96c82984"
}

2020-08-25 22:48:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 22:48:22 | [Mutex] waiting for: [received:nodes:b33896b5-14a7-4d90-8155-c436aa959458:localhost]

2020-08-25 22:48:22 | [Mutex] received everything.

2020-08-25 22:48:22 | [Mutex] isItemNotified: received:node:b33896b5-14a7-4d90-8155-c436aa959458:localhost:node-25cfa54f-fb82-430d-b47f-cc6b96c82984:Node 25cfa54f-fb82-430d-b47f-cc6b96c82984 :: true

deleteNodes 1.025s
2020-08-25 22:48:27 |

2020-08-25 22:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:27 | ------------------------------------

2020-08-25 22:48:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-25cfa54f-fb82-430d-b47f-cc6b96c82984"
}

2020-08-25 22:48:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 22:48:28 | [Mutex] waiting for: [received:nodes:2640f53f-1907-4d6c-96e4-5378daf97da9:localhost]

2020-08-25 22:48:28 | [Mutex] waiting for: [received:nodes:2640f53f-1907-4d6c-96e4-5378daf97da9:localhost]

2020-08-25 22:48:28 | [Mutex] received everything.

2020-08-25 22:48:28 | [Mutex] isItemNotified: received:node:2640f53f-1907-4d6c-96e4-5378daf97da9:localhost:node-25cfa54f-fb82-430d-b47f-cc6b96c82984:Node 25cfa54f-fb82-430d-b47f-cc6b96c82984 :: false

deleteSubnodes 1.026s
2020-08-25 22:48:26 |

2020-08-25 22:48:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:26 | ------------------------------------

2020-08-25 22:48:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff"
}

2020-08-25 22:48:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 22:48:27 | [Mutex] waiting for: [received:nodes:d92cfb2e-5e7c-42c9-a618-7bf2f5bd0b5d:localhost]

2020-08-25 22:48:27 | [Mutex] received everything.

2020-08-25 22:48:27 | [Mutex] isItemNotified: received:node:d92cfb2e-5e7c-42c9-a618-7bf2f5bd0b5d:localhost:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff :: false

2020-08-25 22:48:27 | [Mutex] waiting for: [received:nodes:da9aecf8-c373-4a66-966e-1133e91c4e59:localhost]

2020-08-25 22:48:27 | [Mutex] received everything.

2020-08-25 22:48:27 | [Mutex] isItemNotified: received:node:da9aecf8-c373-4a66-966e-1133e91c4e59:localhost:node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff:Node ce8ecc4d-09aa-4d52-886d-99bde50a32ff :: false

publishItemsToNodes 0.053s
2020-08-25 22:48:24 |

2020-08-25 22:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:24 | ------------------------------------

2020-08-25 22:48:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "entry": "<test>item-f93bd0a9-52a0-44e8-8a88-e080480f7115</test>",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115"
}

2020-08-25 22:48:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115"
}

2020-08-25 22:48:24 | [Mutex] waiting for: [published:item:notifieditem-f93bd0a9-52a0-44e8-8a88-e080480f7115:admin@test-domain.com]

2020-08-25 22:48:24 | [Mutex] received everything.

2020-08-25 22:48:24 | [Mutex] isItemNotified: published:item:notifieditem-f93bd0a9-52a0-44e8-8a88-e080480f7115:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-08-25 22:48:25 |

2020-08-25 22:48:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:25 | ------------------------------------

2020-08-25 22:48:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115"
}

2020-08-25 22:48:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115"
}

2020-08-25 22:48:25 | [Mutex] received everything.

2020-08-25 22:48:25 | [Mutex] isItemNotified: retracted:item:notifieditem-f93bd0a9-52a0-44e8-8a88-e080480f7115:admin@test-domain.com :: true

retrieveItemsFromNodes 0.128s
2020-08-25 22:48:24 |

2020-08-25 22:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:24 | ------------------------------------

2020-08-25 22:48:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115"
}

2020-08-25 22:48:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "item-id": "item-f93bd0a9-52a0-44e8-8a88-e080480f7115",
    "item": [
        "<item id=\"item-f93bd0a9-52a0-44e8-8a88-e080480f7115\"><test>item-f93bd0a9-52a0-44e8-8a88-e080480f7115</test></item>"
    ]
}

2020-08-25 22:48:24 | [Mutex] notify: [retrieved:item:item-f93bd0a9-52a0-44e8-8a88-e080480f7115:payload-matches:true:localhost]

2020-08-25 22:48:24 | [Mutex] received everything.

2020-08-25 22:48:24 | [Mutex] isItemNotified: retrieved:item:item-f93bd0a9-52a0-44e8-8a88-e080480f7115:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-25 22:48:24 |

2020-08-25 22:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:24 | ------------------------------------

2020-08-25 22:48:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-25 22:48:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-25cfa54f-fb82-430d-b47f-cc6b96c82984",
        "test",
        "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-08-25 22:48:24 |

2020-08-25 22:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:24 | ------------------------------------

2020-08-25 22:48:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff)"
}

2020-08-25 22:48:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-08-25 22:48:23 |

2020-08-25 22:48:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:23 | ------------------------------------

2020-08-25 22:48:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 22:48:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2020-08-25 22:48:25 |

2020-08-25 22:48:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 22:48:25 | ------------------------------------

2020-08-25 22:48:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce8ecc4d-09aa-4d52-886d-99bde50a32ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 22:48:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}