Generated by TestNG with ReportNG at 22:47 PDT on Saturday 13 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.777s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2022-08-13 23:02:48 |

2022-08-13 23:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:48 | ------------------------------------

2022-08-13 23:02:48 | [Mutex] waiting for: [configured:node:node-03521013-37fe-43ae-a674-8c6ef01d7faa:node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08]

2022-08-13 23:02:48 | [Mutex] received everything.

2022-08-13 23:02:48 | [Mutex] isItemNotified: configured:node:node-03521013-37fe-43ae-a674-8c6ef01d7faa:node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08 :: true

2022-08-13 23:02:49 | [Mutex] waiting for: [received:nodes:bbe796cf-cf9a-4ef4-85af-83a06a14c5a8:localhost]

2022-08-13 23:02:49 | [Mutex] received everything.

2022-08-13 23:02:49 | [Mutex] isItemNotified: received:node:bbe796cf-cf9a-4ef4-85af-83a06a14c5a8:localhost:node-03521013-37fe-43ae-a674-8c6ef01d7faa:Node 03521013-37fe-43ae-a674-8c6ef01d7faa :: true

2022-08-13 23:02:49 | [Mutex] waiting for: [received:nodes:56383023-1c16-4ef1-a2d0-6f2f85b5dba2:localhost]

2022-08-13 23:02:49 | [Mutex] waiting for: [received:nodes:56383023-1c16-4ef1-a2d0-6f2f85b5dba2:localhost]

2022-08-13 23:02:49 | [Mutex] received everything.

2022-08-13 23:02:49 | [Mutex] isItemNotified: received:node:56383023-1c16-4ef1-a2d0-6f2f85b5dba2:localhost:node-03521013-37fe-43ae-a674-8c6ef01d7faa:Node 03521013-37fe-43ae-a674-8c6ef01d7faa :: false

createNodes 1.596s
2022-08-13 23:02:46 |

2022-08-13 23:02:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:46 | ------------------------------------

2022-08-13 23:02:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "pubsub#title": "Node 03521013-37fe-43ae-a674-8c6ef01d7faa"
}

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

2022-08-13 23:02:47 | [Mutex] waiting for: [received:nodes:1d94dcb7-92d3-4fc3-b8ad-9d040ecc9eec:localhost]

2022-08-13 23:02:47 | [Mutex] received everything.

2022-08-13 23:02:47 | [Mutex] isItemNotified: received:node:1d94dcb7-92d3-4fc3-b8ad-9d040ecc9eec:localhost:node-03521013-37fe-43ae-a674-8c6ef01d7faa:Node 03521013-37fe-43ae-a674-8c6ef01d7faa :: true

createSubnodes 1.021s
2022-08-13 23:02:47 |

2022-08-13 23:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:47 | ------------------------------------

2022-08-13 23:02:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08",
    "pubsub#title": "Node f81adbfb-c7a6-46d1-a76d-28a8d8a69e08"
}

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

2022-08-13 23:02:48 | [Mutex] waiting for: [received:nodes:ff60c12d-8c4d-4794-ab00-5161daa5edff:localhost]

2022-08-13 23:02:48 | [Mutex] received everything.

2022-08-13 23:02:48 | [Mutex] isItemNotified: received:node:ff60c12d-8c4d-4794-ab00-5161daa5edff:localhost:node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08:Node f81adbfb-c7a6-46d1-a76d-28a8d8a69e08 :: true

deleteNodes 1.018s
2022-08-13 23:02:53 |

2022-08-13 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:53 | ------------------------------------

2022-08-13 23:02:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08"
}

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

2022-08-13 23:02:54 | [Mutex] waiting for: [received:nodes:ca5c5dc4-2c56-4fb1-8f72-34e6a9485130:localhost]

2022-08-13 23:02:54 | [Mutex] received everything.

2022-08-13 23:02:54 | [Mutex] isItemNotified: received:node:ca5c5dc4-2c56-4fb1-8f72-34e6a9485130:localhost:node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08:Node f81adbfb-c7a6-46d1-a76d-28a8d8a69e08 :: false

deleteSubnodes 1.037s
2022-08-13 23:02:52 |

2022-08-13 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:52 | ------------------------------------

2022-08-13 23:02:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa"
}

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

2022-08-13 23:02:53 | [Mutex] waiting for: [received:nodes:1daea69f-5105-4f68-85c9-da2237149897:localhost]

2022-08-13 23:02:53 | [Mutex] received everything.

2022-08-13 23:02:53 | [Mutex] isItemNotified: received:node:1daea69f-5105-4f68-85c9-da2237149897:localhost:node-03521013-37fe-43ae-a674-8c6ef01d7faa:Node 03521013-37fe-43ae-a674-8c6ef01d7faa :: false

2022-08-13 23:02:53 | [Mutex] waiting for: [received:nodes:1fa62e93-fd3f-4d43-bcf7-d54be860bdb9:localhost]

2022-08-13 23:02:53 | [Mutex] received everything.

2022-08-13 23:02:53 | [Mutex] isItemNotified: received:node:1fa62e93-fd3f-4d43-bcf7-d54be860bdb9:localhost:node-03521013-37fe-43ae-a674-8c6ef01d7faa:Node 03521013-37fe-43ae-a674-8c6ef01d7faa :: false

publishItemsToNodes 0.055s
2022-08-13 23:02:50 |

2022-08-13 23:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:50 | ------------------------------------

2022-08-13 23:02:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "entry": "<test>item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4</test>",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4"
}

2022-08-13 23:02:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4"
}

2022-08-13 23:02:50 | [Mutex] waiting for: [published:item:notifieditem-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4:admin@test-domain.com]

2022-08-13 23:02:50 | [Mutex] received everything.

2022-08-13 23:02:50 | [Mutex] isItemNotified: published:item:notifieditem-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2022-08-13 23:02:51 |

2022-08-13 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:51 | ------------------------------------

2022-08-13 23:02:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4"
}

2022-08-13 23:02:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4"
}

2022-08-13 23:02:51 | [Mutex] received everything.

2022-08-13 23:02:51 | [Mutex] isItemNotified: retracted:item:notifieditem-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2022-08-13 23:02:50 |

2022-08-13 23:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:50 | ------------------------------------

2022-08-13 23:02:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4"
}

2022-08-13 23:02:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "item-id": "item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4",
    "item": [
        "<item id=\"item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4\"><test>item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4</test></item>"
    ]
}

2022-08-13 23:02:51 | [Mutex] notify: [retrieved:item:item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4:payload-matches:true:localhost]

2022-08-13 23:02:51 | [Mutex] received everything.

2022-08-13 23:02:51 | [Mutex] isItemNotified: retrieved:item:item-4f41d335-4b4b-4824-b9e7-f3b7a0ba6ba4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-08-13 23:02:51 |

2022-08-13 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:51 | ------------------------------------

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

2022-08-13 23:02:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
        "node-f81adbfb-c7a6-46d1-a76d-28a8d8a69e08"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-08-13 23:02:51 |

2022-08-13 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:51 | ------------------------------------

2022-08-13 23:02:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-03521013-37fe-43ae-a674-8c6ef01d7faa)"
}

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

subscribeNodes 1.011s
2022-08-13 23:02:49 |

2022-08-13 23:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:49 | ------------------------------------

2022-08-13 23:02:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.066s
2022-08-13 23:02:51 |

2022-08-13 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 23:02:51 | ------------------------------------

2022-08-13 23:02:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-03521013-37fe-43ae-a674-8c6ef01d7faa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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