Generated by TestNG with ReportNG at 23:54 PDT on Sunday 06 September 2020
root@3ee9c8e1f047 / 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.155s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-09-07 00:11:26 |

2020-09-07 00:11:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:26 | ------------------------------------

2020-09-07 00:11:26 | [Mutex] waiting for: [configured:node:node-1785079e-ac51-48a8-a975-da2f53e36b86:node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09]

2020-09-07 00:11:26 | [Mutex] received everything.

2020-09-07 00:11:26 | [Mutex] isItemNotified: configured:node:node-1785079e-ac51-48a8-a975-da2f53e36b86:node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09 :: true

2020-09-07 00:11:27 | [Mutex] waiting for: [received:nodes:f722250a-0ddd-4850-b32e-90277eb7c44e:localhost]

2020-09-07 00:11:27 | [Mutex] waiting for: [received:nodes:f722250a-0ddd-4850-b32e-90277eb7c44e:localhost]

2020-09-07 00:11:27 | [Mutex] received everything.

2020-09-07 00:11:27 | [Mutex] isItemNotified: received:node:f722250a-0ddd-4850-b32e-90277eb7c44e:localhost:node-1785079e-ac51-48a8-a975-da2f53e36b86:Node 1785079e-ac51-48a8-a975-da2f53e36b86 :: true

2020-09-07 00:11:27 | [Mutex] waiting for: [received:nodes:d18daeb8-5132-428c-a390-3781920dbff3:localhost]

2020-09-07 00:11:27 | [Mutex] waiting for: [received:nodes:d18daeb8-5132-428c-a390-3781920dbff3:localhost]

2020-09-07 00:11:27 | [Mutex] received everything.

2020-09-07 00:11:27 | [Mutex] isItemNotified: received:node:d18daeb8-5132-428c-a390-3781920dbff3:localhost:node-1785079e-ac51-48a8-a975-da2f53e36b86:Node 1785079e-ac51-48a8-a975-da2f53e36b86 :: false

createNodes 1.783s
2020-09-07 00:11:23 |

2020-09-07 00:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:23 | ------------------------------------

2020-09-07 00:11:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "pubsub#title": "Node 1785079e-ac51-48a8-a975-da2f53e36b86"
}

2020-09-07 00:11:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-07 00:11:25 | [Mutex] waiting for: [received:nodes:911ceffa-6e75-40fc-93b9-40dee471030c:localhost]

2020-09-07 00:11:25 | [Mutex] received everything.

2020-09-07 00:11:25 | [Mutex] isItemNotified: received:node:911ceffa-6e75-40fc-93b9-40dee471030c:localhost:node-1785079e-ac51-48a8-a975-da2f53e36b86:Node 1785079e-ac51-48a8-a975-da2f53e36b86 :: true

createSubnodes 1.031s
2020-09-07 00:11:25 |

2020-09-07 00:11:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:25 | ------------------------------------

2020-09-07 00:11:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09",
    "pubsub#title": "Node d89ed1cf-c813-4d37-a4ea-e335e34a9a09"
}

2020-09-07 00:11:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-07 00:11:26 | [Mutex] waiting for: [received:nodes:322797cb-326f-4aaf-a1c4-f0ebded2d2ff:localhost]

2020-09-07 00:11:26 | [Mutex] received everything.

2020-09-07 00:11:26 | [Mutex] isItemNotified: received:node:322797cb-326f-4aaf-a1c4-f0ebded2d2ff:localhost:node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09:Node d89ed1cf-c813-4d37-a4ea-e335e34a9a09 :: true

deleteNodes 1.025s
2020-09-07 00:11:31 |

2020-09-07 00:11:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:31 | ------------------------------------

2020-09-07 00:11:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09"
}

2020-09-07 00:11:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-07 00:11:32 | [Mutex] waiting for: [received:nodes:7fdde191-10b1-481f-9fb7-e90a28e5a239:localhost]

