Generated by TestNG with ReportNG at 21:47 PST on Wednesday 28 December 2022
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.565s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-12-28 22:02:34 |

2022-12-28 22:02:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:34 | ------------------------------------

2022-12-28 22:02:34 | [Mutex] waiting for: [configured:node:node-bb16024a-fed1-4c32-a276-3f7b90376410:node-62fe6807-34ec-4499-bdd1-5946c513e351]

2022-12-28 22:02:34 | [Mutex] received everything.

2022-12-28 22:02:34 | [Mutex] isItemNotified: configured:node:node-bb16024a-fed1-4c32-a276-3f7b90376410:node-62fe6807-34ec-4499-bdd1-5946c513e351 :: true

2022-12-28 22:02:35 | [Mutex] waiting for: [received:nodes:2825cac1-6853-4fcf-8581-9361f7e4c6c0:localhost]

2022-12-28 22:02:35 | [Mutex] received everything.

2022-12-28 22:02:35 | [Mutex] isItemNotified: received:node:2825cac1-6853-4fcf-8581-9361f7e4c6c0:localhost:node-bb16024a-fed1-4c32-a276-3f7b90376410:Node bb16024a-fed1-4c32-a276-3f7b90376410 :: true

2022-12-28 22:02:35 | [Mutex] waiting for: [received:nodes:2619c62f-f029-4c3a-b847-600e03b65bad:localhost]

2022-12-28 22:02:35 | [Mutex] received everything.

2022-12-28 22:02:35 | [Mutex] isItemNotified: received:node:2619c62f-f029-4c3a-b847-600e03b65bad:localhost:node-bb16024a-fed1-4c32-a276-3f7b90376410:Node bb16024a-fed1-4c32-a276-3f7b90376410 :: false

createNodes 1.548s
2022-12-28 22:02:32 |

2022-12-28 22:02:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:32 | ------------------------------------

2022-12-28 22:02:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "pubsub#title": "Node bb16024a-fed1-4c32-a276-3f7b90376410"
}

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

2022-12-28 22:02:33 | [Mutex] waiting for: [received:nodes:5be63644-2d27-4aea-b2d1-39aeffbaf1b5:localhost]

2022-12-28 22:02:33 | [Mutex] waiting for: [received:nodes:5be63644-2d27-4aea-b2d1-39aeffbaf1b5:localhost]

2022-12-28 22:02:33 | [Mutex] waiting for: [received:nodes:5be63644-2d27-4aea-b2d1-39aeffbaf1b5:localhost]

2022-12-28 22:02:33 | [Mutex] waiting for: [received:nodes:5be63644-2d27-4aea-b2d1-39aeffbaf1b5:localhost]

2022-12-28 22:02:33 | [Mutex] received everything.

2022-12-28 22:02:33 | [Mutex] isItemNotified: received:node:5be63644-2d27-4aea-b2d1-39aeffbaf1b5:localhost:node-bb16024a-fed1-4c32-a276-3f7b90376410:Node bb16024a-fed1-4c32-a276-3f7b90376410 :: true

createSubnodes 1.020s
2022-12-28 22:02:33 |

2022-12-28 22:02:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:33 | ------------------------------------

2022-12-28 22:02:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-62fe6807-34ec-4499-bdd1-5946c513e351",
    "pubsub#title": "Node 62fe6807-34ec-4499-bdd1-5946c513e351"
}

2022-12-28 22:02:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 22:02:34 | [Mutex] waiting for: [received:nodes:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost]

2022-12-28 22:02:34 | [Mutex] waiting for: [received:nodes:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost]

2022-12-28 22:02:34 | [Mutex] waiting for: [received:nodes:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost]

2022-12-28 22:02:34 | [Mutex] waiting for: [received:nodes:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost]

2022-12-28 22:02:34 | [Mutex] waiting for: [received:nodes:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost]

2022-12-28 22:02:34 | [Mutex] received everything.

2022-12-28 22:02:34 | [Mutex] isItemNotified: received:node:8ecd3aca-2eda-431a-95b8-517d2898cb6c:localhost:node-62fe6807-34ec-4499-bdd1-5946c513e351:Node 62fe6807-34ec-4499-bdd1-5946c513e351 :: true

deleteNodes 1.017s
2022-12-28 22:02:39 |

2022-12-28 22:02:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:39 | ------------------------------------

2022-12-28 22:02:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-62fe6807-34ec-4499-bdd1-5946c513e351"
}

2022-12-28 22:02:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 22:02:40 | [Mutex] waiting for: [received:nodes:fac88c27-228c-4c98-89ff-e4e69743e625:localhost]

