Generated by TestNG with ReportNG at 22:26 PDT on Wednesday 12 May 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 : 8.891s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2021-05-12 22:41:49 |

2021-05-12 22:41:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:49 | ------------------------------------

2021-05-12 22:41:49 | [Mutex] waiting for: [configured:node:node-e139094c-40c7-4905-aa0c-247cb597ac23:node-45954669-9d1a-4b23-a6cd-f0e8107466f5]

2021-05-12 22:41:49 | [Mutex] received everything.

2021-05-12 22:41:49 | [Mutex] isItemNotified: configured:node:node-e139094c-40c7-4905-aa0c-247cb597ac23:node-45954669-9d1a-4b23-a6cd-f0e8107466f5 :: true

2021-05-12 22:41:50 | [Mutex] waiting for: [received:nodes:e0c1e2be-2bbb-458d-a612-59e9467b77ff:localhost]

2021-05-12 22:41:50 | [Mutex] received everything.

2021-05-12 22:41:50 | [Mutex] isItemNotified: received:node:e0c1e2be-2bbb-458d-a612-59e9467b77ff:localhost:node-e139094c-40c7-4905-aa0c-247cb597ac23:Node e139094c-40c7-4905-aa0c-247cb597ac23 :: true

2021-05-12 22:41:50 | [Mutex] waiting for: [received:nodes:f38118b7-06a8-431c-b282-da6a0449a365:localhost]

2021-05-12 22:41:50 | [Mutex] received everything.

2021-05-12 22:41:50 | [Mutex] isItemNotified: received:node:f38118b7-06a8-431c-b282-da6a0449a365:localhost:node-e139094c-40c7-4905-aa0c-247cb597ac23:Node e139094c-40c7-4905-aa0c-247cb597ac23 :: false

createNodes 1.584s
2021-05-12 22:41:47 |

2021-05-12 22:41:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:47 | ------------------------------------

2021-05-12 22:41:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "pubsub#title": "Node e139094c-40c7-4905-aa0c-247cb597ac23"
}

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

2021-05-12 22:41:48 | [Mutex] waiting for: [received:nodes:5b2f9760-e07c-41f4-b1c4-103a46648e0f:localhost]

2021-05-12 22:41:48 | [Mutex] received everything.

2021-05-12 22:41:48 | [Mutex] isItemNotified: received:node:5b2f9760-e07c-41f4-b1c4-103a46648e0f:localhost:node-e139094c-40c7-4905-aa0c-247cb597ac23:Node e139094c-40c7-4905-aa0c-247cb597ac23 :: true

createSubnodes 1.031s
2021-05-12 22:41:48 |

2021-05-12 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:48 | ------------------------------------

2021-05-12 22:41:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-45954669-9d1a-4b23-a6cd-f0e8107466f5",
    "pubsub#title": "Node 45954669-9d1a-4b23-a6cd-f0e8107466f5"
}

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

2021-05-12 22:41:49 | [Mutex] waiting for: [received:nodes:780bb8e9-d678-461e-b59b-a2b3ace1a44f:localhost]

2021-05-12 22:41:49 | [Mutex] received everything.

2021-05-12 22:41:49 | [Mutex] isItemNotified: received:node:780bb8e9-d678-461e-b59b-a2b3ace1a44f:localhost:node-45954669-9d1a-4b23-a6cd-f0e8107466f5:Node 45954669-9d1a-4b23-a6cd-f0e8107466f5 :: true

deleteNodes 1.030s
2021-05-12 22:41:54 |

2021-05-12 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:54 | ------------------------------------

2021-05-12 22:41:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-45954669-9d1a-4b23-a6cd-f0e8107466f5"
}

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

2021-05-12 22:41:55 | [Mutex] waiting for: [received:nodes:ae3c9033-6c77-4d42-9943-e7e976b66cee:localhost]

2021-05-12 22:41:55 | [Mutex] received everything.

2021-05-12 22:41:55 | [Mutex] isItemNotified: received:node:ae3c9033-6c77-4d42-9943-e7e976b66cee:localhost:node-45954669-9d1a-4b23-a6cd-f0e8107466f5:Node 45954669-9d1a-4b23-a6cd-f0e8107466f5 :: false

