Generated by TestNG with ReportNG at 21:42 PST on Wednesday 09 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.116s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2022-02-09 21:56:17 |

2022-02-09 21:56:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:17 | ------------------------------------

2022-02-09 21:56:17 | [Mutex] waiting for: [configured:node:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:node-e6915374-21f8-4f23-8e6e-3031243c0876]

2022-02-09 21:56:17 | [Mutex] received everything.

2022-02-09 21:56:17 | [Mutex] isItemNotified: configured:node:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:node-e6915374-21f8-4f23-8e6e-3031243c0876 :: true

2022-02-09 21:56:18 | [Mutex] waiting for: [received:nodes:660888e9-0c16-4956-87ab-e1b6e7d3c9b5:localhost]

2022-02-09 21:56:18 | [Mutex] received everything.

2022-02-09 21:56:18 | [Mutex] isItemNotified: received:node:660888e9-0c16-4956-87ab-e1b6e7d3c9b5:localhost:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354 :: true

2022-02-09 21:56:18 | [Mutex] waiting for: [received:nodes:3c229f8c-7baa-4adb-a708-86a4e222eb64:localhost]

2022-02-09 21:56:18 | [Mutex] received everything.

2022-02-09 21:56:18 | [Mutex] isItemNotified: received:node:3c229f8c-7baa-4adb-a708-86a4e222eb64:localhost:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354 :: false

createNodes 1.769s
2022-02-09 21:56:14 |

2022-02-09 21:56:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:14 | ------------------------------------

2022-02-09 21:56:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "pubsub#title": "Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354"
}

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

2022-02-09 21:56:16 | [Mutex] waiting for: [received:nodes:eb7bcda3-aad2-4256-a6bf-bfe24e0c3f09:localhost]

2022-02-09 21:56:16 | [Mutex] received everything.

2022-02-09 21:56:16 | [Mutex] isItemNotified: received:node:eb7bcda3-aad2-4256-a6bf-bfe24e0c3f09:localhost:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354 :: true

createSubnodes 1.028s
2022-02-09 21:56:16 |

2022-02-09 21:56:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:16 | ------------------------------------

2022-02-09 21:56:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e6915374-21f8-4f23-8e6e-3031243c0876",
    "pubsub#title": "Node e6915374-21f8-4f23-8e6e-3031243c0876"
}

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

2022-02-09 21:56:17 | [Mutex] waiting for: [received:nodes:e9a6ed03-5e2f-4cd9-a1b5-f9e392dc54f5:localhost]

2022-02-09 21:56:17 | [Mutex] received everything.

2022-02-09 21:56:17 | [Mutex] isItemNotified: received:node:e9a6ed03-5e2f-4cd9-a1b5-f9e392dc54f5:localhost:node-e6915374-21f8-4f23-8e6e-3031243c0876:Node e6915374-21f8-4f23-8e6e-3031243c0876 :: true

deleteNodes 1.029s
2022-02-09 21:56:22 |

2022-02-09 21:56:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:22 | ------------------------------------

2022-02-09 21:56:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6915374-21f8-4f23-8e6e-3031243c0876"
}

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

2022-02-09 21:56:23 | [Mutex] waiting for: [received:nodes:8d5cc24a-8192-48ae-87d0-4768d6cd9992:localhost]

2022-02-09 21:56:23 | [Mutex] received everything.

2022-02-09 21:56:23 | [Mutex] isItemNotified: received:node:8d5cc24a-8192-48ae-87d0-4768d6cd9992:localhost:node-e6915374-21f8-4f23-8e6e-3031243c0876:Node e6915374-21f8-4f23-8e6e-3031243c0876 :: false

deleteSubnodes 1.029s
2022-02-09 21:56:21 |

2022-02-09 21:56:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:21 | ------------------------------------

2022-02-09 21:56:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354"
}

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

