Generated by TestNG with ReportNG at 22:18 PDT on Wednesday 27 July 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.634s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-07-27 22:32:26 |

2022-07-27 22:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:26 | ------------------------------------

2022-07-27 22:32:26 | [Mutex] waiting for: [configured:node:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:node-07ee09e6-0c57-4d7f-b17d-f1508864f31a]

2022-07-27 22:32:26 | [Mutex] received everything.

2022-07-27 22:32:26 | [Mutex] isItemNotified: configured:node:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:node-07ee09e6-0c57-4d7f-b17d-f1508864f31a :: true

2022-07-27 22:32:27 | [Mutex] waiting for: [received:nodes:9b13994b-b61e-4507-b37e-0990174f4a84:localhost]

2022-07-27 22:32:27 | [Mutex] received everything.

2022-07-27 22:32:27 | [Mutex] isItemNotified: received:node:9b13994b-b61e-4507-b37e-0990174f4a84:localhost:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:Node ac2e98b5-cf38-4032-97e9-deb9fed71867 :: true

2022-07-27 22:32:27 | [Mutex] waiting for: [received:nodes:1faed5d9-7a28-4904-befe-8ba3d0873fd9:localhost]

2022-07-27 22:32:27 | [Mutex] received everything.

2022-07-27 22:32:27 | [Mutex] isItemNotified: received:node:1faed5d9-7a28-4904-befe-8ba3d0873fd9:localhost:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:Node ac2e98b5-cf38-4032-97e9-deb9fed71867 :: false

createNodes 1.567s
2022-07-27 22:32:24 |

2022-07-27 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:24 | ------------------------------------

2022-07-27 22:32: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-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "pubsub#title": "Node ac2e98b5-cf38-4032-97e9-deb9fed71867"
}

2022-07-27 22:32:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 22:32:25 | [Mutex] waiting for: [received:nodes:704452e8-b501-4213-88ac-b4bb6d3e5e71:localhost]

2022-07-27 22:32:25 | [Mutex] received everything.

2022-07-27 22:32:25 | [Mutex] isItemNotified: received:node:704452e8-b501-4213-88ac-b4bb6d3e5e71:localhost:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:Node ac2e98b5-cf38-4032-97e9-deb9fed71867 :: true

createSubnodes 1.027s
2022-07-27 22:32:25 |

2022-07-27 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:25 | ------------------------------------

2022-07-27 22:32: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-07ee09e6-0c57-4d7f-b17d-f1508864f31a",
    "pubsub#title": "Node 07ee09e6-0c57-4d7f-b17d-f1508864f31a"
}

2022-07-27 22:32:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 22:32:26 | [Mutex] waiting for: [received:nodes:5d6cb3ce-e143-48d1-bd36-ad6ba00de93e:localhost]

2022-07-27 22:32:26 | [Mutex] received everything.

2022-07-27 22:32:26 | [Mutex] isItemNotified: received:node:5d6cb3ce-e143-48d1-bd36-ad6ba00de93e:localhost:node-07ee09e6-0c57-4d7f-b17d-f1508864f31a:Node 07ee09e6-0c57-4d7f-b17d-f1508864f31a :: true

deleteNodes 1.027s
2022-07-27 22:32:31 |

2022-07-27 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:31 | ------------------------------------

2022-07-27 22:32:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-07ee09e6-0c57-4d7f-b17d-f1508864f31a"
}

2022-07-27 22:32:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 22:32:32 | [Mutex] waiting for: [received:nodes:581444da-0ae2-4850-946f-6ab781bfa5a6:localhost]

2022-07-27 22:32:32 | [Mutex] waiting for: [received:nodes:581444da-0ae2-4850-946f-6ab781bfa5a6:localhost]

2022-07-27 22:32:32 | [Mutex] received everything.

2022-07-27 22:32:32 | [Mutex] isItemNotified: received:node:581444da-0ae2-4850-946f-6ab781bfa5a6:localhost:node-07ee09e6-0c57-4d7f-b17d-f1508864f31a:Node 07ee09e6-0c57-4d7f-b17d-f1508864f31a :: false

