Generated by TestNG with ReportNG at 22:58 PDT on Thursday 07 October 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.165s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-10-07 23:14:54 |

2021-10-07 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:54 | ------------------------------------

2021-10-07 23:14:54 | [Mutex] waiting for: [configured:node:node-e71ab549-c2d6-4519-9063-cf9b114438ff:node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a]

2021-10-07 23:14:54 | [Mutex] received everything.

2021-10-07 23:14:54 | [Mutex] isItemNotified: configured:node:node-e71ab549-c2d6-4519-9063-cf9b114438ff:node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a :: true

2021-10-07 23:14:55 | [Mutex] waiting for: [received:nodes:3a3542a0-b5c9-4bb7-a20b-35731b7a049d:localhost]

2021-10-07 23:14:55 | [Mutex] received everything.

2021-10-07 23:14:55 | [Mutex] isItemNotified: received:node:3a3542a0-b5c9-4bb7-a20b-35731b7a049d:localhost:node-e71ab549-c2d6-4519-9063-cf9b114438ff:Node e71ab549-c2d6-4519-9063-cf9b114438ff :: true

2021-10-07 23:14:55 | [Mutex] waiting for: [received:nodes:344838ae-d984-4c1e-bc5b-868b3397f27e:localhost]

2021-10-07 23:14:55 | [Mutex] waiting for: [received:nodes:344838ae-d984-4c1e-bc5b-868b3397f27e:localhost]

2021-10-07 23:14:55 | [Mutex] received everything.

2021-10-07 23:14:55 | [Mutex] isItemNotified: received:node:344838ae-d984-4c1e-bc5b-868b3397f27e:localhost:node-e71ab549-c2d6-4519-9063-cf9b114438ff:Node e71ab549-c2d6-4519-9063-cf9b114438ff :: false

createNodes 1.790s
2021-10-07 23:14:51 |

2021-10-07 23:14:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:51 | ------------------------------------

2021-10-07 23:14:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "pubsub#title": "Node e71ab549-c2d6-4519-9063-cf9b114438ff"
}

2021-10-07 23:14:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 23:14:53 | [Mutex] waiting for: [received:nodes:3c5bed7c-34bc-4cb7-a09b-cf1bcd3bdf75:localhost]

2021-10-07 23:14:53 | [Mutex] waiting for: [received:nodes:3c5bed7c-34bc-4cb7-a09b-cf1bcd3bdf75:localhost]

2021-10-07 23:14:53 | [Mutex] received everything.

2021-10-07 23:14:53 | [Mutex] isItemNotified: received:node:3c5bed7c-34bc-4cb7-a09b-cf1bcd3bdf75:localhost:node-e71ab549-c2d6-4519-9063-cf9b114438ff:Node e71ab549-c2d6-4519-9063-cf9b114438ff :: true

createSubnodes 1.025s
2021-10-07 23:14:53 |

2021-10-07 23:14:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:53 | ------------------------------------

2021-10-07 23:14:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a",
    "pubsub#title": "Node 1f07826c-d2ef-4228-b5b3-fb79a26ed07a"
}

2021-10-07 23:14:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 23:14:54 | [Mutex] waiting for: [received:nodes:16fb6e62-0f57-4242-b923-2882ca05aa81:localhost]

2021-10-07 23:14:54 | [Mutex] received everything.

2021-10-07 23:14:54 | [Mutex] isItemNotified: received:node:16fb6e62-0f57-4242-b923-2882ca05aa81:localhost:node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a:Node 1f07826c-d2ef-4228-b5b3-fb79a26ed07a :: true

deleteNodes 1.019s
2021-10-07 23:14:59 |

2021-10-07 23:14:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:59 | ------------------------------------

2021-10-07 23:14:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a"
}

2021-10-07 23:14:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 23:15:00 | [Mutex] waiting for: [received:nodes:d296515c-c637-4b52-ab8a-e410185b5cb2:localhost]

2021-10-07 23:15:00 | [Mutex] received everything.

2021-10-07 23:15:00 | [Mutex] isItemNotified: received:node:d296515c-c637-4b52-ab8a-e410185b5cb2:localhost:node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a:Node 1f07826c-d2ef-4228-b5b3-fb79a26ed07a :: false

