Generated by TestNG with ReportNG at 22:15 PDT on Friday 17 March 2023
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.649s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2023-03-17 22:29:40 |

2023-03-17 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:40 | ------------------------------------

2023-03-17 22:29:40 | [Mutex] waiting for: [configured:node:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa]

2023-03-17 22:29:40 | [Mutex] received everything.

2023-03-17 22:29:40 | [Mutex] isItemNotified: configured:node:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa :: true

2023-03-17 22:29:41 | [Mutex] waiting for: [received:nodes:c3782cd8-80f8-480c-8307-dc7b827b2a08:localhost]

2023-03-17 22:29:41 | [Mutex] received everything.

2023-03-17 22:29:41 | [Mutex] isItemNotified: received:node:c3782cd8-80f8-480c-8307-dc7b827b2a08:localhost:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2 :: true

2023-03-17 22:29:41 | [Mutex] waiting for: [received:nodes:ddb1743c-b656-4d2d-8c4f-3db3b787a745:localhost]

2023-03-17 22:29:41 | [Mutex] waiting for: [received:nodes:ddb1743c-b656-4d2d-8c4f-3db3b787a745:localhost]

2023-03-17 22:29:41 | [Mutex] waiting for: [received:nodes:ddb1743c-b656-4d2d-8c4f-3db3b787a745:localhost]

2023-03-17 22:29:41 | [Mutex] waiting for: [received:nodes:ddb1743c-b656-4d2d-8c4f-3db3b787a745:localhost]

2023-03-17 22:29:41 | [Mutex] received everything.

2023-03-17 22:29:41 | [Mutex] isItemNotified: received:node:ddb1743c-b656-4d2d-8c4f-3db3b787a745:localhost:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2 :: false

createNodes 1.605s
2023-03-17 22:29:37 |

2023-03-17 22:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:37 | ------------------------------------

2023-03-17 22:29:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "pubsub#title": "Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2"
}

2023-03-17 22:29:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-17 22:29:39 | [Mutex] waiting for: [received:nodes:4169c558-d618-4a17-8dc1-a59a0e1ddbcc:localhost]

2023-03-17 22:29:39 | [Mutex] waiting for: [received:nodes:4169c558-d618-4a17-8dc1-a59a0e1ddbcc:localhost]

2023-03-17 22:29:39 | [Mutex] waiting for: [received:nodes:4169c558-d618-4a17-8dc1-a59a0e1ddbcc:localhost]

2023-03-17 22:29:39 | [Mutex] received everything.

2023-03-17 22:29:39 | [Mutex] isItemNotified: received:node:4169c558-d618-4a17-8dc1-a59a0e1ddbcc:localhost:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2 :: true

createSubnodes 1.021s
2023-03-17 22:29:39 |

2023-03-17 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:39 | ------------------------------------

2023-03-17 22:29:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa",
    "pubsub#title": "Node 6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa"
}

2023-03-17 22:29:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-17 22:29:40 | [Mutex] waiting for: [received:nodes:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost]

2023-03-17 22:29:40 | [Mutex] waiting for: [received:nodes:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost]

2023-03-17 22:29:40 | [Mutex] waiting for: [received:nodes:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost]

2023-03-17 22:29:40 | [Mutex] waiting for: [received:nodes:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost]

2023-03-17 22:29:40 | [Mutex] waiting for: [received:nodes:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost]

2023-03-17 22:29:40 | [Mutex] received everything.

2023-03-17 22:29:40 | [Mutex] isItemNotified: received:node:13c853a9-da62-43d6-adbe-20821b7fe7df:localhost:node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa:Node 6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa :: true

deleteNodes 1.021s
2023-03-17 22:29:44 |

2023-03-17 22:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:44 | ------------------------------------

2023-03-17 22:29:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa"
}

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

2023-03-17 22:29:45 | [Mutex] waiting for: [received:nodes:cb16ef54-0ab8-4dfd-a33a-1a5e1755a0d3:localhost]

