Generated by TestNG with ReportNG at 22:19 PDT on Monday 29 August 2022
root@f9c07ffec79b / 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.710s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-08-29 22:33:27 |

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

2022-08-29 22:33:27 | ------------------------------------

2022-08-29 22:33:27 | [Mutex] waiting for: [configured:node:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:node-f1485aae-76b9-4a9c-abf1-22db674fda7d]

2022-08-29 22:33:27 | [Mutex] received everything.

2022-08-29 22:33:27 | [Mutex] isItemNotified: configured:node:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:node-f1485aae-76b9-4a9c-abf1-22db674fda7d :: true

2022-08-29 22:33:28 | [Mutex] waiting for: [received:nodes:3b3b1bdf-4483-4905-a808-8bbcf77a581e:localhost]

2022-08-29 22:33:28 | [Mutex] received everything.

2022-08-29 22:33:28 | [Mutex] isItemNotified: received:node:3b3b1bdf-4483-4905-a808-8bbcf77a581e:localhost:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:Node 095d3a8b-fa24-47e6-9d63-fc10314650e0 :: true

2022-08-29 22:33:28 | [Mutex] waiting for: [received:nodes:ae61cf23-e88c-42c4-9f89-97807f0feedd:localhost]

2022-08-29 22:33:28 | [Mutex] waiting for: [received:nodes:ae61cf23-e88c-42c4-9f89-97807f0feedd:localhost]

2022-08-29 22:33:28 | [Mutex] received everything.

2022-08-29 22:33:28 | [Mutex] isItemNotified: received:node:ae61cf23-e88c-42c4-9f89-97807f0feedd:localhost:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:Node 095d3a8b-fa24-47e6-9d63-fc10314650e0 :: false

createNodes 1.592s
2022-08-29 22:33:24 |

2022-08-29 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:24 | ------------------------------------

2022-08-29 22:33:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "pubsub#title": "Node 095d3a8b-fa24-47e6-9d63-fc10314650e0"
}

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

2022-08-29 22:33:26 | [Mutex] waiting for: [received:nodes:e37a93b1-8399-4b60-bd71-8181582b743e:localhost]

2022-08-29 22:33:26 | [Mutex] received everything.

2022-08-29 22:33:26 | [Mutex] isItemNotified: received:node:e37a93b1-8399-4b60-bd71-8181582b743e:localhost:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:Node 095d3a8b-fa24-47e6-9d63-fc10314650e0 :: true

createSubnodes 1.034s
2022-08-29 22:33:26 |

2022-08-29 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:26 | ------------------------------------

2022-08-29 22:33:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f1485aae-76b9-4a9c-abf1-22db674fda7d",
    "pubsub#title": "Node f1485aae-76b9-4a9c-abf1-22db674fda7d"
}

2022-08-29 22:33:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-29 22:33:27 | [Mutex] waiting for: [received:nodes:d7578e73-3b99-49b2-95a9-d40f1a6d0776:localhost]

2022-08-29 22:33:27 | [Mutex] received everything.

2022-08-29 22:33:27 | [Mutex] isItemNotified: received:node:d7578e73-3b99-49b2-95a9-d40f1a6d0776:localhost:node-f1485aae-76b9-4a9c-abf1-22db674fda7d:Node f1485aae-76b9-4a9c-abf1-22db674fda7d :: true

deleteNodes 1.024s
2022-08-29 22:33:32 |

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

2022-08-29 22:33:32 | ------------------------------------

2022-08-29 22:33:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f1485aae-76b9-4a9c-abf1-22db674fda7d"
}

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

2022-08-29 22:33:33 | [Mutex] waiting for: [received:nodes:58bc9dd1-00b8-4b1d-a590-657380773f7d:localhost]

2022-08-29 22:33:33 | [Mutex] waiting for: [received:nodes:58bc9dd1-00b8-4b1d-a590-657380773f7d:localhost]

2022-08-29 22:33:33 | [Mutex] waiting for: [received:nodes:58bc9dd1-00b8-4b1d-a590-657380773f7d:localhost]