deleteSubnodes 1.026s
2022-07-27 22:32:30 |

2022-07-27 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:30 | ------------------------------------

2022-07-27 22:32:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867"
}

2022-07-27 22:32:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 22:32:31 | [Mutex] waiting for: [received:nodes:64cad9ba-0053-41c1-a22a-6bd82b766a8e:localhost]

2022-07-27 22:32:31 | [Mutex] received everything.

2022-07-27 22:32:31 | [Mutex] isItemNotified: received:node:64cad9ba-0053-41c1-a22a-6bd82b766a8e:localhost:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:Node ac2e98b5-cf38-4032-97e9-deb9fed71867 :: false

2022-07-27 22:32:31 | [Mutex] waiting for: [received:nodes:0899fd89-f35c-4ed3-8ab4-8815396047cb:localhost]

2022-07-27 22:32:31 | [Mutex] received everything.

2022-07-27 22:32:31 | [Mutex] isItemNotified: received:node:0899fd89-f35c-4ed3-8ab4-8815396047cb:localhost:node-ac2e98b5-cf38-4032-97e9-deb9fed71867:Node ac2e98b5-cf38-4032-97e9-deb9fed71867 :: false

publishItemsToNodes 0.024s
2022-07-27 22:32:28 |

2022-07-27 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:28 | ------------------------------------

2022-07-27 22:32:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "entry": "<test>item-b707a45a-bcf4-47ac-9af9-4118d2b38f78</test>",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78"
}

2022-07-27 22:32:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78"
}

2022-07-27 22:32:28 | [Mutex] waiting for: [published:item:notifieditem-b707a45a-bcf4-47ac-9af9-4118d2b38f78:admin@test-domain.com]

2022-07-27 22:32:28 | [Mutex] received everything.

2022-07-27 22:32:28 | [Mutex] isItemNotified: published:item:notifieditem-b707a45a-bcf4-47ac-9af9-4118d2b38f78:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-07-27 22:32:28 |

2022-07-27 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:28 | ------------------------------------

2022-07-27 22:32:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78"
}

2022-07-27 22:32:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78"
}

2022-07-27 22:32:29 | [Mutex] received everything.

2022-07-27 22:32:29 | [Mutex] isItemNotified: retracted:item:notifieditem-b707a45a-bcf4-47ac-9af9-4118d2b38f78:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2022-07-27 22:32:28 |

2022-07-27 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:28 | ------------------------------------

2022-07-27 22:32:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78"
}

2022-07-27 22:32:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "item-id": "item-b707a45a-bcf4-47ac-9af9-4118d2b38f78",
    "item": [
        "<item id=\"item-b707a45a-bcf4-47ac-9af9-4118d2b38f78\"><test>item-b707a45a-bcf4-47ac-9af9-4118d2b38f78</test></item>"
    ]
}

2022-07-27 22:32:28 | [Mutex] notify: [retrieved:item:item-b707a45a-bcf4-47ac-9af9-4118d2b38f78:payload-matches:true:localhost]

2022-07-27 22:32:28 | [Mutex] received everything.

2022-07-27 22:32:28 | [Mutex] isItemNotified: retrieved:item:item-b707a45a-bcf4-47ac-9af9-4118d2b38f78:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-27 22:32:28 |

2022-07-27 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:28 | ------------------------------------

2022-07-27 22:32:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-27 22:32:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-07ee09e6-0c57-4d7f-b17d-f1508864f31a",
        "test",
        "node-ac2e98b5-cf38-4032-97e9-deb9fed71867"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-27 22:32:28 |

2022-07-27 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:28 | ------------------------------------

2022-07-27 22:32:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ac2e98b5-cf38-4032-97e9-deb9fed71867)"
}

2022-07-27 22:32:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-07-27 22:32:27 |

2022-07-27 22:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:27 | ------------------------------------

2022-07-27 22:32:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-27 22:32:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2022-07-27 22:32:29 |

2022-07-27 22:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 22:32:29 | ------------------------------------

2022-07-27 22:32:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ac2e98b5-cf38-4032-97e9-deb9fed71867",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-27 22:32:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}