Generated by TestNG with ReportNG at 21:43 PST on Thursday 26 November 2020
root@eaa73862192b / 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.862s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2020-11-26 22:06:20 |

2020-11-26 22:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:20 | ------------------------------------

2020-11-26 22:06:20 | [Mutex] waiting for: [configured:node:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:node-74f3b154-126a-47ea-ac54-f1c062dabdfb]

2020-11-26 22:06:20 | [Mutex] received everything.

2020-11-26 22:06:20 | [Mutex] isItemNotified: configured:node:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:node-74f3b154-126a-47ea-ac54-f1c062dabdfb :: true

2020-11-26 22:06:21 | [Mutex] waiting for: [received:nodes:3f874336-3565-4c27-a161-884f0ee2ad50:localhost]

2020-11-26 22:06:21 | [Mutex] waiting for: [received:nodes:3f874336-3565-4c27-a161-884f0ee2ad50:localhost]

2020-11-26 22:06:21 | [Mutex] received everything.

2020-11-26 22:06:21 | [Mutex] isItemNotified: received:node:3f874336-3565-4c27-a161-884f0ee2ad50:localhost:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:Node c5ab8f18-92aa-4280-992c-2ac286ab2611 :: true

2020-11-26 22:06:21 | [Mutex] waiting for: [received:nodes:d3f486b7-f1b3-477b-905c-aead7488262e:localhost]

2020-11-26 22:06:21 | [Mutex] received everything.

2020-11-26 22:06:21 | [Mutex] isItemNotified: received:node:d3f486b7-f1b3-477b-905c-aead7488262e:localhost:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:Node c5ab8f18-92aa-4280-992c-2ac286ab2611 :: false

createNodes 1.578s
2020-11-26 22:06:17 |

2020-11-26 22:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:17 | ------------------------------------

2020-11-26 22:06:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "pubsub#title": "Node c5ab8f18-92aa-4280-992c-2ac286ab2611"
}

2020-11-26 22:06:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 22:06:19 | [Mutex] waiting for: [received:nodes:30c16dc0-aeb3-48f7-b061-ebb5fca4c5bc:localhost]

2020-11-26 22:06:19 | [Mutex] waiting for: [received:nodes:30c16dc0-aeb3-48f7-b061-ebb5fca4c5bc:localhost]

2020-11-26 22:06:19 | [Mutex] received everything.

2020-11-26 22:06:19 | [Mutex] isItemNotified: received:node:30c16dc0-aeb3-48f7-b061-ebb5fca4c5bc:localhost:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:Node c5ab8f18-92aa-4280-992c-2ac286ab2611 :: true

createSubnodes 1.022s
2020-11-26 22:06:19 |

2020-11-26 22:06:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:19 | ------------------------------------

2020-11-26 22:06:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-74f3b154-126a-47ea-ac54-f1c062dabdfb",
    "pubsub#title": "Node 74f3b154-126a-47ea-ac54-f1c062dabdfb"
}

2020-11-26 22:06:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 22:06:20 | [Mutex] waiting for: [received:nodes:39c5f2e5-2476-43b9-baea-0646c79f02bb:localhost]

2020-11-26 22:06:20 | [Mutex] waiting for: [received:nodes:39c5f2e5-2476-43b9-baea-0646c79f02bb:localhost]

2020-11-26 22:06:20 | [Mutex] received everything.

2020-11-26 22:06:20 | [Mutex] isItemNotified: received:node:39c5f2e5-2476-43b9-baea-0646c79f02bb:localhost:node-74f3b154-126a-47ea-ac54-f1c062dabdfb:Node 74f3b154-126a-47ea-ac54-f1c062dabdfb :: true

deleteNodes 1.020s
2020-11-26 22:06:24 |

2020-11-26 22:06:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:24 | ------------------------------------

2020-11-26 22:06:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-74f3b154-126a-47ea-ac54-f1c062dabdfb"
}

2020-11-26 22:06:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 22:06:25 | [Mutex] waiting for: [received:nodes:00bcef31-0d69-40e3-b252-36577ec05b72:localhost]

