Generated by TestNG with ReportNG at 21:57 PST on Monday 15 November 2021
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / 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.916s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.147s
2021-11-15 22:12:20 |

2021-11-15 22:12:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:20 | ------------------------------------

2021-11-15 22:12:20 | [Mutex] waiting for: [configured:node:node-6ced03a4-866c-4273-89de-deb3271aa49e:node-fcd91dbe-840e-41c9-b891-cf0b5300ed05]

2021-11-15 22:12:21 | [Mutex] received everything.

2021-11-15 22:12:21 | [Mutex] isItemNotified: configured:node:node-6ced03a4-866c-4273-89de-deb3271aa49e:node-fcd91dbe-840e-41c9-b891-cf0b5300ed05 :: true

2021-11-15 22:12:22 | [Mutex] waiting for: [received:nodes:3271ea73-8c30-4507-845b-50c3699084f7:localhost]

2021-11-15 22:12:22 | [Mutex] received everything.

2021-11-15 22:12:22 | [Mutex] isItemNotified: received:node:3271ea73-8c30-4507-845b-50c3699084f7:localhost:node-6ced03a4-866c-4273-89de-deb3271aa49e:Node 6ced03a4-866c-4273-89de-deb3271aa49e :: true

2021-11-15 22:12:22 | [Mutex] waiting for: [received:nodes:b533df8b-4ebe-4f3a-9311-2f7e7b7a8b98:localhost]

2021-11-15 22:12:22 | [Mutex] waiting for: [received:nodes:b533df8b-4ebe-4f3a-9311-2f7e7b7a8b98:localhost]

2021-11-15 22:12:22 | [Mutex] received everything.

2021-11-15 22:12:22 | [Mutex] isItemNotified: received:node:b533df8b-4ebe-4f3a-9311-2f7e7b7a8b98:localhost:node-6ced03a4-866c-4273-89de-deb3271aa49e:Node 6ced03a4-866c-4273-89de-deb3271aa49e :: false

createNodes 1.705s
2021-11-15 22:12:18 |

2021-11-15 22:12:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:18 | ------------------------------------

2021-11-15 22:12:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "pubsub#title": "Node 6ced03a4-866c-4273-89de-deb3271aa49e"
}

2021-11-15 22:12:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-15 22:12:19 | [Mutex] waiting for: [received:nodes:798fbe36-8169-4b72-b4ce-9f8a88446b8a:localhost]

2021-11-15 22:12:19 | [Mutex] received everything.

2021-11-15 22:12:19 | [Mutex] isItemNotified: received:node:798fbe36-8169-4b72-b4ce-9f8a88446b8a:localhost:node-6ced03a4-866c-4273-89de-deb3271aa49e:Node 6ced03a4-866c-4273-89de-deb3271aa49e :: true

createSubnodes 1.032s
2021-11-15 22:12:19 |

2021-11-15 22:12:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:19 | ------------------------------------

2021-11-15 22:12:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fcd91dbe-840e-41c9-b891-cf0b5300ed05",
    "pubsub#title": "Node fcd91dbe-840e-41c9-b891-cf0b5300ed05"
}

2021-11-15 22:12:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-15 22:12:20 | [Mutex] waiting for: [received:nodes:f4933675-811e-435d-9c11-9272f25eb1fb:localhost]

2021-11-15 22:12:20 | [Mutex] received everything.

2021-11-15 22:12:20 | [Mutex] isItemNotified: received:node:f4933675-811e-435d-9c11-9272f25eb1fb:localhost:node-fcd91dbe-840e-41c9-b891-cf0b5300ed05:Node fcd91dbe-840e-41c9-b891-cf0b5300ed05 :: true

deleteNodes 1.023s
2021-11-15 22:12:25 |

2021-11-15 22:12:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:25 | ------------------------------------

2021-11-15 22:12:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fcd91dbe-840e-41c9-b891-cf0b5300ed05"
}

