Generated by TestNG with ReportNG at 22:21 PDT on Thursday 25 March 2021
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.851s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.143s
2021-03-25 22:36:27 |

2021-03-25 22:36:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:27 | ------------------------------------

2021-03-25 22:36:27 | [Mutex] waiting for: [configured:node:node-60e4992b-17cb-4004-8905-6c7e73242dbb:node-cf5c8336-0603-420d-b140-3bc4777add6f]

2021-03-25 22:36:27 | [Mutex] received everything.

2021-03-25 22:36:27 | [Mutex] isItemNotified: configured:node:node-60e4992b-17cb-4004-8905-6c7e73242dbb:node-cf5c8336-0603-420d-b140-3bc4777add6f :: true

2021-03-25 22:36:28 | [Mutex] waiting for: [received:nodes:1186171d-cf8b-4cfb-8ec8-b66f4c1de6bc:localhost]

2021-03-25 22:36:28 | [Mutex] received everything.

2021-03-25 22:36:28 | [Mutex] isItemNotified: received:node:1186171d-cf8b-4cfb-8ec8-b66f4c1de6bc:localhost:node-60e4992b-17cb-4004-8905-6c7e73242dbb:Node 60e4992b-17cb-4004-8905-6c7e73242dbb :: true

2021-03-25 22:36:28 | [Mutex] waiting for: [received:nodes:59e00ee7-2907-4e1d-a61b-dd523094c9e4:localhost]

2021-03-25 22:36:28 | [Mutex] waiting for: [received:nodes:59e00ee7-2907-4e1d-a61b-dd523094c9e4:localhost]

2021-03-25 22:36:28 | [Mutex] received everything.

2021-03-25 22:36:28 | [Mutex] isItemNotified: received:node:59e00ee7-2907-4e1d-a61b-dd523094c9e4:localhost:node-60e4992b-17cb-4004-8905-6c7e73242dbb:Node 60e4992b-17cb-4004-8905-6c7e73242dbb :: false

createNodes 1.462s
2021-03-25 22:36:24 |

2021-03-25 22:36:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:24 | ------------------------------------

2021-03-25 22:36:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "pubsub#title": "Node 60e4992b-17cb-4004-8905-6c7e73242dbb"
}

2021-03-25 22:36:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:36:26 | [Mutex] waiting for: [received:nodes:7314dfd6-f541-43b3-9aa3-2269b79e74d9:localhost]

2021-03-25 22:36:26 | [Mutex] received everything.

2021-03-25 22:36:26 | [Mutex] isItemNotified: received:node:7314dfd6-f541-43b3-9aa3-2269b79e74d9:localhost:node-60e4992b-17cb-4004-8905-6c7e73242dbb:Node 60e4992b-17cb-4004-8905-6c7e73242dbb :: true

createSubnodes 1.028s
2021-03-25 22:36:26 |

2021-03-25 22:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:26 | ------------------------------------

2021-03-25 22:36:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cf5c8336-0603-420d-b140-3bc4777add6f",
    "pubsub#title": "Node cf5c8336-0603-420d-b140-3bc4777add6f"
}

2021-03-25 22:36:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:36:27 | [Mutex] waiting for: [received:nodes:ea02937b-16c3-4318-a116-75431bc55c89:localhost]

2021-03-25 22:36:27 | [Mutex] waiting for: [received:nodes:ea02937b-16c3-4318-a116-75431bc55c89:localhost]

2021-03-25 22:36:27 | [Mutex] received everything.

2021-03-25 22:36:27 | [Mutex] isItemNotified: received:node:ea02937b-16c3-4318-a116-75431bc55c89:localhost:node-cf5c8336-0603-420d-b140-3bc4777add6f:Node cf5c8336-0603-420d-b140-3bc4777add6f :: true

deleteNodes 1.021s
2021-03-25 22:36:31 |

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

2021-03-25 22:36:31 | ------------------------------------

2021-03-25 22:36:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cf5c8336-0603-420d-b140-3bc4777add6f"
}

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

2021-03-25 22:36:32 | [Mutex] waiting for: [received:nodes:f519faf8-798a-4cbc-adc0-ba0b8ae8fa4b:localhost]

2021-03-25 22:36:32 | [Mutex] received everything.

