Generated by TestNG with ReportNG at 21:41 PST on Wednesday 18 November 2020
root@43fec6d4badf / 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.005s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2020-11-18 21:58:27 |

2020-11-18 21:58:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:27 | ------------------------------------

2020-11-18 21:58:27 | [Mutex] waiting for: [configured:node:node-d7c82b71-b932-406a-b184-48239b28f48c:node-81c53dd7-be2a-4859-81d6-90b0555275fd]

2020-11-18 21:58:28 | [Mutex] received everything.

2020-11-18 21:58:28 | [Mutex] isItemNotified: configured:node:node-d7c82b71-b932-406a-b184-48239b28f48c:node-81c53dd7-be2a-4859-81d6-90b0555275fd :: true

2020-11-18 21:58:29 | [Mutex] waiting for: [received:nodes:12dccc08-b191-4604-bda3-181df21021da:localhost]

2020-11-18 21:58:29 | [Mutex] received everything.

2020-11-18 21:58:29 | [Mutex] isItemNotified: received:node:12dccc08-b191-4604-bda3-181df21021da:localhost:node-d7c82b71-b932-406a-b184-48239b28f48c:Node d7c82b71-b932-406a-b184-48239b28f48c :: true

2020-11-18 21:58:29 | [Mutex] waiting for: [received:nodes:f7e70e7e-ee41-4c6b-883a-e1503d0e9cff:localhost]

2020-11-18 21:58:29 | [Mutex] received everything.

2020-11-18 21:58:29 | [Mutex] isItemNotified: received:node:f7e70e7e-ee41-4c6b-883a-e1503d0e9cff:localhost:node-d7c82b71-b932-406a-b184-48239b28f48c:Node d7c82b71-b932-406a-b184-48239b28f48c :: false

createNodes 1.583s
2020-11-18 21:58:25 |

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

2020-11-18 21:58:25 | ------------------------------------

2020-11-18 21:58: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-d7c82b71-b932-406a-b184-48239b28f48c",
    "pubsub#title": "Node d7c82b71-b932-406a-b184-48239b28f48c"
}

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

2020-11-18 21:58:26 | [Mutex] waiting for: [received:nodes:b4952af4-46d0-4b84-89f1-a5f44112f9a4:localhost]

2020-11-18 21:58:26 | [Mutex] received everything.

2020-11-18 21:58:26 | [Mutex] isItemNotified: received:node:b4952af4-46d0-4b84-89f1-a5f44112f9a4:localhost:node-d7c82b71-b932-406a-b184-48239b28f48c:Node d7c82b71-b932-406a-b184-48239b28f48c :: true

createSubnodes 1.026s
2020-11-18 21:58:26 |

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

2020-11-18 21:58:26 | ------------------------------------

2020-11-18 21:58: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-81c53dd7-be2a-4859-81d6-90b0555275fd",
    "pubsub#title": "Node 81c53dd7-be2a-4859-81d6-90b0555275fd"
}

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

2020-11-18 21:58:27 | [Mutex] waiting for: [received:nodes:32c42141-2f0a-463a-80b6-07022516cf87:localhost]

2020-11-18 21:58:27 | [Mutex] received everything.

2020-11-18 21:58:27 | [Mutex] isItemNotified: received:node:32c42141-2f0a-463a-80b6-07022516cf87:localhost:node-81c53dd7-be2a-4859-81d6-90b0555275fd:Node 81c53dd7-be2a-4859-81d6-90b0555275fd :: true

deleteNodes 1.020s
2020-11-18 21:58:32 |

2020-11-18 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:32 | ------------------------------------

2020-11-18 21:58:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-81c53dd7-be2a-4859-81d6-90b0555275fd"
}

2020-11-18 21:58:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-18 21:58:33 | [Mutex] waiting for: [received:nodes:1a8af609-9c6a-4509-a4fa-9c03fc35b9c5:localhost]

2020-11-18 21:58:33 | [Mutex] waiting for: [received:nodes:1a8af609-9c6a-4509-a4fa-9c03fc35b9c5:localhost]

