Generated by TestNG with ReportNG at 22:20 PDT on Thursday 08 September 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.625s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-09-08 22:35:12 |

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

2022-09-08 22:35:12 | ------------------------------------

2022-09-08 22:35:12 | [Mutex] waiting for: [configured:node:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:node-e696d955-32fa-4f28-ace0-2e72a654c079]

2022-09-08 22:35:12 | [Mutex] received everything.

2022-09-08 22:35:12 | [Mutex] isItemNotified: configured:node:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:node-e696d955-32fa-4f28-ace0-2e72a654c079 :: true

2022-09-08 22:35:13 | [Mutex] waiting for: [received:nodes:1c5e9842-be62-4e33-aef9-287099c41842:localhost]

2022-09-08 22:35:13 | [Mutex] received everything.

2022-09-08 22:35:13 | [Mutex] isItemNotified: received:node:1c5e9842-be62-4e33-aef9-287099c41842:localhost:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:Node aa278e2b-0704-4c71-a68d-926bbe2eff40 :: true

2022-09-08 22:35:13 | [Mutex] waiting for: [received:nodes:090a2092-3fe0-471c-b560-d67131846f96:localhost]

2022-09-08 22:35:13 | [Mutex] received everything.

2022-09-08 22:35:13 | [Mutex] isItemNotified: received:node:090a2092-3fe0-471c-b560-d67131846f96:localhost:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:Node aa278e2b-0704-4c71-a68d-926bbe2eff40 :: false

createNodes 1.604s
2022-09-08 22:35:10 |

2022-09-08 22:35:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:10 | ------------------------------------

2022-09-08 22:35:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "pubsub#title": "Node aa278e2b-0704-4c71-a68d-926bbe2eff40"
}

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

2022-09-08 22:35:11 | [Mutex] waiting for: [received:nodes:36429e12-981a-4f9f-a79d-f1de91e75a99:localhost]

2022-09-08 22:35:11 | [Mutex] received everything.

2022-09-08 22:35:11 | [Mutex] isItemNotified: received:node:36429e12-981a-4f9f-a79d-f1de91e75a99:localhost:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:Node aa278e2b-0704-4c71-a68d-926bbe2eff40 :: true

createSubnodes 1.021s
2022-09-08 22:35:11 |

2022-09-08 22:35:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:11 | ------------------------------------

2022-09-08 22:35:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e696d955-32fa-4f28-ace0-2e72a654c079",
    "pubsub#title": "Node e696d955-32fa-4f28-ace0-2e72a654c079"
}

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

2022-09-08 22:35:12 | [Mutex] waiting for: [received:nodes:574a0b46-3355-4665-b1eb-4fb9dab0c926:localhost]

2022-09-08 22:35:12 | [Mutex] waiting for: [received:nodes:574a0b46-3355-4665-b1eb-4fb9dab0c926:localhost]

2022-09-08 22:35:12 | [Mutex] received everything.

2022-09-08 22:35:12 | [Mutex] isItemNotified: received:node:574a0b46-3355-4665-b1eb-4fb9dab0c926:localhost:node-e696d955-32fa-4f28-ace0-2e72a654c079:Node e696d955-32fa-4f28-ace0-2e72a654c079 :: true

deleteNodes 1.022s
2022-09-08 22:35:17 |

2022-09-08 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:17 | ------------------------------------

2022-09-08 22:35:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e696d955-32fa-4f28-ace0-2e72a654c079"
}

2022-09-08 22:35:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-08 22:35:18 | [Mutex] waiting for: [received:nodes:53f6d92e-e911-4833-8bdb-b43eaf541adb:localhost]

2022-09-08 22:35:18 | [Mutex] waiting for: [received:nodes:53f6d92e-e911-4833-8bdb-b43eaf541adb:localhost]

2022-09-08 22:35:18 | [Mutex] received everything.

2022-09-08 22:35:18 | [Mutex] isItemNotified: received:node:53f6d92e-e911-4833-8bdb-b43eaf541adb:localhost:node-e696d955-32fa-4f28-ace0-2e72a654c079:Node e696d955-32fa-4f28-ace0-2e72a654c079 :: false

