Generated by TestNG with ReportNG at 21:15 PST on Sunday 25 December 2022
root@f9c07ffec79b / Java 17.0.2 (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.579s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-12-25 21:31:19 |

2022-12-25 21:31:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:19 | ------------------------------------

2022-12-25 21:31:19 | [Mutex] waiting for: [configured:node:node-25dd344d-6857-4df6-b26c-11471873960b:node-9306b0bd-44cb-4794-bec6-2be2cb550255]

2022-12-25 21:31:19 | [Mutex] received everything.

2022-12-25 21:31:19 | [Mutex] isItemNotified: configured:node:node-25dd344d-6857-4df6-b26c-11471873960b:node-9306b0bd-44cb-4794-bec6-2be2cb550255 :: true

2022-12-25 21:31:20 | [Mutex] waiting for: [received:nodes:d2b8c8c8-d0c7-4495-9adf-24da7c589de5:localhost]

2022-12-25 21:31:20 | [Mutex] received everything.

2022-12-25 21:31:20 | [Mutex] isItemNotified: received:node:d2b8c8c8-d0c7-4495-9adf-24da7c589de5:localhost:node-25dd344d-6857-4df6-b26c-11471873960b:Node 25dd344d-6857-4df6-b26c-11471873960b :: true

2022-12-25 21:31:20 | [Mutex] waiting for: [received:nodes:a3db44c7-e6cc-4bc6-b718-ac1e079b7ddd:localhost]

2022-12-25 21:31:20 | [Mutex] waiting for: [received:nodes:a3db44c7-e6cc-4bc6-b718-ac1e079b7ddd:localhost]

2022-12-25 21:31:20 | [Mutex] waiting for: [received:nodes:a3db44c7-e6cc-4bc6-b718-ac1e079b7ddd:localhost]

2022-12-25 21:31:20 | [Mutex] received everything.

2022-12-25 21:31:20 | [Mutex] isItemNotified: received:node:a3db44c7-e6cc-4bc6-b718-ac1e079b7ddd:localhost:node-25dd344d-6857-4df6-b26c-11471873960b:Node 25dd344d-6857-4df6-b26c-11471873960b :: false

createNodes 1.518s
2022-12-25 21:31:17 |

2022-12-25 21:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:17 | ------------------------------------

2022-12-25 21:31:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "pubsub#title": "Node 25dd344d-6857-4df6-b26c-11471873960b"
}

2022-12-25 21:31:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-25 21:31:18 | [Mutex] waiting for: [received:nodes:f21aadfc-10f8-4260-9793-92a7e25d2ed0:localhost]

2022-12-25 21:31:18 | [Mutex] waiting for: [received:nodes:f21aadfc-10f8-4260-9793-92a7e25d2ed0:localhost]

2022-12-25 21:31:18 | [Mutex] waiting for: [received:nodes:f21aadfc-10f8-4260-9793-92a7e25d2ed0:localhost]

2022-12-25 21:31:18 | [Mutex] received everything.

2022-12-25 21:31:18 | [Mutex] isItemNotified: received:node:f21aadfc-10f8-4260-9793-92a7e25d2ed0:localhost:node-25dd344d-6857-4df6-b26c-11471873960b:Node 25dd344d-6857-4df6-b26c-11471873960b :: true

createSubnodes 1.026s
2022-12-25 21:31:18 |

2022-12-25 21:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:18 | ------------------------------------

2022-12-25 21:31:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9306b0bd-44cb-4794-bec6-2be2cb550255",
    "pubsub#title": "Node 9306b0bd-44cb-4794-bec6-2be2cb550255"
}

2022-12-25 21:31:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-25 21:31:19 | [Mutex] waiting for: [received:nodes:2cd3341c-2e87-4553-90d0-a4621872a41c:localhost]

2022-12-25 21:31:19 | [Mutex] waiting for: [received:nodes:2cd3341c-2e87-4553-90d0-a4621872a41c:localhost]

2022-12-25 21:31:19 | [Mutex] waiting for: [received:nodes:2cd3341c-2e87-4553-90d0-a4621872a41c:localhost]

2022-12-25 21:31:19 | [Mutex] waiting for: [received:nodes:2cd3341c-2e87-4553-90d0-a4621872a41c:localhost]

2022-12-25 21:31:19 | [Mutex] received everything.

2022-12-25 21:31:19 | [Mutex] isItemNotified: received:node:2cd3341c-2e87-4553-90d0-a4621872a41c:localhost:node-9306b0bd-44cb-4794-bec6-2be2cb550255:Node 9306b0bd-44cb-4794-bec6-2be2cb550255 :: true

deleteNodes 1.018s
2022-12-25 21:31:24 |

2022-12-25 21:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:24 | ------------------------------------

2022-12-25 21:31:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9306b0bd-44cb-4794-bec6-2be2cb550255"
}

2022-12-25 21:31:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-25 21:31:25 | [Mutex] waiting for: [received:nodes:1773dd44-fd78-43d7-bb2f-09cbb42cd7ae:localhost]

2022-12-25 21:31:25 | [Mutex] waiting for: [received:nodes:1773dd44-fd78-43d7-bb2f-09cbb42cd7ae:localhost]

