Generated by TestNG with ReportNG at 13:34 PST on Wednesday 16 December 2020
root@87f6aca6b6f2 / 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 : 8.943s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2020-12-16 13:49:37 |

2020-12-16 13:49:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:37 | ------------------------------------

2020-12-16 13:49:37 | [Mutex] waiting for: [configured:node:node-e34df4a2-bb16-4a54-9e1d-b96457076571:node-c464d9d9-97d1-4c84-9716-f66f434c96af]

2020-12-16 13:49:37 | [Mutex] received everything.

2020-12-16 13:49:37 | [Mutex] isItemNotified: configured:node:node-e34df4a2-bb16-4a54-9e1d-b96457076571:node-c464d9d9-97d1-4c84-9716-f66f434c96af :: true

2020-12-16 13:49:38 | [Mutex] waiting for: [received:nodes:bfb72721-af8a-46bf-8ea9-4c21b6b7927f:localhost]

2020-12-16 13:49:38 | [Mutex] waiting for: [received:nodes:bfb72721-af8a-46bf-8ea9-4c21b6b7927f:localhost]

2020-12-16 13:49:38 | [Mutex] received everything.

2020-12-16 13:49:38 | [Mutex] isItemNotified: received:node:bfb72721-af8a-46bf-8ea9-4c21b6b7927f:localhost:node-e34df4a2-bb16-4a54-9e1d-b96457076571:Node e34df4a2-bb16-4a54-9e1d-b96457076571 :: true

2020-12-16 13:49:38 | [Mutex] waiting for: [received:nodes:bcfcd710-93b6-4c96-934e-e40ee88ada66:localhost]

2020-12-16 13:49:38 | [Mutex] received everything.

2020-12-16 13:49:38 | [Mutex] isItemNotified: received:node:bcfcd710-93b6-4c96-934e-e40ee88ada66:localhost:node-e34df4a2-bb16-4a54-9e1d-b96457076571:Node e34df4a2-bb16-4a54-9e1d-b96457076571 :: false

createNodes 1.616s
2020-12-16 13:49:34 |

2020-12-16 13:49:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:34 | ------------------------------------

2020-12-16 13:49:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "pubsub#title": "Node e34df4a2-bb16-4a54-9e1d-b96457076571"
}

2020-12-16 13:49:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:49:36 | [Mutex] waiting for: [received:nodes:913a7b33-8986-4991-a126-e1bcbb32fb29:localhost]

2020-12-16 13:49:36 | [Mutex] received everything.

2020-12-16 13:49:36 | [Mutex] isItemNotified: received:node:913a7b33-8986-4991-a126-e1bcbb32fb29:localhost:node-e34df4a2-bb16-4a54-9e1d-b96457076571:Node e34df4a2-bb16-4a54-9e1d-b96457076571 :: true

createSubnodes 1.032s
2020-12-16 13:49:36 |

2020-12-16 13:49:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:36 | ------------------------------------

2020-12-16 13:49:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c464d9d9-97d1-4c84-9716-f66f434c96af",
    "pubsub#title": "Node c464d9d9-97d1-4c84-9716-f66f434c96af"
}

2020-12-16 13:49:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:49:37 | [Mutex] waiting for: [received:nodes:dd3e3aa8-cfe4-4921-b1b7-7b89fce54b97:localhost]

2020-12-16 13:49:37 | [Mutex] received everything.

2020-12-16 13:49:37 | [Mutex] isItemNotified: received:node:dd3e3aa8-cfe4-4921-b1b7-7b89fce54b97:localhost:node-c464d9d9-97d1-4c84-9716-f66f434c96af:Node c464d9d9-97d1-4c84-9716-f66f434c96af :: true

deleteNodes 1.027s
2020-12-16 13:49:41 |

2020-12-16 13:49:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:41 | ------------------------------------

2020-12-16 13:49:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c464d9d9-97d1-4c84-9716-f66f434c96af"
}

