Generated by TestNG with ReportNG at 23:15 PDT on Thursday 28 September 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.720s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2023-09-28 23:29:44 |

2023-09-28 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:44 | ------------------------------------

2023-09-28 23:29:44 | [Mutex] waiting for: [configured:node:node-897dfd70-dcdf-4870-8493-7e619a665077:node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1]

2023-09-28 23:29:44 | [Mutex] received everything.

2023-09-28 23:29:44 | [Mutex] isItemNotified: configured:node:node-897dfd70-dcdf-4870-8493-7e619a665077:node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1 :: true

2023-09-28 23:29:45 | [Mutex] waiting for: [received:nodes:91aafc08-85d7-4f92-8969-a6332dfc9cd1:localhost]

2023-09-28 23:29:45 | [Mutex] received everything.

2023-09-28 23:29:45 | [Mutex] isItemNotified: received:node:91aafc08-85d7-4f92-8969-a6332dfc9cd1:localhost:node-897dfd70-dcdf-4870-8493-7e619a665077:Node 897dfd70-dcdf-4870-8493-7e619a665077 :: true

2023-09-28 23:29:45 | [Mutex] waiting for: [received:nodes:0eecead2-bd71-4feb-9d48-c00cd929fd69:localhost]

2023-09-28 23:29:45 | [Mutex] waiting for: [received:nodes:0eecead2-bd71-4feb-9d48-c00cd929fd69:localhost]

2023-09-28 23:29:45 | [Mutex] waiting for: [received:nodes:0eecead2-bd71-4feb-9d48-c00cd929fd69:localhost]

2023-09-28 23:29:45 | [Mutex] waiting for: [received:nodes:0eecead2-bd71-4feb-9d48-c00cd929fd69:localhost]

2023-09-28 23:29:45 | [Mutex] received everything.

2023-09-28 23:29:45 | [Mutex] isItemNotified: received:node:0eecead2-bd71-4feb-9d48-c00cd929fd69:localhost:node-897dfd70-dcdf-4870-8493-7e619a665077:Node 897dfd70-dcdf-4870-8493-7e619a665077 :: false

createNodes 1.654s
2023-09-28 23:29:42 |

2023-09-28 23:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:42 | ------------------------------------

2023-09-28 23:29:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "pubsub#title": "Node 897dfd70-dcdf-4870-8493-7e619a665077"
}

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

2023-09-28 23:29:43 | [Mutex] waiting for: [received:nodes:a453ae77-ea5a-4f1d-952b-b8617d220a67:localhost]

2023-09-28 23:29:43 | [Mutex] waiting for: [received:nodes:a453ae77-ea5a-4f1d-952b-b8617d220a67:localhost]

2023-09-28 23:29:43 | [Mutex] waiting for: [received:nodes:a453ae77-ea5a-4f1d-952b-b8617d220a67:localhost]

2023-09-28 23:29:43 | [Mutex] waiting for: [received:nodes:a453ae77-ea5a-4f1d-952b-b8617d220a67:localhost]

2023-09-28 23:29:43 | [Mutex] received everything.

2023-09-28 23:29:43 | [Mutex] isItemNotified: received:node:a453ae77-ea5a-4f1d-952b-b8617d220a67:localhost:node-897dfd70-dcdf-4870-8493-7e619a665077:Node 897dfd70-dcdf-4870-8493-7e619a665077 :: true

createSubnodes 1.028s
2023-09-28 23:29:43 |

2023-09-28 23:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:43 | ------------------------------------

2023-09-28 23:29:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1",
    "pubsub#title": "Node f5bcf9f9-ee2a-4fa1-829f-0f956359abd1"
}

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

2023-09-28 23:29:44 | [Mutex] waiting for: [received:nodes:8dfff06f-cb27-4741-bb95-46059a89248d:localhost]

2023-09-28 23:29:44 | [Mutex] waiting for: [received:nodes:8dfff06f-cb27-4741-bb95-46059a89248d:localhost]

2023-09-28 23:29:44 | [Mutex] waiting for: [received:nodes:8dfff06f-cb27-4741-bb95-46059a89248d:localhost]

2023-09-28 23:29:44 | [Mutex] waiting for: [received:nodes:8dfff06f-cb27-4741-bb95-46059a89248d:localhost]

2023-09-28 23:29:44 | [Mutex] waiting for: [received:nodes:8dfff06f-cb27-4741-bb95-46059a89248d:localhost]

2023-09-28 23:29:44 | [Mutex] received everything.

2023-09-28 23:29:44 | [Mutex] isItemNotified: received:node:8dfff06f-cb27-4741-bb95-46059a89248d:localhost:node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1:Node f5bcf9f9-ee2a-4fa1-829f-0f956359abd1 :: true

deleteNodes 1.020s
2023-09-28 23:29:49 |

2023-09-28 23:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:49 | ------------------------------------

2023-09-28 23:29:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1"
}

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