2021-11-15 22:12:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-15 22:12:26 | [Mutex] waiting for: [received:nodes:08c96fe3-6cc5-4754-820a-27e587aad7a2:localhost]

2021-11-15 22:12:26 | [Mutex] received everything.

2021-11-15 22:12:26 | [Mutex] isItemNotified: received:node:08c96fe3-6cc5-4754-820a-27e587aad7a2:localhost:node-fcd91dbe-840e-41c9-b891-cf0b5300ed05:Node fcd91dbe-840e-41c9-b891-cf0b5300ed05 :: false

deleteSubnodes 1.028s
2021-11-15 22:12:24 |

2021-11-15 22:12:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:24 | ------------------------------------

2021-11-15 22:12:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e"
}

2021-11-15 22:12:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-15 22:12:25 | [Mutex] waiting for: [received:nodes:04b82323-689e-4355-9fbb-d1ce4edc1880:localhost]

2021-11-15 22:12:25 | [Mutex] received everything.

2021-11-15 22:12:25 | [Mutex] isItemNotified: received:node:04b82323-689e-4355-9fbb-d1ce4edc1880:localhost:node-6ced03a4-866c-4273-89de-deb3271aa49e:Node 6ced03a4-866c-4273-89de-deb3271aa49e :: false

2021-11-15 22:12:25 | [Mutex] waiting for: [received:nodes:528428fe-e2ed-4b4a-bb62-6fcde564317b:localhost]

2021-11-15 22:12:25 | [Mutex] received everything.

2021-11-15 22:12:25 | [Mutex] isItemNotified: received:node:528428fe-e2ed-4b4a-bb62-6fcde564317b:localhost:node-6ced03a4-866c-4273-89de-deb3271aa49e:Node 6ced03a4-866c-4273-89de-deb3271aa49e :: false

publishItemsToNodes 0.054s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "entry": "<test>item-695709a9-de5f-4fd2-a655-ac11b0a89265</test>",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265"
}

2021-11-15 22:12:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265"
}

2021-11-15 22:12:23 | [Mutex] waiting for: [published:item:notifieditem-695709a9-de5f-4fd2-a655-ac11b0a89265:admin@test-domain.com]

2021-11-15 22:12:23 | [Mutex] received everything.

2021-11-15 22:12:23 | [Mutex] isItemNotified: published:item:notifieditem-695709a9-de5f-4fd2-a655-ac11b0a89265:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265"
}

2021-11-15 22:12:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265"
}

2021-11-15 22:12:23 | [Mutex] received everything.

2021-11-15 22:12:23 | [Mutex] isItemNotified: retracted:item:notifieditem-695709a9-de5f-4fd2-a655-ac11b0a89265:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265"
}

2021-11-15 22:12:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "item-id": "item-695709a9-de5f-4fd2-a655-ac11b0a89265",
    "item": [
        "<item id=\"item-695709a9-de5f-4fd2-a655-ac11b0a89265\"><test>item-695709a9-de5f-4fd2-a655-ac11b0a89265</test></item>"
    ]
}

2021-11-15 22:12:23 | [Mutex] notify: [retrieved:item:item-695709a9-de5f-4fd2-a655-ac11b0a89265:payload-matches:true:localhost]

2021-11-15 22:12:23 | [Mutex] received everything.

2021-11-15 22:12:23 | [Mutex] isItemNotified: retrieved:item:item-695709a9-de5f-4fd2-a655-ac11b0a89265:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-11-15 22:12:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fcd91dbe-840e-41c9-b891-cf0b5300ed05",
        "node-6ced03a4-866c-4273-89de-deb3271aa49e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6ced03a4-866c-4273-89de-deb3271aa49e)"
}

2021-11-15 22:12:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-11-15 22:12:22 |

2021-11-15 22:12:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:22 | ------------------------------------

2021-11-15 22:12:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-15 22:12:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-11-15 22:12:23 |

2021-11-15 22:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-15 22:12:23 | ------------------------------------

2021-11-15 22:12:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6ced03a4-866c-4273-89de-deb3271aa49e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-15 22:12:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}