2020-11-26 22:06:25 | [Mutex] waiting for: [received:nodes:00bcef31-0d69-40e3-b252-36577ec05b72:localhost]

2020-11-26 22:06:25 | [Mutex] received everything.

2020-11-26 22:06:25 | [Mutex] isItemNotified: received:node:00bcef31-0d69-40e3-b252-36577ec05b72:localhost:node-74f3b154-126a-47ea-ac54-f1c062dabdfb:Node 74f3b154-126a-47ea-ac54-f1c062dabdfb :: false

deleteSubnodes 1.027s
2020-11-26 22:06:23 |

2020-11-26 22:06:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:23 | ------------------------------------

2020-11-26 22:06:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611"
}

2020-11-26 22:06:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 22:06:24 | [Mutex] waiting for: [received:nodes:7cfe21c4-5f70-43b0-911f-6a5409970dbf:localhost]

2020-11-26 22:06:24 | [Mutex] received everything.

2020-11-26 22:06:24 | [Mutex] isItemNotified: received:node:7cfe21c4-5f70-43b0-911f-6a5409970dbf:localhost:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:Node c5ab8f18-92aa-4280-992c-2ac286ab2611 :: false

2020-11-26 22:06:24 | [Mutex] waiting for: [received:nodes:5c4aaf1a-bade-4e80-8927-362a6fc5cd1f:localhost]

2020-11-26 22:06:24 | [Mutex] received everything.

2020-11-26 22:06:24 | [Mutex] isItemNotified: received:node:5c4aaf1a-bade-4e80-8927-362a6fc5cd1f:localhost:node-c5ab8f18-92aa-4280-992c-2ac286ab2611:Node c5ab8f18-92aa-4280-992c-2ac286ab2611 :: false

publishItemsToNodes 0.036s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "entry": "<test>item-6134f889-e6e9-4149-85ee-b185817d343a</test>",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a"
}

2020-11-26 22:06:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a"
}

2020-11-26 22:06:22 | [Mutex] waiting for: [published:item:notifieditem-6134f889-e6e9-4149-85ee-b185817d343a:admin@test-domain.com]

2020-11-26 22:06:22 | [Mutex] received everything.

2020-11-26 22:06:22 | [Mutex] isItemNotified: published:item:notifieditem-6134f889-e6e9-4149-85ee-b185817d343a:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a"
}

2020-11-26 22:06:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a"
}

2020-11-26 22:06:22 | [Mutex] received everything.

2020-11-26 22:06:22 | [Mutex] isItemNotified: retracted:item:notifieditem-6134f889-e6e9-4149-85ee-b185817d343a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.093s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a"
}

2020-11-26 22:06:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "item-id": "item-6134f889-e6e9-4149-85ee-b185817d343a",
    "item": [
        "<item id=\"item-6134f889-e6e9-4149-85ee-b185817d343a\"><test>item-6134f889-e6e9-4149-85ee-b185817d343a</test></item>"
    ]
}

2020-11-26 22:06:22 | [Mutex] notify: [retrieved:item:item-6134f889-e6e9-4149-85ee-b185817d343a:payload-matches:true:localhost]

2020-11-26 22:06:22 | [Mutex] received everything.

2020-11-26 22:06:22 | [Mutex] isItemNotified: retrieved:item:item-6134f889-e6e9-4149-85ee-b185817d343a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-26 22:06:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-74f3b154-126a-47ea-ac54-f1c062dabdfb",
        "node-c5ab8f18-92aa-4280-992c-2ac286ab2611"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c5ab8f18-92aa-4280-992c-2ac286ab2611)"
}

2020-11-26 22:06:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-11-26 22:06:21 |

2020-11-26 22:06:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:21 | ------------------------------------

2020-11-26 22:06:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-26 22:06:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2020-11-26 22:06:22 |

2020-11-26 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 22:06:22 | ------------------------------------

2020-11-26 22:06:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c5ab8f18-92aa-4280-992c-2ac286ab2611",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-26 22:06:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}