Generated by TestNG with ReportNG at 22:13 PDT on Thursday 30 September 2021
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 : 8.882s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2021-09-30 22:28:19 |

2021-09-30 22:28:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:19 | ------------------------------------

2021-09-30 22:28:19 | [Mutex] waiting for: [configured:node:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:node-3f42df4f-0910-4083-8238-4b757dc52ea8]

2021-09-30 22:28:19 | [Mutex] received everything.

2021-09-30 22:28:19 | [Mutex] isItemNotified: configured:node:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:node-3f42df4f-0910-4083-8238-4b757dc52ea8 :: true

2021-09-30 22:28:20 | [Mutex] waiting for: [received:nodes:9f4b66f9-20f2-4084-97a8-3375b480e86d:localhost]

2021-09-30 22:28:20 | [Mutex] received everything.

2021-09-30 22:28:20 | [Mutex] isItemNotified: received:node:9f4b66f9-20f2-4084-97a8-3375b480e86d:localhost:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:Node e575d8cb-7c19-4bb7-8973-5f672a109eff :: true

2021-09-30 22:28:20 | [Mutex] waiting for: [received:nodes:2450ec9e-112d-400b-9582-472285913bbe:localhost]

2021-09-30 22:28:20 | [Mutex] received everything.

2021-09-30 22:28:20 | [Mutex] isItemNotified: received:node:2450ec9e-112d-400b-9582-472285913bbe:localhost:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:Node e575d8cb-7c19-4bb7-8973-5f672a109eff :: false

createNodes 1.562s
2021-09-30 22:28:17 |

2021-09-30 22:28:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:17 | ------------------------------------

2021-09-30 22:28:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "pubsub#title": "Node e575d8cb-7c19-4bb7-8973-5f672a109eff"
}

2021-09-30 22:28:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:28:18 | [Mutex] waiting for: [received:nodes:958b1696-12ad-4c54-a686-2279720a133d:localhost]

2021-09-30 22:28:18 | [Mutex] received everything.

2021-09-30 22:28:18 | [Mutex] isItemNotified: received:node:958b1696-12ad-4c54-a686-2279720a133d:localhost:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:Node e575d8cb-7c19-4bb7-8973-5f672a109eff :: true

createSubnodes 1.025s
2021-09-30 22:28:18 |

2021-09-30 22:28:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:18 | ------------------------------------

2021-09-30 22:28:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3f42df4f-0910-4083-8238-4b757dc52ea8",
    "pubsub#title": "Node 3f42df4f-0910-4083-8238-4b757dc52ea8"
}

2021-09-30 22:28:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:28:19 | [Mutex] waiting for: [received:nodes:bcb77876-6b2e-46bf-9fe5-e48e07f350c5:localhost]

2021-09-30 22:28:19 | [Mutex] received everything.

2021-09-30 22:28:19 | [Mutex] isItemNotified: received:node:bcb77876-6b2e-46bf-9fe5-e48e07f350c5:localhost:node-3f42df4f-0910-4083-8238-4b757dc52ea8:Node 3f42df4f-0910-4083-8238-4b757dc52ea8 :: true

deleteNodes 1.026s
2021-09-30 22:28:24 |

2021-09-30 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:24 | ------------------------------------

2021-09-30 22:28:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f42df4f-0910-4083-8238-4b757dc52ea8"
}

2021-09-30 22:28:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:28:25 | [Mutex] waiting for: [received:nodes:06d84361-6ff0-49a6-b421-4a37a09327f3:localhost]

2021-09-30 22:28:25 | [Mutex] received everything.

2021-09-30 22:28:25 | [Mutex] isItemNotified: received:node:06d84361-6ff0-49a6-b421-4a37a09327f3:localhost:node-3f42df4f-0910-4083-8238-4b757dc52ea8:Node 3f42df4f-0910-4083-8238-4b757dc52ea8 :: false

deleteSubnodes 1.032s
2021-09-30 22:28:23 |

2021-09-30 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:23 | ------------------------------------

2021-09-30 22:28:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff"
}

