Generated by TestNG with ReportNG at 22:51 PDT on Tuesday 30 August 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.844s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.074s
2022-08-30 23:06:36 |

2022-08-30 23:06:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:36 | ------------------------------------

2022-08-30 23:06:36 | [Mutex] waiting for: [configured:node:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:node-30dc952b-0f11-493e-9519-e9cd2e59f8ab]

2022-08-30 23:06:36 | [Mutex] received everything.

2022-08-30 23:06:36 | [Mutex] isItemNotified: configured:node:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:node-30dc952b-0f11-493e-9519-e9cd2e59f8ab :: true

2022-08-30 23:06:37 | [Mutex] waiting for: [received:nodes:1dd209ce-93df-42af-80c8-ebdefcf58e4b:localhost]

2022-08-30 23:06:37 | [Mutex] received everything.

2022-08-30 23:06:37 | [Mutex] isItemNotified: received:node:1dd209ce-93df-42af-80c8-ebdefcf58e4b:localhost:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6 :: true

2022-08-30 23:06:37 | [Mutex] waiting for: [received:nodes:97476de2-8de5-4efa-85fc-763f76157437:localhost]

2022-08-30 23:06:37 | [Mutex] waiting for: [received:nodes:97476de2-8de5-4efa-85fc-763f76157437:localhost]

2022-08-30 23:06:37 | [Mutex] waiting for: [received:nodes:97476de2-8de5-4efa-85fc-763f76157437:localhost]

2022-08-30 23:06:37 | [Mutex] received everything.

2022-08-30 23:06:37 | [Mutex] isItemNotified: received:node:97476de2-8de5-4efa-85fc-763f76157437:localhost:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6 :: false

createNodes 1.808s
2022-08-30 23:06:34 |

2022-08-30 23:06:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:34 | ------------------------------------

2022-08-30 23:06:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "pubsub#title": "Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6"
}

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

2022-08-30 23:06:35 | [Mutex] waiting for: [received:nodes:f2d67a4c-a28e-4552-9a84-8f0da9ade099:localhost]

2022-08-30 23:06:35 | [Mutex] received everything.

2022-08-30 23:06:35 | [Mutex] isItemNotified: received:node:f2d67a4c-a28e-4552-9a84-8f0da9ade099:localhost:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6 :: true

createSubnodes 1.022s
2022-08-30 23:06:35 |

2022-08-30 23:06:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:35 | ------------------------------------

2022-08-30 23:06:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-30dc952b-0f11-493e-9519-e9cd2e59f8ab",
    "pubsub#title": "Node 30dc952b-0f11-493e-9519-e9cd2e59f8ab"
}

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

2022-08-30 23:06:36 | [Mutex] waiting for: [received:nodes:fac7e7ac-d4fe-40b6-864e-b9213bf4bb73:localhost]

2022-08-30 23:06:36 | [Mutex] received everything.

2022-08-30 23:06:36 | [Mutex] isItemNotified: received:node:fac7e7ac-d4fe-40b6-864e-b9213bf4bb73:localhost:node-30dc952b-0f11-493e-9519-e9cd2e59f8ab:Node 30dc952b-0f11-493e-9519-e9cd2e59f8ab :: true

deleteNodes 1.017s
2022-08-30 23:06:41 |

2022-08-30 23:06:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:41 | ------------------------------------

2022-08-30 23:06:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-30dc952b-0f11-493e-9519-e9cd2e59f8ab"
}

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

2022-08-30 23:06:42 | [Mutex] waiting for: [received:nodes:e8f7bfe1-1339-4a27-a5d4-db5da6ef4431:localhost]

2022-08-30 23:06:42 | [Mutex] waiting for: [received:nodes:e8f7bfe1-1339-4a27-a5d4-db5da6ef4431:localhost]

2022-08-30 23:06:42 | [Mutex] received everything.

2022-08-30 23:06:42 | [Mutex] isItemNotified: received:node:e8f7bfe1-1339-4a27-a5d4-db5da6ef4431:localhost:node-30dc952b-0f11-493e-9519-e9cd2e59f8ab:Node 30dc952b-0f11-493e-9519-e9cd2e59f8ab :: false