deleteSubnodes 1.050s
2021-05-12 22:41:53 |

2021-05-12 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:53 | ------------------------------------

2021-05-12 22:41:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23"
}

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

2021-05-12 22:41:54 | [Mutex] waiting for: [received:nodes:64e064cd-945c-46ea-839f-12eb199863ee:localhost]

2021-05-12 22:41:54 | [Mutex] received everything.

2021-05-12 22:41:54 | [Mutex] isItemNotified: received:node:64e064cd-945c-46ea-839f-12eb199863ee:localhost:node-e139094c-40c7-4905-aa0c-247cb597ac23:Node e139094c-40c7-4905-aa0c-247cb597ac23 :: false

2021-05-12 22:41:54 | [Mutex] waiting for: [received:nodes:1ae4add1-5b40-421a-ad95-556f54eba3d7:localhost]

2021-05-12 22:41:54 | [Mutex] received everything.

2021-05-12 22:41:54 | [Mutex] isItemNotified: received:node:1ae4add1-5b40-421a-ad95-556f54eba3d7:localhost:node-e139094c-40c7-4905-aa0c-247cb597ac23:Node e139094c-40c7-4905-aa0c-247cb597ac23 :: false

publishItemsToNodes 0.039s
2021-05-12 22:41:51 |

2021-05-12 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:51 | ------------------------------------

2021-05-12 22:41:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "entry": "<test>item-7f3b830d-1316-430d-9c4c-fcdede30eed5</test>",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5"
}

2021-05-12 22:41:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5"
}

2021-05-12 22:41:51 | [Mutex] waiting for: [published:item:notifieditem-7f3b830d-1316-430d-9c4c-fcdede30eed5:admin@test-domain.com]

2021-05-12 22:41:51 | [Mutex] received everything.

2021-05-12 22:41:51 | [Mutex] isItemNotified: published:item:notifieditem-7f3b830d-1316-430d-9c4c-fcdede30eed5:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-05-12 22:41:52 |

2021-05-12 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:52 | ------------------------------------

2021-05-12 22:41:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5"
}

2021-05-12 22:41:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5"
}

2021-05-12 22:41:52 | [Mutex] received everything.

2021-05-12 22:41:52 | [Mutex] isItemNotified: retracted:item:notifieditem-7f3b830d-1316-430d-9c4c-fcdede30eed5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2021-05-12 22:41:51 |

2021-05-12 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:51 | ------------------------------------

2021-05-12 22:41:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5"
}

2021-05-12 22:41:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "item-id": "item-7f3b830d-1316-430d-9c4c-fcdede30eed5",
    "item": [
        "<item id=\"item-7f3b830d-1316-430d-9c4c-fcdede30eed5\"><test>item-7f3b830d-1316-430d-9c4c-fcdede30eed5</test></item>"
    ]
}

2021-05-12 22:41:51 | [Mutex] notify: [retrieved:item:item-7f3b830d-1316-430d-9c4c-fcdede30eed5:payload-matches:true:localhost]

2021-05-12 22:41:51 | [Mutex] received everything.

2021-05-12 22:41:51 | [Mutex] isItemNotified: retrieved:item:item-7f3b830d-1316-430d-9c4c-fcdede30eed5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-05-12 22:41:51 |

2021-05-12 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:51 | ------------------------------------

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

2021-05-12 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-45954669-9d1a-4b23-a6cd-f0e8107466f5",
        "node-e139094c-40c7-4905-aa0c-247cb597ac23"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-12 22:41:51 |

2021-05-12 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:51 | ------------------------------------

2021-05-12 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e139094c-40c7-4905-aa0c-247cb597ac23)"
}

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

subscribeNodes 1.010s
2021-05-12 22:41:50 |

2021-05-12 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:50 | ------------------------------------

2021-05-12 22:41:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.082s
2021-05-12 22:41:52 |

2021-05-12 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:41:52 | ------------------------------------

2021-05-12 22:41:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e139094c-40c7-4905-aa0c-247cb597ac23",
    "jids": [
        "admin@test-domain.com"
    ]
}

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