Generated by TestNG with ReportNG at 22:14 PDT on Friday 14 May 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 : 9.086s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.152s
2021-05-14 22:30:02 |

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

2021-05-14 22:30:02 | ------------------------------------

2021-05-14 22:30:02 | [Mutex] waiting for: [configured:node:node-ef6d9679-1bb0-412e-b57e-50687609e96e:node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c]

2021-05-14 22:30:02 | [Mutex] received everything.

2021-05-14 22:30:02 | [Mutex] isItemNotified: configured:node:node-ef6d9679-1bb0-412e-b57e-50687609e96e:node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c :: true

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:3d88e8f3-aaf4-49e6-9397-d7d31a080d52:localhost]

2021-05-14 22:30:03 | [Mutex] received everything.

2021-05-14 22:30:03 | [Mutex] isItemNotified: received:node:3d88e8f3-aaf4-49e6-9397-d7d31a080d52:localhost:node-ef6d9679-1bb0-412e-b57e-50687609e96e:Node ef6d9679-1bb0-412e-b57e-50687609e96e :: true

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:9f7ba0ee-8eb0-48fc-ad75-39f3df1ade13:localhost]

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:9f7ba0ee-8eb0-48fc-ad75-39f3df1ade13:localhost]

2021-05-14 22:30:03 | [Mutex] received everything.

2021-05-14 22:30:03 | [Mutex] isItemNotified: received:node:9f7ba0ee-8eb0-48fc-ad75-39f3df1ade13:localhost:node-ef6d9679-1bb0-412e-b57e-50687609e96e:Node ef6d9679-1bb0-412e-b57e-50687609e96e :: false

createNodes 1.790s
2021-05-14 22:29:59 |

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

2021-05-14 22:29:59 | ------------------------------------

2021-05-14 22:30:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "pubsub#title": "Node ef6d9679-1bb0-412e-b57e-50687609e96e"
}

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

2021-05-14 22:30:01 | [Mutex] waiting for: [received:nodes:123a73c8-fd52-41bf-8a99-0c33912e6266:localhost]

2021-05-14 22:30:01 | [Mutex] received everything.

2021-05-14 22:30:01 | [Mutex] isItemNotified: received:node:123a73c8-fd52-41bf-8a99-0c33912e6266:localhost:node-ef6d9679-1bb0-412e-b57e-50687609e96e:Node ef6d9679-1bb0-412e-b57e-50687609e96e :: true

createSubnodes 1.040s
2021-05-14 22:30:01 |

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

2021-05-14 22:30:01 | ------------------------------------

2021-05-14 22:30:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c",
    "pubsub#title": "Node 86392ed3-b3d3-4ed8-88e2-b2978f39c99c"
}

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

2021-05-14 22:30:02 | [Mutex] waiting for: [received:nodes:373fd5d9-fcbc-4d9e-b7fa-4e44a6b887ba:localhost]

2021-05-14 22:30:02 | [Mutex] received everything.

2021-05-14 22:30:02 | [Mutex] isItemNotified: received:node:373fd5d9-fcbc-4d9e-b7fa-4e44a6b887ba:localhost:node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c:Node 86392ed3-b3d3-4ed8-88e2-b2978f39c99c :: true

deleteNodes 1.023s
2021-05-14 22:30:06 |

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

2021-05-14 22:30:06 | ------------------------------------

2021-05-14 22:30:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c"
}

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

2021-05-14 22:30:07 | [Mutex] waiting for: [received:nodes:b2fb504d-ac54-4a53-9602-8b43312b2945:localhost]

2021-05-14 22:30:07 | [Mutex] received everything.

2021-05-14 22:30:07 | [Mutex] isItemNotified: received:node:b2fb504d-ac54-4a53-9602-8b43312b2945:localhost:node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c:Node 86392ed3-b3d3-4ed8-88e2-b2978f39c99c :: false

deleteSubnodes 1.027s
2021-05-14 22:30:05 |

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

2021-05-14 22:30:05 | ------------------------------------

2021-05-14 22:30:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e"
}

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

2021-05-14 22:30:06 | [Mutex] waiting for: [received:nodes:ecab7900-4b8e-476e-9076-3e9900e2db16:localhost]

2021-05-14 22:30:06 | [Mutex] received everything.

2021-05-14 22:30:06 | [Mutex] isItemNotified: received:node:ecab7900-4b8e-476e-9076-3e9900e2db16:localhost:node-ef6d9679-1bb0-412e-b57e-50687609e96e:Node ef6d9679-1bb0-412e-b57e-50687609e96e :: false

2021-05-14 22:30:06 | [Mutex] waiting for: [received:nodes:86d0813b-521e-4460-9cc0-28765ba8f6d3:localhost]

2021-05-14 22:30:06 | [Mutex] received everything.

2021-05-14 22:30:06 | [Mutex] isItemNotified: received:node:86d0813b-521e-4460-9cc0-28765ba8f6d3:localhost:node-ef6d9679-1bb0-412e-b57e-50687609e96e:Node ef6d9679-1bb0-412e-b57e-50687609e96e :: false

publishItemsToNodes 0.059s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

2021-05-14 22:30:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "entry": "<test>item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a</test>",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a"
}

2021-05-14 22:30:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a"
}

2021-05-14 22:30:04 | [Mutex] waiting for: [published:item:notifieditem-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a:admin@test-domain.com]

2021-05-14 22:30:04 | [Mutex] received everything.

2021-05-14 22:30:04 | [Mutex] isItemNotified: published:item:notifieditem-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

2021-05-14 22:30:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a"
}

2021-05-14 22:30:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a"
}

2021-05-14 22:30:04 | [Mutex] received everything.

2021-05-14 22:30:04 | [Mutex] isItemNotified: retracted:item:notifieditem-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

2021-05-14 22:30:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a"
}

2021-05-14 22:30:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "item-id": "item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a",
    "item": [
        "<item id=\"item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a\"><test>item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a</test></item>"
    ]
}

2021-05-14 22:30:04 | [Mutex] notify: [retrieved:item:item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a:payload-matches:true:localhost]

2021-05-14 22:30:04 | [Mutex] received everything.

2021-05-14 22:30:04 | [Mutex] isItemNotified: retrieved:item:item-6e60d7c7-b4e6-4061-8b32-a5689cd6e36a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.073s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

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

2021-05-14 22:30:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-86392ed3-b3d3-4ed8-88e2-b2978f39c99c",
        "test",
        "node-ef6d9679-1bb0-412e-b57e-50687609e96e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

2021-05-14 22:30:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ef6d9679-1bb0-412e-b57e-50687609e96e)"
}

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

subscribeNodes 1.023s
2021-05-14 22:30:03 |

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

2021-05-14 22:30:03 | ------------------------------------

2021-05-14 22:30:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-05-14 22:30:04 |

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

2021-05-14 22:30:04 | ------------------------------------

2021-05-14 22:30:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ef6d9679-1bb0-412e-b57e-50687609e96e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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