2020-11-18 21:58:33 | [Mutex] waiting for: [received:nodes:1a8af609-9c6a-4509-a4fa-9c03fc35b9c5:localhost]

2020-11-18 21:58:33 | [Mutex] received everything.

2020-11-18 21:58:33 | [Mutex] isItemNotified: received:node:1a8af609-9c6a-4509-a4fa-9c03fc35b9c5:localhost:node-81c53dd7-be2a-4859-81d6-90b0555275fd:Node 81c53dd7-be2a-4859-81d6-90b0555275fd :: false

deleteSubnodes 1.028s
2020-11-18 21:58:31 |

2020-11-18 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:31 | ------------------------------------

2020-11-18 21:58:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c"
}

2020-11-18 21:58:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-18 21:58:32 | [Mutex] waiting for: [received:nodes:0cfbb0b0-6e99-4892-bbbe-0a3ec7b65e1c:localhost]

2020-11-18 21:58:32 | [Mutex] received everything.

2020-11-18 21:58:32 | [Mutex] isItemNotified: received:node:0cfbb0b0-6e99-4892-bbbe-0a3ec7b65e1c:localhost:node-d7c82b71-b932-406a-b184-48239b28f48c:Node d7c82b71-b932-406a-b184-48239b28f48c :: false

2020-11-18 21:58:32 | [Mutex] waiting for: [received:nodes:4ca12930-eb30-4e94-bdab-82cc5e3cdb81:localhost]

2020-11-18 21:58:32 | [Mutex] received everything.

2020-11-18 21:58:32 | [Mutex] isItemNotified: received:node:4ca12930-eb30-4e94-bdab-82cc5e3cdb81:localhost:node-d7c82b71-b932-406a-b184-48239b28f48c:Node d7c82b71-b932-406a-b184-48239b28f48c :: false

publishItemsToNodes 0.056s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

2020-11-18 21:58:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "entry": "<test>item-97be87e1-33fa-479e-adf1-c367837eeede</test>",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede"
}

2020-11-18 21:58:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede"
}

2020-11-18 21:58:30 | [Mutex] received everything.

2020-11-18 21:58:30 | [Mutex] isItemNotified: published:item:notifieditem-97be87e1-33fa-479e-adf1-c367837eeede:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

2020-11-18 21:58:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede"
}

2020-11-18 21:58:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede"
}

2020-11-18 21:58:30 | [Mutex] received everything.

2020-11-18 21:58:30 | [Mutex] isItemNotified: retracted:item:notifieditem-97be87e1-33fa-479e-adf1-c367837eeede:admin@test-domain.com :: true

retrieveItemsFromNodes 0.090s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

2020-11-18 21:58:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede"
}

2020-11-18 21:58:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "item-id": "item-97be87e1-33fa-479e-adf1-c367837eeede",
    "item": [
        "<item id=\"item-97be87e1-33fa-479e-adf1-c367837eeede\"><test>item-97be87e1-33fa-479e-adf1-c367837eeede</test></item>"
    ]
}

2020-11-18 21:58:30 | [Mutex] notify: [retrieved:item:item-97be87e1-33fa-479e-adf1-c367837eeede:payload-matches:true:localhost]

2020-11-18 21:58:30 | [Mutex] received everything.

2020-11-18 21:58:30 | [Mutex] isItemNotified: retrieved:item:item-97be87e1-33fa-479e-adf1-c367837eeede:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

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

2020-11-18 21:58:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d7c82b71-b932-406a-b184-48239b28f48c",
        "node-81c53dd7-be2a-4859-81d6-90b0555275fd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

2020-11-18 21:58:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d7c82b71-b932-406a-b184-48239b28f48c)"
}

2020-11-18 21:58:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-11-18 21:58:29 |

2020-11-18 21:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:29 | ------------------------------------

2020-11-18 21:58:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-11-18 21:58:30 |

2020-11-18 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:58:30 | ------------------------------------

2020-11-18 21:58:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d7c82b71-b932-406a-b184-48239b28f48c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-18 21:58:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}