Generated by TestNG with ReportNG at 21:29 PST on Monday 07 February 2022
root@785cf647a4ab / 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.054s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-02-07 21:45:40 |

2022-02-07 21:45:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:40 | ------------------------------------

2022-02-07 21:45:40 | [Mutex] waiting for: [configured:node:node-8142e249-d62d-4947-b11e-e6c431a74f01:node-30095912-57f7-42ff-bb9b-473571119d29]

2022-02-07 21:45:40 | [Mutex] received everything.

2022-02-07 21:45:40 | [Mutex] isItemNotified: configured:node:node-8142e249-d62d-4947-b11e-e6c431a74f01:node-30095912-57f7-42ff-bb9b-473571119d29 :: true

2022-02-07 21:45:41 | [Mutex] waiting for: [received:nodes:692bccff-f58c-42d7-898f-25dc12fcd2f4:localhost]

2022-02-07 21:45:41 | [Mutex] received everything.

2022-02-07 21:45:41 | [Mutex] isItemNotified: received:node:692bccff-f58c-42d7-898f-25dc12fcd2f4:localhost:node-8142e249-d62d-4947-b11e-e6c431a74f01:Node 8142e249-d62d-4947-b11e-e6c431a74f01 :: true

2022-02-07 21:45:41 | [Mutex] waiting for: [received:nodes:e3cd2573-31d3-427f-a84c-fb4a00ed3b49:localhost]

2022-02-07 21:45:41 | [Mutex] received everything.

2022-02-07 21:45:41 | [Mutex] isItemNotified: received:node:e3cd2573-31d3-427f-a84c-fb4a00ed3b49:localhost:node-8142e249-d62d-4947-b11e-e6c431a74f01:Node 8142e249-d62d-4947-b11e-e6c431a74f01 :: false

createNodes 1.696s
2022-02-07 21:45:38 |

2022-02-07 21:45:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:38 | ------------------------------------

2022-02-07 21:45:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "pubsub#title": "Node 8142e249-d62d-4947-b11e-e6c431a74f01"
}

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

2022-02-07 21:45:39 | [Mutex] waiting for: [received:nodes:63aeb6f4-5964-4db3-9946-74bd786af342:localhost]

2022-02-07 21:45:39 | [Mutex] waiting for: [received:nodes:63aeb6f4-5964-4db3-9946-74bd786af342:localhost]

2022-02-07 21:45:39 | [Mutex] received everything.

2022-02-07 21:45:39 | [Mutex] isItemNotified: received:node:63aeb6f4-5964-4db3-9946-74bd786af342:localhost:node-8142e249-d62d-4947-b11e-e6c431a74f01:Node 8142e249-d62d-4947-b11e-e6c431a74f01 :: true

createSubnodes 1.030s
2022-02-07 21:45:39 |

2022-02-07 21:45:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:39 | ------------------------------------

2022-02-07 21:45:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-30095912-57f7-42ff-bb9b-473571119d29",
    "pubsub#title": "Node 30095912-57f7-42ff-bb9b-473571119d29"
}

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

2022-02-07 21:45:40 | [Mutex] waiting for: [received:nodes:e514ecc5-752e-4e5b-bbf2-20af43d02062:localhost]

2022-02-07 21:45:40 | [Mutex] received everything.

2022-02-07 21:45:40 | [Mutex] isItemNotified: received:node:e514ecc5-752e-4e5b-bbf2-20af43d02062:localhost:node-30095912-57f7-42ff-bb9b-473571119d29:Node 30095912-57f7-42ff-bb9b-473571119d29 :: true

deleteNodes 1.025s
2022-02-07 21:45:45 |

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

2022-02-07 21:45:45 | ------------------------------------

2022-02-07 21:45:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-30095912-57f7-42ff-bb9b-473571119d29"
}

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

2022-02-07 21:45:46 | [Mutex] waiting for: [received:nodes:9147c77a-c11f-4af0-88e7-032b4268de69:localhost]

2022-02-07 21:45:46 | [Mutex] waiting for: [received:nodes:9147c77a-c11f-4af0-88e7-032b4268de69:localhost]

2022-02-07 21:45:46 | [Mutex] received everything.

2022-02-07 21:45:46 | [Mutex] isItemNotified: received:node:9147c77a-c11f-4af0-88e7-032b4268de69:localhost:node-30095912-57f7-42ff-bb9b-473571119d29:Node 30095912-57f7-42ff-bb9b-473571119d29 :: false

