Generated by TestNG with ReportNG at 18:15 PDT on Tuesday 25 August 2020
root@9adf47d9b258 / 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.238s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-08-25 18:34:24 |

2020-08-25 18:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:24 | ------------------------------------

2020-08-25 18:34:24 | [Mutex] waiting for: [configured:node:node-29ce7034-f554-4d20-a498-0559adb91951:node-55bccbda-02b3-4208-929b-6ef0b73c850e]

2020-08-25 18:34:24 | [Mutex] received everything.

2020-08-25 18:34:24 | [Mutex] isItemNotified: configured:node:node-29ce7034-f554-4d20-a498-0559adb91951:node-55bccbda-02b3-4208-929b-6ef0b73c850e :: true

2020-08-25 18:34:25 | [Mutex] waiting for: [received:nodes:a2c32fff-23f8-4799-aec5-a55bf831c955:localhost]

2020-08-25 18:34:25 | [Mutex] received everything.

2020-08-25 18:34:25 | [Mutex] isItemNotified: received:node:a2c32fff-23f8-4799-aec5-a55bf831c955:localhost:node-29ce7034-f554-4d20-a498-0559adb91951:Node 29ce7034-f554-4d20-a498-0559adb91951 :: true

2020-08-25 18:34:25 | [Mutex] waiting for: [received:nodes:2a714a59-af89-4137-ad43-0e3c21bbf81e:localhost]

2020-08-25 18:34:25 | [Mutex] received everything.

2020-08-25 18:34:25 | [Mutex] isItemNotified: received:node:2a714a59-af89-4137-ad43-0e3c21bbf81e:localhost:node-29ce7034-f554-4d20-a498-0559adb91951:Node 29ce7034-f554-4d20-a498-0559adb91951 :: false

createNodes 1.831s
2020-08-25 18:34:21 |

2020-08-25 18:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:21 | ------------------------------------

2020-08-25 18:34:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "pubsub#title": "Node 29ce7034-f554-4d20-a498-0559adb91951"
}

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

2020-08-25 18:34:23 | [Mutex] waiting for: [received:nodes:04908f34-439b-42d9-9b8a-a3200d7e6457:localhost]

2020-08-25 18:34:23 | [Mutex] received everything.

2020-08-25 18:34:23 | [Mutex] isItemNotified: received:node:04908f34-439b-42d9-9b8a-a3200d7e6457:localhost:node-29ce7034-f554-4d20-a498-0559adb91951:Node 29ce7034-f554-4d20-a498-0559adb91951 :: true

createSubnodes 1.044s
2020-08-25 18:34:23 |

2020-08-25 18:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:23 | ------------------------------------

2020-08-25 18:34:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-55bccbda-02b3-4208-929b-6ef0b73c850e",
    "pubsub#title": "Node 55bccbda-02b3-4208-929b-6ef0b73c850e"
}

2020-08-25 18:34:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 18:34:24 | [Mutex] waiting for: [received:nodes:ab910bf0-6ece-4437-9224-ca6c7cadde3a:localhost]

2020-08-25 18:34:24 | [Mutex] received everything.

2020-08-25 18:34:24 | [Mutex] isItemNotified: received:node:ab910bf0-6ece-4437-9224-ca6c7cadde3a:localhost:node-55bccbda-02b3-4208-929b-6ef0b73c850e:Node 55bccbda-02b3-4208-929b-6ef0b73c850e :: true

deleteNodes 1.038s
2020-08-25 18:34:28 |

2020-08-25 18:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:28 | ------------------------------------

2020-08-25 18:34:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55bccbda-02b3-4208-929b-6ef0b73c850e"
}

2020-08-25 18:34:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 18:34:29 | [Mutex] waiting for: [received:nodes:7db8345f-e8b6-49c7-9640-d03029973d3e:localhost]

2020-08-25 18:34:29 | [Mutex] received everything.

2020-08-25 18:34:29 | [Mutex] isItemNotified: received:node:7db8345f-e8b6-49c7-9640-d03029973d3e:localhost:node-55bccbda-02b3-4208-929b-6ef0b73c850e:Node 55bccbda-02b3-4208-929b-6ef0b73c850e :: false

deleteSubnodes 1.028s
2020-08-25 18:34:27 |

2020-08-25 18:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:27 | ------------------------------------

2020-08-25 18:34:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951"
}

2020-08-25 18:34:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 18:34:28 | [Mutex] waiting for: [received:nodes:cbb2e7a4-208a-41b4-9a60-155a2a6a64f9:localhost]

2020-08-25 18:34:28 | [Mutex] waiting for: [received:nodes:cbb2e7a4-208a-41b4-9a60-155a2a6a64f9:localhost]

2020-08-25 18:34:28 | [Mutex] received everything.

2020-08-25 18:34:28 | [Mutex] isItemNotified: received:node:cbb2e7a4-208a-41b4-9a60-155a2a6a64f9:localhost:node-29ce7034-f554-4d20-a498-0559adb91951:Node 29ce7034-f554-4d20-a498-0559adb91951 :: false

2020-08-25 18:34:28 | [Mutex] waiting for: [received:nodes:28aa349a-5ea1-40bc-8498-cbb01b3faa62:localhost]

2020-08-25 18:34:28 | [Mutex] received everything.

2020-08-25 18:34:28 | [Mutex] isItemNotified: received:node:28aa349a-5ea1-40bc-8498-cbb01b3faa62:localhost:node-29ce7034-f554-4d20-a498-0559adb91951:Node 29ce7034-f554-4d20-a498-0559adb91951 :: false

publishItemsToNodes 0.053s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

2020-08-25 18:34:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "entry": "<test>item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6</test>",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6"
}

2020-08-25 18:34:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6"
}

2020-08-25 18:34:26 | [Mutex] waiting for: [published:item:notifieditem-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:admin@test-domain.com]

2020-08-25 18:34:26 | [Mutex] received everything.

2020-08-25 18:34:26 | [Mutex] isItemNotified: published:item:notifieditem-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

2020-08-25 18:34:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6"
}

2020-08-25 18:34:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6"
}

2020-08-25 18:34:26 | [Mutex] waiting for: [retracted:item:notifieditem-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:admin@test-domain.com]

2020-08-25 18:34:26 | [Mutex] received everything.

2020-08-25 18:34:26 | [Mutex] isItemNotified: retracted:item:notifieditem-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

2020-08-25 18:34:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6"
}

2020-08-25 18:34:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "item-id": "item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6",
    "item": [
        "<item id=\"item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6\"><test>item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6</test></item>"
    ]
}

2020-08-25 18:34:26 | [Mutex] notify: [retrieved:item:item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:payload-matches:true:localhost]

2020-08-25 18:34:26 | [Mutex] received everything.

2020-08-25 18:34:26 | [Mutex] isItemNotified: retrieved:item:item-80bdbe7b-044a-4a9c-9df6-ee31f51ff0b6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

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

2020-08-25 18:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-55bccbda-02b3-4208-929b-6ef0b73c850e",
        "test",
        "node-29ce7034-f554-4d20-a498-0559adb91951"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

2020-08-25 18:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-29ce7034-f554-4d20-a498-0559adb91951)"
}

2020-08-25 18:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-08-25 18:34:25 |

2020-08-25 18:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:25 | ------------------------------------

2020-08-25 18:34:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 18:34:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.013s
2020-08-25 18:34:26 |

2020-08-25 18:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 18:34:26 | ------------------------------------

2020-08-25 18:34:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-29ce7034-f554-4d20-a498-0559adb91951",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 18:34:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}