Generated by TestNG with ReportNG at 22:42 PDT on Tuesday 12 October 2021
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.037s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.035s
2021-10-12 22:57:25 |

2021-10-12 22:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:25 | ------------------------------------

2021-10-12 22:57:25 | [Mutex] waiting for: [configured:node:node-dfdac796-092d-4e23-950f-8b4023860c49:node-86cb4357-aa95-4ec3-84d2-0845e1ec5600]

2021-10-12 22:57:25 | [Mutex] received everything.

2021-10-12 22:57:25 | [Mutex] isItemNotified: configured:node:node-dfdac796-092d-4e23-950f-8b4023860c49:node-86cb4357-aa95-4ec3-84d2-0845e1ec5600 :: true

2021-10-12 22:57:26 | [Mutex] waiting for: [received:nodes:e4e423b5-049f-46b9-82bd-26d8c50111f9:localhost]

2021-10-12 22:57:26 | [Mutex] received everything.

2021-10-12 22:57:26 | [Mutex] isItemNotified: received:node:e4e423b5-049f-46b9-82bd-26d8c50111f9:localhost:node-dfdac796-092d-4e23-950f-8b4023860c49:Node dfdac796-092d-4e23-950f-8b4023860c49 :: true

2021-10-12 22:57:26 | [Mutex] waiting for: [received:nodes:f01100da-c778-4c75-a634-5f5d185962cb:localhost]

2021-10-12 22:57:26 | [Mutex] waiting for: [received:nodes:f01100da-c778-4c75-a634-5f5d185962cb:localhost]

2021-10-12 22:57:26 | [Mutex] received everything.

2021-10-12 22:57:26 | [Mutex] isItemNotified: received:node:f01100da-c778-4c75-a634-5f5d185962cb:localhost:node-dfdac796-092d-4e23-950f-8b4023860c49:Node dfdac796-092d-4e23-950f-8b4023860c49 :: false

createNodes 1.795s
2021-10-12 22:57:22 |

2021-10-12 22:57:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:22 | ------------------------------------

2021-10-12 22:57:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "pubsub#title": "Node dfdac796-092d-4e23-950f-8b4023860c49"
}

2021-10-12 22:57:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:57:24 | [Mutex] waiting for: [received:nodes:9135d3c6-05fe-4078-bd64-44a04ce6b3cd:localhost]

2021-10-12 22:57:24 | [Mutex] received everything.

2021-10-12 22:57:24 | [Mutex] isItemNotified: received:node:9135d3c6-05fe-4078-bd64-44a04ce6b3cd:localhost:node-dfdac796-092d-4e23-950f-8b4023860c49:Node dfdac796-092d-4e23-950f-8b4023860c49 :: true

createSubnodes 1.023s
2021-10-12 22:57:24 |

2021-10-12 22:57:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:24 | ------------------------------------

2021-10-12 22:57:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-86cb4357-aa95-4ec3-84d2-0845e1ec5600",
    "pubsub#title": "Node 86cb4357-aa95-4ec3-84d2-0845e1ec5600"
}

2021-10-12 22:57:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:57:25 | [Mutex] waiting for: [received:nodes:8d62d56f-fa1d-4520-bd56-db5414fcafe5:localhost]

2021-10-12 22:57:25 | [Mutex] received everything.

2021-10-12 22:57:25 | [Mutex] isItemNotified: received:node:8d62d56f-fa1d-4520-bd56-db5414fcafe5:localhost:node-86cb4357-aa95-4ec3-84d2-0845e1ec5600:Node 86cb4357-aa95-4ec3-84d2-0845e1ec5600 :: true

deleteNodes 1.022s
2021-10-12 22:57:29 |

2021-10-12 22:57:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:29 | ------------------------------------

2021-10-12 22:57:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-86cb4357-aa95-4ec3-84d2-0845e1ec5600"
}

2021-10-12 22:57:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:57:30 | [Mutex] waiting for: [received:nodes:fded79c0-2251-44b3-b1f9-53902b979f19:localhost]

2021-10-12 22:57:30 | [Mutex] waiting for: [received:nodes:fded79c0-2251-44b3-b1f9-53902b979f19:localhost]

2021-10-12 22:57:30 | [Mutex] received everything.