2021-03-25 22:36:32 | [Mutex] isItemNotified: received:node:f519faf8-798a-4cbc-adc0-ba0b8ae8fa4b:localhost:node-cf5c8336-0603-420d-b140-3bc4777add6f:Node cf5c8336-0603-420d-b140-3bc4777add6f :: false

deleteSubnodes 1.027s
2021-03-25 22:36:30 |

2021-03-25 22:36:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:30 | ------------------------------------

2021-03-25 22:36:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb"
}

2021-03-25 22:36:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:36:31 | [Mutex] waiting for: [received:nodes:06aadd36-75eb-4ddd-9976-c9a1b2b95ae7:localhost]

2021-03-25 22:36:31 | [Mutex] waiting for: [received:nodes:06aadd36-75eb-4ddd-9976-c9a1b2b95ae7:localhost]

2021-03-25 22:36:31 | [Mutex] waiting for: [received:nodes:06aadd36-75eb-4ddd-9976-c9a1b2b95ae7:localhost]

2021-03-25 22:36:31 | [Mutex] received everything.

2021-03-25 22:36:31 | [Mutex] isItemNotified: received:node:06aadd36-75eb-4ddd-9976-c9a1b2b95ae7:localhost:node-60e4992b-17cb-4004-8905-6c7e73242dbb:Node 60e4992b-17cb-4004-8905-6c7e73242dbb :: false

2021-03-25 22:36:31 | [Mutex] waiting for: [received:nodes:9dfa67f5-2296-484c-8696-aaf1af042e34:localhost]

2021-03-25 22:36:31 | [Mutex] received everything.

2021-03-25 22:36:31 | [Mutex] isItemNotified: received:node:9dfa67f5-2296-484c-8696-aaf1af042e34:localhost:node-60e4992b-17cb-4004-8905-6c7e73242dbb:Node 60e4992b-17cb-4004-8905-6c7e73242dbb :: false

publishItemsToNodes 0.038s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "entry": "<test>item-9bf8a8c0-2930-4d67-8898-4bb16d58da81</test>",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81"
}

2021-03-25 22:36:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81"
}

2021-03-25 22:36:29 | [Mutex] waiting for: [published:item:notifieditem-9bf8a8c0-2930-4d67-8898-4bb16d58da81:admin@test-domain.com]

2021-03-25 22:36:29 | [Mutex] received everything.

2021-03-25 22:36:29 | [Mutex] isItemNotified: published:item:notifieditem-9bf8a8c0-2930-4d67-8898-4bb16d58da81:admin@test-domain.com :: true

retractItemsFromNodes 0.099s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81"
}

2021-03-25 22:36:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81"
}

2021-03-25 22:36:29 | [Mutex] received everything.

2021-03-25 22:36:29 | [Mutex] isItemNotified: retracted:item:notifieditem-9bf8a8c0-2930-4d67-8898-4bb16d58da81:admin@test-domain.com :: true

retrieveItemsFromNodes 0.115s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81"
}

2021-03-25 22:36:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "item-id": "item-9bf8a8c0-2930-4d67-8898-4bb16d58da81",
    "item": [
        "<item id=\"item-9bf8a8c0-2930-4d67-8898-4bb16d58da81\"><test>item-9bf8a8c0-2930-4d67-8898-4bb16d58da81</test></item>"
    ]
}

2021-03-25 22:36:29 | [Mutex] notify: [retrieved:item:item-9bf8a8c0-2930-4d67-8898-4bb16d58da81:payload-matches:true:localhost]

2021-03-25 22:36:29 | [Mutex] received everything.

2021-03-25 22:36:29 | [Mutex] isItemNotified: retrieved:item:item-9bf8a8c0-2930-4d67-8898-4bb16d58da81:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-25 22:36:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cf5c8336-0603-420d-b140-3bc4777add6f",
        "test",
        "node-60e4992b-17cb-4004-8905-6c7e73242dbb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-60e4992b-17cb-4004-8905-6c7e73242dbb)"
}

2021-03-25 22:36:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-03-25 22:36:28 |

2021-03-25 22:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:28 | ------------------------------------

2021-03-25 22:36:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-25 22:36:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2021-03-25 22:36:29 |

2021-03-25 22:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:36:29 | ------------------------------------

2021-03-25 22:36:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-60e4992b-17cb-4004-8905-6c7e73242dbb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-25 22:36:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}