Generated by TestNG with ReportNG at 22:45 PDT on Tuesday 11 July 2023
root@1512af24e4a5 / 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.627s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2023-07-11 23:00:29 |

2023-07-11 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:29 | ------------------------------------

2023-07-11 23:00:29 | [Mutex] waiting for: [configured:node:node-053e0662-4da2-4615-9c90-cdab35b94d28:node-faf52830-92b0-4d9c-ba7a-630a698f4bd0]

2023-07-11 23:00:29 | [Mutex] received everything.

2023-07-11 23:00:29 | [Mutex] isItemNotified: configured:node:node-053e0662-4da2-4615-9c90-cdab35b94d28:node-faf52830-92b0-4d9c-ba7a-630a698f4bd0 :: true

2023-07-11 23:00:30 | [Mutex] waiting for: [received:nodes:35cb5ce5-ae23-47d9-8b2d-263cf051b2e6:localhost]

2023-07-11 23:00:30 | [Mutex] received everything.

2023-07-11 23:00:30 | [Mutex] isItemNotified: received:node:35cb5ce5-ae23-47d9-8b2d-263cf051b2e6:localhost:node-053e0662-4da2-4615-9c90-cdab35b94d28:Node 053e0662-4da2-4615-9c90-cdab35b94d28 :: true

2023-07-11 23:00:30 | [Mutex] waiting for: [received:nodes:6a82f9df-0074-454f-b6d5-9ba7281d9d80:localhost]

2023-07-11 23:00:30 | [Mutex] waiting for: [received:nodes:6a82f9df-0074-454f-b6d5-9ba7281d9d80:localhost]

2023-07-11 23:00:30 | [Mutex] waiting for: [received:nodes:6a82f9df-0074-454f-b6d5-9ba7281d9d80:localhost]

2023-07-11 23:00:30 | [Mutex] waiting for: [received:nodes:6a82f9df-0074-454f-b6d5-9ba7281d9d80:localhost]

2023-07-11 23:00:30 | [Mutex] received everything.

2023-07-11 23:00:30 | [Mutex] isItemNotified: received:node:6a82f9df-0074-454f-b6d5-9ba7281d9d80:localhost:node-053e0662-4da2-4615-9c90-cdab35b94d28:Node 053e0662-4da2-4615-9c90-cdab35b94d28 :: false

createNodes 1.632s
2023-07-11 23:00:26 |

2023-07-11 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:26 | ------------------------------------

2023-07-11 23:00:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "pubsub#title": "Node 053e0662-4da2-4615-9c90-cdab35b94d28"
}

2023-07-11 23:00:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 23:00:28 | [Mutex] waiting for: [received:nodes:1787721d-1479-4337-98c6-010760feb6c7:localhost]

2023-07-11 23:00:28 | [Mutex] waiting for: [received:nodes:1787721d-1479-4337-98c6-010760feb6c7:localhost]

2023-07-11 23:00:28 | [Mutex] waiting for: [received:nodes:1787721d-1479-4337-98c6-010760feb6c7:localhost]

2023-07-11 23:00:28 | [Mutex] waiting for: [received:nodes:1787721d-1479-4337-98c6-010760feb6c7:localhost]

2023-07-11 23:00:28 | [Mutex] received everything.

2023-07-11 23:00:28 | [Mutex] isItemNotified: received:node:1787721d-1479-4337-98c6-010760feb6c7:localhost:node-053e0662-4da2-4615-9c90-cdab35b94d28:Node 053e0662-4da2-4615-9c90-cdab35b94d28 :: true

createSubnodes 1.026s
2023-07-11 23:00:28 |

2023-07-11 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:28 | ------------------------------------

2023-07-11 23:00:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-faf52830-92b0-4d9c-ba7a-630a698f4bd0",
    "pubsub#title": "Node faf52830-92b0-4d9c-ba7a-630a698f4bd0"
}

2023-07-11 23:00:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 23:00:29 | [Mutex] waiting for: [received:nodes:3cc9472b-f93c-4460-9036-2f102776eff1:localhost]

2023-07-11 23:00:29 | [Mutex] waiting for: [received:nodes:3cc9472b-f93c-4460-9036-2f102776eff1:localhost]

2023-07-11 23:00:29 | [Mutex] waiting for: [received:nodes:3cc9472b-f93c-4460-9036-2f102776eff1:localhost]

2023-07-11 23:00:29 | [Mutex] waiting for: [received:nodes:3cc9472b-f93c-4460-9036-2f102776eff1:localhost]

2023-07-11 23:00:29 | [Mutex] waiting for: [received:nodes:3cc9472b-f93c-4460-9036-2f102776eff1:localhost]

2023-07-11 23:00:29 | [Mutex] received everything.

