Generated by TestNG with ReportNG at 22:14 PDT on Monday 05 April 2021
root@87f6aca6b6f2 / 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.159s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2021-04-05 22:31:36 |

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

2021-04-05 22:31:36 | ------------------------------------

2021-04-05 22:31:36 | [Mutex] waiting for: [configured:node:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:node-3a142350-6142-43d6-94f9-80178128b9a8]

2021-04-05 22:31:36 | [Mutex] received everything.

2021-04-05 22:31:36 | [Mutex] isItemNotified: configured:node:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:node-3a142350-6142-43d6-94f9-80178128b9a8 :: true

2021-04-05 22:31:37 | [Mutex] waiting for: [received:nodes:5639bd81-fa4d-4cdf-92d2-c573cb1860c5:localhost]

2021-04-05 22:31:37 | [Mutex] received everything.

2021-04-05 22:31:37 | [Mutex] isItemNotified: received:node:5639bd81-fa4d-4cdf-92d2-c573cb1860c5:localhost:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d :: true

2021-04-05 22:31:37 | [Mutex] waiting for: [received:nodes:7046f628-2e81-4bf5-889d-391a776f6e1b:localhost]

2021-04-05 22:31:37 | [Mutex] received everything.

2021-04-05 22:31:37 | [Mutex] isItemNotified: received:node:7046f628-2e81-4bf5-889d-391a776f6e1b:localhost:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d :: false

createNodes 1.808s
2021-04-05 22:31:33 |

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

2021-04-05 22:31:33 | ------------------------------------

2021-04-05 22:31:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "pubsub#title": "Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d"
}

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

2021-04-05 22:31:35 | [Mutex] waiting for: [received:nodes:7971adaf-4b70-400d-9b28-11d9630f7ef7:localhost]

2021-04-05 22:31:35 | [Mutex] waiting for: [received:nodes:7971adaf-4b70-400d-9b28-11d9630f7ef7:localhost]

2021-04-05 22:31:35 | [Mutex] received everything.

2021-04-05 22:31:35 | [Mutex] isItemNotified: received:node:7971adaf-4b70-400d-9b28-11d9630f7ef7:localhost:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d :: true

createSubnodes 1.041s
2021-04-05 22:31:35 |

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

2021-04-05 22:31:35 | ------------------------------------

2021-04-05 22:31:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3a142350-6142-43d6-94f9-80178128b9a8",
    "pubsub#title": "Node 3a142350-6142-43d6-94f9-80178128b9a8"
}

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

2021-04-05 22:31:36 | [Mutex] waiting for: [received:nodes:490acb7c-65ff-498a-a1f6-42343159dfc8:localhost]

2021-04-05 22:31:36 | [Mutex] waiting for: [received:nodes:490acb7c-65ff-498a-a1f6-42343159dfc8:localhost]

2021-04-05 22:31:36 | [Mutex] received everything.

2021-04-05 22:31:36 | [Mutex] isItemNotified: received:node:490acb7c-65ff-498a-a1f6-42343159dfc8:localhost:node-3a142350-6142-43d6-94f9-80178128b9a8:Node 3a142350-6142-43d6-94f9-80178128b9a8 :: true

deleteNodes 1.024s
2021-04-05 22:31:40 |

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

2021-04-05 22:31:40 | ------------------------------------

2021-04-05 22:31:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a142350-6142-43d6-94f9-80178128b9a8"
}

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

2021-04-05 22:31:41 | [Mutex] waiting for: [received:nodes:e3150bb1-5761-4d59-b2d8-ab292158b252:localhost]

2021-04-05 22:31:41 | [Mutex] received everything.

2021-04-05 22:31:41 | [Mutex] isItemNotified: received:node:e3150bb1-5761-4d59-b2d8-ab292158b252:localhost:node-3a142350-6142-43d6-94f9-80178128b9a8:Node 3a142350-6142-43d6-94f9-80178128b9a8 :: false

deleteSubnodes 1.036s
2021-04-05 22:31:39 |

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

2021-04-05 22:31:39 | ------------------------------------

2021-04-05 22:31:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d"
}

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

2021-04-05 22:31:40 | [Mutex] waiting for: [received:nodes:df5aadbc-eef4-4ed6-9b41-afe0fa29584e:localhost]

2021-04-05 22:31:40 | [Mutex] waiting for: [received:nodes:df5aadbc-eef4-4ed6-9b41-afe0fa29584e:localhost]

2021-04-05 22:31:40 | [Mutex] received everything.

2021-04-05 22:31:40 | [Mutex] isItemNotified: received:node:df5aadbc-eef4-4ed6-9b41-afe0fa29584e:localhost:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d :: false

2021-04-05 22:31:40 | [Mutex] waiting for: [received:nodes:8f8dde7a-551a-4022-8cad-dda4dd0de4f4:localhost]

2021-04-05 22:31:40 | [Mutex] received everything.

2021-04-05 22:31:40 | [Mutex] isItemNotified: received:node:8f8dde7a-551a-4022-8cad-dda4dd0de4f4:localhost:node-474a5e28-cb3a-4453-a22a-ba52839bbc9d:Node 474a5e28-cb3a-4453-a22a-ba52839bbc9d :: false

publishItemsToNodes 0.047s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

2021-04-05 22:31:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "entry": "<test>item-60811a4d-aedf-4835-9c59-f60d20fb2050</test>",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050"
}

2021-04-05 22:31:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050"
}

2021-04-05 22:31:38 | [Mutex] waiting for: [published:item:notifieditem-60811a4d-aedf-4835-9c59-f60d20fb2050:admin@test-domain.com]

2021-04-05 22:31:38 | [Mutex] received everything.

2021-04-05 22:31:38 | [Mutex] isItemNotified: published:item:notifieditem-60811a4d-aedf-4835-9c59-f60d20fb2050:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

2021-04-05 22:31:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050"
}

2021-04-05 22:31:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050"
}

2021-04-05 22:31:38 | [Mutex] received everything.

2021-04-05 22:31:38 | [Mutex] isItemNotified: retracted:item:notifieditem-60811a4d-aedf-4835-9c59-f60d20fb2050:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

2021-04-05 22:31:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050"
}

2021-04-05 22:31:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "item-id": "item-60811a4d-aedf-4835-9c59-f60d20fb2050",
    "item": [
        "<item id=\"item-60811a4d-aedf-4835-9c59-f60d20fb2050\"><test>item-60811a4d-aedf-4835-9c59-f60d20fb2050</test></item>"
    ]
}

2021-04-05 22:31:38 | [Mutex] notify: [retrieved:item:item-60811a4d-aedf-4835-9c59-f60d20fb2050:payload-matches:true:localhost]

2021-04-05 22:31:38 | [Mutex] received everything.

2021-04-05 22:31:38 | [Mutex] isItemNotified: retrieved:item:item-60811a4d-aedf-4835-9c59-f60d20fb2050:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

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

2021-04-05 22:31:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
        "test",
        "node-3a142350-6142-43d6-94f9-80178128b9a8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

2021-04-05 22:31:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-474a5e28-cb3a-4453-a22a-ba52839bbc9d)"
}

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

subscribeNodes 1.014s
2021-04-05 22:31:37 |

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

2021-04-05 22:31:37 | ------------------------------------

2021-04-05 22:31:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.103s
2021-04-05 22:31:38 |

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

2021-04-05 22:31:38 | ------------------------------------

2021-04-05 22:31:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-474a5e28-cb3a-4453-a22a-ba52839bbc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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