2023-03-17 22:29:45 | [Mutex] waiting for: [received:nodes:cb16ef54-0ab8-4dfd-a33a-1a5e1755a0d3:localhost]

2023-03-17 22:29:45 | [Mutex] waiting for: [received:nodes:cb16ef54-0ab8-4dfd-a33a-1a5e1755a0d3:localhost]

2023-03-17 22:29:45 | [Mutex] received everything.

2023-03-17 22:29:45 | [Mutex] isItemNotified: received:node:cb16ef54-0ab8-4dfd-a33a-1a5e1755a0d3:localhost:node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa:Node 6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa :: false

deleteSubnodes 1.023s
2023-03-17 22:29:43 |

2023-03-17 22:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:43 | ------------------------------------

2023-03-17 22:29:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2"
}

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

2023-03-17 22:29:44 | [Mutex] waiting for: [received:nodes:2b0eae24-a739-4648-81ed-1b8f8385f24d:localhost]

2023-03-17 22:29:44 | [Mutex] waiting for: [received:nodes:2b0eae24-a739-4648-81ed-1b8f8385f24d:localhost]

2023-03-17 22:29:44 | [Mutex] waiting for: [received:nodes:2b0eae24-a739-4648-81ed-1b8f8385f24d:localhost]

2023-03-17 22:29:44 | [Mutex] waiting for: [received:nodes:2b0eae24-a739-4648-81ed-1b8f8385f24d:localhost]

2023-03-17 22:29:44 | [Mutex] received everything.

2023-03-17 22:29:44 | [Mutex] isItemNotified: received:node:2b0eae24-a739-4648-81ed-1b8f8385f24d:localhost:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2 :: false

2023-03-17 22:29:44 | [Mutex] waiting for: [received:nodes:10647921-8ec8-4a23-adf6-f32b7834b893:localhost]

2023-03-17 22:29:44 | [Mutex] received everything.

2023-03-17 22:29:44 | [Mutex] isItemNotified: received:node:10647921-8ec8-4a23-adf6-f32b7834b893:localhost:node-51e7294f-ad2e-45e8-95b3-ce8864af14d2:Node 51e7294f-ad2e-45e8-95b3-ce8864af14d2 :: false

publishItemsToNodes 0.034s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

2023-03-17 22:29:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "entry": "<test>item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3</test>",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3"
}

2023-03-17 22:29:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3"
}

2023-03-17 22:29:42 | [Mutex] waiting for: [published:item:notifieditem-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3:admin@test-domain.com]

2023-03-17 22:29:42 | [Mutex] received everything.

2023-03-17 22:29:42 | [Mutex] isItemNotified: published:item:notifieditem-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

2023-03-17 22:29:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3"
}

2023-03-17 22:29:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3"
}

2023-03-17 22:29:42 | [Mutex] received everything.

2023-03-17 22:29:42 | [Mutex] isItemNotified: retracted:item:notifieditem-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

2023-03-17 22:29:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3"
}

2023-03-17 22:29:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "item-id": "item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3",
    "item": [
        "<item id=\"item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3\"><test>item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3</test></item>"
    ]
}

2023-03-17 22:29:42 | [Mutex] notify: [retrieved:item:item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3:payload-matches:true:localhost]

2023-03-17 22:29:42 | [Mutex] received everything.

2023-03-17 22:29:42 | [Mutex] isItemNotified: retrieved:item:item-f5c66ab4-f073-4f6a-85b5-cbeaf127b3b3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

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

2023-03-17 22:29:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
        "test",
        "node-6cfb5a2a-a9ad-4e73-a462-5a6686f00aaa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

2023-03-17 22:29:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-51e7294f-ad2e-45e8-95b3-ce8864af14d2)"
}

2023-03-17 22:29:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-03-17 22:29:41 |

2023-03-17 22:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:41 | ------------------------------------

2023-03-17 22:29:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-17 22:29:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-03-17 22:29:42 |

2023-03-17 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:29:42 | ------------------------------------

2023-03-17 22:29:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-51e7294f-ad2e-45e8-95b3-ce8864af14d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-17 22:29:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}