2023-09-28 23:29:50 | [Mutex] waiting for: [received:nodes:56dea55d-99b7-4e5e-88f4-fb166559fa17:localhost]

2023-09-28 23:29:50 | [Mutex] waiting for: [received:nodes:56dea55d-99b7-4e5e-88f4-fb166559fa17:localhost]

2023-09-28 23:29:50 | [Mutex] waiting for: [received:nodes:56dea55d-99b7-4e5e-88f4-fb166559fa17:localhost]

2023-09-28 23:29:50 | [Mutex] received everything.

2023-09-28 23:29:50 | [Mutex] isItemNotified: received:node:56dea55d-99b7-4e5e-88f4-fb166559fa17:localhost:node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1:Node f5bcf9f9-ee2a-4fa1-829f-0f956359abd1 :: false

deleteSubnodes 1.023s
2023-09-28 23:29:48 |

2023-09-28 23:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:48 | ------------------------------------

2023-09-28 23:29:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077"
}

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

2023-09-28 23:29:49 | [Mutex] waiting for: [received:nodes:c3bfac41-e3a9-46b8-af25-0070414fb5e9:localhost]

2023-09-28 23:29:49 | [Mutex] waiting for: [received:nodes:c3bfac41-e3a9-46b8-af25-0070414fb5e9:localhost]

2023-09-28 23:29:49 | [Mutex] waiting for: [received:nodes:c3bfac41-e3a9-46b8-af25-0070414fb5e9:localhost]

2023-09-28 23:29:49 | [Mutex] waiting for: [received:nodes:c3bfac41-e3a9-46b8-af25-0070414fb5e9:localhost]

2023-09-28 23:29:49 | [Mutex] received everything.

2023-09-28 23:29:49 | [Mutex] isItemNotified: received:node:c3bfac41-e3a9-46b8-af25-0070414fb5e9:localhost:node-897dfd70-dcdf-4870-8493-7e619a665077:Node 897dfd70-dcdf-4870-8493-7e619a665077 :: false

2023-09-28 23:29:49 | [Mutex] waiting for: [received:nodes:161d2457-6703-44ea-b39b-0cb49f5f5c88:localhost]

2023-09-28 23:29:49 | [Mutex] received everything.

2023-09-28 23:29:49 | [Mutex] isItemNotified: received:node:161d2457-6703-44ea-b39b-0cb49f5f5c88:localhost:node-897dfd70-dcdf-4870-8493-7e619a665077:Node 897dfd70-dcdf-4870-8493-7e619a665077 :: false

publishItemsToNodes 0.048s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

2023-09-28 23:29:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "entry": "<test>item-c281609b-cc56-4888-a3ea-a435afd2be46</test>",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46"
}

2023-09-28 23:29:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46"
}

2023-09-28 23:29:47 | [Mutex] waiting for: [published:item:notifieditem-c281609b-cc56-4888-a3ea-a435afd2be46:admin@test-domain.com]

2023-09-28 23:29:47 | [Mutex] received everything.

2023-09-28 23:29:47 | [Mutex] isItemNotified: published:item:notifieditem-c281609b-cc56-4888-a3ea-a435afd2be46:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

2023-09-28 23:29:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46"
}

2023-09-28 23:29:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46"
}

2023-09-28 23:29:47 | [Mutex] received everything.

2023-09-28 23:29:47 | [Mutex] isItemNotified: retracted:item:notifieditem-c281609b-cc56-4888-a3ea-a435afd2be46:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

2023-09-28 23:29:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46"
}

2023-09-28 23:29:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "item-id": "item-c281609b-cc56-4888-a3ea-a435afd2be46",
    "item": [
        "<item id=\"item-c281609b-cc56-4888-a3ea-a435afd2be46\"><test>item-c281609b-cc56-4888-a3ea-a435afd2be46</test></item>"
    ]
}

2023-09-28 23:29:47 | [Mutex] notify: [retrieved:item:item-c281609b-cc56-4888-a3ea-a435afd2be46:payload-matches:true:localhost]

2023-09-28 23:29:47 | [Mutex] received everything.

2023-09-28 23:29:47 | [Mutex] isItemNotified: retrieved:item:item-c281609b-cc56-4888-a3ea-a435afd2be46:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

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

2023-09-28 23:29:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-897dfd70-dcdf-4870-8493-7e619a665077",
        "node-f5bcf9f9-ee2a-4fa1-829f-0f956359abd1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

2023-09-28 23:29:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-897dfd70-dcdf-4870-8493-7e619a665077)"
}

2023-09-28 23:29:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-09-28 23:29:45 |

2023-09-28 23:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:45 | ------------------------------------

2023-09-28 23:29:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-09-28 23:29:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.111s
2023-09-28 23:29:47 |

2023-09-28 23:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:29:47 | ------------------------------------

2023-09-28 23:29:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-897dfd70-dcdf-4870-8493-7e619a665077",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-09-28 23:29:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}