Generated by TestNG with ReportNG at 22:49 PDT on Tuesday 14 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.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.104s
2022-06-14 23:03:50 |

2022-06-14 23:03:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:50 | ------------------------------------

2022-06-14 23:03:50 | [Mutex] waiting for: [configured:node:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e]

2022-06-14 23:03:50 | [Mutex] received everything.

2022-06-14 23:03:50 | [Mutex] isItemNotified: configured:node:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e :: true

2022-06-14 23:03:51 | [Mutex] waiting for: [received:nodes:f89a1013-ae73-4343-8bea-8b109bbcc5ad:localhost]

2022-06-14 23:03:51 | [Mutex] received everything.

2022-06-14 23:03:51 | [Mutex] isItemNotified: received:node:f89a1013-ae73-4343-8bea-8b109bbcc5ad:localhost:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2 :: true

2022-06-14 23:03:51 | [Mutex] waiting for: [received:nodes:6e06a4d6-ccc3-4e87-89e1-4dfa22824cf6:localhost]

2022-06-14 23:03:51 | [Mutex] received everything.

2022-06-14 23:03:51 | [Mutex] isItemNotified: received:node:6e06a4d6-ccc3-4e87-89e1-4dfa22824cf6:localhost:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2 :: false

createNodes 1.598s
2022-06-14 23:03:47 |

2022-06-14 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:47 | ------------------------------------

2022-06-14 23:03:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "pubsub#title": "Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2"
}

2022-06-14 23:03:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 23:03:49 | [Mutex] waiting for: [received:nodes:790cc836-a56b-4eb9-b5c8-a983ed5cb38e:localhost]

2022-06-14 23:03:49 | [Mutex] received everything.

2022-06-14 23:03:49 | [Mutex] isItemNotified: received:node:790cc836-a56b-4eb9-b5c8-a983ed5cb38e:localhost:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2 :: true

createSubnodes 1.023s
2022-06-14 23:03:49 |

2022-06-14 23:03:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:49 | ------------------------------------

2022-06-14 23:03:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e",
    "pubsub#title": "Node fa5490b6-3ff5-4a34-94c9-78e0d14f410e"
}

2022-06-14 23:03:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 23:03:50 | [Mutex] waiting for: [received:nodes:26a7aefa-2498-4121-ab99-9c4007566dea:localhost]

2022-06-14 23:03:50 | [Mutex] received everything.

2022-06-14 23:03:50 | [Mutex] isItemNotified: received:node:26a7aefa-2498-4121-ab99-9c4007566dea:localhost:node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e:Node fa5490b6-3ff5-4a34-94c9-78e0d14f410e :: true

deleteNodes 1.017s
2022-06-14 23:03:54 |

2022-06-14 23:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:54 | ------------------------------------

2022-06-14 23:03:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e"
}

2022-06-14 23:03:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 23:03:55 | [Mutex] waiting for: [received:nodes:ef1dd27b-9c81-4886-a475-fef2e7f97a4c:localhost]

2022-06-14 23:03:55 | [Mutex] waiting for: [received:nodes:ef1dd27b-9c81-4886-a475-fef2e7f97a4c:localhost]

2022-06-14 23:03:55 | [Mutex] waiting for: [received:nodes:ef1dd27b-9c81-4886-a475-fef2e7f97a4c:localhost]

2022-06-14 23:03:55 | [Mutex] received everything.

2022-06-14 23:03:55 | [Mutex] isItemNotified: received:node:ef1dd27b-9c81-4886-a475-fef2e7f97a4c:localhost:node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e:Node fa5490b6-3ff5-4a34-94c9-78e0d14f410e :: false

deleteSubnodes 1.027s
2022-06-14 23:03:53 |

2022-06-14 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:53 | ------------------------------------

2022-06-14 23:03:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2"
}

2022-06-14 23:03:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 23:03:54 | [Mutex] waiting for: [received:nodes:16d6355d-b9c7-4dc3-b535-f5dc2f2b4506:localhost]

2022-06-14 23:03:54 | [Mutex] received everything.

2022-06-14 23:03:54 | [Mutex] isItemNotified: received:node:16d6355d-b9c7-4dc3-b535-f5dc2f2b4506:localhost:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2 :: false

2022-06-14 23:03:54 | [Mutex] waiting for: [received:nodes:01c94338-e6c7-4518-a7cb-11ed073fbf24:localhost]

2022-06-14 23:03:54 | [Mutex] received everything.

2022-06-14 23:03:54 | [Mutex] isItemNotified: received:node:01c94338-e6c7-4518-a7cb-11ed073fbf24:localhost:node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2:Node 4fa69b0d-293b-49f4-8531-8e03f10a1fc2 :: false

publishItemsToNodes 0.048s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "entry": "<test>item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362</test>",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362"
}

2022-06-14 23:03:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362"
}

2022-06-14 23:03:52 | [Mutex] waiting for: [published:item:notifieditem-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:admin@test-domain.com]

2022-06-14 23:03:52 | [Mutex] received everything.

2022-06-14 23:03:52 | [Mutex] isItemNotified: published:item:notifieditem-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362"
}

2022-06-14 23:03:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362"
}

2022-06-14 23:03:52 | [Mutex] waiting for: [retracted:item:notifieditem-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:admin@test-domain.com]

2022-06-14 23:03:52 | [Mutex] received everything.

2022-06-14 23:03:52 | [Mutex] isItemNotified: retracted:item:notifieditem-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:admin@test-domain.com :: true

retrieveItemsFromNodes 0.040s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362"
}

2022-06-14 23:03:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "item-id": "item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362",
    "item": [
        "<item id=\"item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362\"><test>item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362</test></item>"
    ]
}

2022-06-14 23:03:52 | [Mutex] notify: [retrieved:item:item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:payload-matches:true:localhost]

2022-06-14 23:03:52 | [Mutex] received everything.

2022-06-14 23:03:52 | [Mutex] isItemNotified: retrieved:item:item-7ce94c22-f47c-4f2b-af3f-25ccb8ed8362:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-14 23:03:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
        "node-fa5490b6-3ff5-4a34-94c9-78e0d14f410e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2)"
}

2022-06-14 23:03:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-06-14 23:03:51 |

2022-06-14 23:03:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:51 | ------------------------------------

2022-06-14 23:03:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 23:03:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.085s
2022-06-14 23:03:52 |

2022-06-14 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 23:03:52 | ------------------------------------

2022-06-14 23:03:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4fa69b0d-293b-49f4-8531-8e03f10a1fc2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 23:03:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}