Generated by TestNG with ReportNG at 21:43 PST on Sunday 06 February 2022
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.066s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-02-06 21:59:46 |

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

2022-02-06 21:59:46 | ------------------------------------

2022-02-06 21:59:46 | [Mutex] waiting for: [configured:node:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db]

2022-02-06 21:59:46 | [Mutex] received everything.

2022-02-06 21:59:46 | [Mutex] isItemNotified: configured:node:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db :: true

2022-02-06 21:59:47 | [Mutex] waiting for: [received:nodes:fec5ab43-a4f7-41f2-963e-908901c51cb3:localhost]

2022-02-06 21:59:47 | [Mutex] received everything.

2022-02-06 21:59:47 | [Mutex] isItemNotified: received:node:fec5ab43-a4f7-41f2-963e-908901c51cb3:localhost:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e :: true

2022-02-06 21:59:47 | [Mutex] waiting for: [received:nodes:66537196-eb93-475b-a1e0-1bd07c336444:localhost]

2022-02-06 21:59:47 | [Mutex] waiting for: [received:nodes:66537196-eb93-475b-a1e0-1bd07c336444:localhost]

2022-02-06 21:59:47 | [Mutex] waiting for: [received:nodes:66537196-eb93-475b-a1e0-1bd07c336444:localhost]

2022-02-06 21:59:47 | [Mutex] waiting for: [received:nodes:66537196-eb93-475b-a1e0-1bd07c336444:localhost]

2022-02-06 21:59:47 | [Mutex] received everything.

2022-02-06 21:59:47 | [Mutex] isItemNotified: received:node:66537196-eb93-475b-a1e0-1bd07c336444:localhost:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e :: false

createNodes 1.691s
2022-02-06 21:59:43 |

2022-02-06 21:59:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:43 | ------------------------------------

2022-02-06 21:59:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "pubsub#title": "Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e"
}

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

2022-02-06 21:59:44 | [Mutex] waiting for: [received:nodes:740a0cda-fe7d-4dda-92f9-c1576722e8ec:localhost]

2022-02-06 21:59:44 | [Mutex] received everything.

2022-02-06 21:59:44 | [Mutex] isItemNotified: received:node:740a0cda-fe7d-4dda-92f9-c1576722e8ec:localhost:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e :: true

createSubnodes 1.033s
2022-02-06 21:59:44 |

2022-02-06 21:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:44 | ------------------------------------

2022-02-06 21:59:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db",
    "pubsub#title": "Node fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db"
}

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

2022-02-06 21:59:46 | [Mutex] waiting for: [received:nodes:8847c316-e7e2-48c8-b3b5-91b7dd3818aa:localhost]

2022-02-06 21:59:46 | [Mutex] waiting for: [received:nodes:8847c316-e7e2-48c8-b3b5-91b7dd3818aa:localhost]

2022-02-06 21:59:46 | [Mutex] received everything.

2022-02-06 21:59:46 | [Mutex] isItemNotified: received:node:8847c316-e7e2-48c8-b3b5-91b7dd3818aa:localhost:node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db:Node fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db :: true

deleteNodes 1.031s
2022-02-06 21:59:50 |

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

2022-02-06 21:59:50 | ------------------------------------

2022-02-06 21:59:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db"
}

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

2022-02-06 21:59:51 | [Mutex] waiting for: [received:nodes:9c65ff98-03ab-4deb-9350-d57ed4238c82:localhost]

2022-02-06 21:59:51 | [Mutex] waiting for: [received:nodes:9c65ff98-03ab-4deb-9350-d57ed4238c82:localhost]

2022-02-06 21:59:51 | [Mutex] received everything.

2022-02-06 21:59:51 | [Mutex] isItemNotified: received:node:9c65ff98-03ab-4deb-9350-d57ed4238c82:localhost:node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db:Node fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db :: false

deleteSubnodes 1.031s
2022-02-06 21:59:49 |

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

2022-02-06 21:59:49 | ------------------------------------

2022-02-06 21:59:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e"
}

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

2022-02-06 21:59:50 | [Mutex] waiting for: [received:nodes:966d2b9f-274a-4012-88d0-2bd4f800560a:localhost]

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

2022-02-06 21:59:50 | [Mutex] isItemNotified: received:node:966d2b9f-274a-4012-88d0-2bd4f800560a:localhost:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e :: false

2022-02-06 21:59:50 | [Mutex] waiting for: [received:nodes:37ff15cc-8185-4a24-a333-9f40079deebd:localhost]

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

2022-02-06 21:59:50 | [Mutex] isItemNotified: received:node:37ff15cc-8185-4a24-a333-9f40079deebd:localhost:node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e:Node b467f286-3ce3-4c1f-8dce-5aaa4de9410e :: false

publishItemsToNodes 0.044s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

2022-02-06 21:59:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "entry": "<test>item-18e04b57-dedc-4b65-b3df-c4de047c5ab1</test>",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1"
}

2022-02-06 21:59:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1"
}

2022-02-06 21:59:48 | [Mutex] waiting for: [published:item:notifieditem-18e04b57-dedc-4b65-b3df-c4de047c5ab1:admin@test-domain.com]

2022-02-06 21:59:48 | [Mutex] received everything.

2022-02-06 21:59:48 | [Mutex] isItemNotified: published:item:notifieditem-18e04b57-dedc-4b65-b3df-c4de047c5ab1:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

2022-02-06 21:59:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1"
}

2022-02-06 21:59:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1"
}

2022-02-06 21:59:48 | [Mutex] received everything.

2022-02-06 21:59:48 | [Mutex] isItemNotified: retracted:item:notifieditem-18e04b57-dedc-4b65-b3df-c4de047c5ab1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

2022-02-06 21:59:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1"
}

2022-02-06 21:59:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "item-id": "item-18e04b57-dedc-4b65-b3df-c4de047c5ab1",
    "item": [
        "<item id=\"item-18e04b57-dedc-4b65-b3df-c4de047c5ab1\"><test>item-18e04b57-dedc-4b65-b3df-c4de047c5ab1</test></item>"
    ]
}

2022-02-06 21:59:48 | [Mutex] notify: [retrieved:item:item-18e04b57-dedc-4b65-b3df-c4de047c5ab1:payload-matches:true:localhost]

2022-02-06 21:59:48 | [Mutex] received everything.

2022-02-06 21:59:48 | [Mutex] isItemNotified: retrieved:item:item-18e04b57-dedc-4b65-b3df-c4de047c5ab1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

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

2022-02-06 21:59:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fd09c7f7-8bef-4cdd-9a83-09ea0cf0e3db",
        "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

2022-02-06 21:59:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e)"
}

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

subscribeNodes 1.013s
2022-02-06 21:59:47 |

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

2022-02-06 21:59:47 | ------------------------------------

2022-02-06 21:59:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2022-02-06 21:59:48 |

2022-02-06 21:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 21:59:48 | ------------------------------------

2022-02-06 21:59:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b467f286-3ce3-4c1f-8dce-5aaa4de9410e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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