Generated by TestNG with ReportNG at 22:43 PDT on Wednesday 26 August 2020
root@95486eacaf22 / 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.915s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2020-08-26 22:58:57 |

2020-08-26 22:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:57 | ------------------------------------

2020-08-26 22:58:57 | [Mutex] waiting for: [configured:node:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:node-eb419ea3-f5fd-426f-b09e-63e2977b6427]

2020-08-26 22:58:57 | [Mutex] received everything.

2020-08-26 22:58:57 | [Mutex] isItemNotified: configured:node:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:node-eb419ea3-f5fd-426f-b09e-63e2977b6427 :: true

2020-08-26 22:58:58 | [Mutex] waiting for: [received:nodes:516d5391-eb2e-4089-a6eb-690a5f3ba571:localhost]

2020-08-26 22:58:58 | [Mutex] received everything.

2020-08-26 22:58:58 | [Mutex] isItemNotified: received:node:516d5391-eb2e-4089-a6eb-690a5f3ba571:localhost:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae :: true

2020-08-26 22:58:58 | [Mutex] waiting for: [received:nodes:e5c9a34d-2edd-4f83-9d2a-ec565c5ca83d:localhost]

2020-08-26 22:58:58 | [Mutex] waiting for: [received:nodes:e5c9a34d-2edd-4f83-9d2a-ec565c5ca83d:localhost]

2020-08-26 22:58:58 | [Mutex] received everything.

2020-08-26 22:58:58 | [Mutex] isItemNotified: received:node:e5c9a34d-2edd-4f83-9d2a-ec565c5ca83d:localhost:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae :: false

createNodes 1.566s
2020-08-26 22:58:55 |

2020-08-26 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:55 | ------------------------------------

2020-08-26 22:58:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "pubsub#title": "Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae"
}

2020-08-26 22:58:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:58:56 | [Mutex] waiting for: [received:nodes:d6eebec5-ee9e-4d0e-99c9-6c505feb8e3c:localhost]

2020-08-26 22:58:56 | [Mutex] waiting for: [received:nodes:d6eebec5-ee9e-4d0e-99c9-6c505feb8e3c:localhost]

2020-08-26 22:58:56 | [Mutex] received everything.

2020-08-26 22:58:56 | [Mutex] isItemNotified: received:node:d6eebec5-ee9e-4d0e-99c9-6c505feb8e3c:localhost:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae :: true

createSubnodes 1.025s
2020-08-26 22:58:56 |

2020-08-26 22:58:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:56 | ------------------------------------

2020-08-26 22:58:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eb419ea3-f5fd-426f-b09e-63e2977b6427",
    "pubsub#title": "Node eb419ea3-f5fd-426f-b09e-63e2977b6427"
}

2020-08-26 22:58:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:58:57 | [Mutex] waiting for: [received:nodes:d3bedde0-b1a4-472a-a2ee-079487ca31cc:localhost]

2020-08-26 22:58:57 | [Mutex] received everything.

2020-08-26 22:58:57 | [Mutex] isItemNotified: received:node:d3bedde0-b1a4-472a-a2ee-079487ca31cc:localhost:node-eb419ea3-f5fd-426f-b09e-63e2977b6427:Node eb419ea3-f5fd-426f-b09e-63e2977b6427 :: true

deleteNodes 1.023s
2020-08-26 22:59:02 |

2020-08-26 22:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:02 | ------------------------------------

2020-08-26 22:59:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eb419ea3-f5fd-426f-b09e-63e2977b6427"
}

2020-08-26 22:59:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:59:03 | [Mutex] waiting for: [received:nodes:c97bf2b6-7cff-4b99-b208-5bf32aa89d7a:localhost]

2020-08-26 22:59:03 | [Mutex] received everything.

2020-08-26 22:59:03 | [Mutex] isItemNotified: received:node:c97bf2b6-7cff-4b99-b208-5bf32aa89d7a:localhost:node-eb419ea3-f5fd-426f-b09e-63e2977b6427:Node eb419ea3-f5fd-426f-b09e-63e2977b6427 :: false

