Generated by TestNG with ReportNG at 10:35 PST on Friday 16 December 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.646s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-12-16 10:51:33 |

2022-12-16 10:51:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:33 | ------------------------------------

2022-12-16 10:51:33 | [Mutex] waiting for: [configured:node:node-0b285025-cef0-473a-949a-37cae2b0b6b1:node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda]

2022-12-16 10:51:33 | [Mutex] received everything.

2022-12-16 10:51:33 | [Mutex] isItemNotified: configured:node:node-0b285025-cef0-473a-949a-37cae2b0b6b1:node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda :: true

2022-12-16 10:51:34 | [Mutex] waiting for: [received:nodes:912dda34-3a28-4305-a0e2-83a53881b443:localhost]

2022-12-16 10:51:34 | [Mutex] received everything.

2022-12-16 10:51:34 | [Mutex] isItemNotified: received:node:912dda34-3a28-4305-a0e2-83a53881b443:localhost:node-0b285025-cef0-473a-949a-37cae2b0b6b1:Node 0b285025-cef0-473a-949a-37cae2b0b6b1 :: true

2022-12-16 10:51:34 | [Mutex] waiting for: [received:nodes:86a90f98-6bcd-4148-8115-120cf6221f5c:localhost]

2022-12-16 10:51:34 | [Mutex] waiting for: [received:nodes:86a90f98-6bcd-4148-8115-120cf6221f5c:localhost]

2022-12-16 10:51:34 | [Mutex] waiting for: [received:nodes:86a90f98-6bcd-4148-8115-120cf6221f5c:localhost]

2022-12-16 10:51:34 | [Mutex] waiting for: [received:nodes:86a90f98-6bcd-4148-8115-120cf6221f5c:localhost]

2022-12-16 10:51:34 | [Mutex] received everything.

2022-12-16 10:51:34 | [Mutex] isItemNotified: received:node:86a90f98-6bcd-4148-8115-120cf6221f5c:localhost:node-0b285025-cef0-473a-949a-37cae2b0b6b1:Node 0b285025-cef0-473a-949a-37cae2b0b6b1 :: false

createNodes 1.579s
2022-12-16 10:51:30 |

2022-12-16 10:51:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:30 | ------------------------------------

2022-12-16 10:51:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "pubsub#title": "Node 0b285025-cef0-473a-949a-37cae2b0b6b1"
}

2022-12-16 10:51:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:51:32 | [Mutex] waiting for: [received:nodes:73e125a9-db32-4445-8d5e-7922729085f4:localhost]

2022-12-16 10:51:32 | [Mutex] waiting for: [received:nodes:73e125a9-db32-4445-8d5e-7922729085f4:localhost]

2022-12-16 10:51:32 | [Mutex] waiting for: [received:nodes:73e125a9-db32-4445-8d5e-7922729085f4:localhost]

2022-12-16 10:51:32 | [Mutex] waiting for: [received:nodes:73e125a9-db32-4445-8d5e-7922729085f4:localhost]

2022-12-16 10:51:32 | [Mutex] received everything.

2022-12-16 10:51:32 | [Mutex] isItemNotified: received:node:73e125a9-db32-4445-8d5e-7922729085f4:localhost:node-0b285025-cef0-473a-949a-37cae2b0b6b1:Node 0b285025-cef0-473a-949a-37cae2b0b6b1 :: true

createSubnodes 1.028s
2022-12-16 10:51:32 |

2022-12-16 10:51:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:32 | ------------------------------------

2022-12-16 10:51:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda",
    "pubsub#title": "Node 8d89f676-3aa1-42cd-930b-9f4cd4d77fda"
}

2022-12-16 10:51:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] waiting for: [received:nodes:66d71721-165b-4849-b940-5cb1428e9656:localhost]

2022-12-16 10:51:33 | [Mutex] received everything.

2022-12-16 10:51:33 | [Mutex] isItemNotified: received:node:66d71721-165b-4849-b940-5cb1428e9656:localhost:node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda:Node 8d89f676-3aa1-42cd-930b-9f4cd4d77fda :: true

deleteNodes 1.021s
2022-12-16 10:51:37 |

2022-12-16 10:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:37 | ------------------------------------

2022-12-16 10:51:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda"
}