deleteSubnodes 1.030s
2022-02-07 21:45:44 |

2022-02-07 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:44 | ------------------------------------

2022-02-07 21:45:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01"
}

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

2022-02-07 21:45:45 | [Mutex] waiting for: [received:nodes:742f2dc3-d753-43d9-8573-5141436de908:localhost]

2022-02-07 21:45:45 | [Mutex] received everything.

2022-02-07 21:45:45 | [Mutex] isItemNotified: received:node:742f2dc3-d753-43d9-8573-5141436de908:localhost:node-8142e249-d62d-4947-b11e-e6c431a74f01:Node 8142e249-d62d-4947-b11e-e6c431a74f01 :: false

2022-02-07 21:45:45 | [Mutex] waiting for: [received:nodes:a15365fb-005e-4db7-981b-d5cc5e3fb6fe:localhost]

2022-02-07 21:45:45 | [Mutex] received everything.

2022-02-07 21:45:45 | [Mutex] isItemNotified: received:node:a15365fb-005e-4db7-981b-d5cc5e3fb6fe:localhost:node-8142e249-d62d-4947-b11e-e6c431a74f01:Node 8142e249-d62d-4947-b11e-e6c431a74f01 :: false

publishItemsToNodes 0.033s
2022-02-07 21:45:42 |

2022-02-07 21:45:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:42 | ------------------------------------

2022-02-07 21:45:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "entry": "<test>item-98766eaa-7d3c-4233-9bb0-56114e75393a</test>",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a"
}

2022-02-07 21:45:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a"
}

2022-02-07 21:45:42 | [Mutex] waiting for: [published:item:notifieditem-98766eaa-7d3c-4233-9bb0-56114e75393a:admin@test-domain.com]

2022-02-07 21:45:42 | [Mutex] received everything.

2022-02-07 21:45:42 | [Mutex] isItemNotified: published:item:notifieditem-98766eaa-7d3c-4233-9bb0-56114e75393a:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2022-02-07 21:45:43 |

2022-02-07 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:43 | ------------------------------------

2022-02-07 21:45:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a"
}

2022-02-07 21:45:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a"
}

2022-02-07 21:45:43 | [Mutex] waiting for: [retracted:item:notifieditem-98766eaa-7d3c-4233-9bb0-56114e75393a:admin@test-domain.com]

2022-02-07 21:45:43 | [Mutex] received everything.

2022-02-07 21:45:43 | [Mutex] isItemNotified: retracted:item:notifieditem-98766eaa-7d3c-4233-9bb0-56114e75393a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2022-02-07 21:45:42 |

2022-02-07 21:45:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:42 | ------------------------------------

2022-02-07 21:45:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a"
}

2022-02-07 21:45:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "item-id": "item-98766eaa-7d3c-4233-9bb0-56114e75393a",
    "item": [
        "<item id=\"item-98766eaa-7d3c-4233-9bb0-56114e75393a\"><test>item-98766eaa-7d3c-4233-9bb0-56114e75393a</test></item>"
    ]
}

2022-02-07 21:45:43 | [Mutex] notify: [retrieved:item:item-98766eaa-7d3c-4233-9bb0-56114e75393a:payload-matches:true:localhost]

2022-02-07 21:45:43 | [Mutex] received everything.

2022-02-07 21:45:43 | [Mutex] isItemNotified: retrieved:item:item-98766eaa-7d3c-4233-9bb0-56114e75393a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.107s
2022-02-07 21:45:43 |

2022-02-07 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:43 | ------------------------------------

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

2022-02-07 21:45:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8142e249-d62d-4947-b11e-e6c431a74f01",
        "node-30095912-57f7-42ff-bb9b-473571119d29"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-07 21:45:43 |

2022-02-07 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:43 | ------------------------------------

2022-02-07 21:45:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8142e249-d62d-4947-b11e-e6c431a74f01)"
}

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

subscribeNodes 1.011s
2022-02-07 21:45:41 |

2022-02-07 21:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:41 | ------------------------------------

2022-02-07 21:45:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.054s
2022-02-07 21:45:43 |

2022-02-07 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:45:43 | ------------------------------------

2022-02-07 21:45:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8142e249-d62d-4947-b11e-e6c431a74f01",
    "jids": [
        "admin@test-domain.com"
    ]
}

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