deleteSubnodes 1.028s
2022-08-30 23:06:40 |

2022-08-30 23:06:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:40 | ------------------------------------

2022-08-30 23:06:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6"
}

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

2022-08-30 23:06:41 | [Mutex] waiting for: [received:nodes:afeb686a-c7df-4055-8246-3e6aa546149e:localhost]

2022-08-30 23:06:41 | [Mutex] received everything.

2022-08-30 23:06:41 | [Mutex] isItemNotified: received:node:afeb686a-c7df-4055-8246-3e6aa546149e:localhost:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6 :: false

2022-08-30 23:06:41 | [Mutex] waiting for: [received:nodes:69d6ff85-93d4-4bd5-a9e8-55cb65cf4939:localhost]

2022-08-30 23:06:41 | [Mutex] received everything.

2022-08-30 23:06:41 | [Mutex] isItemNotified: received:node:69d6ff85-93d4-4bd5-a9e8-55cb65cf4939:localhost:node-3953fae0-6e33-40ef-8dbb-21f12f410aa6:Node 3953fae0-6e33-40ef-8dbb-21f12f410aa6 :: false

publishItemsToNodes 0.065s
2022-08-30 23:06:38 |

2022-08-30 23:06:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:38 | ------------------------------------

2022-08-30 23:06:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "entry": "<test>item-77770187-76ad-4a2b-8036-32dbcc30a9fc</test>",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc"
}

2022-08-30 23:06:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc"
}

2022-08-30 23:06:38 | [Mutex] waiting for: [published:item:notifieditem-77770187-76ad-4a2b-8036-32dbcc30a9fc:admin@test-domain.com]

2022-08-30 23:06:39 | [Mutex] received everything.

2022-08-30 23:06:39 | [Mutex] isItemNotified: published:item:notifieditem-77770187-76ad-4a2b-8036-32dbcc30a9fc:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-30 23:06:39 |

2022-08-30 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:39 | ------------------------------------

2022-08-30 23:06:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc"
}

2022-08-30 23:06:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc"
}

2022-08-30 23:06:39 | [Mutex] received everything.

2022-08-30 23:06:39 | [Mutex] isItemNotified: retracted:item:notifieditem-77770187-76ad-4a2b-8036-32dbcc30a9fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2022-08-30 23:06:39 |

2022-08-30 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:39 | ------------------------------------

2022-08-30 23:06:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc"
}

2022-08-30 23:06:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "item-id": "item-77770187-76ad-4a2b-8036-32dbcc30a9fc",
    "item": [
        "<item id=\"item-77770187-76ad-4a2b-8036-32dbcc30a9fc\"><test>item-77770187-76ad-4a2b-8036-32dbcc30a9fc</test></item>"
    ]
}

2022-08-30 23:06:39 | [Mutex] notify: [retrieved:item:item-77770187-76ad-4a2b-8036-32dbcc30a9fc:payload-matches:true:localhost]

2022-08-30 23:06:39 | [Mutex] received everything.

2022-08-30 23:06:39 | [Mutex] isItemNotified: retrieved:item:item-77770187-76ad-4a2b-8036-32dbcc30a9fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2022-08-30 23:06:39 |

2022-08-30 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:39 | ------------------------------------

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

2022-08-30 23:06:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-30dc952b-0f11-493e-9519-e9cd2e59f8ab",
        "test",
        "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-30 23:06:39 |

2022-08-30 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:39 | ------------------------------------

2022-08-30 23:06:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3953fae0-6e33-40ef-8dbb-21f12f410aa6)"
}

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

subscribeNodes 1.009s
2022-08-30 23:06:37 |

2022-08-30 23:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:37 | ------------------------------------

2022-08-30 23:06:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-08-30 23:06:39 |

2022-08-30 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:06:39 | ------------------------------------

2022-08-30 23:06:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3953fae0-6e33-40ef-8dbb-21f12f410aa6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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