Generated by TestNG with ReportNG at 09:40 PST on Friday 30 December 2022
root@ed1b7dd8a1b3 / 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.655s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-12-30 09:55:37 |

2022-12-30 09:55:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:37 | ------------------------------------

2022-12-30 09:55:37 | [Mutex] waiting for: [configured:node:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:node-ffde2033-78c2-48df-a258-a00fcef8d8cb]

2022-12-30 09:55:37 | [Mutex] received everything.

2022-12-30 09:55:37 | [Mutex] isItemNotified: configured:node:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:node-ffde2033-78c2-48df-a258-a00fcef8d8cb :: true

2022-12-30 09:55:38 | [Mutex] waiting for: [received:nodes:129f366d-0514-442c-8a15-13c3fa8cd373:localhost]

2022-12-30 09:55:38 | [Mutex] received everything.

2022-12-30 09:55:38 | [Mutex] isItemNotified: received:node:129f366d-0514-442c-8a15-13c3fa8cd373:localhost:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe :: true

2022-12-30 09:55:38 | [Mutex] waiting for: [received:nodes:3516d88b-f3b1-4067-b0c6-2af9231acd3c:localhost]

2022-12-30 09:55:38 | [Mutex] waiting for: [received:nodes:3516d88b-f3b1-4067-b0c6-2af9231acd3c:localhost]

2022-12-30 09:55:38 | [Mutex] waiting for: [received:nodes:3516d88b-f3b1-4067-b0c6-2af9231acd3c:localhost]

2022-12-30 09:55:38 | [Mutex] waiting for: [received:nodes:3516d88b-f3b1-4067-b0c6-2af9231acd3c:localhost]

2022-12-30 09:55:38 | [Mutex] received everything.

2022-12-30 09:55:38 | [Mutex] isItemNotified: received:node:3516d88b-f3b1-4067-b0c6-2af9231acd3c:localhost:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe :: false

createNodes 1.595s
2022-12-30 09:55:34 |

2022-12-30 09:55:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:34 | ------------------------------------

2022-12-30 09:55:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "pubsub#title": "Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe"
}

2022-12-30 09:55:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:55:36 | [Mutex] waiting for: [received:nodes:b6e08da4-6619-4876-99a0-9e28df8ee3ca:localhost]

2022-12-30 09:55:36 | [Mutex] waiting for: [received:nodes:b6e08da4-6619-4876-99a0-9e28df8ee3ca:localhost]

2022-12-30 09:55:36 | [Mutex] waiting for: [received:nodes:b6e08da4-6619-4876-99a0-9e28df8ee3ca:localhost]

2022-12-30 09:55:36 | [Mutex] waiting for: [received:nodes:b6e08da4-6619-4876-99a0-9e28df8ee3ca:localhost]

2022-12-30 09:55:36 | [Mutex] received everything.

2022-12-30 09:55:36 | [Mutex] isItemNotified: received:node:b6e08da4-6619-4876-99a0-9e28df8ee3ca:localhost:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe :: true

createSubnodes 1.033s
2022-12-30 09:55:36 |

2022-12-30 09:55:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:36 | ------------------------------------

2022-12-30 09:55:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ffde2033-78c2-48df-a258-a00fcef8d8cb",
    "pubsub#title": "Node ffde2033-78c2-48df-a258-a00fcef8d8cb"
}

2022-12-30 09:55:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:55:37 | [Mutex] waiting for: [received:nodes:780205c9-3a6b-4af9-b4bf-3ee3ac1e2ac1:localhost]

2022-12-30 09:55:37 | [Mutex] waiting for: [received:nodes:780205c9-3a6b-4af9-b4bf-3ee3ac1e2ac1:localhost]

2022-12-30 09:55:37 | [Mutex] waiting for: [received:nodes:780205c9-3a6b-4af9-b4bf-3ee3ac1e2ac1:localhost]

2022-12-30 09:55:37 | [Mutex] waiting for: [received:nodes:780205c9-3a6b-4af9-b4bf-3ee3ac1e2ac1:localhost]

2022-12-30 09:55:37 | [Mutex] received everything.

2022-12-30 09:55:37 | [Mutex] isItemNotified: received:node:780205c9-3a6b-4af9-b4bf-3ee3ac1e2ac1:localhost:node-ffde2033-78c2-48df-a258-a00fcef8d8cb:Node ffde2033-78c2-48df-a258-a00fcef8d8cb :: true

