Generated by TestNG with ReportNG at 22:29 PDT on Tuesday 20 October 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.321s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2020-10-20 22:48:17 |

2020-10-20 22:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:48:17 | ------------------------------------

2020-10-20 22:48:17 | [Mutex] waiting for: [configured:node:node-bfb73277-7e87-4138-a02a-0731e987ab5b:node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1]

2020-10-20 22:48:17 | [Mutex] received everything.

2020-10-20 22:48:17 | [Mutex] isItemNotified: configured:node:node-bfb73277-7e87-4138-a02a-0731e987ab5b:node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1 :: true

2020-10-20 22:48:18 | [Mutex] waiting for: [received:nodes:68227b44-cf34-4022-b924-7d8232975d47:localhost]

2020-10-20 22:48:18 | [Mutex] received everything.

2020-10-20 22:48:18 | [Mutex] isItemNotified: received:node:68227b44-cf34-4022-b924-7d8232975d47:localhost:node-bfb73277-7e87-4138-a02a-0731e987ab5b:Node bfb73277-7e87-4138-a02a-0731e987ab5b :: true

2020-10-20 22:48:18 | [Mutex] waiting for: [received:nodes:a172a9da-51ab-4b5d-946e-18105abc46b3:localhost]

2020-10-20 22:48:18 | [Mutex] waiting for: [received:nodes:a172a9da-51ab-4b5d-946e-18105abc46b3:localhost]

2020-10-20 22:48:18 | [Mutex] received everything.

2020-10-20 22:48:18 | [Mutex] isItemNotified: received:node:a172a9da-51ab-4b5d-946e-18105abc46b3:localhost:node-bfb73277-7e87-4138-a02a-0731e987ab5b:Node bfb73277-7e87-4138-a02a-0731e987ab5b :: false

createNodes 1.709s
2020-10-20 22:48:14 |

2020-10-20 22:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:48:14 | ------------------------------------

2020-10-20 22:48:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "pubsub#title": "Node bfb73277-7e87-4138-a02a-0731e987ab5b"
}

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

2020-10-20 22:48:16 | [Mutex] waiting for: [received:nodes:145841ef-a484-4de9-bf46-2c47afe0f913:localhost]

2020-10-20 22:48:16 | [Mutex] received everything.

2020-10-20 22:48:16 | [Mutex] isItemNotified: received:node:145841ef-a484-4de9-bf46-2c47afe0f913:localhost:node-bfb73277-7e87-4138-a02a-0731e987ab5b:Node bfb73277-7e87-4138-a02a-0731e987ab5b :: true

createSubnodes 1.025s
2020-10-20 22:48:16 |

2020-10-20 22:48:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:48:16 | ------------------------------------

2020-10-20 22:48:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1",
    "pubsub#title": "Node eaa788b8-3f37-4db2-a2cc-028e76c8e1e1"
}

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

2020-10-20 22:48:17 | [Mutex] waiting for: [received:nodes:3506acbb-f57d-4106-860e-6774cbe6351b:localhost]

2020-10-20 22:48:17 | [Mutex] received everything.

2020-10-20 22:48:17 | [Mutex] isItemNotified: received:node:3506acbb-f57d-4106-860e-6774cbe6351b:localhost:node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1:Node eaa788b8-3f37-4db2-a2cc-028e76c8e1e1 :: true

deleteNodes 1.019s
2020-10-20 22:48:21 |

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

2020-10-20 22:48:21 | ------------------------------------

2020-10-20 22:48:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1"
}

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

2020-10-20 22:48:22 | [Mutex] waiting for: [received:nodes:55ad5dab-3362-4ffa-962a-9cd1c413e493:localhost]

2020-10-20 22:48:22 | [Mutex] received everything.

2020-10-20 22:48:22 | [Mutex] isItemNotified: received:node:55ad5dab-3362-4ffa-962a-9cd1c413e493:localhost:node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1:Node eaa788b8-3f37-4db2-a2cc-028e76c8e1e1 :: false

