Generated by TestNG with ReportNG at 22:40 PDT on Tuesday 16 August 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.788s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.157s
2022-08-16 22:54:19 |

2022-08-16 22:54:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:19 | ------------------------------------

2022-08-16 22:54:19 | [Mutex] waiting for: [configured:node:node-6e149425-1e81-43e0-837e-d711c0f3a003:node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98]

2022-08-16 22:54:19 | [Mutex] received everything.

2022-08-16 22:54:19 | [Mutex] isItemNotified: configured:node:node-6e149425-1e81-43e0-837e-d711c0f3a003:node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98 :: true

2022-08-16 22:54:20 | [Mutex] waiting for: [received:nodes:c3619baa-13a0-419f-b404-2aef9ba388ef:localhost]

2022-08-16 22:54:20 | [Mutex] received everything.

2022-08-16 22:54:20 | [Mutex] isItemNotified: received:node:c3619baa-13a0-419f-b404-2aef9ba388ef:localhost:node-6e149425-1e81-43e0-837e-d711c0f3a003:Node 6e149425-1e81-43e0-837e-d711c0f3a003 :: true

2022-08-16 22:54:20 | [Mutex] waiting for: [received:nodes:52f73539-651f-4e90-9fb1-34cf33e11ff2:localhost]

2022-08-16 22:54:20 | [Mutex] waiting for: [received:nodes:52f73539-651f-4e90-9fb1-34cf33e11ff2:localhost]

2022-08-16 22:54:20 | [Mutex] waiting for: [received:nodes:52f73539-651f-4e90-9fb1-34cf33e11ff2:localhost]

2022-08-16 22:54:20 | [Mutex] received everything.

2022-08-16 22:54:20 | [Mutex] isItemNotified: received:node:52f73539-651f-4e90-9fb1-34cf33e11ff2:localhost:node-6e149425-1e81-43e0-837e-d711c0f3a003:Node 6e149425-1e81-43e0-837e-d711c0f3a003 :: false

createNodes 1.682s
2022-08-16 22:54:17 |

2022-08-16 22:54:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:17 | ------------------------------------

2022-08-16 22:54: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-6e149425-1e81-43e0-837e-d711c0f3a003",
    "pubsub#title": "Node 6e149425-1e81-43e0-837e-d711c0f3a003"
}

2022-08-16 22:54:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-16 22:54:18 | [Mutex] waiting for: [received:nodes:4afeb117-b8c9-4545-808e-01e10c449c91:localhost]

2022-08-16 22:54:18 | [Mutex] received everything.

2022-08-16 22:54:18 | [Mutex] isItemNotified: received:node:4afeb117-b8c9-4545-808e-01e10c449c91:localhost:node-6e149425-1e81-43e0-837e-d711c0f3a003:Node 6e149425-1e81-43e0-837e-d711c0f3a003 :: true

createSubnodes 1.024s
2022-08-16 22:54:18 |

2022-08-16 22:54:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:18 | ------------------------------------

2022-08-16 22:54: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-9308ebd3-c9d8-4f27-90df-aeb5cb780e98",
    "pubsub#title": "Node 9308ebd3-c9d8-4f27-90df-aeb5cb780e98"
}

2022-08-16 22:54:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-16 22:54:19 | [Mutex] waiting for: [received:nodes:e39d6918-8c1c-42cd-90c9-934047af355a:localhost]

2022-08-16 22:54:19 | [Mutex] received everything.

2022-08-16 22:54:19 | [Mutex] isItemNotified: received:node:e39d6918-8c1c-42cd-90c9-934047af355a:localhost:node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98:Node 9308ebd3-c9d8-4f27-90df-aeb5cb780e98 :: true

deleteNodes 1.021s
2022-08-16 22:54:24 |

2022-08-16 22:54:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:24 | ------------------------------------

2022-08-16 22:54:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98"
}

2022-08-16 22:54:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-16 22:54:25 | [Mutex] waiting for: [received:nodes:9e43e11a-f57b-4d32-893e-210d50c31f77:localhost]

2022-08-16 22:54:25 | [Mutex] received everything.