2022-12-16 10:51:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:51:38 | [Mutex] waiting for: [received:nodes:33aea7bb-50b9-4254-8c8d-0c41aa3480e6:localhost]

2022-12-16 10:51:38 | [Mutex] waiting for: [received:nodes:33aea7bb-50b9-4254-8c8d-0c41aa3480e6:localhost]

2022-12-16 10:51:38 | [Mutex] waiting for: [received:nodes:33aea7bb-50b9-4254-8c8d-0c41aa3480e6:localhost]

2022-12-16 10:51:38 | [Mutex] received everything.

2022-12-16 10:51:38 | [Mutex] isItemNotified: received:node:33aea7bb-50b9-4254-8c8d-0c41aa3480e6:localhost:node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda:Node 8d89f676-3aa1-42cd-930b-9f4cd4d77fda :: false

deleteSubnodes 1.026s
2022-12-16 10:51:36 |

2022-12-16 10:51:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:36 | ------------------------------------

2022-12-16 10:51:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1"
}

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

2022-12-16 10:51:37 | [Mutex] waiting for: [received:nodes:8d8c4126-f826-4700-8c9f-b57996a6f62f:localhost]

2022-12-16 10:51:37 | [Mutex] waiting for: [received:nodes:8d8c4126-f826-4700-8c9f-b57996a6f62f:localhost]

2022-12-16 10:51:37 | [Mutex] waiting for: [received:nodes:8d8c4126-f826-4700-8c9f-b57996a6f62f:localhost]

2022-12-16 10:51:37 | [Mutex] waiting for: [received:nodes:8d8c4126-f826-4700-8c9f-b57996a6f62f:localhost]

2022-12-16 10:51:37 | [Mutex] received everything.

2022-12-16 10:51:37 | [Mutex] isItemNotified: received:node:8d8c4126-f826-4700-8c9f-b57996a6f62f:localhost:node-0b285025-cef0-473a-949a-37cae2b0b6b1:Node 0b285025-cef0-473a-949a-37cae2b0b6b1 :: false

2022-12-16 10:51:37 | [Mutex] waiting for: [received:nodes:023c456d-cb6e-4d5d-8ed3-b8d9c365a040:localhost]

2022-12-16 10:51:37 | [Mutex] received everything.

2022-12-16 10:51:37 | [Mutex] isItemNotified: received:node:023c456d-cb6e-4d5d-8ed3-b8d9c365a040:localhost:node-0b285025-cef0-473a-949a-37cae2b0b6b1:Node 0b285025-cef0-473a-949a-37cae2b0b6b1 :: false

publishItemsToNodes 0.047s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "entry": "<test>item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00</test>",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00"
}

2022-12-16 10:51:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00"
}

2022-12-16 10:51:35 | [Mutex] waiting for: [published:item:notifieditem-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00:admin@test-domain.com]

2022-12-16 10:51:35 | [Mutex] received everything.

2022-12-16 10:51:35 | [Mutex] isItemNotified: published:item:notifieditem-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00"
}

2022-12-16 10:51:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00"
}

2022-12-16 10:51:35 | [Mutex] received everything.

2022-12-16 10:51:35 | [Mutex] isItemNotified: retracted:item:notifieditem-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00"
}

2022-12-16 10:51:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "item-id": "item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00",
    "item": [
        "<item id=\"item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00\"><test>item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00</test></item>"
    ]
}

2022-12-16 10:51:35 | [Mutex] notify: [retrieved:item:item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00:payload-matches:true:localhost]

2022-12-16 10:51:35 | [Mutex] received everything.

2022-12-16 10:51:35 | [Mutex] isItemNotified: retrieved:item:item-a4fdfcc1-e2ff-400a-9d36-8f613cf48a00:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-16 10:51:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
        "node-8d89f676-3aa1-42cd-930b-9f4cd4d77fda"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0b285025-cef0-473a-949a-37cae2b0b6b1)"
}

2022-12-16 10:51:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-12-16 10:51:34 |

2022-12-16 10:51:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:34 | ------------------------------------

2022-12-16 10:51:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 10:51:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.119s
2022-12-16 10:51:35 |

2022-12-16 10:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:51:35 | ------------------------------------

2022-12-16 10:51:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0b285025-cef0-473a-949a-37cae2b0b6b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 10:51:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}