Generated by TestNG with ReportNG at 22:46 PDT on Thursday 02 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.694s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.145s
2022-06-02 23:01:06 |

2022-06-02 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:06 | ------------------------------------

2022-06-02 23:01:06 | [Mutex] waiting for: [configured:node:node-a1279962-625f-4c20-880b-6d552f4f3de2:node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5]

2022-06-02 23:01:06 | [Mutex] received everything.

2022-06-02 23:01:06 | [Mutex] isItemNotified: configured:node:node-a1279962-625f-4c20-880b-6d552f4f3de2:node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5 :: true

2022-06-02 23:01:07 | [Mutex] waiting for: [received:nodes:643e5060-e36f-41ef-a255-359d45042413:localhost]

2022-06-02 23:01:07 | [Mutex] received everything.

2022-06-02 23:01:07 | [Mutex] isItemNotified: received:node:643e5060-e36f-41ef-a255-359d45042413:localhost:node-a1279962-625f-4c20-880b-6d552f4f3de2:Node a1279962-625f-4c20-880b-6d552f4f3de2 :: true

2022-06-02 23:01:07 | [Mutex] waiting for: [received:nodes:37dc3c15-6025-48fd-ae7e-7f2d33d43b37:localhost]

2022-06-02 23:01:07 | [Mutex] waiting for: [received:nodes:37dc3c15-6025-48fd-ae7e-7f2d33d43b37:localhost]

2022-06-02 23:01:07 | [Mutex] waiting for: [received:nodes:37dc3c15-6025-48fd-ae7e-7f2d33d43b37:localhost]

2022-06-02 23:01:07 | [Mutex] waiting for: [received:nodes:37dc3c15-6025-48fd-ae7e-7f2d33d43b37:localhost]

2022-06-02 23:01:07 | [Mutex] received everything.

2022-06-02 23:01:07 | [Mutex] isItemNotified: received:node:37dc3c15-6025-48fd-ae7e-7f2d33d43b37:localhost:node-a1279962-625f-4c20-880b-6d552f4f3de2:Node a1279962-625f-4c20-880b-6d552f4f3de2 :: false

createNodes 1.632s
2022-06-02 23:01:03 |

2022-06-02 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:03 | ------------------------------------

2022-06-02 23:01:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "pubsub#title": "Node a1279962-625f-4c20-880b-6d552f4f3de2"
}

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

2022-06-02 23:01:05 | [Mutex] waiting for: [received:nodes:eae789db-2f94-4a1d-b273-5353aeb46591:localhost]

2022-06-02 23:01:05 | [Mutex] waiting for: [received:nodes:eae789db-2f94-4a1d-b273-5353aeb46591:localhost]

2022-06-02 23:01:05 | [Mutex] received everything.

2022-06-02 23:01:05 | [Mutex] isItemNotified: received:node:eae789db-2f94-4a1d-b273-5353aeb46591:localhost:node-a1279962-625f-4c20-880b-6d552f4f3de2:Node a1279962-625f-4c20-880b-6d552f4f3de2 :: true

createSubnodes 1.024s
2022-06-02 23:01:05 |

2022-06-02 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:05 | ------------------------------------

2022-06-02 23:01:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5",
    "pubsub#title": "Node cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5"
}

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

2022-06-02 23:01:06 | [Mutex] waiting for: [received:nodes:2b93a89a-a0a7-4bf0-8b4c-3fed5c8cda90:localhost]

2022-06-02 23:01:06 | [Mutex] received everything.

2022-06-02 23:01:06 | [Mutex] isItemNotified: received:node:2b93a89a-a0a7-4bf0-8b4c-3fed5c8cda90:localhost:node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5:Node cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5 :: true

deleteNodes 1.017s
2022-06-02 23:01:10 |

2022-06-02 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:10 | ------------------------------------

2022-06-02 23:01:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5"
}

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