2020-09-07 00:11:32 | [Mutex] waiting for: [received:nodes:7fdde191-10b1-481f-9fb7-e90a28e5a239:localhost]

2020-09-07 00:11:32 | [Mutex] received everything.

2020-09-07 00:11:32 | [Mutex] isItemNotified: received:node:7fdde191-10b1-481f-9fb7-e90a28e5a239:localhost:node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09:Node d89ed1cf-c813-4d37-a4ea-e335e34a9a09 :: false

deleteSubnodes 1.029s
2020-09-07 00:11:30 |

2020-09-07 00:11:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:30 | ------------------------------------

2020-09-07 00:11:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86"
}

2020-09-07 00:11:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-07 00:11:31 | [Mutex] waiting for: [received:nodes:37365c4f-401e-4753-86ca-87f9c54b11ef:localhost]

2020-09-07 00:11:31 | [Mutex] received everything.

2020-09-07 00:11:31 | [Mutex] isItemNotified: received:node:37365c4f-401e-4753-86ca-87f9c54b11ef:localhost:node-1785079e-ac51-48a8-a975-da2f53e36b86:Node 1785079e-ac51-48a8-a975-da2f53e36b86 :: false

2020-09-07 00:11:31 | [Mutex] waiting for: [received:nodes:65f75efa-7070-4eec-9dda-ef2b0f19de57:localhost]

2020-09-07 00:11:31 | [Mutex] received everything.

2020-09-07 00:11:31 | [Mutex] isItemNotified: received:node:65f75efa-7070-4eec-9dda-ef2b0f19de57:localhost:node-1785079e-ac51-48a8-a975-da2f53e36b86:Node 1785079e-ac51-48a8-a975-da2f53e36b86 :: false

publishItemsToNodes 0.033s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "entry": "<test>item-528b8b83-590f-4576-a8aa-7c91a56c7cdd</test>",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd"
}

2020-09-07 00:11:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd"
}

2020-09-07 00:11:28 | [Mutex] waiting for: [published:item:notifieditem-528b8b83-590f-4576-a8aa-7c91a56c7cdd:admin@test-domain.com]

2020-09-07 00:11:28 | [Mutex] received everything.

2020-09-07 00:11:28 | [Mutex] isItemNotified: published:item:notifieditem-528b8b83-590f-4576-a8aa-7c91a56c7cdd:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd"
}

2020-09-07 00:11:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd"
}

2020-09-07 00:11:28 | [Mutex] received everything.

2020-09-07 00:11:28 | [Mutex] isItemNotified: retracted:item:notifieditem-528b8b83-590f-4576-a8aa-7c91a56c7cdd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd"
}

2020-09-07 00:11:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "item-id": "item-528b8b83-590f-4576-a8aa-7c91a56c7cdd",
    "item": [
        "<item id=\"item-528b8b83-590f-4576-a8aa-7c91a56c7cdd\"><test>item-528b8b83-590f-4576-a8aa-7c91a56c7cdd</test></item>"
    ]
}

2020-09-07 00:11:28 | [Mutex] notify: [retrieved:item:item-528b8b83-590f-4576-a8aa-7c91a56c7cdd:payload-matches:true:localhost]

2020-09-07 00:11:28 | [Mutex] received everything.

2020-09-07 00:11:28 | [Mutex] isItemNotified: retrieved:item:item-528b8b83-590f-4576-a8aa-7c91a56c7cdd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-07 00:11:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1785079e-ac51-48a8-a975-da2f53e36b86",
        "node-d89ed1cf-c813-4d37-a4ea-e335e34a9a09"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1785079e-ac51-48a8-a975-da2f53e36b86)"
}

2020-09-07 00:11:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-09-07 00:11:27 |

2020-09-07 00:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:27 | ------------------------------------

2020-09-07 00:11:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-07 00:11:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.103s
2020-09-07 00:11:28 |

2020-09-07 00:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-07 00:11:28 | ------------------------------------

2020-09-07 00:11:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1785079e-ac51-48a8-a975-da2f53e36b86",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-07 00:11:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}