Generated by TestNG with ReportNG at 22:45 PDT on Sunday 09 July 2023
root@cc7d7fbb25f7 / 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.815s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-07-09 23:00:13 |

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

2023-07-09 23:00:13 | ------------------------------------

2023-07-09 23:00:13 | [Mutex] waiting for: [configured:node:node-588f19b3-e578-4730-91e5-eb897ea44350:node-a134b402-059c-4bb6-b64a-f06284606e28]

2023-07-09 23:00:13 | [Mutex] received everything.

2023-07-09 23:00:13 | [Mutex] isItemNotified: configured:node:node-588f19b3-e578-4730-91e5-eb897ea44350:node-a134b402-059c-4bb6-b64a-f06284606e28 :: true

2023-07-09 23:00:14 | [Mutex] waiting for: [received:nodes:f184a89a-2386-435d-877f-e92b8101d641:localhost]

2023-07-09 23:00:14 | [Mutex] received everything.

2023-07-09 23:00:14 | [Mutex] isItemNotified: received:node:f184a89a-2386-435d-877f-e92b8101d641:localhost:node-588f19b3-e578-4730-91e5-eb897ea44350:Node 588f19b3-e578-4730-91e5-eb897ea44350 :: true

2023-07-09 23:00:14 | [Mutex] waiting for: [received:nodes:5d1cd2b4-de88-4ce3-b4d2-edb3f5fde940:localhost]

2023-07-09 23:00:14 | [Mutex] waiting for: [received:nodes:5d1cd2b4-de88-4ce3-b4d2-edb3f5fde940:localhost]

2023-07-09 23:00:14 | [Mutex] waiting for: [received:nodes:5d1cd2b4-de88-4ce3-b4d2-edb3f5fde940:localhost]

2023-07-09 23:00:14 | [Mutex] waiting for: [received:nodes:5d1cd2b4-de88-4ce3-b4d2-edb3f5fde940:localhost]

2023-07-09 23:00:14 | [Mutex] received everything.

2023-07-09 23:00:14 | [Mutex] isItemNotified: received:node:5d1cd2b4-de88-4ce3-b4d2-edb3f5fde940:localhost:node-588f19b3-e578-4730-91e5-eb897ea44350:Node 588f19b3-e578-4730-91e5-eb897ea44350 :: false

createNodes 1.751s
2023-07-09 23:00:10 |

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

2023-07-09 23:00:10 | ------------------------------------

2023-07-09 23:00:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "pubsub#title": "Node 588f19b3-e578-4730-91e5-eb897ea44350"
}

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

2023-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:5678fe09-7287-470d-95af-974e3755c502:localhost]

2023-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:5678fe09-7287-470d-95af-974e3755c502:localhost]

2023-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:5678fe09-7287-470d-95af-974e3755c502:localhost]

2023-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:5678fe09-7287-470d-95af-974e3755c502:localhost]

2023-07-09 23:00:12 | [Mutex] received everything.

2023-07-09 23:00:12 | [Mutex] isItemNotified: received:node:5678fe09-7287-470d-95af-974e3755c502:localhost:node-588f19b3-e578-4730-91e5-eb897ea44350:Node 588f19b3-e578-4730-91e5-eb897ea44350 :: true

createSubnodes 1.026s
2023-07-09 23:00:12 |

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

2023-07-09 23:00:12 | ------------------------------------

2023-07-09 23:00:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a134b402-059c-4bb6-b64a-f06284606e28",
    "pubsub#title": "Node a134b402-059c-4bb6-b64a-f06284606e28"
}

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

2023-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:3f08ecda-f44f-4c8f-9f79-1bd6f338e47d:localhost]

2023-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:3f08ecda-f44f-4c8f-9f79-1bd6f338e47d:localhost]

2023-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:3f08ecda-f44f-4c8f-9f79-1bd6f338e47d:localhost]

2023-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:3f08ecda-f44f-4c8f-9f79-1bd6f338e47d:localhost]

2023-07-09 23:00:13 | [Mutex] received everything.

2023-07-09 23:00:13 | [Mutex] isItemNotified: received:node:3f08ecda-f44f-4c8f-9f79-1bd6f338e47d:localhost:node-a134b402-059c-4bb6-b64a-f06284606e28:Node a134b402-059c-4bb6-b64a-f06284606e28 :: true

deleteNodes 1.017s
2023-07-09 23:00:17 |

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

2023-07-09 23:00:17 | ------------------------------------

2023-07-09 23:00:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a134b402-059c-4bb6-b64a-f06284606e28"
}

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