2022-06-02 23:01:11 | [Mutex] waiting for: [received:nodes:1f6fcba8-aceb-4a36-a411-73ccf0598f22:localhost]

2022-06-02 23:01:11 | [Mutex] received everything.

2022-06-02 23:01:11 | [Mutex] isItemNotified: received:node:1f6fcba8-aceb-4a36-a411-73ccf0598f22:localhost:node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5:Node cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5 :: false

deleteSubnodes 1.030s
2022-06-02 23:01:09 |

2022-06-02 23:01:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:09 | ------------------------------------

2022-06-02 23:01:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2"
}

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

2022-06-02 23:01:10 | [Mutex] waiting for: [received:nodes:470e9da2-60b7-415e-9ad7-30fb73dd971d:localhost]

2022-06-02 23:01:10 | [Mutex] received everything.

2022-06-02 23:01:10 | [Mutex] isItemNotified: received:node:470e9da2-60b7-415e-9ad7-30fb73dd971d:localhost:node-a1279962-625f-4c20-880b-6d552f4f3de2:Node a1279962-625f-4c20-880b-6d552f4f3de2 :: false

2022-06-02 23:01:10 | [Mutex] waiting for: [received:nodes:b0152712-fb8e-469a-aab7-505cd53701ab:localhost]

2022-06-02 23:01:10 | [Mutex] received everything.

2022-06-02 23:01:10 | [Mutex] isItemNotified: received:node:b0152712-fb8e-469a-aab7-505cd53701ab:localhost:node-a1279962-625f-4c20-880b-6d552f4f3de2:Node a1279962-625f-4c20-880b-6d552f4f3de2 :: false

publishItemsToNodes 0.047s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

2022-06-02 23:01:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "entry": "<test>item-840bf1b1-0dcb-4508-8f83-6505f14bad6d</test>",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d"
}

2022-06-02 23:01:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d"
}

2022-06-02 23:01:08 | [Mutex] received everything.

2022-06-02 23:01:08 | [Mutex] isItemNotified: published:item:notifieditem-840bf1b1-0dcb-4508-8f83-6505f14bad6d:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

2022-06-02 23:01:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d"
}

2022-06-02 23:01:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d"
}

2022-06-02 23:01:08 | [Mutex] received everything.

2022-06-02 23:01:08 | [Mutex] isItemNotified: retracted:item:notifieditem-840bf1b1-0dcb-4508-8f83-6505f14bad6d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

2022-06-02 23:01:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d"
}

2022-06-02 23:01:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "item-id": "item-840bf1b1-0dcb-4508-8f83-6505f14bad6d",
    "item": [
        "<item id=\"item-840bf1b1-0dcb-4508-8f83-6505f14bad6d\"><test>item-840bf1b1-0dcb-4508-8f83-6505f14bad6d</test></item>"
    ]
}

2022-06-02 23:01:08 | [Mutex] notify: [retrieved:item:item-840bf1b1-0dcb-4508-8f83-6505f14bad6d:payload-matches:true:localhost]

2022-06-02 23:01:08 | [Mutex] received everything.

2022-06-02 23:01:08 | [Mutex] isItemNotified: retrieved:item:item-840bf1b1-0dcb-4508-8f83-6505f14bad6d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

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

2022-06-02 23:01:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a1279962-625f-4c20-880b-6d552f4f3de2",
        "node-cea8c38c-effd-4bb7-a9d2-e7f80bc5e8b5",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

2022-06-02 23:01:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a1279962-625f-4c20-880b-6d552f4f3de2)"
}

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

subscribeNodes 1.013s
2022-06-02 23:01:07 |

2022-06-02 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:07 | ------------------------------------

2022-06-02 23:01:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.077s
2022-06-02 23:01:08 |

2022-06-02 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 23:01:08 | ------------------------------------

2022-06-02 23:01:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a1279962-625f-4c20-880b-6d552f4f3de2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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