2022-12-28 22:02:40 | [Mutex] waiting for: [received:nodes:fac88c27-228c-4c98-89ff-e4e69743e625:localhost]

2022-12-28 22:02:40 | [Mutex] waiting for: [received:nodes:fac88c27-228c-4c98-89ff-e4e69743e625:localhost]

2022-12-28 22:02:40 | [Mutex] received everything.

2022-12-28 22:02:40 | [Mutex] isItemNotified: received:node:fac88c27-228c-4c98-89ff-e4e69743e625:localhost:node-62fe6807-34ec-4499-bdd1-5946c513e351:Node 62fe6807-34ec-4499-bdd1-5946c513e351 :: false

deleteSubnodes 1.028s
2022-12-28 22:02:38 |

2022-12-28 22:02:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:38 | ------------------------------------

2022-12-28 22:02:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410"
}

2022-12-28 22:02:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 22:02:39 | [Mutex] waiting for: [received:nodes:8ec93518-1c0a-44f3-a8d6-f18d7eec94e8:localhost]

2022-12-28 22:02:39 | [Mutex] waiting for: [received:nodes:8ec93518-1c0a-44f3-a8d6-f18d7eec94e8:localhost]

2022-12-28 22:02:39 | [Mutex] waiting for: [received:nodes:8ec93518-1c0a-44f3-a8d6-f18d7eec94e8:localhost]

2022-12-28 22:02:39 | [Mutex] waiting for: [received:nodes:8ec93518-1c0a-44f3-a8d6-f18d7eec94e8:localhost]

2022-12-28 22:02:39 | [Mutex] received everything.

2022-12-28 22:02:39 | [Mutex] isItemNotified: received:node:8ec93518-1c0a-44f3-a8d6-f18d7eec94e8:localhost:node-bb16024a-fed1-4c32-a276-3f7b90376410:Node bb16024a-fed1-4c32-a276-3f7b90376410 :: false

2022-12-28 22:02:39 | [Mutex] waiting for: [received:nodes:209adf68-3aee-4b42-9f39-9490b1f09787:localhost]

2022-12-28 22:02:39 | [Mutex] received everything.

2022-12-28 22:02:39 | [Mutex] isItemNotified: received:node:209adf68-3aee-4b42-9f39-9490b1f09787:localhost:node-bb16024a-fed1-4c32-a276-3f7b90376410:Node bb16024a-fed1-4c32-a276-3f7b90376410 :: false

publishItemsToNodes 0.049s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "entry": "<test>item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e</test>",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e"
}

2022-12-28 22:02:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e"
}

2022-12-28 22:02:36 | [Mutex] waiting for: [published:item:notifieditem-aa5f8441-40c4-494c-a4f8-138d8a56bd8e:admin@test-domain.com]

2022-12-28 22:02:36 | [Mutex] received everything.

2022-12-28 22:02:36 | [Mutex] isItemNotified: published:item:notifieditem-aa5f8441-40c4-494c-a4f8-138d8a56bd8e:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e"
}

2022-12-28 22:02:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e"
}

2022-12-28 22:02:36 | [Mutex] received everything.

2022-12-28 22:02:36 | [Mutex] isItemNotified: retracted:item:notifieditem-aa5f8441-40c4-494c-a4f8-138d8a56bd8e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e"
}

2022-12-28 22:02:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "item-id": "item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e",
    "item": [
        "<item id=\"item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e\"><test>item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e</test></item>"
    ]
}

2022-12-28 22:02:36 | [Mutex] notify: [retrieved:item:item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e:payload-matches:true:localhost]

2022-12-28 22:02:36 | [Mutex] received everything.

2022-12-28 22:02:36 | [Mutex] isItemNotified: retrieved:item:item-aa5f8441-40c4-494c-a4f8-138d8a56bd8e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-28 22:02:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-62fe6807-34ec-4499-bdd1-5946c513e351",
        "test",
        "node-bb16024a-fed1-4c32-a276-3f7b90376410"
    ]
}

retrieveUserSubscriptionsWithRegex 0.049s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bb16024a-fed1-4c32-a276-3f7b90376410)"
}

2022-12-28 22:02:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-12-28 22:02:35 |

2022-12-28 22:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:35 | ------------------------------------

2022-12-28 22:02:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.122s
2022-12-28 22:02:36 |

2022-12-28 22:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 22:02:36 | ------------------------------------

2022-12-28 22:02:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bb16024a-fed1-4c32-a276-3f7b90376410",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-28 22:02:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}