Generated by TestNG with ReportNG at 21:34 PST on Monday 07 February 2022
root@b2c2a8eba6e6 / 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.005s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-02-07 21:50:49 |

2022-02-07 21:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:49 | ------------------------------------

2022-02-07 21:50:49 | [Mutex] waiting for: [configured:node:node-e78c6388-6355-4db3-9069-9bb13281ee65:node-fcbc686e-a912-480d-831f-de6f3083fe09]

2022-02-07 21:50:49 | [Mutex] received everything.

2022-02-07 21:50:49 | [Mutex] isItemNotified: configured:node:node-e78c6388-6355-4db3-9069-9bb13281ee65:node-fcbc686e-a912-480d-831f-de6f3083fe09 :: true

2022-02-07 21:50:50 | [Mutex] waiting for: [received:nodes:861dc257-b497-4793-b1ec-92448e4220d8:localhost]

2022-02-07 21:50:50 | [Mutex] received everything.

2022-02-07 21:50:50 | [Mutex] isItemNotified: received:node:861dc257-b497-4793-b1ec-92448e4220d8:localhost:node-e78c6388-6355-4db3-9069-9bb13281ee65:Node e78c6388-6355-4db3-9069-9bb13281ee65 :: true

2022-02-07 21:50:50 | [Mutex] waiting for: [received:nodes:cb0c481e-3acc-4739-975b-bba7cd07ce93:localhost]

2022-02-07 21:50:50 | [Mutex] received everything.

2022-02-07 21:50:50 | [Mutex] isItemNotified: received:node:cb0c481e-3acc-4739-975b-bba7cd07ce93:localhost:node-e78c6388-6355-4db3-9069-9bb13281ee65:Node e78c6388-6355-4db3-9069-9bb13281ee65 :: false

createNodes 1.623s
2022-02-07 21:50:46 |

2022-02-07 21:50:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:46 | ------------------------------------

2022-02-07 21:50:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "pubsub#title": "Node e78c6388-6355-4db3-9069-9bb13281ee65"
}

2022-02-07 21:50:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:50:47 | [Mutex] waiting for: [received:nodes:45c9f03a-c08a-41cf-9ae5-1b965dae0cf2:localhost]

2022-02-07 21:50:47 | [Mutex] received everything.

2022-02-07 21:50:47 | [Mutex] isItemNotified: received:node:45c9f03a-c08a-41cf-9ae5-1b965dae0cf2:localhost:node-e78c6388-6355-4db3-9069-9bb13281ee65:Node e78c6388-6355-4db3-9069-9bb13281ee65 :: true

createSubnodes 1.070s
2022-02-07 21:50:47 |

2022-02-07 21:50:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:47 | ------------------------------------

2022-02-07 21:50:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fcbc686e-a912-480d-831f-de6f3083fe09",
    "pubsub#title": "Node fcbc686e-a912-480d-831f-de6f3083fe09"
}

2022-02-07 21:50:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:50:49 | [Mutex] waiting for: [received:nodes:30c0025d-507e-4e7b-8042-c243484611cb:localhost]

2022-02-07 21:50:49 | [Mutex] received everything.

2022-02-07 21:50:49 | [Mutex] isItemNotified: received:node:30c0025d-507e-4e7b-8042-c243484611cb:localhost:node-fcbc686e-a912-480d-831f-de6f3083fe09:Node fcbc686e-a912-480d-831f-de6f3083fe09 :: true

deleteNodes 1.025s
2022-02-07 21:50:53 |

2022-02-07 21:50:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:53 | ------------------------------------

2022-02-07 21:50:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fcbc686e-a912-480d-831f-de6f3083fe09"
}

2022-02-07 21:50:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:50:54 | [Mutex] waiting for: [received:nodes:0ee5790f-575d-4bc3-831d-f242beb03df5:localhost]

2022-02-07 21:50:54 | [Mutex] received everything.

2022-02-07 21:50:54 | [Mutex] isItemNotified: received:node:0ee5790f-575d-4bc3-831d-f242beb03df5:localhost:node-fcbc686e-a912-480d-831f-de6f3083fe09:Node fcbc686e-a912-480d-831f-de6f3083fe09 :: false

deleteSubnodes 1.031s
2022-02-07 21:50:52 |

2022-02-07 21:50:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:52 | ------------------------------------

2022-02-07 21:50:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65"
}

2022-02-07 21:50:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:50:53 | [Mutex] waiting for: [received:nodes:ee9463d7-eaab-4e0e-921c-4ecff8f7186c:localhost]

2022-02-07 21:50:53 | [Mutex] received everything.

2022-02-07 21:50:53 | [Mutex] isItemNotified: received:node:ee9463d7-eaab-4e0e-921c-4ecff8f7186c:localhost:node-e78c6388-6355-4db3-9069-9bb13281ee65:Node e78c6388-6355-4db3-9069-9bb13281ee65 :: false

2022-02-07 21:50:53 | [Mutex] waiting for: [received:nodes:79a8da16-8f16-4f25-972c-c6426af61c31:localhost]

2022-02-07 21:50:53 | [Mutex] received everything.

2022-02-07 21:50:53 | [Mutex] isItemNotified: received:node:79a8da16-8f16-4f25-972c-c6426af61c31:localhost:node-e78c6388-6355-4db3-9069-9bb13281ee65:Node e78c6388-6355-4db3-9069-9bb13281ee65 :: false

publishItemsToNodes 0.055s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "entry": "<test>item-35d4792e-9d5d-4047-857e-d24a535363d2</test>",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2"
}

2022-02-07 21:50:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2"
}

2022-02-07 21:50:51 | [Mutex] waiting for: [published:item:notifieditem-35d4792e-9d5d-4047-857e-d24a535363d2:admin@test-domain.com]

2022-02-07 21:50:51 | [Mutex] received everything.

2022-02-07 21:50:51 | [Mutex] isItemNotified: published:item:notifieditem-35d4792e-9d5d-4047-857e-d24a535363d2:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2"
}

2022-02-07 21:50:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2"
}

2022-02-07 21:50:51 | [Mutex] received everything.

2022-02-07 21:50:51 | [Mutex] isItemNotified: retracted:item:notifieditem-35d4792e-9d5d-4047-857e-d24a535363d2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2"
}

2022-02-07 21:50:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "item-id": "item-35d4792e-9d5d-4047-857e-d24a535363d2",
    "item": [
        "<item id=\"item-35d4792e-9d5d-4047-857e-d24a535363d2\"><test>item-35d4792e-9d5d-4047-857e-d24a535363d2</test></item>"
    ]
}

2022-02-07 21:50:51 | [Mutex] notify: [retrieved:item:item-35d4792e-9d5d-4047-857e-d24a535363d2:payload-matches:true:localhost]

2022-02-07 21:50:51 | [Mutex] received everything.

2022-02-07 21:50:51 | [Mutex] isItemNotified: retrieved:item:item-35d4792e-9d5d-4047-857e-d24a535363d2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-07 21:50:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e78c6388-6355-4db3-9069-9bb13281ee65",
        "test",
        "node-fcbc686e-a912-480d-831f-de6f3083fe09"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e78c6388-6355-4db3-9069-9bb13281ee65)"
}

2022-02-07 21:50:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.025s
2022-02-07 21:50:50 |

2022-02-07 21:50:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:50 | ------------------------------------

2022-02-07 21:50:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-07 21:50:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-02-07 21:50:51 |

2022-02-07 21:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:50:51 | ------------------------------------

2022-02-07 21:50:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e78c6388-6355-4db3-9069-9bb13281ee65",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-07 21:50:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}