2023-07-11 23:00:29 | [Mutex] isItemNotified: received:node:3cc9472b-f93c-4460-9036-2f102776eff1:localhost:node-faf52830-92b0-4d9c-ba7a-630a698f4bd0:Node faf52830-92b0-4d9c-ba7a-630a698f4bd0 :: true

deleteNodes 1.027s
2023-07-11 23:00:33 |

2023-07-11 23:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:33 | ------------------------------------

2023-07-11 23:00:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-faf52830-92b0-4d9c-ba7a-630a698f4bd0"
}

2023-07-11 23:00:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 23:00:34 | [Mutex] waiting for: [received:nodes:35695578-e51e-488a-ac81-d5522688b1cf:localhost]

2023-07-11 23:00:34 | [Mutex] waiting for: [received:nodes:35695578-e51e-488a-ac81-d5522688b1cf:localhost]

2023-07-11 23:00:34 | [Mutex] waiting for: [received:nodes:35695578-e51e-488a-ac81-d5522688b1cf:localhost]

2023-07-11 23:00:34 | [Mutex] received everything.

2023-07-11 23:00:34 | [Mutex] isItemNotified: received:node:35695578-e51e-488a-ac81-d5522688b1cf:localhost:node-faf52830-92b0-4d9c-ba7a-630a698f4bd0:Node faf52830-92b0-4d9c-ba7a-630a698f4bd0 :: false

deleteSubnodes 1.028s
2023-07-11 23:00:32 |

2023-07-11 23:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:32 | ------------------------------------

2023-07-11 23:00:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28"
}

2023-07-11 23:00:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 23:00:33 | [Mutex] waiting for: [received:nodes:c3a9fc69-d2cc-4a92-9c10-f233beb925aa:localhost]

2023-07-11 23:00:33 | [Mutex] waiting for: [received:nodes:c3a9fc69-d2cc-4a92-9c10-f233beb925aa:localhost]

2023-07-11 23:00:33 | [Mutex] waiting for: [received:nodes:c3a9fc69-d2cc-4a92-9c10-f233beb925aa:localhost]

2023-07-11 23:00:33 | [Mutex] waiting for: [received:nodes:c3a9fc69-d2cc-4a92-9c10-f233beb925aa:localhost]

2023-07-11 23:00:33 | [Mutex] received everything.

2023-07-11 23:00:33 | [Mutex] isItemNotified: received:node:c3a9fc69-d2cc-4a92-9c10-f233beb925aa:localhost:node-053e0662-4da2-4615-9c90-cdab35b94d28:Node 053e0662-4da2-4615-9c90-cdab35b94d28 :: false

2023-07-11 23:00:33 | [Mutex] waiting for: [received:nodes:3ee263dd-e0a7-4750-bfa2-2ee9669a0c48:localhost]

2023-07-11 23:00:33 | [Mutex] received everything.

2023-07-11 23:00:33 | [Mutex] isItemNotified: received:node:3ee263dd-e0a7-4750-bfa2-2ee9669a0c48:localhost:node-053e0662-4da2-4615-9c90-cdab35b94d28:Node 053e0662-4da2-4615-9c90-cdab35b94d28 :: false

publishItemsToNodes 0.033s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "entry": "<test>item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c</test>",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c"
}

2023-07-11 23:00:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c"
}

2023-07-11 23:00:31 | [Mutex] waiting for: [published:item:notifieditem-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c:admin@test-domain.com]

2023-07-11 23:00:31 | [Mutex] received everything.

2023-07-11 23:00:31 | [Mutex] isItemNotified: published:item:notifieditem-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c:admin@test-domain.com :: true

retractItemsFromNodes 0.090s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c"
}

2023-07-11 23:00:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c"
}

2023-07-11 23:00:31 | [Mutex] received everything.

2023-07-11 23:00:31 | [Mutex] isItemNotified: retracted:item:notifieditem-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c"
}

2023-07-11 23:00:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "item-id": "item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c",
    "item": [
        "<item id=\"item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c\"><test>item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c</test></item>"
    ]
}

2023-07-11 23:00:31 | [Mutex] notify: [retrieved:item:item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c:payload-matches:true:localhost]

2023-07-11 23:00:31 | [Mutex] received everything.

2023-07-11 23:00:31 | [Mutex] isItemNotified: retrieved:item:item-c918094e-cfe9-4ed2-b6ad-7b4f387fd88c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-11 23:00:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-053e0662-4da2-4615-9c90-cdab35b94d28",
        "node-faf52830-92b0-4d9c-ba7a-630a698f4bd0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-053e0662-4da2-4615-9c90-cdab35b94d28)"
}

2023-07-11 23:00:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-07-11 23:00:30 |

2023-07-11 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:30 | ------------------------------------

2023-07-11 23:00:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 23:00:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2023-07-11 23:00:31 |

2023-07-11 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 23:00:31 | ------------------------------------

2023-07-11 23:00:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-053e0662-4da2-4615-9c90-cdab35b94d28",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 23:00:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}