Generated by TestNG with ReportNG at 22:22 PDT on Sunday 01 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.768s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-05-01 22:36:40 |

2022-05-01 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:40 | ------------------------------------

2022-05-01 22:36:40 | [Mutex] waiting for: [configured:node:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43]

2022-05-01 22:36:40 | [Mutex] received everything.

2022-05-01 22:36:40 | [Mutex] isItemNotified: configured:node:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43 :: true

2022-05-01 22:36:41 | [Mutex] waiting for: [received:nodes:e312e84f-5f9a-4207-bd8d-5d165e7140a8:localhost]

2022-05-01 22:36:41 | [Mutex] received everything.

2022-05-01 22:36:41 | [Mutex] isItemNotified: received:node:e312e84f-5f9a-4207-bd8d-5d165e7140a8:localhost:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69 :: true

2022-05-01 22:36:41 | [Mutex] waiting for: [received:nodes:c1562310-f5ce-490b-905b-f34765f482d7:localhost]

2022-05-01 22:36:41 | [Mutex] received everything.

2022-05-01 22:36:41 | [Mutex] isItemNotified: received:node:c1562310-f5ce-490b-905b-f34765f482d7:localhost:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69 :: false

createNodes 1.544s
2022-05-01 22:36:37 |

2022-05-01 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:37 | ------------------------------------

2022-05-01 22:36: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-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "pubsub#title": "Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69"
}

2022-05-01 22:36:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:36:39 | [Mutex] waiting for: [received:nodes:6a1ff7f4-6cfa-4b06-b570-72833e327733:localhost]

2022-05-01 22:36:39 | [Mutex] waiting for: [received:nodes:6a1ff7f4-6cfa-4b06-b570-72833e327733:localhost]

2022-05-01 22:36:39 | [Mutex] received everything.

2022-05-01 22:36:39 | [Mutex] isItemNotified: received:node:6a1ff7f4-6cfa-4b06-b570-72833e327733:localhost:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69 :: true

createSubnodes 1.022s
2022-05-01 22:36:39 |

2022-05-01 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:39 | ------------------------------------

2022-05-01 22:36: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-c2dbe63b-00a4-4e00-935c-e3ef8100ea43",
    "pubsub#title": "Node c2dbe63b-00a4-4e00-935c-e3ef8100ea43"
}

2022-05-01 22:36:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:36:40 | [Mutex] waiting for: [received:nodes:ad345353-ba9f-43ec-a6b3-a6c0c528344f:localhost]

2022-05-01 22:36:40 | [Mutex] received everything.

2022-05-01 22:36:40 | [Mutex] isItemNotified: received:node:ad345353-ba9f-43ec-a6b3-a6c0c528344f:localhost:node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43:Node c2dbe63b-00a4-4e00-935c-e3ef8100ea43 :: true

deleteNodes 1.020s
2022-05-01 22:36:44 |

2022-05-01 22:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:44 | ------------------------------------

2022-05-01 22:36:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43"
}

2022-05-01 22:36:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:36:45 | [Mutex] waiting for: [received:nodes:b36871e9-be4e-4f43-9473-d90b6861e7a9:localhost]

2022-05-01 22:36:45 | [Mutex] received everything.

2022-05-01 22:36:45 | [Mutex] isItemNotified: received:node:b36871e9-be4e-4f43-9473-d90b6861e7a9:localhost:node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43:Node c2dbe63b-00a4-4e00-935c-e3ef8100ea43 :: false

deleteSubnodes 1.024s
2022-05-01 22:36:43 |

2022-05-01 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:43 | ------------------------------------

2022-05-01 22:36:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69"
}

2022-05-01 22:36:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:36:44 | [Mutex] waiting for: [received:nodes:71a8266a-fb55-438c-b0f9-149d8c8a4482:localhost]

2022-05-01 22:36:44 | [Mutex] received everything.

2022-05-01 22:36:44 | [Mutex] isItemNotified: received:node:71a8266a-fb55-438c-b0f9-149d8c8a4482:localhost:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69 :: false

2022-05-01 22:36:44 | [Mutex] waiting for: [received:nodes:36f8b60d-f060-4344-a957-c4e6b4d02075:localhost]

2022-05-01 22:36:44 | [Mutex] received everything.

2022-05-01 22:36:44 | [Mutex] isItemNotified: received:node:36f8b60d-f060-4344-a957-c4e6b4d02075:localhost:node-04bdea4c-0ecf-4cf9-a333-85ae62585f69:Node 04bdea4c-0ecf-4cf9-a333-85ae62585f69 :: false

publishItemsToNodes 0.050s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "entry": "<test>item-ffe72242-3596-46cb-8643-1fe7cbd6c61d</test>",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d"
}

2022-05-01 22:36:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d"
}

2022-05-01 22:36:42 | [Mutex] waiting for: [published:item:notifieditem-ffe72242-3596-46cb-8643-1fe7cbd6c61d:admin@test-domain.com]

2022-05-01 22:36:42 | [Mutex] received everything.

2022-05-01 22:36:42 | [Mutex] isItemNotified: published:item:notifieditem-ffe72242-3596-46cb-8643-1fe7cbd6c61d:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d"
}

2022-05-01 22:36:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d"
}

2022-05-01 22:36:42 | [Mutex] received everything.

2022-05-01 22:36:42 | [Mutex] isItemNotified: retracted:item:notifieditem-ffe72242-3596-46cb-8643-1fe7cbd6c61d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d"
}

2022-05-01 22:36:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "item-id": "item-ffe72242-3596-46cb-8643-1fe7cbd6c61d",
    "item": [
        "<item id=\"item-ffe72242-3596-46cb-8643-1fe7cbd6c61d\"><test>item-ffe72242-3596-46cb-8643-1fe7cbd6c61d</test></item>"
    ]
}

2022-05-01 22:36:42 | [Mutex] notify: [retrieved:item:item-ffe72242-3596-46cb-8643-1fe7cbd6c61d:payload-matches:true:localhost]

2022-05-01 22:36:42 | [Mutex] received everything.

2022-05-01 22:36:42 | [Mutex] isItemNotified: retrieved:item:item-ffe72242-3596-46cb-8643-1fe7cbd6c61d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-01 22:36:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
        "test",
        "node-c2dbe63b-00a4-4e00-935c-e3ef8100ea43"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-04bdea4c-0ecf-4cf9-a333-85ae62585f69)"
}

2022-05-01 22:36:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-05-01 22:36:41 |

2022-05-01 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:41 | ------------------------------------

2022-05-01 22:36:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 22:36:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-05-01 22:36:42 |

2022-05-01 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:42 | ------------------------------------

2022-05-01 22:36:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-04bdea4c-0ecf-4cf9-a333-85ae62585f69",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 22:36:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}