Generated by TestNG with ReportNG at 22:43 PDT on Friday 14 May 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.127s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2021-05-14 22:59:59 |

2021-05-14 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:59 | ------------------------------------

2021-05-14 22:59:59 | [Mutex] waiting for: [configured:node:node-cf32dfc6-8def-490c-a42b-82de42af778d:node-5c1e7abc-1f38-41fc-b405-890521b9b38d]

2021-05-14 22:59:59 | [Mutex] received everything.

2021-05-14 22:59:59 | [Mutex] isItemNotified: configured:node:node-cf32dfc6-8def-490c-a42b-82de42af778d:node-5c1e7abc-1f38-41fc-b405-890521b9b38d :: true

2021-05-14 23:00:00 | [Mutex] waiting for: [received:nodes:0c4464e1-0ba3-4a92-816b-b41893dbded5:localhost]

2021-05-14 23:00:00 | [Mutex] received everything.

2021-05-14 23:00:00 | [Mutex] isItemNotified: received:node:0c4464e1-0ba3-4a92-816b-b41893dbded5:localhost:node-cf32dfc6-8def-490c-a42b-82de42af778d:Node cf32dfc6-8def-490c-a42b-82de42af778d :: true

2021-05-14 23:00:00 | [Mutex] waiting for: [received:nodes:a4263b30-b8a5-4974-8f1d-c35be5a50680:localhost]

2021-05-14 23:00:00 | [Mutex] received everything.

2021-05-14 23:00:00 | [Mutex] isItemNotified: received:node:a4263b30-b8a5-4974-8f1d-c35be5a50680:localhost:node-cf32dfc6-8def-490c-a42b-82de42af778d:Node cf32dfc6-8def-490c-a42b-82de42af778d :: false

createNodes 1.786s
2021-05-14 22:59:56 |

2021-05-14 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:56 | ------------------------------------

2021-05-14 22:59:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "pubsub#title": "Node cf32dfc6-8def-490c-a42b-82de42af778d"
}

2021-05-14 22:59:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 22:59:58 | [Mutex] waiting for: [received:nodes:ce070fdb-7e03-46e8-99bb-52b178c760ce:localhost]

2021-05-14 22:59:58 | [Mutex] received everything.

2021-05-14 22:59:58 | [Mutex] isItemNotified: received:node:ce070fdb-7e03-46e8-99bb-52b178c760ce:localhost:node-cf32dfc6-8def-490c-a42b-82de42af778d:Node cf32dfc6-8def-490c-a42b-82de42af778d :: true

createSubnodes 1.024s
2021-05-14 22:59:58 |

2021-05-14 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:58 | ------------------------------------

2021-05-14 22:59:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5c1e7abc-1f38-41fc-b405-890521b9b38d",
    "pubsub#title": "Node 5c1e7abc-1f38-41fc-b405-890521b9b38d"
}

2021-05-14 22:59:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 22:59:59 | [Mutex] waiting for: [received:nodes:a760a67a-ddc2-46ac-a258-596c58e96341:localhost]

2021-05-14 22:59:59 | [Mutex] waiting for: [received:nodes:a760a67a-ddc2-46ac-a258-596c58e96341:localhost]

2021-05-14 22:59:59 | [Mutex] received everything.

2021-05-14 22:59:59 | [Mutex] isItemNotified: received:node:a760a67a-ddc2-46ac-a258-596c58e96341:localhost:node-5c1e7abc-1f38-41fc-b405-890521b9b38d:Node 5c1e7abc-1f38-41fc-b405-890521b9b38d :: true

deleteNodes 1.022s
2021-05-14 23:00:04 |

2021-05-14 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:04 | ------------------------------------

2021-05-14 23:00:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5c1e7abc-1f38-41fc-b405-890521b9b38d"
}

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

2021-05-14 23:00:05 | [Mutex] waiting for: [received:nodes:58980340-1a42-4d2b-8a85-ff166ea9a52d:localhost]

2021-05-14 23:00:05 | [Mutex] received everything.