2022-08-29 22:33:33 | [Mutex] received everything.

2022-08-29 22:33:33 | [Mutex] isItemNotified: received:node:58bc9dd1-00b8-4b1d-a590-657380773f7d:localhost:node-f1485aae-76b9-4a9c-abf1-22db674fda7d:Node f1485aae-76b9-4a9c-abf1-22db674fda7d :: false

deleteSubnodes 1.027s
2022-08-29 22:33:31 |

2022-08-29 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:31 | ------------------------------------

2022-08-29 22:33:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0"
}

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

2022-08-29 22:33:32 | [Mutex] waiting for: [received:nodes:0f990313-ced6-4d19-8a8b-39975d492bbc:localhost]

2022-08-29 22:33:32 | [Mutex] waiting for: [received:nodes:0f990313-ced6-4d19-8a8b-39975d492bbc:localhost]

2022-08-29 22:33:32 | [Mutex] received everything.

2022-08-29 22:33:32 | [Mutex] isItemNotified: received:node:0f990313-ced6-4d19-8a8b-39975d492bbc:localhost:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:Node 095d3a8b-fa24-47e6-9d63-fc10314650e0 :: false

2022-08-29 22:33:32 | [Mutex] waiting for: [received:nodes:612ec079-960e-4287-ad3f-d4e7d6f65cf0:localhost]

2022-08-29 22:33:32 | [Mutex] received everything.

2022-08-29 22:33:32 | [Mutex] isItemNotified: received:node:612ec079-960e-4287-ad3f-d4e7d6f65cf0:localhost:node-095d3a8b-fa24-47e6-9d63-fc10314650e0:Node 095d3a8b-fa24-47e6-9d63-fc10314650e0 :: false

publishItemsToNodes 0.053s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

2022-08-29 22:33:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "entry": "<test>item-70c477c9-9ef5-482f-b992-06ec1e75d8d7</test>",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7"
}

2022-08-29 22:33:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7"
}

2022-08-29 22:33:29 | [Mutex] waiting for: [published:item:notifieditem-70c477c9-9ef5-482f-b992-06ec1e75d8d7:admin@test-domain.com]

2022-08-29 22:33:29 | [Mutex] received everything.

2022-08-29 22:33:29 | [Mutex] isItemNotified: published:item:notifieditem-70c477c9-9ef5-482f-b992-06ec1e75d8d7:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

2022-08-29 22:33:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7"
}

2022-08-29 22:33:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7"
}

2022-08-29 22:33:29 | [Mutex] received everything.

2022-08-29 22:33:29 | [Mutex] isItemNotified: retracted:item:notifieditem-70c477c9-9ef5-482f-b992-06ec1e75d8d7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

2022-08-29 22:33:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7"
}

2022-08-29 22:33:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "item-id": "item-70c477c9-9ef5-482f-b992-06ec1e75d8d7",
    "item": [
        "<item id=\"item-70c477c9-9ef5-482f-b992-06ec1e75d8d7\"><test>item-70c477c9-9ef5-482f-b992-06ec1e75d8d7</test></item>"
    ]
}

2022-08-29 22:33:29 | [Mutex] notify: [retrieved:item:item-70c477c9-9ef5-482f-b992-06ec1e75d8d7:payload-matches:true:localhost]

2022-08-29 22:33:29 | [Mutex] received everything.

2022-08-29 22:33:29 | [Mutex] isItemNotified: retrieved:item:item-70c477c9-9ef5-482f-b992-06ec1e75d8d7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

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

2022-08-29 22:33:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
        "test",
        "node-f1485aae-76b9-4a9c-abf1-22db674fda7d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

2022-08-29 22:33:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-095d3a8b-fa24-47e6-9d63-fc10314650e0)"
}

2022-08-29 22:33:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-29 22:33:28 |

2022-08-29 22:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:28 | ------------------------------------

2022-08-29 22:33:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-29 22:33:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-08-29 22:33:29 |

2022-08-29 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 22:33:29 | ------------------------------------

2022-08-29 22:33:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-095d3a8b-fa24-47e6-9d63-fc10314650e0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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