deleteSubnodes 1.027s
2020-08-26 22:59:01 |

2020-08-26 22:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:01 | ------------------------------------

2020-08-26 22:59:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae"
}

2020-08-26 22:59:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:59:02 | [Mutex] waiting for: [received:nodes:04270260-79d8-46cf-91eb-800849ac7419:localhost]

2020-08-26 22:59:02 | [Mutex] received everything.

2020-08-26 22:59:02 | [Mutex] isItemNotified: received:node:04270260-79d8-46cf-91eb-800849ac7419:localhost:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae :: false

2020-08-26 22:59:02 | [Mutex] waiting for: [received:nodes:8b2e17c6-e12f-4322-98d7-766868b6aad5:localhost]

2020-08-26 22:59:02 | [Mutex] received everything.

2020-08-26 22:59:02 | [Mutex] isItemNotified: received:node:8b2e17c6-e12f-4322-98d7-766868b6aad5:localhost:node-7f109ca4-eb9f-472f-8378-721be0a0d2ae:Node 7f109ca4-eb9f-472f-8378-721be0a0d2ae :: false

publishItemsToNodes 0.041s
2020-08-26 22:58:59 |

2020-08-26 22:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:59 | ------------------------------------

2020-08-26 22:58:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "entry": "<test>item-70b22014-9cbb-428a-9c7d-37604d98ea7a</test>",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a"
}

2020-08-26 22:58:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a"
}

2020-08-26 22:58:59 | [Mutex] waiting for: [published:item:notifieditem-70b22014-9cbb-428a-9c7d-37604d98ea7a:admin@test-domain.com]

2020-08-26 22:58:59 | [Mutex] received everything.

2020-08-26 22:58:59 | [Mutex] isItemNotified: published:item:notifieditem-70b22014-9cbb-428a-9c7d-37604d98ea7a:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2020-08-26 22:59:00 |

2020-08-26 22:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:00 | ------------------------------------

2020-08-26 22:59:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a"
}

2020-08-26 22:59:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a"
}

2020-08-26 22:59:00 | [Mutex] received everything.

2020-08-26 22:59:00 | [Mutex] isItemNotified: retracted:item:notifieditem-70b22014-9cbb-428a-9c7d-37604d98ea7a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2020-08-26 22:58:59 |

2020-08-26 22:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:59 | ------------------------------------

2020-08-26 22:58:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a"
}

2020-08-26 22:59:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "item-id": "item-70b22014-9cbb-428a-9c7d-37604d98ea7a",
    "item": [
        "<item id=\"item-70b22014-9cbb-428a-9c7d-37604d98ea7a\"><test>item-70b22014-9cbb-428a-9c7d-37604d98ea7a</test></item>"
    ]
}

2020-08-26 22:59:00 | [Mutex] notify: [retrieved:item:item-70b22014-9cbb-428a-9c7d-37604d98ea7a:payload-matches:true:localhost]

2020-08-26 22:59:00 | [Mutex] received everything.

2020-08-26 22:59:00 | [Mutex] isItemNotified: retrieved:item:item-70b22014-9cbb-428a-9c7d-37604d98ea7a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-08-26 22:59:00 |

2020-08-26 22:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:00 | ------------------------------------

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

2020-08-26 22:59:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-eb419ea3-f5fd-426f-b09e-63e2977b6427",
        "test",
        "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-26 22:59:00 |

2020-08-26 22:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:00 | ------------------------------------

2020-08-26 22:59:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7f109ca4-eb9f-472f-8378-721be0a0d2ae)"
}

2020-08-26 22:59:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-08-26 22:58:58 |

2020-08-26 22:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:58:58 | ------------------------------------

2020-08-26 22:58:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 22:58:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2020-08-26 22:59:00 |

2020-08-26 22:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:59:00 | ------------------------------------

2020-08-26 22:59:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7f109ca4-eb9f-472f-8378-721be0a0d2ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 22:59:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}