deleteNodes 1.028s
2022-12-30 09:55:41 |

2022-12-30 09:55:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:41 | ------------------------------------

2022-12-30 09:55:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ffde2033-78c2-48df-a258-a00fcef8d8cb"
}

2022-12-30 09:55:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:55:42 | [Mutex] waiting for: [received:nodes:8ec73744-0d29-45e4-a6a7-9f07ced8a044:localhost]

2022-12-30 09:55:42 | [Mutex] waiting for: [received:nodes:8ec73744-0d29-45e4-a6a7-9f07ced8a044:localhost]

2022-12-30 09:55:42 | [Mutex] waiting for: [received:nodes:8ec73744-0d29-45e4-a6a7-9f07ced8a044:localhost]

2022-12-30 09:55:42 | [Mutex] received everything.

2022-12-30 09:55:42 | [Mutex] isItemNotified: received:node:8ec73744-0d29-45e4-a6a7-9f07ced8a044:localhost:node-ffde2033-78c2-48df-a258-a00fcef8d8cb:Node ffde2033-78c2-48df-a258-a00fcef8d8cb :: false

deleteSubnodes 1.027s
2022-12-30 09:55:40 |

2022-12-30 09:55:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:40 | ------------------------------------

2022-12-30 09:55:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe"
}

2022-12-30 09:55:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:55:41 | [Mutex] waiting for: [received:nodes:8ad4818c-f2b7-4d28-92b7-faa60afc8960:localhost]

2022-12-30 09:55:41 | [Mutex] waiting for: [received:nodes:8ad4818c-f2b7-4d28-92b7-faa60afc8960:localhost]

2022-12-30 09:55:41 | [Mutex] waiting for: [received:nodes:8ad4818c-f2b7-4d28-92b7-faa60afc8960:localhost]

2022-12-30 09:55:41 | [Mutex] waiting for: [received:nodes:8ad4818c-f2b7-4d28-92b7-faa60afc8960:localhost]

2022-12-30 09:55:41 | [Mutex] received everything.

2022-12-30 09:55:41 | [Mutex] isItemNotified: received:node:8ad4818c-f2b7-4d28-92b7-faa60afc8960:localhost:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe :: false

2022-12-30 09:55:41 | [Mutex] waiting for: [received:nodes:f02fd299-7ef7-4c67-81c6-57907ebf2a3f:localhost]

2022-12-30 09:55:41 | [Mutex] received everything.

2022-12-30 09:55:41 | [Mutex] isItemNotified: received:node:f02fd299-7ef7-4c67-81c6-57907ebf2a3f:localhost:node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe:Node de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe :: false

publishItemsToNodes 0.027s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "entry": "<test>item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66</test>",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66"
}

2022-12-30 09:55:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66"
}

2022-12-30 09:55:39 | [Mutex] waiting for: [published:item:notifieditem-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66:admin@test-domain.com]

2022-12-30 09:55:39 | [Mutex] received everything.

2022-12-30 09:55:39 | [Mutex] isItemNotified: published:item:notifieditem-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66"
}

2022-12-30 09:55:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66"
}

2022-12-30 09:55:39 | [Mutex] received everything.

2022-12-30 09:55:39 | [Mutex] isItemNotified: retracted:item:notifieditem-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66"
}

2022-12-30 09:55:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "item-id": "item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66",
    "item": [
        "<item id=\"item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66\"><test>item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66</test></item>"
    ]
}

2022-12-30 09:55:39 | [Mutex] notify: [retrieved:item:item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66:payload-matches:true:localhost]

2022-12-30 09:55:39 | [Mutex] received everything.

2022-12-30 09:55:39 | [Mutex] isItemNotified: retrieved:item:item-d2b7b315-6003-4e5f-9dca-b3ff63cd1a66:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 09:55:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ffde2033-78c2-48df-a258-a00fcef8d8cb",
        "test",
        "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe)"
}

2022-12-30 09:55:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-12-30 09:55:38 |

2022-12-30 09:55:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:38 | ------------------------------------

2022-12-30 09:55:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:55:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-12-30 09:55:39 |

2022-12-30 09:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:55:39 | ------------------------------------

2022-12-30 09:55:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-de20bf67-7f3c-4cb9-9c26-c9e7ff0ea3fe",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:55:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}