2021-10-12 22:57:30 | [Mutex] isItemNotified: received:node:fded79c0-2251-44b3-b1f9-53902b979f19:localhost:node-86cb4357-aa95-4ec3-84d2-0845e1ec5600:Node 86cb4357-aa95-4ec3-84d2-0845e1ec5600 :: false

deleteSubnodes 1.030s
2021-10-12 22:57:28 |

2021-10-12 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:28 | ------------------------------------

2021-10-12 22:57:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49"
}

2021-10-12 22:57:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:57:29 | [Mutex] waiting for: [received:nodes:dc33dec0-687c-4e45-b3d2-88c452b7b88a:localhost]

2021-10-12 22:57:29 | [Mutex] waiting for: [received:nodes:dc33dec0-687c-4e45-b3d2-88c452b7b88a:localhost]

2021-10-12 22:57:29 | [Mutex] waiting for: [received:nodes:dc33dec0-687c-4e45-b3d2-88c452b7b88a:localhost]

2021-10-12 22:57:29 | [Mutex] waiting for: [received:nodes:dc33dec0-687c-4e45-b3d2-88c452b7b88a:localhost]

2021-10-12 22:57:29 | [Mutex] received everything.

2021-10-12 22:57:29 | [Mutex] isItemNotified: received:node:dc33dec0-687c-4e45-b3d2-88c452b7b88a:localhost:node-dfdac796-092d-4e23-950f-8b4023860c49:Node dfdac796-092d-4e23-950f-8b4023860c49 :: false

2021-10-12 22:57:29 | [Mutex] waiting for: [received:nodes:93405eb6-bb59-4e90-b64f-87bf74c5bb2b:localhost]

2021-10-12 22:57:29 | [Mutex] received everything.

2021-10-12 22:57:29 | [Mutex] isItemNotified: received:node:93405eb6-bb59-4e90-b64f-87bf74c5bb2b:localhost:node-dfdac796-092d-4e23-950f-8b4023860c49:Node dfdac796-092d-4e23-950f-8b4023860c49 :: false

publishItemsToNodes 0.054s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "entry": "<test>item-20fde7a7-53f0-4738-b070-db4e8efd3bdc</test>",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc"
}

2021-10-12 22:57:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc"
}

2021-10-12 22:57:27 | [Mutex] waiting for: [published:item:notifieditem-20fde7a7-53f0-4738-b070-db4e8efd3bdc:admin@test-domain.com]

2021-10-12 22:57:27 | [Mutex] received everything.

2021-10-12 22:57:27 | [Mutex] isItemNotified: published:item:notifieditem-20fde7a7-53f0-4738-b070-db4e8efd3bdc:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc"
}

2021-10-12 22:57:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc"
}

2021-10-12 22:57:27 | [Mutex] waiting for: [retracted:item:notifieditem-20fde7a7-53f0-4738-b070-db4e8efd3bdc:admin@test-domain.com]

2021-10-12 22:57:27 | [Mutex] received everything.

2021-10-12 22:57:27 | [Mutex] isItemNotified: retracted:item:notifieditem-20fde7a7-53f0-4738-b070-db4e8efd3bdc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc"
}

2021-10-12 22:57:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "item-id": "item-20fde7a7-53f0-4738-b070-db4e8efd3bdc",
    "item": [
        "<item id=\"item-20fde7a7-53f0-4738-b070-db4e8efd3bdc\"><test>item-20fde7a7-53f0-4738-b070-db4e8efd3bdc</test></item>"
    ]
}

2021-10-12 22:57:27 | [Mutex] notify: [retrieved:item:item-20fde7a7-53f0-4738-b070-db4e8efd3bdc:payload-matches:true:localhost]

2021-10-12 22:57:27 | [Mutex] received everything.

2021-10-12 22:57:27 | [Mutex] isItemNotified: retrieved:item:item-20fde7a7-53f0-4738-b070-db4e8efd3bdc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-12 22:57:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-86cb4357-aa95-4ec3-84d2-0845e1ec5600",
        "node-dfdac796-092d-4e23-950f-8b4023860c49"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dfdac796-092d-4e23-950f-8b4023860c49)"
}

2021-10-12 22:57:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-10-12 22:57:26 |

2021-10-12 22:57:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:26 | ------------------------------------

2021-10-12 22:57:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-12 22:57:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2021-10-12 22:57:27 |

2021-10-12 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:57:27 | ------------------------------------

2021-10-12 22:57:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dfdac796-092d-4e23-950f-8b4023860c49",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-12 22:57:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}