Generated by TestNG with ReportNG at 19:05 PDT on Tuesday 01 September 2020
root@45eef7750236 / 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.036s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2020-09-01 19:20:45 |

2020-09-01 19:20:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:45 | ------------------------------------

2020-09-01 19:20:45 | [Mutex] waiting for: [configured:node:node-01e8a050-4662-4618-880c-b2aab0061967:node-2e969322-dc71-4d2c-bfee-72c6b2bcd499]

2020-09-01 19:20:45 | [Mutex] received everything.

2020-09-01 19:20:45 | [Mutex] isItemNotified: configured:node:node-01e8a050-4662-4618-880c-b2aab0061967:node-2e969322-dc71-4d2c-bfee-72c6b2bcd499 :: true

2020-09-01 19:20:46 | [Mutex] waiting for: [received:nodes:140ba90a-ee71-42ec-a22e-231070da9662:localhost]

2020-09-01 19:20:46 | [Mutex] received everything.

2020-09-01 19:20:46 | [Mutex] isItemNotified: received:node:140ba90a-ee71-42ec-a22e-231070da9662:localhost:node-01e8a050-4662-4618-880c-b2aab0061967:Node 01e8a050-4662-4618-880c-b2aab0061967 :: true

2020-09-01 19:20:46 | [Mutex] waiting for: [received:nodes:6d224076-7d42-4b7f-afba-9202e984a17c:localhost]

2020-09-01 19:20:46 | [Mutex] received everything.

2020-09-01 19:20:46 | [Mutex] isItemNotified: received:node:6d224076-7d42-4b7f-afba-9202e984a17c:localhost:node-01e8a050-4662-4618-880c-b2aab0061967:Node 01e8a050-4662-4618-880c-b2aab0061967 :: false

createNodes 1.652s
2020-09-01 19:20:43 |

2020-09-01 19:20:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:43 | ------------------------------------

2020-09-01 19:20: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-01e8a050-4662-4618-880c-b2aab0061967",
    "pubsub#title": "Node 01e8a050-4662-4618-880c-b2aab0061967"
}

2020-09-01 19:20:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 19:20:44 | [Mutex] waiting for: [received:nodes:e7805955-12c7-4aa5-b041-a14d227a0f73:localhost]

2020-09-01 19:20:44 | [Mutex] waiting for: [received:nodes:e7805955-12c7-4aa5-b041-a14d227a0f73:localhost]

2020-09-01 19:20:44 | [Mutex] received everything.

2020-09-01 19:20:44 | [Mutex] isItemNotified: received:node:e7805955-12c7-4aa5-b041-a14d227a0f73:localhost:node-01e8a050-4662-4618-880c-b2aab0061967:Node 01e8a050-4662-4618-880c-b2aab0061967 :: true

createSubnodes 1.027s
2020-09-01 19:20:44 |

2020-09-01 19:20:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:44 | ------------------------------------

2020-09-01 19:20: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-2e969322-dc71-4d2c-bfee-72c6b2bcd499",
    "pubsub#title": "Node 2e969322-dc71-4d2c-bfee-72c6b2bcd499"
}

2020-09-01 19:20:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 19:20:45 | [Mutex] waiting for: [received:nodes:34e14ba8-e62c-4008-aa08-54a8bf240108:localhost]

2020-09-01 19:20:45 | [Mutex] received everything.

2020-09-01 19:20:45 | [Mutex] isItemNotified: received:node:34e14ba8-e62c-4008-aa08-54a8bf240108:localhost:node-2e969322-dc71-4d2c-bfee-72c6b2bcd499:Node 2e969322-dc71-4d2c-bfee-72c6b2bcd499 :: true

deleteNodes 1.023s
2020-09-01 19:20:50 |

2020-09-01 19:20:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:50 | ------------------------------------

2020-09-01 19:20:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e969322-dc71-4d2c-bfee-72c6b2bcd499"
}

2020-09-01 19:20:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 19:20:51 | [Mutex] waiting for: [received:nodes:6258b61e-6ed9-490c-9962-136ebae81afc:localhost]

2020-09-01 19:20:51 | [Mutex] received everything.

2020-09-01 19:20:51 | [Mutex] isItemNotified: received:node:6258b61e-6ed9-490c-9962-136ebae81afc:localhost:node-2e969322-dc71-4d2c-bfee-72c6b2bcd499:Node 2e969322-dc71-4d2c-bfee-72c6b2bcd499 :: false

