Generated by TestNG with ReportNG at 22:22 PDT on Monday 17 October 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.528s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-10-17 22:36:26 |

2022-10-17 22:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:26 | ------------------------------------

2022-10-17 22:36:26 | [Mutex] waiting for: [configured:node:node-22195789-9e23-45f1-a835-1a497de2e909:node-31e159ef-3d24-4a70-8b0f-61bce339f944]

2022-10-17 22:36:26 | [Mutex] received everything.

2022-10-17 22:36:26 | [Mutex] isItemNotified: configured:node:node-22195789-9e23-45f1-a835-1a497de2e909:node-31e159ef-3d24-4a70-8b0f-61bce339f944 :: true

2022-10-17 22:36:27 | [Mutex] waiting for: [received:nodes:de93a8be-682b-4703-9a81-56047d083d72:localhost]

2022-10-17 22:36:27 | [Mutex] received everything.

2022-10-17 22:36:27 | [Mutex] isItemNotified: received:node:de93a8be-682b-4703-9a81-56047d083d72:localhost:node-22195789-9e23-45f1-a835-1a497de2e909:Node 22195789-9e23-45f1-a835-1a497de2e909 :: true

2022-10-17 22:36:27 | [Mutex] waiting for: [received:nodes:6dcf07d8-cfcb-49f3-8add-177892779dfa:localhost]

2022-10-17 22:36:27 | [Mutex] received everything.

2022-10-17 22:36:27 | [Mutex] isItemNotified: received:node:6dcf07d8-cfcb-49f3-8add-177892779dfa:localhost:node-22195789-9e23-45f1-a835-1a497de2e909:Node 22195789-9e23-45f1-a835-1a497de2e909 :: false

createNodes 1.541s
2022-10-17 22:36:23 |

2022-10-17 22:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:23 | ------------------------------------

2022-10-17 22:36: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-22195789-9e23-45f1-a835-1a497de2e909",
    "pubsub#title": "Node 22195789-9e23-45f1-a835-1a497de2e909"
}

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

2022-10-17 22:36:25 | [Mutex] waiting for: [received:nodes:7e7ee9c9-ddc5-4969-b260-80cf41d444fe:localhost]

2022-10-17 22:36:25 | [Mutex] received everything.

2022-10-17 22:36:25 | [Mutex] isItemNotified: received:node:7e7ee9c9-ddc5-4969-b260-80cf41d444fe:localhost:node-22195789-9e23-45f1-a835-1a497de2e909:Node 22195789-9e23-45f1-a835-1a497de2e909 :: true

createSubnodes 1.022s
2022-10-17 22:36:25 |

2022-10-17 22:36:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:25 | ------------------------------------

2022-10-17 22:36: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-31e159ef-3d24-4a70-8b0f-61bce339f944",
    "pubsub#title": "Node 31e159ef-3d24-4a70-8b0f-61bce339f944"
}

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

2022-10-17 22:36:26 | [Mutex] waiting for: [received:nodes:d170ad82-2e04-4d2f-8917-9861cc56347f:localhost]

2022-10-17 22:36:26 | [Mutex] received everything.

2022-10-17 22:36:26 | [Mutex] isItemNotified: received:node:d170ad82-2e04-4d2f-8917-9861cc56347f:localhost:node-31e159ef-3d24-4a70-8b0f-61bce339f944:Node 31e159ef-3d24-4a70-8b0f-61bce339f944 :: true

deleteNodes 1.018s
2022-10-17 22:36:30 |

2022-10-17 22:36:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:30 | ------------------------------------

2022-10-17 22:36:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31e159ef-3d24-4a70-8b0f-61bce339f944"
}

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

2022-10-17 22:36:31 | [Mutex] waiting for: [received:nodes:ef0348f4-4504-45e0-bfff-5a8a4e2ec2c6:localhost]

2022-10-17 22:36:31 | [Mutex] received everything.

