Generated by TestNG with ReportNG at 22:13 PDT on Wednesday 31 March 2021
root@87f6aca6b6f2 / 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 : 9.192s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.137s
2021-03-31 22:28:32 |

2021-03-31 22:28:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:32 | ------------------------------------

2021-03-31 22:28:32 | [Mutex] waiting for: [configured:node:node-8e4c202d-6d82-435e-9e62-72146310a359:node-1d441275-a709-46ce-8c4a-3fc399ce5fcf]

2021-03-31 22:28:32 | [Mutex] received everything.

2021-03-31 22:28:32 | [Mutex] isItemNotified: configured:node:node-8e4c202d-6d82-435e-9e62-72146310a359:node-1d441275-a709-46ce-8c4a-3fc399ce5fcf :: true

2021-03-31 22:28:33 | [Mutex] waiting for: [received:nodes:c8af0b1b-3f9e-4aa8-b01e-2fc3baaeec7c:localhost]

2021-03-31 22:28:33 | [Mutex] received everything.

2021-03-31 22:28:33 | [Mutex] isItemNotified: received:node:c8af0b1b-3f9e-4aa8-b01e-2fc3baaeec7c:localhost:node-8e4c202d-6d82-435e-9e62-72146310a359:Node 8e4c202d-6d82-435e-9e62-72146310a359 :: true

2021-03-31 22:28:33 | [Mutex] waiting for: [received:nodes:57a01d61-e9cb-4857-96a4-58c8848dd4ba:localhost]

2021-03-31 22:28:33 | [Mutex] received everything.

2021-03-31 22:28:33 | [Mutex] isItemNotified: received:node:57a01d61-e9cb-4857-96a4-58c8848dd4ba:localhost:node-8e4c202d-6d82-435e-9e62-72146310a359:Node 8e4c202d-6d82-435e-9e62-72146310a359 :: false

createNodes 1.585s
2021-03-31 22:28:29 |

2021-03-31 22:28:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:29 | ------------------------------------

2021-03-31 22:28:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "pubsub#title": "Node 8e4c202d-6d82-435e-9e62-72146310a359"
}

2021-03-31 22:28:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:28:31 | [Mutex] waiting for: [received:nodes:c3e270e4-1137-42ea-bd51-68031076f7ce:localhost]

2021-03-31 22:28:31 | [Mutex] received everything.

2021-03-31 22:28:31 | [Mutex] isItemNotified: received:node:c3e270e4-1137-42ea-bd51-68031076f7ce:localhost:node-8e4c202d-6d82-435e-9e62-72146310a359:Node 8e4c202d-6d82-435e-9e62-72146310a359 :: true

createSubnodes 1.034s
2021-03-31 22:28:31 |

2021-03-31 22:28:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:31 | ------------------------------------

2021-03-31 22:28:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1d441275-a709-46ce-8c4a-3fc399ce5fcf",
    "pubsub#title": "Node 1d441275-a709-46ce-8c4a-3fc399ce5fcf"
}

2021-03-31 22:28:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:28:32 | [Mutex] waiting for: [received:nodes:8d0dc75d-8013-4b21-a053-eb543405a6d7:localhost]

2021-03-31 22:28:32 | [Mutex] received everything.

2021-03-31 22:28:32 | [Mutex] isItemNotified: received:node:8d0dc75d-8013-4b21-a053-eb543405a6d7:localhost:node-1d441275-a709-46ce-8c4a-3fc399ce5fcf:Node 1d441275-a709-46ce-8c4a-3fc399ce5fcf :: true

deleteNodes 1.034s
2021-03-31 22:28:37 |

2021-03-31 22:28:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:37 | ------------------------------------

2021-03-31 22:28:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d441275-a709-46ce-8c4a-3fc399ce5fcf"
}

2021-03-31 22:28:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:28:38 | [Mutex] waiting for: [received:nodes:2c2443a0-ea87-480a-a0b8-94061f14bfcf:localhost]

2021-03-31 22:28:38 | [Mutex] received everything.