2021-05-14 23:00:05 | [Mutex] isItemNotified: received:node:58980340-1a42-4d2b-8a85-ff166ea9a52d:localhost:node-5c1e7abc-1f38-41fc-b405-890521b9b38d:Node 5c1e7abc-1f38-41fc-b405-890521b9b38d :: false

deleteSubnodes 1.026s
2021-05-14 23:00:03 |

2021-05-14 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:03 | ------------------------------------

2021-05-14 23:00:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d"
}

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

2021-05-14 23:00:04 | [Mutex] waiting for: [received:nodes:cce7b8cb-33e7-43ac-8070-9cde8a74a8c9:localhost]

2021-05-14 23:00:04 | [Mutex] received everything.

2021-05-14 23:00:04 | [Mutex] isItemNotified: received:node:cce7b8cb-33e7-43ac-8070-9cde8a74a8c9:localhost:node-cf32dfc6-8def-490c-a42b-82de42af778d:Node cf32dfc6-8def-490c-a42b-82de42af778d :: false

2021-05-14 23:00:04 | [Mutex] waiting for: [received:nodes:48164fad-6f1d-4ee8-b337-78c9cd18fe22:localhost]

2021-05-14 23:00:04 | [Mutex] received everything.

2021-05-14 23:00:04 | [Mutex] isItemNotified: received:node:48164fad-6f1d-4ee8-b337-78c9cd18fe22:localhost:node-cf32dfc6-8def-490c-a42b-82de42af778d:Node cf32dfc6-8def-490c-a42b-82de42af778d :: false

publishItemsToNodes 0.080s
2021-05-14 23:00:01 |

2021-05-14 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:01 | ------------------------------------

2021-05-14 23:00:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "entry": "<test>item-ae33604b-0e6e-4e18-b615-de9349a43d21</test>",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21"
}

2021-05-14 23:00:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21"
}

2021-05-14 23:00:01 | [Mutex] waiting for: [published:item:notifieditem-ae33604b-0e6e-4e18-b615-de9349a43d21:admin@test-domain.com]

2021-05-14 23:00:01 | [Mutex] received everything.

2021-05-14 23:00:01 | [Mutex] isItemNotified: published:item:notifieditem-ae33604b-0e6e-4e18-b615-de9349a43d21:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-05-14 23:00:02 |

2021-05-14 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:02 | ------------------------------------

2021-05-14 23:00:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21"
}

2021-05-14 23:00:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21"
}

2021-05-14 23:00:02 | [Mutex] received everything.

2021-05-14 23:00:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ae33604b-0e6e-4e18-b615-de9349a43d21:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2021-05-14 23:00:01 |

2021-05-14 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:01 | ------------------------------------

2021-05-14 23:00:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21"
}

2021-05-14 23:00:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "item-id": "item-ae33604b-0e6e-4e18-b615-de9349a43d21",
    "item": [
        "<item id=\"item-ae33604b-0e6e-4e18-b615-de9349a43d21\"><test>item-ae33604b-0e6e-4e18-b615-de9349a43d21</test></item>"
    ]
}

2021-05-14 23:00:01 | [Mutex] notify: [retrieved:item:item-ae33604b-0e6e-4e18-b615-de9349a43d21:payload-matches:true:localhost]

2021-05-14 23:00:01 | [Mutex] received everything.

2021-05-14 23:00:01 | [Mutex] isItemNotified: retrieved:item:item-ae33604b-0e6e-4e18-b615-de9349a43d21:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-05-14 23:00:01 |

2021-05-14 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:01 | ------------------------------------

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

2021-05-14 23:00:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cf32dfc6-8def-490c-a42b-82de42af778d",
        "test",
        "node-5c1e7abc-1f38-41fc-b405-890521b9b38d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-14 23:00:02 |

2021-05-14 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:02 | ------------------------------------

2021-05-14 23:00:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cf32dfc6-8def-490c-a42b-82de42af778d)"
}

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

subscribeNodes 1.024s
2021-05-14 23:00:00 |

2021-05-14 23:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:00 | ------------------------------------

2021-05-14 23:00:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.061s
2021-05-14 23:00:02 |

2021-05-14 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 23:00:02 | ------------------------------------

2021-05-14 23:00:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cf32dfc6-8def-490c-a42b-82de42af778d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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