2023-07-09 23:00:18 | [Mutex] waiting for: [received:nodes:4b5c3dfe-b744-4e77-9ad1-3ac6e0de3d13:localhost]

2023-07-09 23:00:18 | [Mutex] waiting for: [received:nodes:4b5c3dfe-b744-4e77-9ad1-3ac6e0de3d13:localhost]

2023-07-09 23:00:18 | [Mutex] waiting for: [received:nodes:4b5c3dfe-b744-4e77-9ad1-3ac6e0de3d13:localhost]

2023-07-09 23:00:18 | [Mutex] received everything.

2023-07-09 23:00:18 | [Mutex] isItemNotified: received:node:4b5c3dfe-b744-4e77-9ad1-3ac6e0de3d13:localhost:node-a134b402-059c-4bb6-b64a-f06284606e28:Node a134b402-059c-4bb6-b64a-f06284606e28 :: false

deleteSubnodes 1.024s
2023-07-09 23:00:16 |

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

2023-07-09 23:00:16 | ------------------------------------

2023-07-09 23:00:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350"
}

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

2023-07-09 23:00:17 | [Mutex] waiting for: [received:nodes:8e3e0e29-2f32-41d7-b216-29a5159e4342:localhost]

2023-07-09 23:00:17 | [Mutex] received everything.

2023-07-09 23:00:17 | [Mutex] isItemNotified: received:node:8e3e0e29-2f32-41d7-b216-29a5159e4342:localhost:node-588f19b3-e578-4730-91e5-eb897ea44350:Node 588f19b3-e578-4730-91e5-eb897ea44350 :: false

2023-07-09 23:00:17 | [Mutex] waiting for: [received:nodes:5f2a1f94-01e3-43e8-83e5-6e9da53bf1df:localhost]

2023-07-09 23:00:17 | [Mutex] received everything.

2023-07-09 23:00:17 | [Mutex] isItemNotified: received:node:5f2a1f94-01e3-43e8-83e5-6e9da53bf1df:localhost:node-588f19b3-e578-4730-91e5-eb897ea44350:Node 588f19b3-e578-4730-91e5-eb897ea44350 :: false

publishItemsToNodes 0.054s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

2023-07-09 23:00:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "entry": "<test>item-42cc3ca3-209f-4e2d-beef-46992b49b053</test>",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053"
}

2023-07-09 23:00:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053"
}

2023-07-09 23:00:15 | [Mutex] waiting for: [published:item:notifieditem-42cc3ca3-209f-4e2d-beef-46992b49b053:admin@test-domain.com]

2023-07-09 23:00:15 | [Mutex] received everything.

2023-07-09 23:00:15 | [Mutex] isItemNotified: published:item:notifieditem-42cc3ca3-209f-4e2d-beef-46992b49b053:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

2023-07-09 23:00:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053"
}

2023-07-09 23:00:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053"
}

2023-07-09 23:00:15 | [Mutex] received everything.

2023-07-09 23:00:15 | [Mutex] isItemNotified: retracted:item:notifieditem-42cc3ca3-209f-4e2d-beef-46992b49b053:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

2023-07-09 23:00:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053"
}

2023-07-09 23:00:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "item-id": "item-42cc3ca3-209f-4e2d-beef-46992b49b053",
    "item": [
        "<item id=\"item-42cc3ca3-209f-4e2d-beef-46992b49b053\"><test>item-42cc3ca3-209f-4e2d-beef-46992b49b053</test></item>"
    ]
}

2023-07-09 23:00:15 | [Mutex] notify: [retrieved:item:item-42cc3ca3-209f-4e2d-beef-46992b49b053:payload-matches:true:localhost]

2023-07-09 23:00:15 | [Mutex] received everything.

2023-07-09 23:00:15 | [Mutex] isItemNotified: retrieved:item:item-42cc3ca3-209f-4e2d-beef-46992b49b053:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

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

2023-07-09 23:00:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a134b402-059c-4bb6-b64a-f06284606e28",
        "node-588f19b3-e578-4730-91e5-eb897ea44350"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

2023-07-09 23:00:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-588f19b3-e578-4730-91e5-eb897ea44350)"
}

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

subscribeNodes 1.015s
2023-07-09 23:00:14 |

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

2023-07-09 23:00:14 | ------------------------------------

2023-07-09 23:00:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.062s
2023-07-09 23:00:15 |

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

2023-07-09 23:00:15 | ------------------------------------

2023-07-09 23:00:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-588f19b3-e578-4730-91e5-eb897ea44350",
    "jids": [
        "admin@test-domain.com"
    ]
}

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