Generated by TestNG with ReportNG at 20:44 PDT on Wednesday 05 July 2023
root@8f5c98824654 / Java 17.0.6 (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.575s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2023-07-05 20:58:42 |

2023-07-05 20:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:42 | ------------------------------------

2023-07-05 20:58:42 | [Mutex] waiting for: [configured:node:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:node-d178328f-31cc-4705-b567-6e0d7f8931d3]

2023-07-05 20:58:42 | [Mutex] received everything.

2023-07-05 20:58:42 | [Mutex] isItemNotified: configured:node:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:node-d178328f-31cc-4705-b567-6e0d7f8931d3 :: true

2023-07-05 20:58:43 | [Mutex] waiting for: [received:nodes:12295019-1fa8-48c1-978f-df0e4aa3b7f2:localhost]

2023-07-05 20:58:43 | [Mutex] received everything.

2023-07-05 20:58:43 | [Mutex] isItemNotified: received:node:12295019-1fa8-48c1-978f-df0e4aa3b7f2:localhost:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:Node ea6b65ad-8d78-421a-82c8-2d092088c1f7 :: true

2023-07-05 20:58:43 | [Mutex] waiting for: [received:nodes:ccb3b555-2041-403a-9685-24d3feb4a1be:localhost]

2023-07-05 20:58:43 | [Mutex] waiting for: [received:nodes:ccb3b555-2041-403a-9685-24d3feb4a1be:localhost]

2023-07-05 20:58:43 | [Mutex] waiting for: [received:nodes:ccb3b555-2041-403a-9685-24d3feb4a1be:localhost]

2023-07-05 20:58:43 | [Mutex] received everything.

2023-07-05 20:58:43 | [Mutex] isItemNotified: received:node:ccb3b555-2041-403a-9685-24d3feb4a1be:localhost:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:Node ea6b65ad-8d78-421a-82c8-2d092088c1f7 :: false

createNodes 1.569s
2023-07-05 20:58:39 |

2023-07-05 20:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:39 | ------------------------------------

2023-07-05 20:58:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "pubsub#title": "Node ea6b65ad-8d78-421a-82c8-2d092088c1f7"
}

2023-07-05 20:58:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 20:58:41 | [Mutex] waiting for: [received:nodes:44bbbc44-a7d5-4a07-bca4-affe0f15a06d:localhost]

2023-07-05 20:58:41 | [Mutex] waiting for: [received:nodes:44bbbc44-a7d5-4a07-bca4-affe0f15a06d:localhost]

2023-07-05 20:58:41 | [Mutex] waiting for: [received:nodes:44bbbc44-a7d5-4a07-bca4-affe0f15a06d:localhost]

2023-07-05 20:58:41 | [Mutex] waiting for: [received:nodes:44bbbc44-a7d5-4a07-bca4-affe0f15a06d:localhost]

2023-07-05 20:58:41 | [Mutex] received everything.

2023-07-05 20:58:41 | [Mutex] isItemNotified: received:node:44bbbc44-a7d5-4a07-bca4-affe0f15a06d:localhost:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:Node ea6b65ad-8d78-421a-82c8-2d092088c1f7 :: true

createSubnodes 1.043s
2023-07-05 20:58:41 |

2023-07-05 20:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:41 | ------------------------------------

2023-07-05 20:58:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d178328f-31cc-4705-b567-6e0d7f8931d3",
    "pubsub#title": "Node d178328f-31cc-4705-b567-6e0d7f8931d3"
}

2023-07-05 20:58:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 20:58:42 | [Mutex] waiting for: [received:nodes:c31c46a9-71f4-4384-a517-e2aec052e15a:localhost]

2023-07-05 20:58:42 | [Mutex] received everything.

2023-07-05 20:58:42 | [Mutex] isItemNotified: received:node:c31c46a9-71f4-4384-a517-e2aec052e15a:localhost:node-d178328f-31cc-4705-b567-6e0d7f8931d3:Node d178328f-31cc-4705-b567-6e0d7f8931d3 :: true

deleteNodes 1.022s
2023-07-05 20:58:46 |

2023-07-05 20:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:46 | ------------------------------------

2023-07-05 20:58:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d178328f-31cc-4705-b567-6e0d7f8931d3"
}

2023-07-05 20:58:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 20:58:47 | [Mutex] waiting for: [received:nodes:9426e481-9d06-4bf6-abcf-d78e6357430e:localhost]