2021-09-30 22:28:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:28:24 | [Mutex] waiting for: [received:nodes:3a369c28-b3c4-42f3-80e2-35e699aa2778:localhost]

2021-09-30 22:28:24 | [Mutex] waiting for: [received:nodes:3a369c28-b3c4-42f3-80e2-35e699aa2778:localhost]

2021-09-30 22:28:24 | [Mutex] waiting for: [received:nodes:3a369c28-b3c4-42f3-80e2-35e699aa2778:localhost]

2021-09-30 22:28:24 | [Mutex] received everything.

2021-09-30 22:28:24 | [Mutex] isItemNotified: received:node:3a369c28-b3c4-42f3-80e2-35e699aa2778:localhost:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:Node e575d8cb-7c19-4bb7-8973-5f672a109eff :: false

2021-09-30 22:28:24 | [Mutex] waiting for: [received:nodes:bba568ff-8e09-4ba2-ba2e-f1134f70270d:localhost]

2021-09-30 22:28:24 | [Mutex] received everything.

2021-09-30 22:28:24 | [Mutex] isItemNotified: received:node:bba568ff-8e09-4ba2-ba2e-f1134f70270d:localhost:node-e575d8cb-7c19-4bb7-8973-5f672a109eff:Node e575d8cb-7c19-4bb7-8973-5f672a109eff :: false

publishItemsToNodes 0.050s
2021-09-30 22:28:21 |

2021-09-30 22:28:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:21 | ------------------------------------

2021-09-30 22:28:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "entry": "<test>item-26b0e569-bca9-46be-8137-cfb834a51978</test>",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978"
}

2021-09-30 22:28:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978"
}

2021-09-30 22:28:21 | [Mutex] waiting for: [published:item:notifieditem-26b0e569-bca9-46be-8137-cfb834a51978:admin@test-domain.com]

2021-09-30 22:28:21 | [Mutex] received everything.

2021-09-30 22:28:21 | [Mutex] isItemNotified: published:item:notifieditem-26b0e569-bca9-46be-8137-cfb834a51978:admin@test-domain.com :: true

retractItemsFromNodes 0.089s
2021-09-30 22:28:22 |

2021-09-30 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:22 | ------------------------------------

2021-09-30 22:28:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978"
}

2021-09-30 22:28:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978"
}

2021-09-30 22:28:22 | [Mutex] received everything.

2021-09-30 22:28:22 | [Mutex] isItemNotified: retracted:item:notifieditem-26b0e569-bca9-46be-8137-cfb834a51978:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2021-09-30 22:28:21 |

2021-09-30 22:28:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:21 | ------------------------------------

2021-09-30 22:28:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978"
}

2021-09-30 22:28:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "item-id": "item-26b0e569-bca9-46be-8137-cfb834a51978",
    "item": [
        "<item id=\"item-26b0e569-bca9-46be-8137-cfb834a51978\"><test>item-26b0e569-bca9-46be-8137-cfb834a51978</test></item>"
    ]
}

2021-09-30 22:28:22 | [Mutex] notify: [retrieved:item:item-26b0e569-bca9-46be-8137-cfb834a51978:payload-matches:true:localhost]

2021-09-30 22:28:22 | [Mutex] received everything.

2021-09-30 22:28:22 | [Mutex] isItemNotified: retrieved:item:item-26b0e569-bca9-46be-8137-cfb834a51978:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-09-30 22:28:22 |

2021-09-30 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:22 | ------------------------------------

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

2021-09-30 22:28:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
        "node-3f42df4f-0910-4083-8238-4b757dc52ea8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-09-30 22:28:22 |

2021-09-30 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:22 | ------------------------------------

2021-09-30 22:28:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e575d8cb-7c19-4bb7-8973-5f672a109eff)"
}

2021-09-30 22:28:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-09-30 22:28:20 |

2021-09-30 22:28:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:20 | ------------------------------------

2021-09-30 22:28:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:28:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2021-09-30 22:28:22 |

2021-09-30 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:28:22 | ------------------------------------

2021-09-30 22:28:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e575d8cb-7c19-4bb7-8973-5f672a109eff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:28:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}