Generated by TestNG with ReportNG at 21:21 PST on Monday 30 November 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.844s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2020-11-30 21:36:04 |

2020-11-30 21:36:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:04 | ------------------------------------

2020-11-30 21:36:04 | [Mutex] waiting for: [configured:node:node-2fb88188-1089-4ce3-be51-f65a302945f6:node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910]

2020-11-30 21:36:04 | [Mutex] received everything.

2020-11-30 21:36:04 | [Mutex] isItemNotified: configured:node:node-2fb88188-1089-4ce3-be51-f65a302945f6:node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910 :: true

2020-11-30 21:36:05 | [Mutex] waiting for: [received:nodes:e348bda8-4dde-4607-b76a-753562a31881:localhost]

2020-11-30 21:36:05 | [Mutex] received everything.

2020-11-30 21:36:05 | [Mutex] isItemNotified: received:node:e348bda8-4dde-4607-b76a-753562a31881:localhost:node-2fb88188-1089-4ce3-be51-f65a302945f6:Node 2fb88188-1089-4ce3-be51-f65a302945f6 :: true

2020-11-30 21:36:05 | [Mutex] waiting for: [received:nodes:957baf1e-db31-4211-b231-f44536961097:localhost]

2020-11-30 21:36:05 | [Mutex] received everything.

2020-11-30 21:36:05 | [Mutex] isItemNotified: received:node:957baf1e-db31-4211-b231-f44536961097:localhost:node-2fb88188-1089-4ce3-be51-f65a302945f6:Node 2fb88188-1089-4ce3-be51-f65a302945f6 :: false

createNodes 1.596s
2020-11-30 21:36:01 |

2020-11-30 21:36:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:01 | ------------------------------------

2020-11-30 21:36:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "pubsub#title": "Node 2fb88188-1089-4ce3-be51-f65a302945f6"
}

2020-11-30 21:36:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:36:03 | [Mutex] waiting for: [received:nodes:78a0d250-933a-4563-ba8d-fcb339218e06:localhost]

2020-11-30 21:36:03 | [Mutex] received everything.

2020-11-30 21:36:03 | [Mutex] isItemNotified: received:node:78a0d250-933a-4563-ba8d-fcb339218e06:localhost:node-2fb88188-1089-4ce3-be51-f65a302945f6:Node 2fb88188-1089-4ce3-be51-f65a302945f6 :: true

createSubnodes 1.022s
2020-11-30 21:36:03 |

2020-11-30 21:36:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:03 | ------------------------------------

2020-11-30 21:36:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910",
    "pubsub#title": "Node be5060fd-8ca5-464e-b5d0-fb6fe9b91910"
}

2020-11-30 21:36:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:36:04 | [Mutex] waiting for: [received:nodes:0507f74a-cc71-4d92-98e1-f50bd9f3d01c:localhost]

2020-11-30 21:36:04 | [Mutex] received everything.

2020-11-30 21:36:04 | [Mutex] isItemNotified: received:node:0507f74a-cc71-4d92-98e1-f50bd9f3d01c:localhost:node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910:Node be5060fd-8ca5-464e-b5d0-fb6fe9b91910 :: true

deleteNodes 1.015s
2020-11-30 21:36:09 |

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

2020-11-30 21:36:09 | ------------------------------------

2020-11-30 21:36:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910"
}

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

2020-11-30 21:36:10 | [Mutex] waiting for: [received:nodes:7933ce53-25fa-456f-9ba9-b68c6c50c5e7:localhost]

2020-11-30 21:36:10 | [Mutex] received everything.

2020-11-30 21:36:10 | [Mutex] isItemNotified: received:node:7933ce53-25fa-456f-9ba9-b68c6c50c5e7:localhost:node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910:Node be5060fd-8ca5-464e-b5d0-fb6fe9b91910 :: false

deleteSubnodes 1.027s
2020-11-30 21:36:08 |

2020-11-30 21:36:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:08 | ------------------------------------

2020-11-30 21:36:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6"
}

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

2020-11-30 21:36:09 | [Mutex] waiting for: [received:nodes:5477889d-9b39-4a9a-8a59-8c87eecf5c85:localhost]

2020-11-30 21:36:09 | [Mutex] received everything.

2020-11-30 21:36:09 | [Mutex] isItemNotified: received:node:5477889d-9b39-4a9a-8a59-8c87eecf5c85:localhost:node-2fb88188-1089-4ce3-be51-f65a302945f6:Node 2fb88188-1089-4ce3-be51-f65a302945f6 :: false

2020-11-30 21:36:09 | [Mutex] waiting for: [received:nodes:bacc1beb-1598-456a-b08e-3a660b9025e4:localhost]

2020-11-30 21:36:09 | [Mutex] received everything.

2020-11-30 21:36:09 | [Mutex] isItemNotified: received:node:bacc1beb-1598-456a-b08e-3a660b9025e4:localhost:node-2fb88188-1089-4ce3-be51-f65a302945f6:Node 2fb88188-1089-4ce3-be51-f65a302945f6 :: false

publishItemsToNodes 0.048s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "entry": "<test>item-53b06d5d-6fc4-469f-8c07-5510e0d41b38</test>",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38"
}

2020-11-30 21:36:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38"
}

2020-11-30 21:36:06 | [Mutex] waiting for: [published:item:notifieditem-53b06d5d-6fc4-469f-8c07-5510e0d41b38:admin@test-domain.com]

2020-11-30 21:36:06 | [Mutex] received everything.

2020-11-30 21:36:06 | [Mutex] isItemNotified: published:item:notifieditem-53b06d5d-6fc4-469f-8c07-5510e0d41b38:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38"
}

2020-11-30 21:36:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38"
}

2020-11-30 21:36:06 | [Mutex] received everything.

2020-11-30 21:36:06 | [Mutex] isItemNotified: retracted:item:notifieditem-53b06d5d-6fc4-469f-8c07-5510e0d41b38:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38"
}

2020-11-30 21:36:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "item-id": "item-53b06d5d-6fc4-469f-8c07-5510e0d41b38",
    "item": [
        "<item id=\"item-53b06d5d-6fc4-469f-8c07-5510e0d41b38\"><test>item-53b06d5d-6fc4-469f-8c07-5510e0d41b38</test></item>"
    ]
}

2020-11-30 21:36:06 | [Mutex] notify: [retrieved:item:item-53b06d5d-6fc4-469f-8c07-5510e0d41b38:payload-matches:true:localhost]

2020-11-30 21:36:06 | [Mutex] received everything.

2020-11-30 21:36:06 | [Mutex] isItemNotified: retrieved:item:item-53b06d5d-6fc4-469f-8c07-5510e0d41b38:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.083s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-30 21:36:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2fb88188-1089-4ce3-be51-f65a302945f6",
        "test",
        "node-be5060fd-8ca5-464e-b5d0-fb6fe9b91910"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2fb88188-1089-4ce3-be51-f65a302945f6)"
}

2020-11-30 21:36:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-11-30 21:36:05 |

2020-11-30 21:36:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:05 | ------------------------------------

2020-11-30 21:36:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-30 21:36:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2020-11-30 21:36:06 |

2020-11-30 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:36:06 | ------------------------------------

2020-11-30 21:36:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2fb88188-1089-4ce3-be51-f65a302945f6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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