Generated by TestNG with ReportNG at 21:41 PST on Tuesday 29 December 2020
root@43fec6d4badf / 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.107s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2020-12-29 21:57:39 |

2020-12-29 21:57:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:39 | ------------------------------------

2020-12-29 21:57:39 | [Mutex] waiting for: [configured:node:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:node-314ce711-1174-482d-82ec-d74f364210c4]

2020-12-29 21:57:39 | [Mutex] received everything.

2020-12-29 21:57:39 | [Mutex] isItemNotified: configured:node:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:node-314ce711-1174-482d-82ec-d74f364210c4 :: true

2020-12-29 21:57:40 | [Mutex] waiting for: [received:nodes:5de2bdb0-f510-43ab-b04d-8d673b6aa157:localhost]

2020-12-29 21:57:40 | [Mutex] received everything.

2020-12-29 21:57:40 | [Mutex] isItemNotified: received:node:5de2bdb0-f510-43ab-b04d-8d673b6aa157:localhost:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:Node 759ab45a-0045-4aad-9095-2d0301f6f8f4 :: true

2020-12-29 21:57:40 | [Mutex] waiting for: [received:nodes:e3ae5987-884a-4dbf-97a2-fe0a8ec623a3:localhost]

2020-12-29 21:57:40 | [Mutex] waiting for: [received:nodes:e3ae5987-884a-4dbf-97a2-fe0a8ec623a3:localhost]

2020-12-29 21:57:40 | [Mutex] received everything.

2020-12-29 21:57:40 | [Mutex] isItemNotified: received:node:e3ae5987-884a-4dbf-97a2-fe0a8ec623a3:localhost:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:Node 759ab45a-0045-4aad-9095-2d0301f6f8f4 :: false

createNodes 1.677s
2020-12-29 21:57:36 |

2020-12-29 21:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:36 | ------------------------------------

2020-12-29 21:57:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "pubsub#title": "Node 759ab45a-0045-4aad-9095-2d0301f6f8f4"
}

2020-12-29 21:57:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:57:38 | [Mutex] waiting for: [received:nodes:5026f5e6-e132-4992-a168-649e7e3c30b5:localhost]

2020-12-29 21:57:38 | [Mutex] received everything.

2020-12-29 21:57:38 | [Mutex] isItemNotified: received:node:5026f5e6-e132-4992-a168-649e7e3c30b5:localhost:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:Node 759ab45a-0045-4aad-9095-2d0301f6f8f4 :: true

createSubnodes 1.026s
2020-12-29 21:57:38 |

2020-12-29 21:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:38 | ------------------------------------

2020-12-29 21:57:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-314ce711-1174-482d-82ec-d74f364210c4",
    "pubsub#title": "Node 314ce711-1174-482d-82ec-d74f364210c4"
}

2020-12-29 21:57:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:57:39 | [Mutex] waiting for: [received:nodes:1f3936ec-051b-49d1-8a70-5be0a9b13ba0:localhost]

2020-12-29 21:57:39 | [Mutex] waiting for: [received:nodes:1f3936ec-051b-49d1-8a70-5be0a9b13ba0:localhost]

2020-12-29 21:57:39 | [Mutex] received everything.

2020-12-29 21:57:39 | [Mutex] isItemNotified: received:node:1f3936ec-051b-49d1-8a70-5be0a9b13ba0:localhost:node-314ce711-1174-482d-82ec-d74f364210c4:Node 314ce711-1174-482d-82ec-d74f364210c4 :: true

deleteNodes 1.023s
2020-12-29 21:57:44 |

2020-12-29 21:57:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:44 | ------------------------------------

2020-12-29 21:57:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-314ce711-1174-482d-82ec-d74f364210c4"
}

2020-12-29 21:57:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:57:45 | [Mutex] waiting for: [received:nodes:028b4189-b035-413f-bc0f-1c542f132465:localhost]

2020-12-29 21:57:45 | [Mutex] waiting for: [received:nodes:028b4189-b035-413f-bc0f-1c542f132465:localhost]

2020-12-29 21:57:45 | [Mutex] received everything.

2020-12-29 21:57:45 | [Mutex] isItemNotified: received:node:028b4189-b035-413f-bc0f-1c542f132465:localhost:node-314ce711-1174-482d-82ec-d74f364210c4:Node 314ce711-1174-482d-82ec-d74f364210c4 :: false

deleteSubnodes 1.026s
2020-12-29 21:57:43 |

2020-12-29 21:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:43 | ------------------------------------

2020-12-29 21:57:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4"
}

2020-12-29 21:57:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:57:44 | [Mutex] waiting for: [received:nodes:73f12085-120d-4d93-8b87-674cff60bd69:localhost]

2020-12-29 21:57:44 | [Mutex] received everything.

2020-12-29 21:57:44 | [Mutex] isItemNotified: received:node:73f12085-120d-4d93-8b87-674cff60bd69:localhost:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:Node 759ab45a-0045-4aad-9095-2d0301f6f8f4 :: false

2020-12-29 21:57:44 | [Mutex] waiting for: [received:nodes:ad1075c3-af36-4636-9e85-cae4629c8884:localhost]

2020-12-29 21:57:44 | [Mutex] received everything.

2020-12-29 21:57:44 | [Mutex] isItemNotified: received:node:ad1075c3-af36-4636-9e85-cae4629c8884:localhost:node-759ab45a-0045-4aad-9095-2d0301f6f8f4:Node 759ab45a-0045-4aad-9095-2d0301f6f8f4 :: false

publishItemsToNodes 0.059s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "entry": "<test>item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5</test>",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5"
}

2020-12-29 21:57:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5"
}

2020-12-29 21:57:41 | [Mutex] waiting for: [published:item:notifieditem-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5:admin@test-domain.com]

2020-12-29 21:57:41 | [Mutex] received everything.

2020-12-29 21:57:41 | [Mutex] isItemNotified: published:item:notifieditem-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5"
}

2020-12-29 21:57:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5"
}

2020-12-29 21:57:41 | [Mutex] received everything.

2020-12-29 21:57:41 | [Mutex] isItemNotified: retracted:item:notifieditem-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5"
}

2020-12-29 21:57:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "item-id": "item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5",
    "item": [
        "<item id=\"item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5\"><test>item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5</test></item>"
    ]
}

2020-12-29 21:57:41 | [Mutex] notify: [retrieved:item:item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5:payload-matches:true:localhost]

2020-12-29 21:57:41 | [Mutex] received everything.

2020-12-29 21:57:41 | [Mutex] isItemNotified: retrieved:item:item-8d9c1ce5-72b1-45a5-8974-7e43c61a87a5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-29 21:57:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
        "node-314ce711-1174-482d-82ec-d74f364210c4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-759ab45a-0045-4aad-9095-2d0301f6f8f4)"
}

2020-12-29 21:57:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-12-29 21:57:40 |

2020-12-29 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:40 | ------------------------------------

2020-12-29 21:57:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:57:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2020-12-29 21:57:41 |

2020-12-29 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:57:41 | ------------------------------------

2020-12-29 21:57:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-759ab45a-0045-4aad-9095-2d0301f6f8f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:57:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}