Generated by TestNG with ReportNG at 22:51 PDT on Thursday 29 April 2021
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 : 9.004s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.129s
2021-04-29 23:07:10 |

2021-04-29 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:10 | ------------------------------------

2021-04-29 23:07:10 | [Mutex] waiting for: [configured:node:node-8f252084-8615-4ba1-96e6-e7e57b012af3:node-2a508800-5560-453e-a61a-539ffd128c84]

2021-04-29 23:07:10 | [Mutex] received everything.

2021-04-29 23:07:10 | [Mutex] isItemNotified: configured:node:node-8f252084-8615-4ba1-96e6-e7e57b012af3:node-2a508800-5560-453e-a61a-539ffd128c84 :: true

2021-04-29 23:07:11 | [Mutex] waiting for: [received:nodes:17f727b2-7ae1-4435-81c6-bd7d54dae648:localhost]

2021-04-29 23:07:11 | [Mutex] received everything.

2021-04-29 23:07:11 | [Mutex] isItemNotified: received:node:17f727b2-7ae1-4435-81c6-bd7d54dae648:localhost:node-8f252084-8615-4ba1-96e6-e7e57b012af3:Node 8f252084-8615-4ba1-96e6-e7e57b012af3 :: true

2021-04-29 23:07:11 | [Mutex] waiting for: [received:nodes:789a58c7-d695-433c-85b2-8653299240e7:localhost]

2021-04-29 23:07:11 | [Mutex] received everything.

2021-04-29 23:07:11 | [Mutex] isItemNotified: received:node:789a58c7-d695-433c-85b2-8653299240e7:localhost:node-8f252084-8615-4ba1-96e6-e7e57b012af3:Node 8f252084-8615-4ba1-96e6-e7e57b012af3 :: false

createNodes 1.588s
2021-04-29 23:07:08 |

2021-04-29 23:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:08 | ------------------------------------

2021-04-29 23:07:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "pubsub#title": "Node 8f252084-8615-4ba1-96e6-e7e57b012af3"
}

2021-04-29 23:07:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:09 | [Mutex] waiting for: [received:nodes:131e0ec5-9885-4cff-869e-f69d1ac2b946:localhost]

2021-04-29 23:07:09 | [Mutex] received everything.

2021-04-29 23:07:09 | [Mutex] isItemNotified: received:node:131e0ec5-9885-4cff-869e-f69d1ac2b946:localhost:node-8f252084-8615-4ba1-96e6-e7e57b012af3:Node 8f252084-8615-4ba1-96e6-e7e57b012af3 :: true

createSubnodes 1.022s
2021-04-29 23:07:09 |

2021-04-29 23:07:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:09 | ------------------------------------

2021-04-29 23:07:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2a508800-5560-453e-a61a-539ffd128c84",
    "pubsub#title": "Node 2a508800-5560-453e-a61a-539ffd128c84"
}

2021-04-29 23:07:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:10 | [Mutex] waiting for: [received:nodes:25281151-b257-4ab2-a9f7-b13ecefb2180:localhost]

2021-04-29 23:07:10 | [Mutex] received everything.

2021-04-29 23:07:10 | [Mutex] isItemNotified: received:node:25281151-b257-4ab2-a9f7-b13ecefb2180:localhost:node-2a508800-5560-453e-a61a-539ffd128c84:Node 2a508800-5560-453e-a61a-539ffd128c84 :: true

deleteNodes 1.024s
2021-04-29 23:07:15 |

2021-04-29 23:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:15 | ------------------------------------

2021-04-29 23:07:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a508800-5560-453e-a61a-539ffd128c84"
}

2021-04-29 23:07:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:16 | [Mutex] waiting for: [received:nodes:a4f02bbb-8249-4952-b50a-5354884978af:localhost]

2021-04-29 23:07:16 | [Mutex] received everything.

2021-04-29 23:07:16 | [Mutex] isItemNotified: received:node:a4f02bbb-8249-4952-b50a-5354884978af:localhost:node-2a508800-5560-453e-a61a-539ffd128c84:Node 2a508800-5560-453e-a61a-539ffd128c84 :: false

deleteSubnodes 1.027s
2021-04-29 23:07:14 |

2021-04-29 23:07:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:14 | ------------------------------------

2021-04-29 23:07:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3"
}