2023-07-05 20:58:47 | [Mutex] waiting for: [received:nodes:9426e481-9d06-4bf6-abcf-d78e6357430e:localhost]

2023-07-05 20:58:47 | [Mutex] waiting for: [received:nodes:9426e481-9d06-4bf6-abcf-d78e6357430e:localhost]

2023-07-05 20:58:47 | [Mutex] received everything.

2023-07-05 20:58:47 | [Mutex] isItemNotified: received:node:9426e481-9d06-4bf6-abcf-d78e6357430e:localhost:node-d178328f-31cc-4705-b567-6e0d7f8931d3:Node d178328f-31cc-4705-b567-6e0d7f8931d3 :: false

deleteSubnodes 1.033s
2023-07-05 20:58:45 |

2023-07-05 20:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:45 | ------------------------------------

2023-07-05 20:58:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7"
}

2023-07-05 20:58:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 20:58:46 | [Mutex] waiting for: [received:nodes:817db860-9342-461e-bf7d-8736e368f55a:localhost]

2023-07-05 20:58:46 | [Mutex] waiting for: [received:nodes:817db860-9342-461e-bf7d-8736e368f55a:localhost]

2023-07-05 20:58:46 | [Mutex] waiting for: [received:nodes:817db860-9342-461e-bf7d-8736e368f55a:localhost]

2023-07-05 20:58:46 | [Mutex] waiting for: [received:nodes:817db860-9342-461e-bf7d-8736e368f55a:localhost]

2023-07-05 20:58:46 | [Mutex] received everything.

2023-07-05 20:58:46 | [Mutex] isItemNotified: received:node:817db860-9342-461e-bf7d-8736e368f55a:localhost:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:Node ea6b65ad-8d78-421a-82c8-2d092088c1f7 :: false

2023-07-05 20:58:46 | [Mutex] waiting for: [received:nodes:e9e0480c-83dd-4a71-b3fc-21e50bf77b36:localhost]

2023-07-05 20:58:46 | [Mutex] received everything.

2023-07-05 20:58:46 | [Mutex] isItemNotified: received:node:e9e0480c-83dd-4a71-b3fc-21e50bf77b36:localhost:node-ea6b65ad-8d78-421a-82c8-2d092088c1f7:Node ea6b65ad-8d78-421a-82c8-2d092088c1f7 :: false

publishItemsToNodes 0.043s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "entry": "<test>item-ebb5f917-af61-4b13-b817-ee90ac1044bb</test>",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb"
}

2023-07-05 20:58:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb"
}

2023-07-05 20:58:44 | [Mutex] waiting for: [published:item:notifieditem-ebb5f917-af61-4b13-b817-ee90ac1044bb:admin@test-domain.com]

2023-07-05 20:58:44 | [Mutex] received everything.

2023-07-05 20:58:44 | [Mutex] isItemNotified: published:item:notifieditem-ebb5f917-af61-4b13-b817-ee90ac1044bb:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb"
}

2023-07-05 20:58:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb"
}

2023-07-05 20:58:44 | [Mutex] received everything.

2023-07-05 20:58:44 | [Mutex] isItemNotified: retracted:item:notifieditem-ebb5f917-af61-4b13-b817-ee90ac1044bb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb"
}

2023-07-05 20:58:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "item-id": "item-ebb5f917-af61-4b13-b817-ee90ac1044bb",
    "item": [
        "<item id=\"item-ebb5f917-af61-4b13-b817-ee90ac1044bb\"><test>item-ebb5f917-af61-4b13-b817-ee90ac1044bb</test></item>"
    ]
}

2023-07-05 20:58:44 | [Mutex] notify: [retrieved:item:item-ebb5f917-af61-4b13-b817-ee90ac1044bb:payload-matches:true:localhost]

2023-07-05 20:58:44 | [Mutex] received everything.

2023-07-05 20:58:44 | [Mutex] isItemNotified: retrieved:item:item-ebb5f917-af61-4b13-b817-ee90ac1044bb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-05 20:58:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d178328f-31cc-4705-b567-6e0d7f8931d3",
        "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ea6b65ad-8d78-421a-82c8-2d092088c1f7)"
}

2023-07-05 20:58:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2023-07-05 20:58:43 |

2023-07-05 20:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:43 | ------------------------------------

2023-07-05 20:58:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 20:58:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-07-05 20:58:44 |

2023-07-05 20:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 20:58:44 | ------------------------------------

2023-07-05 20:58:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ea6b65ad-8d78-421a-82c8-2d092088c1f7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 20:58:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}