2022-08-16 22:54:25 | [Mutex] isItemNotified: received:node:9e43e11a-f57b-4d32-893e-210d50c31f77:localhost:node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98:Node 9308ebd3-c9d8-4f27-90df-aeb5cb780e98 :: false

deleteSubnodes 1.024s
2022-08-16 22:54:23 |

2022-08-16 22:54:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:23 | ------------------------------------

2022-08-16 22:54:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003"
}

2022-08-16 22:54:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-16 22:54:24 | [Mutex] waiting for: [received:nodes:e345f88c-37a7-45fb-a40c-8d285d532897:localhost]

2022-08-16 22:54:24 | [Mutex] waiting for: [received:nodes:e345f88c-37a7-45fb-a40c-8d285d532897:localhost]

2022-08-16 22:54:24 | [Mutex] received everything.

2022-08-16 22:54:24 | [Mutex] isItemNotified: received:node:e345f88c-37a7-45fb-a40c-8d285d532897:localhost:node-6e149425-1e81-43e0-837e-d711c0f3a003:Node 6e149425-1e81-43e0-837e-d711c0f3a003 :: false

2022-08-16 22:54:24 | [Mutex] waiting for: [received:nodes:faf727e6-307f-422b-82f6-8f55f3ff0b28:localhost]

2022-08-16 22:54:24 | [Mutex] received everything.

2022-08-16 22:54:24 | [Mutex] isItemNotified: received:node:faf727e6-307f-422b-82f6-8f55f3ff0b28:localhost:node-6e149425-1e81-43e0-837e-d711c0f3a003:Node 6e149425-1e81-43e0-837e-d711c0f3a003 :: false

publishItemsToNodes 0.054s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

2022-08-16 22:54:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "entry": "<test>item-78e16f12-950f-4276-9d4b-6ce863363830</test>",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830"
}

2022-08-16 22:54:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830"
}

2022-08-16 22:54:22 | [Mutex] waiting for: [published:item:notifieditem-78e16f12-950f-4276-9d4b-6ce863363830:admin@test-domain.com]

2022-08-16 22:54:22 | [Mutex] received everything.

2022-08-16 22:54:22 | [Mutex] isItemNotified: published:item:notifieditem-78e16f12-950f-4276-9d4b-6ce863363830:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

2022-08-16 22:54:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830"
}

2022-08-16 22:54:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830"
}

2022-08-16 22:54:22 | [Mutex] waiting for: [retracted:item:notifieditem-78e16f12-950f-4276-9d4b-6ce863363830:admin@test-domain.com]

2022-08-16 22:54:22 | [Mutex] received everything.

2022-08-16 22:54:22 | [Mutex] isItemNotified: retracted:item:notifieditem-78e16f12-950f-4276-9d4b-6ce863363830:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

2022-08-16 22:54:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830"
}

2022-08-16 22:54:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "item-id": "item-78e16f12-950f-4276-9d4b-6ce863363830",
    "item": [
        "<item id=\"item-78e16f12-950f-4276-9d4b-6ce863363830\"><test>item-78e16f12-950f-4276-9d4b-6ce863363830</test></item>"
    ]
}

2022-08-16 22:54:22 | [Mutex] notify: [retrieved:item:item-78e16f12-950f-4276-9d4b-6ce863363830:payload-matches:true:localhost]

2022-08-16 22:54:22 | [Mutex] received everything.

2022-08-16 22:54:22 | [Mutex] isItemNotified: retrieved:item:item-78e16f12-950f-4276-9d4b-6ce863363830:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

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

2022-08-16 22:54:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9308ebd3-c9d8-4f27-90df-aeb5cb780e98",
        "test",
        "node-6e149425-1e81-43e0-837e-d711c0f3a003"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

2022-08-16 22:54:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6e149425-1e81-43e0-837e-d711c0f3a003)"
}

2022-08-16 22:54:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-08-16 22:54:20 |

2022-08-16 22:54:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:20 | ------------------------------------

2022-08-16 22:54:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-16 22:54:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2022-08-16 22:54:22 |

2022-08-16 22:54:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:54:22 | ------------------------------------

2022-08-16 22:54:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6e149425-1e81-43e0-837e-d711c0f3a003",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-16 22:54:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}