2021-04-29 23:07:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:15 | [Mutex] waiting for: [received:nodes:f9b13440-9f75-4221-a010-40eb7ea8e25f:localhost]

2021-04-29 23:07:15 | [Mutex] waiting for: [received:nodes:f9b13440-9f75-4221-a010-40eb7ea8e25f:localhost]

2021-04-29 23:07:15 | [Mutex] waiting for: [received:nodes:f9b13440-9f75-4221-a010-40eb7ea8e25f:localhost]

2021-04-29 23:07:15 | [Mutex] received everything.

2021-04-29 23:07:15 | [Mutex] isItemNotified: received:node:f9b13440-9f75-4221-a010-40eb7ea8e25f:localhost:node-8f252084-8615-4ba1-96e6-e7e57b012af3:Node 8f252084-8615-4ba1-96e6-e7e57b012af3 :: false

2021-04-29 23:07:15 | [Mutex] waiting for: [received:nodes:c0b05933-2c59-4bd7-a406-1f7941e4d6ed:localhost]

2021-04-29 23:07:15 | [Mutex] received everything.

2021-04-29 23:07:15 | [Mutex] isItemNotified: received:node:c0b05933-2c59-4bd7-a406-1f7941e4d6ed:localhost:node-8f252084-8615-4ba1-96e6-e7e57b012af3:Node 8f252084-8615-4ba1-96e6-e7e57b012af3 :: false

publishItemsToNodes 0.042s
2021-04-29 23:07:12 |

2021-04-29 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:12 | ------------------------------------

2021-04-29 23:07:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "entry": "<test>item-e3b426ea-8a76-4d12-8588-43291ca6948e</test>",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e"
}

2021-04-29 23:07:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e"
}

2021-04-29 23:07:12 | [Mutex] waiting for: [published:item:notifieditem-e3b426ea-8a76-4d12-8588-43291ca6948e:admin@test-domain.com]

2021-04-29 23:07:12 | [Mutex] received everything.

2021-04-29 23:07:12 | [Mutex] isItemNotified: published:item:notifieditem-e3b426ea-8a76-4d12-8588-43291ca6948e:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-04-29 23:07:12 |

2021-04-29 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:12 | ------------------------------------

2021-04-29 23:07:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e"
}

2021-04-29 23:07:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e"
}

2021-04-29 23:07:13 | [Mutex] received everything.

2021-04-29 23:07:13 | [Mutex] isItemNotified: retracted:item:notifieditem-e3b426ea-8a76-4d12-8588-43291ca6948e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.053s
2021-04-29 23:07:12 |

2021-04-29 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:12 | ------------------------------------

2021-04-29 23:07:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e"
}

2021-04-29 23:07:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "item-id": "item-e3b426ea-8a76-4d12-8588-43291ca6948e",
    "item": [
        "<item id=\"item-e3b426ea-8a76-4d12-8588-43291ca6948e\"><test>item-e3b426ea-8a76-4d12-8588-43291ca6948e</test></item>"
    ]
}

2021-04-29 23:07:12 | [Mutex] notify: [retrieved:item:item-e3b426ea-8a76-4d12-8588-43291ca6948e:payload-matches:true:localhost]

2021-04-29 23:07:12 | [Mutex] received everything.

2021-04-29 23:07:12 | [Mutex] isItemNotified: retrieved:item:item-e3b426ea-8a76-4d12-8588-43291ca6948e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2021-04-29 23:07:12 |

2021-04-29 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:12 | ------------------------------------

2021-04-29 23:07:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-29 23:07:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2a508800-5560-453e-a61a-539ffd128c84",
        "test",
        "node-8f252084-8615-4ba1-96e6-e7e57b012af3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-04-29 23:07:12 |

2021-04-29 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:12 | ------------------------------------

2021-04-29 23:07:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8f252084-8615-4ba1-96e6-e7e57b012af3)"
}

2021-04-29 23:07:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-04-29 23:07:11 |

2021-04-29 23:07:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:11 | ------------------------------------

2021-04-29 23:07:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 23:07:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.127s
2021-04-29 23:07:13 |

2021-04-29 23:07:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:13 | ------------------------------------

2021-04-29 23:07:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8f252084-8615-4ba1-96e6-e7e57b012af3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 23:07:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}