deleteSubnodes 1.024s
2022-09-08 22:35:16 |

2022-09-08 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:16 | ------------------------------------

2022-09-08 22:35:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40"
}

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

2022-09-08 22:35:17 | [Mutex] waiting for: [received:nodes:2a9c1f39-7415-4cf1-9711-6799765b5554:localhost]

2022-09-08 22:35:17 | [Mutex] waiting for: [received:nodes:2a9c1f39-7415-4cf1-9711-6799765b5554:localhost]

2022-09-08 22:35:17 | [Mutex] waiting for: [received:nodes:2a9c1f39-7415-4cf1-9711-6799765b5554:localhost]

2022-09-08 22:35:17 | [Mutex] received everything.

2022-09-08 22:35:17 | [Mutex] isItemNotified: received:node:2a9c1f39-7415-4cf1-9711-6799765b5554:localhost:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:Node aa278e2b-0704-4c71-a68d-926bbe2eff40 :: false

2022-09-08 22:35:17 | [Mutex] waiting for: [received:nodes:899ebf0e-5ef7-4847-9c25-14d4a65490ae:localhost]

2022-09-08 22:35:17 | [Mutex] received everything.

2022-09-08 22:35:17 | [Mutex] isItemNotified: received:node:899ebf0e-5ef7-4847-9c25-14d4a65490ae:localhost:node-aa278e2b-0704-4c71-a68d-926bbe2eff40:Node aa278e2b-0704-4c71-a68d-926bbe2eff40 :: false

publishItemsToNodes 0.042s
2022-09-08 22:35:14 |

2022-09-08 22:35:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:14 | ------------------------------------

2022-09-08 22:35:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "entry": "<test>item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07</test>",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07"
}

2022-09-08 22:35:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07"
}

2022-09-08 22:35:14 | [Mutex] waiting for: [published:item:notifieditem-fc6aa958-48a9-47e8-b1e5-b27229e0dd07:admin@test-domain.com]

2022-09-08 22:35:14 | [Mutex] received everything.

2022-09-08 22:35:14 | [Mutex] isItemNotified: published:item:notifieditem-fc6aa958-48a9-47e8-b1e5-b27229e0dd07:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2022-09-08 22:35:15 |

2022-09-08 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:15 | ------------------------------------

2022-09-08 22:35:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07"
}

2022-09-08 22:35:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07"
}

2022-09-08 22:35:15 | [Mutex] received everything.

2022-09-08 22:35:15 | [Mutex] isItemNotified: retracted:item:notifieditem-fc6aa958-48a9-47e8-b1e5-b27229e0dd07:admin@test-domain.com :: true

retrieveItemsFromNodes 0.104s
2022-09-08 22:35:14 |

2022-09-08 22:35:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:14 | ------------------------------------

2022-09-08 22:35:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07"
}

2022-09-08 22:35:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "item-id": "item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07",
    "item": [
        "<item id=\"item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07\"><test>item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07</test></item>"
    ]
}

2022-09-08 22:35:15 | [Mutex] notify: [retrieved:item:item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07:payload-matches:true:localhost]

2022-09-08 22:35:15 | [Mutex] received everything.

2022-09-08 22:35:15 | [Mutex] isItemNotified: retrieved:item:item-fc6aa958-48a9-47e8-b1e5-b27229e0dd07:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-09-08 22:35:15 |

2022-09-08 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:15 | ------------------------------------

2022-09-08 22:35:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-08 22:35:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e696d955-32fa-4f28-ace0-2e72a654c079",
        "node-aa278e2b-0704-4c71-a68d-926bbe2eff40"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-08 22:35:15 |

2022-09-08 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:15 | ------------------------------------

2022-09-08 22:35:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-aa278e2b-0704-4c71-a68d-926bbe2eff40)"
}

2022-09-08 22:35:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-09-08 22:35:13 |

2022-09-08 22:35:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:13 | ------------------------------------

2022-09-08 22:35:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.052s
2022-09-08 22:35:15 |

2022-09-08 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:15 | ------------------------------------

2022-09-08 22:35:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-aa278e2b-0704-4c71-a68d-926bbe2eff40",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-08 22:35:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}