2022-10-17 22:36:31 | [Mutex] isItemNotified: received:node:ef0348f4-4504-45e0-bfff-5a8a4e2ec2c6:localhost:node-31e159ef-3d24-4a70-8b0f-61bce339f944:Node 31e159ef-3d24-4a70-8b0f-61bce339f944 :: false

deleteSubnodes 1.024s
2022-10-17 22:36:29 |

2022-10-17 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:29 | ------------------------------------

2022-10-17 22:36:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909"
}

2022-10-17 22:36:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 22:36:30 | [Mutex] waiting for: [received:nodes:41020e0f-4346-415c-a265-0a102709edea:localhost]

2022-10-17 22:36:30 | [Mutex] waiting for: [received:nodes:41020e0f-4346-415c-a265-0a102709edea:localhost]

2022-10-17 22:36:30 | [Mutex] received everything.

2022-10-17 22:36:30 | [Mutex] isItemNotified: received:node:41020e0f-4346-415c-a265-0a102709edea:localhost:node-22195789-9e23-45f1-a835-1a497de2e909:Node 22195789-9e23-45f1-a835-1a497de2e909 :: false

2022-10-17 22:36:30 | [Mutex] waiting for: [received:nodes:34ce503c-5bc5-4251-aa92-3f0447627946:localhost]

2022-10-17 22:36:30 | [Mutex] received everything.

2022-10-17 22:36:30 | [Mutex] isItemNotified: received:node:34ce503c-5bc5-4251-aa92-3f0447627946:localhost:node-22195789-9e23-45f1-a835-1a497de2e909:Node 22195789-9e23-45f1-a835-1a497de2e909 :: false

publishItemsToNodes 0.054s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

2022-10-17 22:36:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "entry": "<test>item-98202478-7380-4e0b-8b92-97f42aa4ba67</test>",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67"
}

2022-10-17 22:36:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67"
}

2022-10-17 22:36:28 | [Mutex] waiting for: [published:item:notifieditem-98202478-7380-4e0b-8b92-97f42aa4ba67:admin@test-domain.com]

2022-10-17 22:36:28 | [Mutex] received everything.

2022-10-17 22:36:28 | [Mutex] isItemNotified: published:item:notifieditem-98202478-7380-4e0b-8b92-97f42aa4ba67:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

2022-10-17 22:36:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67"
}

2022-10-17 22:36:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67"
}

2022-10-17 22:36:28 | [Mutex] received everything.

2022-10-17 22:36:28 | [Mutex] isItemNotified: retracted:item:notifieditem-98202478-7380-4e0b-8b92-97f42aa4ba67:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

2022-10-17 22:36:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67"
}

2022-10-17 22:36:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "item-id": "item-98202478-7380-4e0b-8b92-97f42aa4ba67",
    "item": [
        "<item id=\"item-98202478-7380-4e0b-8b92-97f42aa4ba67\"><test>item-98202478-7380-4e0b-8b92-97f42aa4ba67</test></item>"
    ]
}

2022-10-17 22:36:28 | [Mutex] notify: [retrieved:item:item-98202478-7380-4e0b-8b92-97f42aa4ba67:payload-matches:true:localhost]

2022-10-17 22:36:28 | [Mutex] received everything.

2022-10-17 22:36:28 | [Mutex] isItemNotified: retrieved:item:item-98202478-7380-4e0b-8b92-97f42aa4ba67:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

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

2022-10-17 22:36:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-22195789-9e23-45f1-a835-1a497de2e909",
        "test",
        "node-31e159ef-3d24-4a70-8b0f-61bce339f944"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

2022-10-17 22:36:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-22195789-9e23-45f1-a835-1a497de2e909)"
}

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

subscribeNodes 1.019s
2022-10-17 22:36:27 |

2022-10-17 22:36:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:27 | ------------------------------------

2022-10-17 22:36:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-10-17 22:36:28 |

2022-10-17 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:28 | ------------------------------------

2022-10-17 22:36:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-22195789-9e23-45f1-a835-1a497de2e909",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-17 22:36:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}