Generated by TestNG with ReportNG at 22:50 PDT on Thursday 07 October 2021
root@785cf647a4ab / 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.991s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-10-07 23:08:08 |

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

2021-10-07 23:08:08 | ------------------------------------

2021-10-07 23:08:08 | [Mutex] waiting for: [configured:node:node-877975d2-6058-46a5-b8e6-912840e27f59:node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818]

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

2021-10-07 23:08:08 | [Mutex] isItemNotified: configured:node:node-877975d2-6058-46a5-b8e6-912840e27f59:node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818 :: true

2021-10-07 23:08:09 | [Mutex] waiting for: [received:nodes:8104fa5f-9548-4bbb-8df3-a17e15c0c612:localhost]

2021-10-07 23:08:09 | [Mutex] received everything.

2021-10-07 23:08:09 | [Mutex] isItemNotified: received:node:8104fa5f-9548-4bbb-8df3-a17e15c0c612:localhost:node-877975d2-6058-46a5-b8e6-912840e27f59:Node 877975d2-6058-46a5-b8e6-912840e27f59 :: true

2021-10-07 23:08:09 | [Mutex] waiting for: [received:nodes:4c514abd-698a-4074-9d7a-f965317248f8:localhost]

2021-10-07 23:08:09 | [Mutex] waiting for: [received:nodes:4c514abd-698a-4074-9d7a-f965317248f8:localhost]

2021-10-07 23:08:09 | [Mutex] received everything.

2021-10-07 23:08:09 | [Mutex] isItemNotified: received:node:4c514abd-698a-4074-9d7a-f965317248f8:localhost:node-877975d2-6058-46a5-b8e6-912840e27f59:Node 877975d2-6058-46a5-b8e6-912840e27f59 :: false

createNodes 1.601s
2021-10-07 23:08:05 |

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

2021-10-07 23:08:05 | ------------------------------------

2021-10-07 23:08:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "pubsub#title": "Node 877975d2-6058-46a5-b8e6-912840e27f59"
}

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

2021-10-07 23:08:07 | [Mutex] waiting for: [received:nodes:488800b0-180c-4962-aa09-4bb2567e96f6:localhost]

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

2021-10-07 23:08:07 | [Mutex] isItemNotified: received:node:488800b0-180c-4962-aa09-4bb2567e96f6:localhost:node-877975d2-6058-46a5-b8e6-912840e27f59:Node 877975d2-6058-46a5-b8e6-912840e27f59 :: true

createSubnodes 1.024s
2021-10-07 23:08:07 |

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

2021-10-07 23:08:07 | ------------------------------------

2021-10-07 23:08:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818",
    "pubsub#title": "Node 411c6340-bec9-47f9-9ff6-5e0b2fcc9818"
}

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

2021-10-07 23:08:08 | [Mutex] waiting for: [received:nodes:a2d9ecaa-69a2-41e6-a127-9ae0ea26ffc3:localhost]

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

2021-10-07 23:08:08 | [Mutex] isItemNotified: received:node:a2d9ecaa-69a2-41e6-a127-9ae0ea26ffc3:localhost:node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818:Node 411c6340-bec9-47f9-9ff6-5e0b2fcc9818 :: true

deleteNodes 1.022s
2021-10-07 23:08:12 |

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

2021-10-07 23:08:12 | ------------------------------------

2021-10-07 23:08:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818"
}

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

2021-10-07 23:08:13 | [Mutex] waiting for: [received:nodes:a42fd5b5-83cc-4f5d-8e46-1a6cbb66709b:localhost]

2021-10-07 23:08:13 | [Mutex] received everything.

2021-10-07 23:08:13 | [Mutex] isItemNotified: received:node:a42fd5b5-83cc-4f5d-8e46-1a6cbb66709b:localhost:node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818:Node 411c6340-bec9-47f9-9ff6-5e0b2fcc9818 :: false

deleteSubnodes 1.030s
2021-10-07 23:08:11 |

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

2021-10-07 23:08:11 | ------------------------------------

2021-10-07 23:08:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59"
}

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

2021-10-07 23:08:12 | [Mutex] waiting for: [received:nodes:b3eb02fe-870a-48aa-aea4-3186c1f82014:localhost]

2021-10-07 23:08:12 | [Mutex] waiting for: [received:nodes:b3eb02fe-870a-48aa-aea4-3186c1f82014:localhost]

2021-10-07 23:08:12 | [Mutex] received everything.

2021-10-07 23:08:12 | [Mutex] isItemNotified: received:node:b3eb02fe-870a-48aa-aea4-3186c1f82014:localhost:node-877975d2-6058-46a5-b8e6-912840e27f59:Node 877975d2-6058-46a5-b8e6-912840e27f59 :: false

2021-10-07 23:08:12 | [Mutex] waiting for: [received:nodes:7ad9f284-2298-4c94-bb67-c59204b95774:localhost]

2021-10-07 23:08:12 | [Mutex] received everything.

2021-10-07 23:08:12 | [Mutex] isItemNotified: received:node:7ad9f284-2298-4c94-bb67-c59204b95774:localhost:node-877975d2-6058-46a5-b8e6-912840e27f59:Node 877975d2-6058-46a5-b8e6-912840e27f59 :: false

publishItemsToNodes 0.042s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

2021-10-07 23:08:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "entry": "<test>item-bf6f98fe-fae3-4206-94fa-c283de7effeb</test>",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb"
}

2021-10-07 23:08:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb"
}

2021-10-07 23:08:10 | [Mutex] waiting for: [published:item:notifieditem-bf6f98fe-fae3-4206-94fa-c283de7effeb:admin@test-domain.com]

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

2021-10-07 23:08:10 | [Mutex] isItemNotified: published:item:notifieditem-bf6f98fe-fae3-4206-94fa-c283de7effeb:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

2021-10-07 23:08:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb"
}

2021-10-07 23:08:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb"
}

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

2021-10-07 23:08:10 | [Mutex] isItemNotified: retracted:item:notifieditem-bf6f98fe-fae3-4206-94fa-c283de7effeb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.104s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

2021-10-07 23:08:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb"
}

2021-10-07 23:08:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "item-id": "item-bf6f98fe-fae3-4206-94fa-c283de7effeb",
    "item": [
        "<item id=\"item-bf6f98fe-fae3-4206-94fa-c283de7effeb\"><test>item-bf6f98fe-fae3-4206-94fa-c283de7effeb</test></item>"
    ]
}

2021-10-07 23:08:10 | [Mutex] notify: [retrieved:item:item-bf6f98fe-fae3-4206-94fa-c283de7effeb:payload-matches:true:localhost]

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

2021-10-07 23:08:10 | [Mutex] isItemNotified: retrieved:item:item-bf6f98fe-fae3-4206-94fa-c283de7effeb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

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

2021-10-07 23:08:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-411c6340-bec9-47f9-9ff6-5e0b2fcc9818",
        "test",
        "node-877975d2-6058-46a5-b8e6-912840e27f59"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

2021-10-07 23:08:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-877975d2-6058-46a5-b8e6-912840e27f59)"
}

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

subscribeNodes 1.009s
2021-10-07 23:08:09 |

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

2021-10-07 23:08:09 | ------------------------------------

2021-10-07 23:08:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2021-10-07 23:08:10 |

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

2021-10-07 23:08:10 | ------------------------------------

2021-10-07 23:08:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-877975d2-6058-46a5-b8e6-912840e27f59",
    "jids": [
        "admin@test-domain.com"
    ]
}

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