2022-12-25 21:31:25 | [Mutex] waiting for: [received:nodes:1773dd44-fd78-43d7-bb2f-09cbb42cd7ae:localhost]

2022-12-25 21:31:25 | [Mutex] received everything.

2022-12-25 21:31:25 | [Mutex] isItemNotified: received:node:1773dd44-fd78-43d7-bb2f-09cbb42cd7ae:localhost:node-9306b0bd-44cb-4794-bec6-2be2cb550255:Node 9306b0bd-44cb-4794-bec6-2be2cb550255 :: false

deleteSubnodes 1.026s
2022-12-25 21:31:23 |

2022-12-25 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:23 | ------------------------------------

2022-12-25 21:31:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b"
}

2022-12-25 21:31:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-25 21:31:24 | [Mutex] waiting for: [received:nodes:cf4a7700-8f4d-4e76-a22b-d98aec0990a1:localhost]

2022-12-25 21:31:24 | [Mutex] waiting for: [received:nodes:cf4a7700-8f4d-4e76-a22b-d98aec0990a1:localhost]

2022-12-25 21:31:24 | [Mutex] waiting for: [received:nodes:cf4a7700-8f4d-4e76-a22b-d98aec0990a1:localhost]

2022-12-25 21:31:24 | [Mutex] waiting for: [received:nodes:cf4a7700-8f4d-4e76-a22b-d98aec0990a1:localhost]

2022-12-25 21:31:24 | [Mutex] received everything.

2022-12-25 21:31:24 | [Mutex] isItemNotified: received:node:cf4a7700-8f4d-4e76-a22b-d98aec0990a1:localhost:node-25dd344d-6857-4df6-b26c-11471873960b:Node 25dd344d-6857-4df6-b26c-11471873960b :: false

2022-12-25 21:31:24 | [Mutex] waiting for: [received:nodes:8f331f12-530a-4b13-bdf1-28d895efc1f8:localhost]

2022-12-25 21:31:24 | [Mutex] received everything.

2022-12-25 21:31:24 | [Mutex] isItemNotified: received:node:8f331f12-530a-4b13-bdf1-28d895efc1f8:localhost:node-25dd344d-6857-4df6-b26c-11471873960b:Node 25dd344d-6857-4df6-b26c-11471873960b :: false

publishItemsToNodes 0.072s
2022-12-25 21:31:21 |

2022-12-25 21:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:21 | ------------------------------------

2022-12-25 21:31:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "entry": "<test>item-27793073-e7ad-4649-9ef7-4cde6f7a655e</test>",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e"
}

2022-12-25 21:31:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e"
}

2022-12-25 21:31:22 | [Mutex] waiting for: [published:item:notifieditem-27793073-e7ad-4649-9ef7-4cde6f7a655e:admin@test-domain.com]

2022-12-25 21:31:22 | [Mutex] received everything.

2022-12-25 21:31:22 | [Mutex] isItemNotified: published:item:notifieditem-27793073-e7ad-4649-9ef7-4cde6f7a655e:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-25 21:31:22 |

2022-12-25 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:22 | ------------------------------------

2022-12-25 21:31:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e"
}

2022-12-25 21:31:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e"
}

2022-12-25 21:31:22 | [Mutex] received everything.

2022-12-25 21:31:22 | [Mutex] isItemNotified: retracted:item:notifieditem-27793073-e7ad-4649-9ef7-4cde6f7a655e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-12-25 21:31:22 |

2022-12-25 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:22 | ------------------------------------

2022-12-25 21:31:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e"
}

2022-12-25 21:31:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "item-id": "item-27793073-e7ad-4649-9ef7-4cde6f7a655e",
    "item": [
        "<item id=\"item-27793073-e7ad-4649-9ef7-4cde6f7a655e\"><test>item-27793073-e7ad-4649-9ef7-4cde6f7a655e</test></item>"
    ]
}

2022-12-25 21:31:22 | [Mutex] notify: [retrieved:item:item-27793073-e7ad-4649-9ef7-4cde6f7a655e:payload-matches:true:localhost]

2022-12-25 21:31:22 | [Mutex] received everything.

2022-12-25 21:31:22 | [Mutex] isItemNotified: retrieved:item:item-27793073-e7ad-4649-9ef7-4cde6f7a655e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2022-12-25 21:31:22 |

2022-12-25 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:22 | ------------------------------------

2022-12-25 21:31:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-25 21:31:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9306b0bd-44cb-4794-bec6-2be2cb550255",
        "test",
        "node-25dd344d-6857-4df6-b26c-11471873960b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-12-25 21:31:22 |

2022-12-25 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:22 | ------------------------------------

2022-12-25 21:31:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-25dd344d-6857-4df6-b26c-11471873960b)"
}

2022-12-25 21:31:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-12-25 21:31:20 |

2022-12-25 21:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:20 | ------------------------------------

2022-12-25 21:31:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-25 21:31:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2022-12-25 21:31:22 |

2022-12-25 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-25 21:31:22 | ------------------------------------

2022-12-25 21:31:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-25dd344d-6857-4df6-b26c-11471873960b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-25 21:31:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}