Generated by TestNG with ReportNG at 21:18 PST on Tuesday 15 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.998s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2022-02-15 21:33:26 |

2022-02-15 21:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:26 | ------------------------------------

2022-02-15 21:33:26 | [Mutex] waiting for: [configured:node:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:node-3f3f821a-4714-4a43-a35b-69196d2a0a7d]

2022-02-15 21:33:26 | [Mutex] received everything.

2022-02-15 21:33:26 | [Mutex] isItemNotified: configured:node:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:node-3f3f821a-4714-4a43-a35b-69196d2a0a7d :: true

2022-02-15 21:33:27 | [Mutex] waiting for: [received:nodes:485d6c19-67bc-470a-9131-6a0fd35d8914:localhost]

2022-02-15 21:33:27 | [Mutex] received everything.

2022-02-15 21:33:27 | [Mutex] isItemNotified: received:node:485d6c19-67bc-470a-9131-6a0fd35d8914:localhost:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1 :: true

2022-02-15 21:33:27 | [Mutex] waiting for: [received:nodes:56f11a17-86dd-4c4b-94c9-f6fd744d8720:localhost]

2022-02-15 21:33:27 | [Mutex] received everything.

2022-02-15 21:33:27 | [Mutex] isItemNotified: received:node:56f11a17-86dd-4c4b-94c9-f6fd744d8720:localhost:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1 :: false

createNodes 1.645s
2022-02-15 21:33:23 |

2022-02-15 21:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:23 | ------------------------------------

2022-02-15 21:33:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "pubsub#title": "Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1"
}

2022-02-15 21:33:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:33:25 | [Mutex] waiting for: [received:nodes:bd3e76e2-3b13-4a7f-8299-2655cfbac6cd:localhost]

2022-02-15 21:33:25 | [Mutex] received everything.

2022-02-15 21:33:25 | [Mutex] isItemNotified: received:node:bd3e76e2-3b13-4a7f-8299-2655cfbac6cd:localhost:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1 :: true

createSubnodes 1.023s
2022-02-15 21:33:25 |

2022-02-15 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:25 | ------------------------------------

2022-02-15 21:33:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3f3f821a-4714-4a43-a35b-69196d2a0a7d",
    "pubsub#title": "Node 3f3f821a-4714-4a43-a35b-69196d2a0a7d"
}

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

2022-02-15 21:33:26 | [Mutex] waiting for: [received:nodes:6db1fb9f-18df-41b8-8cfa-a938fd972e0b:localhost]

2022-02-15 21:33:26 | [Mutex] waiting for: [received:nodes:6db1fb9f-18df-41b8-8cfa-a938fd972e0b:localhost]

2022-02-15 21:33:26 | [Mutex] waiting for: [received:nodes:6db1fb9f-18df-41b8-8cfa-a938fd972e0b:localhost]

2022-02-15 21:33:26 | [Mutex] received everything.

2022-02-15 21:33:26 | [Mutex] isItemNotified: received:node:6db1fb9f-18df-41b8-8cfa-a938fd972e0b:localhost:node-3f3f821a-4714-4a43-a35b-69196d2a0a7d:Node 3f3f821a-4714-4a43-a35b-69196d2a0a7d :: true

deleteNodes 1.024s
2022-02-15 21:33:30 |

2022-02-15 21:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:30 | ------------------------------------

2022-02-15 21:33:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f3f821a-4714-4a43-a35b-69196d2a0a7d"
}

2022-02-15 21:33:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:33:31 | [Mutex] waiting for: [received:nodes:baeb055c-8c4f-417c-a05e-1aae8adbb4d0:localhost]

2022-02-15 21:33:31 | [Mutex] received everything.

2022-02-15 21:33:31 | [Mutex] isItemNotified: received:node:baeb055c-8c4f-417c-a05e-1aae8adbb4d0:localhost:node-3f3f821a-4714-4a43-a35b-69196d2a0a7d:Node 3f3f821a-4714-4a43-a35b-69196d2a0a7d :: false

deleteSubnodes 1.026s
2022-02-15 21:33:29 |

2022-02-15 21:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:29 | ------------------------------------

2022-02-15 21:33:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1"
}

2022-02-15 21:33:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:33:30 | [Mutex] waiting for: [received:nodes:e56cce2e-0cae-4234-a646-2dd0d9aa9887:localhost]

2022-02-15 21:33:30 | [Mutex] received everything.

2022-02-15 21:33:30 | [Mutex] isItemNotified: received:node:e56cce2e-0cae-4234-a646-2dd0d9aa9887:localhost:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1 :: false

2022-02-15 21:33:30 | [Mutex] waiting for: [received:nodes:7e4ce3bb-2314-4370-90ef-564d2c40b627:localhost]

2022-02-15 21:33:30 | [Mutex] received everything.

2022-02-15 21:33:30 | [Mutex] isItemNotified: received:node:7e4ce3bb-2314-4370-90ef-564d2c40b627:localhost:node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1:Node 8b94a157-f5da-4a9a-b9be-b3683b7b7aa1 :: false

publishItemsToNodes 0.124s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "entry": "<test>item-6fc6cbe9-165b-468f-84a2-31d24952b809</test>",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809"
}

2022-02-15 21:33:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809"
}

2022-02-15 21:33:28 | [Mutex] waiting for: [published:item:notifieditem-6fc6cbe9-165b-468f-84a2-31d24952b809:admin@test-domain.com]

2022-02-15 21:33:28 | [Mutex] received everything.

2022-02-15 21:33:28 | [Mutex] isItemNotified: published:item:notifieditem-6fc6cbe9-165b-468f-84a2-31d24952b809:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809"
}

2022-02-15 21:33:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809"
}

2022-02-15 21:33:28 | [Mutex] waiting for: [retracted:item:notifieditem-6fc6cbe9-165b-468f-84a2-31d24952b809:admin@test-domain.com]

2022-02-15 21:33:28 | [Mutex] received everything.

2022-02-15 21:33:28 | [Mutex] isItemNotified: retracted:item:notifieditem-6fc6cbe9-165b-468f-84a2-31d24952b809:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809"
}

2022-02-15 21:33:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "item-id": "item-6fc6cbe9-165b-468f-84a2-31d24952b809",
    "item": [
        "<item id=\"item-6fc6cbe9-165b-468f-84a2-31d24952b809\"><test>item-6fc6cbe9-165b-468f-84a2-31d24952b809</test></item>"
    ]
}

2022-02-15 21:33:28 | [Mutex] notify: [retrieved:item:item-6fc6cbe9-165b-468f-84a2-31d24952b809:payload-matches:true:localhost]

2022-02-15 21:33:28 | [Mutex] received everything.

2022-02-15 21:33:28 | [Mutex] isItemNotified: retrieved:item:item-6fc6cbe9-165b-468f-84a2-31d24952b809:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-15 21:33:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
        "node-3f3f821a-4714-4a43-a35b-69196d2a0a7d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1)"
}

2022-02-15 21:33:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-02-15 21:33:27 |

2022-02-15 21:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:27 | ------------------------------------

2022-02-15 21:33:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:33:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.081s
2022-02-15 21:33:28 |

2022-02-15 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:33:28 | ------------------------------------

2022-02-15 21:33:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8b94a157-f5da-4a9a-b9be-b3683b7b7aa1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:33:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}