Generated by TestNG with ReportNG at 22:23 PDT on Thursday 27 May 2021
root@b2c2a8eba6e6 / 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.882s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2021-05-27 22:38:14 |

2021-05-27 22:38:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:14 | ------------------------------------

2021-05-27 22:38:14 | [Mutex] waiting for: [configured:node:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:node-40815546-6d28-4ad1-8978-b2882e9c5a22]

2021-05-27 22:38:14 | [Mutex] received everything.

2021-05-27 22:38:14 | [Mutex] isItemNotified: configured:node:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:node-40815546-6d28-4ad1-8978-b2882e9c5a22 :: true

2021-05-27 22:38:15 | [Mutex] waiting for: [received:nodes:991f8daa-3edc-4a02-8697-12e94228eabd:localhost]

2021-05-27 22:38:15 | [Mutex] received everything.

2021-05-27 22:38:15 | [Mutex] isItemNotified: received:node:991f8daa-3edc-4a02-8697-12e94228eabd:localhost:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6 :: true

2021-05-27 22:38:15 | [Mutex] waiting for: [received:nodes:463719fc-4f3d-4a29-aee0-5e1a1d34ed89:localhost]

2021-05-27 22:38:15 | [Mutex] waiting for: [received:nodes:463719fc-4f3d-4a29-aee0-5e1a1d34ed89:localhost]

2021-05-27 22:38:15 | [Mutex] received everything.

2021-05-27 22:38:15 | [Mutex] isItemNotified: received:node:463719fc-4f3d-4a29-aee0-5e1a1d34ed89:localhost:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6 :: false

createNodes 1.614s
2021-05-27 22:38:11 |

2021-05-27 22:38:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:11 | ------------------------------------

2021-05-27 22:38:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "pubsub#title": "Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6"
}

2021-05-27 22:38:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:38:13 | [Mutex] waiting for: [received:nodes:75644689-c65a-4fc6-bbbd-253dbf96a60a:localhost]

2021-05-27 22:38:13 | [Mutex] waiting for: [received:nodes:75644689-c65a-4fc6-bbbd-253dbf96a60a:localhost]

2021-05-27 22:38:13 | [Mutex] waiting for: [received:nodes:75644689-c65a-4fc6-bbbd-253dbf96a60a:localhost]

2021-05-27 22:38:13 | [Mutex] received everything.

2021-05-27 22:38:13 | [Mutex] isItemNotified: received:node:75644689-c65a-4fc6-bbbd-253dbf96a60a:localhost:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6 :: true

createSubnodes 1.034s
2021-05-27 22:38:13 |

2021-05-27 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:13 | ------------------------------------

2021-05-27 22:38:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-40815546-6d28-4ad1-8978-b2882e9c5a22",
    "pubsub#title": "Node 40815546-6d28-4ad1-8978-b2882e9c5a22"
}

2021-05-27 22:38:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:38:14 | [Mutex] waiting for: [received:nodes:cd82e314-40ce-4d6c-bed4-c33abe50ad17:localhost]

2021-05-27 22:38:14 | [Mutex] received everything.

2021-05-27 22:38:14 | [Mutex] isItemNotified: received:node:cd82e314-40ce-4d6c-bed4-c33abe50ad17:localhost:node-40815546-6d28-4ad1-8978-b2882e9c5a22:Node 40815546-6d28-4ad1-8978-b2882e9c5a22 :: true

deleteNodes 1.020s
2021-05-27 22:38:19 |

2021-05-27 22:38:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:19 | ------------------------------------

2021-05-27 22:38:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40815546-6d28-4ad1-8978-b2882e9c5a22"
}

2021-05-27 22:38:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:38:20 | [Mutex] waiting for: [received:nodes:3dc28a6f-7f49-45c4-9246-a26d08c802c2:localhost]

2021-05-27 22:38:20 | [Mutex] received everything.

2021-05-27 22:38:20 | [Mutex] isItemNotified: received:node:3dc28a6f-7f49-45c4-9246-a26d08c802c2:localhost:node-40815546-6d28-4ad1-8978-b2882e9c5a22:Node 40815546-6d28-4ad1-8978-b2882e9c5a22 :: false