2020-12-16 13:49:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:49:42 | [Mutex] waiting for: [received:nodes:85316d84-2037-424a-8767-4f9e64ac1e89:localhost]

2020-12-16 13:49:42 | [Mutex] received everything.

2020-12-16 13:49:42 | [Mutex] isItemNotified: received:node:85316d84-2037-424a-8767-4f9e64ac1e89:localhost:node-c464d9d9-97d1-4c84-9716-f66f434c96af:Node c464d9d9-97d1-4c84-9716-f66f434c96af :: false

deleteSubnodes 1.031s
2020-12-16 13:49:40 |

2020-12-16 13:49:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:40 | ------------------------------------

2020-12-16 13:49:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571"
}

2020-12-16 13:49:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:49:41 | [Mutex] waiting for: [received:nodes:ecbe6968-c470-4491-8c03-6f21b04ff8e1:localhost]

2020-12-16 13:49:41 | [Mutex] received everything.

2020-12-16 13:49:41 | [Mutex] isItemNotified: received:node:ecbe6968-c470-4491-8c03-6f21b04ff8e1:localhost:node-e34df4a2-bb16-4a54-9e1d-b96457076571:Node e34df4a2-bb16-4a54-9e1d-b96457076571 :: false

2020-12-16 13:49:41 | [Mutex] waiting for: [received:nodes:d9100a84-4bda-4c77-b62f-4b93d1eee60e:localhost]

2020-12-16 13:49:41 | [Mutex] received everything.

2020-12-16 13:49:41 | [Mutex] isItemNotified: received:node:d9100a84-4bda-4c77-b62f-4b93d1eee60e:localhost:node-e34df4a2-bb16-4a54-9e1d-b96457076571:Node e34df4a2-bb16-4a54-9e1d-b96457076571 :: false

publishItemsToNodes 0.051s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "entry": "<test>item-ae89afb6-3725-4b01-91ab-93297be00116</test>",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116"
}

2020-12-16 13:49:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116"
}

2020-12-16 13:49:39 | [Mutex] waiting for: [published:item:notifieditem-ae89afb6-3725-4b01-91ab-93297be00116:admin@test-domain.com]

2020-12-16 13:49:39 | [Mutex] received everything.

2020-12-16 13:49:39 | [Mutex] isItemNotified: published:item:notifieditem-ae89afb6-3725-4b01-91ab-93297be00116:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116"
}

2020-12-16 13:49:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116"
}

2020-12-16 13:49:39 | [Mutex] received everything.

2020-12-16 13:49:39 | [Mutex] isItemNotified: retracted:item:notifieditem-ae89afb6-3725-4b01-91ab-93297be00116:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116"
}

2020-12-16 13:49:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "item-id": "item-ae89afb6-3725-4b01-91ab-93297be00116",
    "item": [
        "<item id=\"item-ae89afb6-3725-4b01-91ab-93297be00116\"><test>item-ae89afb6-3725-4b01-91ab-93297be00116</test></item>"
    ]
}

2020-12-16 13:49:39 | [Mutex] notify: [retrieved:item:item-ae89afb6-3725-4b01-91ab-93297be00116:payload-matches:true:localhost]

2020-12-16 13:49:39 | [Mutex] received everything.

2020-12-16 13:49:39 | [Mutex] isItemNotified: retrieved:item:item-ae89afb6-3725-4b01-91ab-93297be00116:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-16 13:49:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
        "test",
        "node-c464d9d9-97d1-4c84-9716-f66f434c96af"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e34df4a2-bb16-4a54-9e1d-b96457076571)"
}

2020-12-16 13:49:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-12-16 13:49:38 |

2020-12-16 13:49:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:38 | ------------------------------------

2020-12-16 13:49:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-16 13:49:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-12-16 13:49:39 |

2020-12-16 13:49:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:49:39 | ------------------------------------

2020-12-16 13:49:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e34df4a2-bb16-4a54-9e1d-b96457076571",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-16 13:49:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}