Generated by TestNG with ReportNG at 22:30 PDT on Tuesday 21 June 2022
root@61c39d2ed70d / 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.708s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-06-21 22:45:11 |

2022-06-21 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:11 | ------------------------------------

2022-06-21 22:45:11 | [Mutex] waiting for: [configured:node:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:node-437b6c0c-505c-4214-8674-539550966aa6]

2022-06-21 22:45:11 | [Mutex] received everything.

2022-06-21 22:45:11 | [Mutex] isItemNotified: configured:node:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:node-437b6c0c-505c-4214-8674-539550966aa6 :: true

2022-06-21 22:45:12 | [Mutex] waiting for: [received:nodes:d32d90ca-401e-4df8-a73b-a1a1ab23ab40:localhost]

2022-06-21 22:45:12 | [Mutex] received everything.

2022-06-21 22:45:12 | [Mutex] isItemNotified: received:node:d32d90ca-401e-4df8-a73b-a1a1ab23ab40:localhost:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5 :: true

2022-06-21 22:45:12 | [Mutex] waiting for: [received:nodes:70255471-1ae3-4f8e-9fe3-2a4dba2bb75f:localhost]

2022-06-21 22:45:12 | [Mutex] received everything.

2022-06-21 22:45:12 | [Mutex] isItemNotified: received:node:70255471-1ae3-4f8e-9fe3-2a4dba2bb75f:localhost:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5 :: false

createNodes 1.622s
2022-06-21 22:45:09 |

2022-06-21 22:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:09 | ------------------------------------

2022-06-21 22:45:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "pubsub#title": "Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5"
}

2022-06-21 22:45:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:45:10 | [Mutex] waiting for: [received:nodes:660d591d-8203-4aef-9441-f8067b85ff77:localhost]

2022-06-21 22:45:10 | [Mutex] waiting for: [received:nodes:660d591d-8203-4aef-9441-f8067b85ff77:localhost]

2022-06-21 22:45:10 | [Mutex] received everything.

2022-06-21 22:45:10 | [Mutex] isItemNotified: received:node:660d591d-8203-4aef-9441-f8067b85ff77:localhost:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5 :: true

createSubnodes 1.024s
2022-06-21 22:45:10 |

2022-06-21 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:10 | ------------------------------------

2022-06-21 22:45:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-437b6c0c-505c-4214-8674-539550966aa6",
    "pubsub#title": "Node 437b6c0c-505c-4214-8674-539550966aa6"
}

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

2022-06-21 22:45:11 | [Mutex] waiting for: [received:nodes:e1d056cb-79b3-4366-950b-b8188214b433:localhost]

2022-06-21 22:45:11 | [Mutex] received everything.

2022-06-21 22:45:11 | [Mutex] isItemNotified: received:node:e1d056cb-79b3-4366-950b-b8188214b433:localhost:node-437b6c0c-505c-4214-8674-539550966aa6:Node 437b6c0c-505c-4214-8674-539550966aa6 :: true

deleteNodes 1.022s
2022-06-21 22:45:16 |

2022-06-21 22:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:16 | ------------------------------------

2022-06-21 22:45:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-437b6c0c-505c-4214-8674-539550966aa6"
}

2022-06-21 22:45:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:45:17 | [Mutex] waiting for: [received:nodes:41a2dbd5-6e83-4bb3-8dd2-f78ef0429770:localhost]

2022-06-21 22:45:17 | [Mutex] waiting for: [received:nodes:41a2dbd5-6e83-4bb3-8dd2-f78ef0429770:localhost]

2022-06-21 22:45:17 | [Mutex] received everything.

2022-06-21 22:45:17 | [Mutex] isItemNotified: received:node:41a2dbd5-6e83-4bb3-8dd2-f78ef0429770:localhost:node-437b6c0c-505c-4214-8674-539550966aa6:Node 437b6c0c-505c-4214-8674-539550966aa6 :: false

deleteSubnodes 1.023s
2022-06-21 22:45:15 |

2022-06-21 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:15 | ------------------------------------

2022-06-21 22:45:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5"
}

2022-06-21 22:45:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:45:16 | [Mutex] waiting for: [received:nodes:9b35e657-29a5-4e8f-bf3c-eedcc13c7040:localhost]

2022-06-21 22:45:16 | [Mutex] received everything.

2022-06-21 22:45:16 | [Mutex] isItemNotified: received:node:9b35e657-29a5-4e8f-bf3c-eedcc13c7040:localhost:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5 :: false

2022-06-21 22:45:16 | [Mutex] waiting for: [received:nodes:6756e08a-5f75-4616-a5e3-bcce5dcd60ce:localhost]

2022-06-21 22:45:16 | [Mutex] received everything.

2022-06-21 22:45:16 | [Mutex] isItemNotified: received:node:6756e08a-5f75-4616-a5e3-bcce5dcd60ce:localhost:node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5:Node 4bbe89b0-0222-4b28-a568-7a1b3354a5a5 :: false

publishItemsToNodes 0.057s
2022-06-21 22:45:13 |

2022-06-21 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:13 | ------------------------------------

2022-06-21 22:45:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "entry": "<test>item-85362ee8-bfaf-435e-854d-d0120d2eeb00</test>",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00"
}

2022-06-21 22:45:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00"
}

2022-06-21 22:45:13 | [Mutex] waiting for: [published:item:notifieditem-85362ee8-bfaf-435e-854d-d0120d2eeb00:admin@test-domain.com]

2022-06-21 22:45:13 | [Mutex] received everything.

2022-06-21 22:45:13 | [Mutex] isItemNotified: published:item:notifieditem-85362ee8-bfaf-435e-854d-d0120d2eeb00:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-21 22:45:14 |

2022-06-21 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:14 | ------------------------------------

2022-06-21 22:45:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00"
}

2022-06-21 22:45:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00"
}

2022-06-21 22:45:14 | [Mutex] received everything.

2022-06-21 22:45:14 | [Mutex] isItemNotified: retracted:item:notifieditem-85362ee8-bfaf-435e-854d-d0120d2eeb00:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-06-21 22:45:13 |

2022-06-21 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:13 | ------------------------------------

2022-06-21 22:45:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00"
}

2022-06-21 22:45:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "item-id": "item-85362ee8-bfaf-435e-854d-d0120d2eeb00",
    "item": [
        "<item id=\"item-85362ee8-bfaf-435e-854d-d0120d2eeb00\"><test>item-85362ee8-bfaf-435e-854d-d0120d2eeb00</test></item>"
    ]
}

2022-06-21 22:45:13 | [Mutex] notify: [retrieved:item:item-85362ee8-bfaf-435e-854d-d0120d2eeb00:payload-matches:true:localhost]

2022-06-21 22:45:13 | [Mutex] received everything.

2022-06-21 22:45:13 | [Mutex] isItemNotified: retrieved:item:item-85362ee8-bfaf-435e-854d-d0120d2eeb00:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.103s
2022-06-21 22:45:13 |

2022-06-21 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:13 | ------------------------------------

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

2022-06-21 22:45:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-437b6c0c-505c-4214-8674-539550966aa6",
        "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-21 22:45:14 |

2022-06-21 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:14 | ------------------------------------

2022-06-21 22:45:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5)"
}

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

subscribeNodes 1.016s
2022-06-21 22:45:12 |

2022-06-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:12 | ------------------------------------

2022-06-21 22:45:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 22:45:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-06-21 22:45:14 |

2022-06-21 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:45:14 | ------------------------------------

2022-06-21 22:45:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4bbe89b0-0222-4b28-a568-7a1b3354a5a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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