deleteSubnodes 1.027s
2020-10-20 22:48:20 |

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

2020-10-20 22:48:20 | ------------------------------------

2020-10-20 22:48:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b"
}

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

2020-10-20 22:48:21 | [Mutex] waiting for: [received:nodes:ae60bc73-9790-4d57-8360-1cc081ac446f:localhost]

2020-10-20 22:48:21 | [Mutex] waiting for: [received:nodes:ae60bc73-9790-4d57-8360-1cc081ac446f:localhost]

2020-10-20 22:48:21 | [Mutex] received everything.

2020-10-20 22:48:21 | [Mutex] isItemNotified: received:node:ae60bc73-9790-4d57-8360-1cc081ac446f:localhost:node-bfb73277-7e87-4138-a02a-0731e987ab5b:Node bfb73277-7e87-4138-a02a-0731e987ab5b :: false

2020-10-20 22:48:21 | [Mutex] waiting for: [received:nodes:fdfd9f36-9bf0-4857-97e4-279b664a58e1:localhost]

2020-10-20 22:48:21 | [Mutex] received everything.

2020-10-20 22:48:21 | [Mutex] isItemNotified: received:node:fdfd9f36-9bf0-4857-97e4-279b664a58e1:localhost:node-bfb73277-7e87-4138-a02a-0731e987ab5b:Node bfb73277-7e87-4138-a02a-0731e987ab5b :: false

publishItemsToNodes 0.103s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

2020-10-20 22:48:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "entry": "<test>item-101e02fd-32b7-4240-878b-f3cf2e41fc4e</test>",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e"
}

2020-10-20 22:48:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e"
}

2020-10-20 22:48:19 | [Mutex] waiting for: [published:item:notifieditem-101e02fd-32b7-4240-878b-f3cf2e41fc4e:admin@test-domain.com]

2020-10-20 22:48:19 | [Mutex] received everything.

2020-10-20 22:48:19 | [Mutex] isItemNotified: published:item:notifieditem-101e02fd-32b7-4240-878b-f3cf2e41fc4e:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

2020-10-20 22:48:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e"
}

2020-10-20 22:48:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e"
}

2020-10-20 22:48:19 | [Mutex] received everything.

2020-10-20 22:48:19 | [Mutex] isItemNotified: retracted:item:notifieditem-101e02fd-32b7-4240-878b-f3cf2e41fc4e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

2020-10-20 22:48:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e"
}

2020-10-20 22:48:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "item-id": "item-101e02fd-32b7-4240-878b-f3cf2e41fc4e",
    "item": [
        "<item id=\"item-101e02fd-32b7-4240-878b-f3cf2e41fc4e\"><test>item-101e02fd-32b7-4240-878b-f3cf2e41fc4e</test></item>"
    ]
}

2020-10-20 22:48:19 | [Mutex] notify: [retrieved:item:item-101e02fd-32b7-4240-878b-f3cf2e41fc4e:payload-matches:true:localhost]

2020-10-20 22:48:19 | [Mutex] received everything.

2020-10-20 22:48:19 | [Mutex] isItemNotified: retrieved:item:item-101e02fd-32b7-4240-878b-f3cf2e41fc4e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

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

2020-10-20 22:48:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
        "node-eaa788b8-3f37-4db2-a2cc-028e76c8e1e1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

2020-10-20 22:48:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bfb73277-7e87-4138-a02a-0731e987ab5b)"
}

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

subscribeNodes 1.013s
2020-10-20 22:48:18 |

2020-10-20 22:48:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:48:18 | ------------------------------------

2020-10-20 22:48:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.080s
2020-10-20 22:48:19 |

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

2020-10-20 22:48:19 | ------------------------------------

2020-10-20 22:48:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bfb73277-7e87-4138-a02a-0731e987ab5b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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