Generated by TestNG with ReportNG at 22:48 PDT on Monday 21 June 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.202s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2021-06-21 23:01:53 |

2021-06-21 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:53 | ------------------------------------

2021-06-21 23:01:53 | [Mutex] waiting for: [configured:node:node-32163fc0-67df-4d8f-970e-10929032a987:node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec]

2021-06-21 23:01:53 | [Mutex] received everything.

2021-06-21 23:01:53 | [Mutex] isItemNotified: configured:node:node-32163fc0-67df-4d8f-970e-10929032a987:node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec :: true

2021-06-21 23:01:54 | [Mutex] waiting for: [received:nodes:7adcbcc8-c4d5-4484-b91b-f14ea7ffe9a2:localhost]

2021-06-21 23:01:54 | [Mutex] received everything.

2021-06-21 23:01:54 | [Mutex] isItemNotified: received:node:7adcbcc8-c4d5-4484-b91b-f14ea7ffe9a2:localhost:node-32163fc0-67df-4d8f-970e-10929032a987:Node 32163fc0-67df-4d8f-970e-10929032a987 :: true

2021-06-21 23:01:54 | [Mutex] waiting for: [received:nodes:ba2c77df-0559-4927-9f04-861de4fc6af6:localhost]

2021-06-21 23:01:54 | [Mutex] received everything.

2021-06-21 23:01:54 | [Mutex] isItemNotified: received:node:ba2c77df-0559-4927-9f04-861de4fc6af6:localhost:node-32163fc0-67df-4d8f-970e-10929032a987:Node 32163fc0-67df-4d8f-970e-10929032a987 :: false

createNodes 1.720s
2021-06-21 23:01:50 |

2021-06-21 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:50 | ------------------------------------

2021-06-21 23:01:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "pubsub#title": "Node 32163fc0-67df-4d8f-970e-10929032a987"
}

2021-06-21 23:01:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 23:01:52 | [Mutex] waiting for: [received:nodes:beb47af0-b847-4166-b35b-0c39befa13ef:localhost]

2021-06-21 23:01:52 | [Mutex] received everything.

2021-06-21 23:01:52 | [Mutex] isItemNotified: received:node:beb47af0-b847-4166-b35b-0c39befa13ef:localhost:node-32163fc0-67df-4d8f-970e-10929032a987:Node 32163fc0-67df-4d8f-970e-10929032a987 :: true

createSubnodes 1.027s
2021-06-21 23:01:52 |

2021-06-21 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:52 | ------------------------------------

2021-06-21 23:01:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec",
    "pubsub#title": "Node 6ce771d3-7ec0-40a9-a9c3-0a910d4158ec"
}

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

2021-06-21 23:01:53 | [Mutex] waiting for: [received:nodes:d09190e2-3009-4f41-a318-53173b467d0a:localhost]

2021-06-21 23:01:53 | [Mutex] received everything.

2021-06-21 23:01:53 | [Mutex] isItemNotified: received:node:d09190e2-3009-4f41-a318-53173b467d0a:localhost:node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec:Node 6ce771d3-7ec0-40a9-a9c3-0a910d4158ec :: true

deleteNodes 1.020s
2021-06-21 23:01:58 |

2021-06-21 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:58 | ------------------------------------

2021-06-21 23:01:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec"
}

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

2021-06-21 23:01:59 | [Mutex] waiting for: [received:nodes:9fc00549-8840-43df-8a05-c3e6a65f9e56:localhost]

2021-06-21 23:01:59 | [Mutex] waiting for: [received:nodes:9fc00549-8840-43df-8a05-c3e6a65f9e56:localhost]

2021-06-21 23:01:59 | [Mutex] received everything.

2021-06-21 23:01:59 | [Mutex] isItemNotified: received:node:9fc00549-8840-43df-8a05-c3e6a65f9e56:localhost:node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec:Node 6ce771d3-7ec0-40a9-a9c3-0a910d4158ec :: false

deleteSubnodes 1.035s
2021-06-21 23:01:57 |

2021-06-21 23:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:57 | ------------------------------------