deleteSubnodes 1.028s
2021-05-27 22:38:18 |

2021-05-27 22:38:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:18 | ------------------------------------

2021-05-27 22:38:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6"
}

2021-05-27 22:38:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:38:19 | [Mutex] waiting for: [received:nodes:a9b8835b-ab6f-4609-8c91-94daddaa79d7:localhost]

2021-05-27 22:38:19 | [Mutex] received everything.

2021-05-27 22:38:19 | [Mutex] isItemNotified: received:node:a9b8835b-ab6f-4609-8c91-94daddaa79d7:localhost:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6 :: false

2021-05-27 22:38:19 | [Mutex] waiting for: [received:nodes:df9b8776-c0f3-477c-8ac1-7c6ceb15f231:localhost]

2021-05-27 22:38:19 | [Mutex] received everything.

2021-05-27 22:38:19 | [Mutex] isItemNotified: received:node:df9b8776-c0f3-477c-8ac1-7c6ceb15f231:localhost:node-32b71ec1-57af-4223-9d95-6e80b94cf6e6:Node 32b71ec1-57af-4223-9d95-6e80b94cf6e6 :: false

publishItemsToNodes 0.086s
2021-05-27 22:38:16 |

2021-05-27 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:16 | ------------------------------------

2021-05-27 22:38:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "entry": "<test>item-2162aae7-88ad-43da-b2e9-705c24a21728</test>",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728"
}

2021-05-27 22:38:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728"
}

2021-05-27 22:38:16 | [Mutex] waiting for: [published:item:notifieditem-2162aae7-88ad-43da-b2e9-705c24a21728:admin@test-domain.com]

2021-05-27 22:38:16 | [Mutex] received everything.

2021-05-27 22:38:16 | [Mutex] isItemNotified: published:item:notifieditem-2162aae7-88ad-43da-b2e9-705c24a21728:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-05-27 22:38:16 |

2021-05-27 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:16 | ------------------------------------

2021-05-27 22:38:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728"
}

2021-05-27 22:38:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728"
}

2021-05-27 22:38:17 | [Mutex] received everything.

2021-05-27 22:38:17 | [Mutex] isItemNotified: retracted:item:notifieditem-2162aae7-88ad-43da-b2e9-705c24a21728:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2021-05-27 22:38:16 |

2021-05-27 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:16 | ------------------------------------

2021-05-27 22:38:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728"
}

2021-05-27 22:38:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "item-id": "item-2162aae7-88ad-43da-b2e9-705c24a21728",
    "item": [
        "<item id=\"item-2162aae7-88ad-43da-b2e9-705c24a21728\"><test>item-2162aae7-88ad-43da-b2e9-705c24a21728</test></item>"
    ]
}

2021-05-27 22:38:16 | [Mutex] notify: [retrieved:item:item-2162aae7-88ad-43da-b2e9-705c24a21728:payload-matches:true:localhost]

2021-05-27 22:38:16 | [Mutex] received everything.

2021-05-27 22:38:16 | [Mutex] isItemNotified: retrieved:item:item-2162aae7-88ad-43da-b2e9-705c24a21728:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.074s
2021-05-27 22:38:16 |

2021-05-27 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:16 | ------------------------------------

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

2021-05-27 22:38:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-40815546-6d28-4ad1-8978-b2882e9c5a22",
        "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-27 22:38:16 |

2021-05-27 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:16 | ------------------------------------

2021-05-27 22:38:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-32b71ec1-57af-4223-9d95-6e80b94cf6e6)"
}

2021-05-27 22:38:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.021s
2021-05-27 22:38:15 |

2021-05-27 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:15 | ------------------------------------

2021-05-27 22:38:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-27 22:38:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-05-27 22:38:17 |

2021-05-27 22:38:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:17 | ------------------------------------

2021-05-27 22:38:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-32b71ec1-57af-4223-9d95-6e80b94cf6e6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-27 22:38:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}