2021-03-31 22:28:38 | [Mutex] isItemNotified: received:node:2c2443a0-ea87-480a-a0b8-94061f14bfcf:localhost:node-1d441275-a709-46ce-8c4a-3fc399ce5fcf:Node 1d441275-a709-46ce-8c4a-3fc399ce5fcf :: false

deleteSubnodes 1.034s
2021-03-31 22:28:36 |

2021-03-31 22:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:36 | ------------------------------------

2021-03-31 22:28:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359"
}

2021-03-31 22:28:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:28:37 | [Mutex] waiting for: [received:nodes:b07eca08-12d9-4e84-bc2f-4a7584d0971b:localhost]

2021-03-31 22:28:37 | [Mutex] waiting for: [received:nodes:b07eca08-12d9-4e84-bc2f-4a7584d0971b:localhost]

2021-03-31 22:28:37 | [Mutex] received everything.

2021-03-31 22:28:37 | [Mutex] isItemNotified: received:node:b07eca08-12d9-4e84-bc2f-4a7584d0971b:localhost:node-8e4c202d-6d82-435e-9e62-72146310a359:Node 8e4c202d-6d82-435e-9e62-72146310a359 :: false

2021-03-31 22:28:37 | [Mutex] waiting for: [received:nodes:ce1282c9-0d32-4a98-9bd2-0d754d929af6:localhost]

2021-03-31 22:28:37 | [Mutex] received everything.

2021-03-31 22:28:37 | [Mutex] isItemNotified: received:node:ce1282c9-0d32-4a98-9bd2-0d754d929af6:localhost:node-8e4c202d-6d82-435e-9e62-72146310a359:Node 8e4c202d-6d82-435e-9e62-72146310a359 :: false

publishItemsToNodes 0.099s
2021-03-31 22:28:34 |

2021-03-31 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:34 | ------------------------------------

2021-03-31 22:28:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "entry": "<test>item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1</test>",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1"
}

2021-03-31 22:28:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1"
}

2021-03-31 22:28:34 | [Mutex] waiting for: [published:item:notifieditem-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:admin@test-domain.com]

2021-03-31 22:28:34 | [Mutex] received everything.

2021-03-31 22:28:34 | [Mutex] isItemNotified: published:item:notifieditem-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:admin@test-domain.com :: true

retractItemsFromNodes 0.102s
2021-03-31 22:28:35 |

2021-03-31 22:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:35 | ------------------------------------

2021-03-31 22:28:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1"
}

2021-03-31 22:28:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1"
}

2021-03-31 22:28:35 | [Mutex] waiting for: [retracted:item:notifieditem-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:admin@test-domain.com]

2021-03-31 22:28:35 | [Mutex] received everything.

2021-03-31 22:28:35 | [Mutex] isItemNotified: retracted:item:notifieditem-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.038s
2021-03-31 22:28:34 |

2021-03-31 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:34 | ------------------------------------

2021-03-31 22:28:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1"
}

2021-03-31 22:28:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "item-id": "item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1",
    "item": [
        "<item id=\"item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1\"><test>item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1</test></item>"
    ]
}

2021-03-31 22:28:34 | [Mutex] notify: [retrieved:item:item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:payload-matches:true:localhost]

2021-03-31 22:28:34 | [Mutex] received everything.

2021-03-31 22:28:34 | [Mutex] isItemNotified: retrieved:item:item-5f88bd7b-f4d2-44ce-a423-ff0ccb50a6c1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2021-03-31 22:28:34 |

2021-03-31 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:34 | ------------------------------------

2021-03-31 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-31 22:28:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8e4c202d-6d82-435e-9e62-72146310a359",
        "node-1d441275-a709-46ce-8c4a-3fc399ce5fcf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-31 22:28:34 |

2021-03-31 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:34 | ------------------------------------

2021-03-31 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8e4c202d-6d82-435e-9e62-72146310a359)"
}

2021-03-31 22:28:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-03-31 22:28:33 |

2021-03-31 22:28:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:33 | ------------------------------------

2021-03-31 22:28:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-31 22:28:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2021-03-31 22:28:35 |

2021-03-31 22:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:28:35 | ------------------------------------

2021-03-31 22:28:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8e4c202d-6d82-435e-9e62-72146310a359",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-31 22:28:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}