deleteSubnodes 1.033s
2020-09-01 19:20:49 |

2020-09-01 19:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:49 | ------------------------------------

2020-09-01 19:20:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967"
}

2020-09-01 19:20:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 19:20:50 | [Mutex] waiting for: [received:nodes:bfbfcf37-eb9e-47ed-8e16-788c5e384343:localhost]

2020-09-01 19:20:50 | [Mutex] received everything.

2020-09-01 19:20:50 | [Mutex] isItemNotified: received:node:bfbfcf37-eb9e-47ed-8e16-788c5e384343:localhost:node-01e8a050-4662-4618-880c-b2aab0061967:Node 01e8a050-4662-4618-880c-b2aab0061967 :: false

2020-09-01 19:20:50 | [Mutex] waiting for: [received:nodes:0c92f53f-4d48-4b36-8c29-034e25869510:localhost]

2020-09-01 19:20:50 | [Mutex] received everything.

2020-09-01 19:20:50 | [Mutex] isItemNotified: received:node:0c92f53f-4d48-4b36-8c29-034e25869510:localhost:node-01e8a050-4662-4618-880c-b2aab0061967:Node 01e8a050-4662-4618-880c-b2aab0061967 :: false

publishItemsToNodes 0.060s
2020-09-01 19:20:47 |

2020-09-01 19:20:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:47 | ------------------------------------

2020-09-01 19:20:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "entry": "<test>item-598a41e1-9713-44b8-a41a-1c260aa9d4b2</test>",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2"
}

2020-09-01 19:20:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2"
}

2020-09-01 19:20:47 | [Mutex] waiting for: [published:item:notifieditem-598a41e1-9713-44b8-a41a-1c260aa9d4b2:admin@test-domain.com]

2020-09-01 19:20:47 | [Mutex] received everything.

2020-09-01 19:20:47 | [Mutex] isItemNotified: published:item:notifieditem-598a41e1-9713-44b8-a41a-1c260aa9d4b2:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-01 19:20:48 |

2020-09-01 19:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:48 | ------------------------------------

2020-09-01 19:20:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2"
}

2020-09-01 19:20:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2"
}

2020-09-01 19:20:48 | [Mutex] received everything.

2020-09-01 19:20:48 | [Mutex] isItemNotified: retracted:item:notifieditem-598a41e1-9713-44b8-a41a-1c260aa9d4b2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.049s
2020-09-01 19:20:47 |

2020-09-01 19:20:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:47 | ------------------------------------

2020-09-01 19:20:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2"
}

2020-09-01 19:20:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "item-id": "item-598a41e1-9713-44b8-a41a-1c260aa9d4b2",
    "item": [
        "<item id=\"item-598a41e1-9713-44b8-a41a-1c260aa9d4b2\"><test>item-598a41e1-9713-44b8-a41a-1c260aa9d4b2</test></item>"
    ]
}

2020-09-01 19:20:47 | [Mutex] notify: [retrieved:item:item-598a41e1-9713-44b8-a41a-1c260aa9d4b2:payload-matches:true:localhost]

2020-09-01 19:20:47 | [Mutex] received everything.

2020-09-01 19:20:47 | [Mutex] isItemNotified: retrieved:item:item-598a41e1-9713-44b8-a41a-1c260aa9d4b2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-09-01 19:20:47 |

2020-09-01 19:20:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:47 | ------------------------------------

2020-09-01 19:20:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-01 19:20:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-01e8a050-4662-4618-880c-b2aab0061967",
        "node-2e969322-dc71-4d2c-bfee-72c6b2bcd499"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-01 19:20:48 |

2020-09-01 19:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:48 | ------------------------------------

2020-09-01 19:20:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-01e8a050-4662-4618-880c-b2aab0061967)"
}

2020-09-01 19:20:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-09-01 19:20:46 |

2020-09-01 19:20:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:46 | ------------------------------------

2020-09-01 19:20:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 19:20:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.099s
2020-09-01 19:20:48 |

2020-09-01 19:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:20:48 | ------------------------------------

2020-09-01 19:20:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-01e8a050-4662-4618-880c-b2aab0061967",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 19:20:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}