Generated by TestNG with ReportNG at 21:31 PST on Monday 14 February 2022
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 : 9.023s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2022-02-14 21:46:59 |

2022-02-14 21:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:46:59 | ------------------------------------

2022-02-14 21:46:59 | [Mutex] waiting for: [configured:node:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:node-433b319b-2e36-40e7-9894-3ada400beed3]

2022-02-14 21:46:59 | [Mutex] received everything.

2022-02-14 21:46:59 | [Mutex] isItemNotified: configured:node:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:node-433b319b-2e36-40e7-9894-3ada400beed3 :: true

2022-02-14 21:47:00 | [Mutex] waiting for: [received:nodes:90e1a409-2da5-4f9b-a648-7ccbba03facc:localhost]

2022-02-14 21:47:00 | [Mutex] received everything.

2022-02-14 21:47:00 | [Mutex] isItemNotified: received:node:90e1a409-2da5-4f9b-a648-7ccbba03facc:localhost:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6 :: true

2022-02-14 21:47:00 | [Mutex] waiting for: [received:nodes:712f8b64-910a-4021-9d33-1e0cf48b3a27:localhost]

2022-02-14 21:47:00 | [Mutex] received everything.

2022-02-14 21:47:00 | [Mutex] isItemNotified: received:node:712f8b64-910a-4021-9d33-1e0cf48b3a27:localhost:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6 :: false

createNodes 1.637s
2022-02-14 21:46:56 |

2022-02-14 21:46:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:46:56 | ------------------------------------

2022-02-14 21:46:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "pubsub#title": "Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6"
}

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

2022-02-14 21:46:58 | [Mutex] waiting for: [received:nodes:43cb264e-9154-4a31-85cc-2067bcb14dda:localhost]

2022-02-14 21:46:58 | [Mutex] received everything.

2022-02-14 21:46:58 | [Mutex] isItemNotified: received:node:43cb264e-9154-4a31-85cc-2067bcb14dda:localhost:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6 :: true

createSubnodes 1.025s
2022-02-14 21:46:58 |

2022-02-14 21:46:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:46:58 | ------------------------------------

2022-02-14 21:46:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-433b319b-2e36-40e7-9894-3ada400beed3",
    "pubsub#title": "Node 433b319b-2e36-40e7-9894-3ada400beed3"
}

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

2022-02-14 21:46:59 | [Mutex] waiting for: [received:nodes:a92de78f-d7ca-4b7c-952c-e3a5cb7e119b:localhost]

2022-02-14 21:46:59 | [Mutex] received everything.

2022-02-14 21:46:59 | [Mutex] isItemNotified: received:node:a92de78f-d7ca-4b7c-952c-e3a5cb7e119b:localhost:node-433b319b-2e36-40e7-9894-3ada400beed3:Node 433b319b-2e36-40e7-9894-3ada400beed3 :: true

deleteNodes 1.025s
2022-02-14 21:47:04 |

2022-02-14 21:47:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:04 | ------------------------------------

2022-02-14 21:47:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-433b319b-2e36-40e7-9894-3ada400beed3"
}

2022-02-14 21:47:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:47:05 | [Mutex] waiting for: [received:nodes:698c8218-ca2d-4245-b2c9-e2867f83dbd0:localhost]

2022-02-14 21:47:05 | [Mutex] received everything.

2022-02-14 21:47:05 | [Mutex] isItemNotified: received:node:698c8218-ca2d-4245-b2c9-e2867f83dbd0:localhost:node-433b319b-2e36-40e7-9894-3ada400beed3:Node 433b319b-2e36-40e7-9894-3ada400beed3 :: false

deleteSubnodes 1.037s
2022-02-14 21:47:03 |

2022-02-14 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:03 | ------------------------------------

2022-02-14 21:47:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6"
}

2022-02-14 21:47:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:47:04 | [Mutex] waiting for: [received:nodes:2f4284a2-7b19-446d-a68a-95dfd2d2519d:localhost]

2022-02-14 21:47:04 | [Mutex] received everything.

2022-02-14 21:47:04 | [Mutex] isItemNotified: received:node:2f4284a2-7b19-446d-a68a-95dfd2d2519d:localhost:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6 :: false

2022-02-14 21:47:04 | [Mutex] waiting for: [received:nodes:4b570f4b-c538-48f1-ab04-74674b27a432:localhost]

2022-02-14 21:47:04 | [Mutex] received everything.

2022-02-14 21:47:04 | [Mutex] isItemNotified: received:node:4b570f4b-c538-48f1-ab04-74674b27a432:localhost:node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6:Node dcdb543e-1fd2-4e56-9743-9d3a83e71af6 :: false

publishItemsToNodes 0.042s
2022-02-14 21:47:01 |

2022-02-14 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:01 | ------------------------------------

2022-02-14 21:47:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "entry": "<test>item-5a66c148-5013-400f-92ff-2658ccf43184</test>",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184"
}

2022-02-14 21:47:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184"
}

2022-02-14 21:47:01 | [Mutex] waiting for: [published:item:notifieditem-5a66c148-5013-400f-92ff-2658ccf43184:admin@test-domain.com]

2022-02-14 21:47:01 | [Mutex] received everything.

2022-02-14 21:47:01 | [Mutex] isItemNotified: published:item:notifieditem-5a66c148-5013-400f-92ff-2658ccf43184:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2022-02-14 21:47:01 |

2022-02-14 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:01 | ------------------------------------

2022-02-14 21:47:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184"
}

2022-02-14 21:47:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184"
}

2022-02-14 21:47:02 | [Mutex] waiting for: [retracted:item:notifieditem-5a66c148-5013-400f-92ff-2658ccf43184:admin@test-domain.com]

2022-02-14 21:47:02 | [Mutex] received everything.

2022-02-14 21:47:02 | [Mutex] isItemNotified: retracted:item:notifieditem-5a66c148-5013-400f-92ff-2658ccf43184:admin@test-domain.com :: true

retrieveItemsFromNodes 0.099s
2022-02-14 21:47:01 |

2022-02-14 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:01 | ------------------------------------

2022-02-14 21:47:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184"
}

2022-02-14 21:47:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "item-id": "item-5a66c148-5013-400f-92ff-2658ccf43184",
    "item": [
        "<item id=\"item-5a66c148-5013-400f-92ff-2658ccf43184\"><test>item-5a66c148-5013-400f-92ff-2658ccf43184</test></item>"
    ]
}

2022-02-14 21:47:01 | [Mutex] notify: [retrieved:item:item-5a66c148-5013-400f-92ff-2658ccf43184:payload-matches:true:localhost]

2022-02-14 21:47:01 | [Mutex] received everything.

2022-02-14 21:47:01 | [Mutex] isItemNotified: retrieved:item:item-5a66c148-5013-400f-92ff-2658ccf43184:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-14 21:47:01 |

2022-02-14 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:01 | ------------------------------------

2022-02-14 21:47:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-14 21:47:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-433b319b-2e36-40e7-9894-3ada400beed3",
        "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-02-14 21:47:01 |

2022-02-14 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:01 | ------------------------------------

2022-02-14 21:47:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6)"
}

2022-02-14 21:47:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-02-14 21:47:00 |

2022-02-14 21:47:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:00 | ------------------------------------

2022-02-14 21:47:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-14 21:47:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.081s
2022-02-14 21:47:02 |

2022-02-14 21:47:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:47:02 | ------------------------------------

2022-02-14 21:47:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dcdb543e-1fd2-4e56-9743-9d3a83e71af6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-14 21:47:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}