deleteSubnodes 1.026s
2021-10-07 23:14:58 |

2021-10-07 23:14:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:58 | ------------------------------------

2021-10-07 23:14:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff"
}

2021-10-07 23:14:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 23:14:59 | [Mutex] waiting for: [received:nodes:1d8d3a3e-4fb9-4c22-88dd-bef673488770:localhost]

2021-10-07 23:14:59 | [Mutex] received everything.

2021-10-07 23:14:59 | [Mutex] isItemNotified: received:node:1d8d3a3e-4fb9-4c22-88dd-bef673488770:localhost:node-e71ab549-c2d6-4519-9063-cf9b114438ff:Node e71ab549-c2d6-4519-9063-cf9b114438ff :: false

2021-10-07 23:14:59 | [Mutex] waiting for: [received:nodes:f18a039f-56a8-4282-8e39-a4f7d9c8de41:localhost]

2021-10-07 23:14:59 | [Mutex] received everything.

2021-10-07 23:14:59 | [Mutex] isItemNotified: received:node:f18a039f-56a8-4282-8e39-a4f7d9c8de41:localhost:node-e71ab549-c2d6-4519-9063-cf9b114438ff:Node e71ab549-c2d6-4519-9063-cf9b114438ff :: false

publishItemsToNodes 0.062s
2021-10-07 23:14:56 |

2021-10-07 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:56 | ------------------------------------

2021-10-07 23:14:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "entry": "<test>item-b786283d-823e-4e54-9556-40726b6a5ea8</test>",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8"
}

2021-10-07 23:14:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8"
}

2021-10-07 23:14:56 | [Mutex] waiting for: [published:item:notifieditem-b786283d-823e-4e54-9556-40726b6a5ea8:admin@test-domain.com]

2021-10-07 23:14:56 | [Mutex] received everything.

2021-10-07 23:14:56 | [Mutex] isItemNotified: published:item:notifieditem-b786283d-823e-4e54-9556-40726b6a5ea8:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2021-10-07 23:14:56 |

2021-10-07 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:56 | ------------------------------------

2021-10-07 23:14:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8"
}

2021-10-07 23:14:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8"
}

2021-10-07 23:14:57 | [Mutex] received everything.

2021-10-07 23:14:57 | [Mutex] isItemNotified: retracted:item:notifieditem-b786283d-823e-4e54-9556-40726b6a5ea8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2021-10-07 23:14:56 |

2021-10-07 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:56 | ------------------------------------

2021-10-07 23:14:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8"
}

2021-10-07 23:14:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "item-id": "item-b786283d-823e-4e54-9556-40726b6a5ea8",
    "item": [
        "<item id=\"item-b786283d-823e-4e54-9556-40726b6a5ea8\"><test>item-b786283d-823e-4e54-9556-40726b6a5ea8</test></item>"
    ]
}

2021-10-07 23:14:56 | [Mutex] notify: [retrieved:item:item-b786283d-823e-4e54-9556-40726b6a5ea8:payload-matches:true:localhost]

2021-10-07 23:14:56 | [Mutex] received everything.

2021-10-07 23:14:56 | [Mutex] isItemNotified: retrieved:item:item-b786283d-823e-4e54-9556-40726b6a5ea8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2021-10-07 23:14:56 |

2021-10-07 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:56 | ------------------------------------

2021-10-07 23:14:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-07 23:14:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1f07826c-d2ef-4228-b5b3-fb79a26ed07a",
        "node-e71ab549-c2d6-4519-9063-cf9b114438ff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-10-07 23:14:56 |

2021-10-07 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:56 | ------------------------------------

2021-10-07 23:14:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e71ab549-c2d6-4519-9063-cf9b114438ff)"
}

2021-10-07 23:14:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-10-07 23:14:55 |

2021-10-07 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:55 | ------------------------------------

2021-10-07 23:14:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 23:14:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2021-10-07 23:14:57 |

2021-10-07 23:14:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 23:14:57 | ------------------------------------

2021-10-07 23:14:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e71ab549-c2d6-4519-9063-cf9b114438ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 23:14:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}