2022-02-09 21:56:22 | [Mutex] waiting for: [received:nodes:975860a9-e0e7-42ae-b18a-be7d69916968:localhost]

2022-02-09 21:56:22 | [Mutex] waiting for: [received:nodes:975860a9-e0e7-42ae-b18a-be7d69916968:localhost]

2022-02-09 21:56:22 | [Mutex] received everything.

2022-02-09 21:56:22 | [Mutex] isItemNotified: received:node:975860a9-e0e7-42ae-b18a-be7d69916968:localhost:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354 :: false

2022-02-09 21:56:22 | [Mutex] waiting for: [received:nodes:a1c86506-fb38-4efb-8861-426e01d28d66:localhost]

2022-02-09 21:56:22 | [Mutex] received everything.

2022-02-09 21:56:22 | [Mutex] isItemNotified: received:node:a1c86506-fb38-4efb-8861-426e01d28d66:localhost:node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354:Node e9e866d4-9bdb-49a1-a1b1-5c01768f0354 :: false

publishItemsToNodes 0.040s
2022-02-09 21:56:19 |

2022-02-09 21:56:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:19 | ------------------------------------

2022-02-09 21:56:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "entry": "<test>item-3e9a290c-8d60-4154-ab93-ce3f2df60d35</test>",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35"
}

2022-02-09 21:56:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35"
}

2022-02-09 21:56:19 | [Mutex] received everything.

2022-02-09 21:56:19 | [Mutex] isItemNotified: published:item:notifieditem-3e9a290c-8d60-4154-ab93-ce3f2df60d35:admin@test-domain.com :: true

retractItemsFromNodes 0.121s
2022-02-09 21:56:19 |

2022-02-09 21:56:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:19 | ------------------------------------

2022-02-09 21:56:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35"
}

2022-02-09 21:56:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35"
}

2022-02-09 21:56:19 | [Mutex] waiting for: [retracted:item:notifieditem-3e9a290c-8d60-4154-ab93-ce3f2df60d35:admin@test-domain.com]

2022-02-09 21:56:20 | [Mutex] received everything.

2022-02-09 21:56:20 | [Mutex] isItemNotified: retracted:item:notifieditem-3e9a290c-8d60-4154-ab93-ce3f2df60d35:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-02-09 21:56:19 |

2022-02-09 21:56:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:19 | ------------------------------------

2022-02-09 21:56:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35"
}

2022-02-09 21:56:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "item-id": "item-3e9a290c-8d60-4154-ab93-ce3f2df60d35",
    "item": [
        "<item id=\"item-3e9a290c-8d60-4154-ab93-ce3f2df60d35\"><test>item-3e9a290c-8d60-4154-ab93-ce3f2df60d35</test></item>"
    ]
}

2022-02-09 21:56:19 | [Mutex] notify: [retrieved:item:item-3e9a290c-8d60-4154-ab93-ce3f2df60d35:payload-matches:true:localhost]

2022-02-09 21:56:19 | [Mutex] received everything.

2022-02-09 21:56:19 | [Mutex] isItemNotified: retrieved:item:item-3e9a290c-8d60-4154-ab93-ce3f2df60d35:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-09 21:56:19 |

2022-02-09 21:56:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:19 | ------------------------------------

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

2022-02-09 21:56:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
        "test",
        "node-e6915374-21f8-4f23-8e6e-3031243c0876"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-09 21:56:19 |

2022-02-09 21:56:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:19 | ------------------------------------

2022-02-09 21:56:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354)"
}

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

subscribeNodes 1.012s
2022-02-09 21:56:18 |

2022-02-09 21:56:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:18 | ------------------------------------

2022-02-09 21:56:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.047s
2022-02-09 21:56:20 |

2022-02-09 21:56:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:56:20 | ------------------------------------

2022-02-09 21:56:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e9e866d4-9bdb-49a1-a1b1-5c01768f0354",
    "jids": [
        "admin@test-domain.com"
    ]
}

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