2021-06-21 23:01:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987"
}

2021-06-21 23:01:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 23:01:58 | [Mutex] waiting for: [received:nodes:87bd44bf-bcfd-4178-b600-3ac4ec075d0e:localhost]

2021-06-21 23:01:58 | [Mutex] waiting for: [received:nodes:87bd44bf-bcfd-4178-b600-3ac4ec075d0e:localhost]

2021-06-21 23:01:58 | [Mutex] received everything.

2021-06-21 23:01:58 | [Mutex] isItemNotified: received:node:87bd44bf-bcfd-4178-b600-3ac4ec075d0e:localhost:node-32163fc0-67df-4d8f-970e-10929032a987:Node 32163fc0-67df-4d8f-970e-10929032a987 :: false

2021-06-21 23:01:58 | [Mutex] waiting for: [received:nodes:f0eb9def-97ca-4c67-a1c5-5c1904c4796a:localhost]

2021-06-21 23:01:58 | [Mutex] received everything.

2021-06-21 23:01:58 | [Mutex] isItemNotified: received:node:f0eb9def-97ca-4c67-a1c5-5c1904c4796a:localhost:node-32163fc0-67df-4d8f-970e-10929032a987:Node 32163fc0-67df-4d8f-970e-10929032a987 :: false

publishItemsToNodes 0.060s
2021-06-21 23:01:55 |

2021-06-21 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:55 | ------------------------------------

2021-06-21 23:01:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "entry": "<test>item-053ddd80-a068-4484-a36c-22ae907f25ae</test>",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae"
}

2021-06-21 23:01:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae"
}

2021-06-21 23:01:55 | [Mutex] waiting for: [published:item:notifieditem-053ddd80-a068-4484-a36c-22ae907f25ae:admin@test-domain.com]

2021-06-21 23:01:55 | [Mutex] received everything.

2021-06-21 23:01:55 | [Mutex] isItemNotified: published:item:notifieditem-053ddd80-a068-4484-a36c-22ae907f25ae:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-06-21 23:01:56 |

2021-06-21 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:56 | ------------------------------------

2021-06-21 23:01:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae"
}

2021-06-21 23:01:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae"
}

2021-06-21 23:01:56 | [Mutex] received everything.

2021-06-21 23:01:56 | [Mutex] isItemNotified: retracted:item:notifieditem-053ddd80-a068-4484-a36c-22ae907f25ae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2021-06-21 23:01:55 |

2021-06-21 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:55 | ------------------------------------

2021-06-21 23:01:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae"
}

2021-06-21 23:01:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "item-id": "item-053ddd80-a068-4484-a36c-22ae907f25ae",
    "item": [
        "<item id=\"item-053ddd80-a068-4484-a36c-22ae907f25ae\"><test>item-053ddd80-a068-4484-a36c-22ae907f25ae</test></item>"
    ]
}

2021-06-21 23:01:56 | [Mutex] notify: [retrieved:item:item-053ddd80-a068-4484-a36c-22ae907f25ae:payload-matches:true:localhost]

2021-06-21 23:01:56 | [Mutex] received everything.

2021-06-21 23:01:56 | [Mutex] isItemNotified: retrieved:item:item-053ddd80-a068-4484-a36c-22ae907f25ae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-21 23:01:56 |

2021-06-21 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:56 | ------------------------------------

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

2021-06-21 23:01:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-32163fc0-67df-4d8f-970e-10929032a987",
        "node-6ce771d3-7ec0-40a9-a9c3-0a910d4158ec"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-06-21 23:01:56 |

2021-06-21 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:56 | ------------------------------------

2021-06-21 23:01:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-32163fc0-67df-4d8f-970e-10929032a987)"
}

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

subscribeNodes 1.019s
2021-06-21 23:01:54 |

2021-06-21 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:54 | ------------------------------------

2021-06-21 23:01:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 23:01:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-06-21 23:01:56 |

2021-06-21 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 23:01:56 | ------------------------------------

2021-06-21 23:01:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-32163fc0-67df-4d8f-970e-10929032a987",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 23:01:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}