Generated by TestNG with ReportNG at 21:41 PST on Tuesday 23 February 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 : 9.125s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-02-23 21:55:47 |

2021-02-23 21:55:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:47 | ------------------------------------

2021-02-23 21:55:47 | [Mutex] waiting for: [configured:node:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3]

2021-02-23 21:55:47 | [Mutex] received everything.

2021-02-23 21:55:47 | [Mutex] isItemNotified: configured:node:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3 :: true

2021-02-23 21:55:48 | [Mutex] waiting for: [received:nodes:299df08a-3d46-4941-9d41-8fc0d2925ba1:localhost]

2021-02-23 21:55:48 | [Mutex] received everything.

2021-02-23 21:55:48 | [Mutex] isItemNotified: received:node:299df08a-3d46-4941-9d41-8fc0d2925ba1:localhost:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f :: true

2021-02-23 21:55:48 | [Mutex] waiting for: [received:nodes:44fbc37e-9554-4e3e-a09a-dbd360463690:localhost]

2021-02-23 21:55:48 | [Mutex] received everything.

2021-02-23 21:55:48 | [Mutex] isItemNotified: received:node:44fbc37e-9554-4e3e-a09a-dbd360463690:localhost:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f :: false

createNodes 1.700s
2021-02-23 21:55:45 |

2021-02-23 21:55:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:45 | ------------------------------------

2021-02-23 21:55:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "pubsub#title": "Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f"
}

2021-02-23 21:55:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:55:46 | [Mutex] waiting for: [received:nodes:31216ab7-3399-4072-be28-616c0fd0eeb9:localhost]

2021-02-23 21:55:46 | [Mutex] received everything.

2021-02-23 21:55:46 | [Mutex] isItemNotified: received:node:31216ab7-3399-4072-be28-616c0fd0eeb9:localhost:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f :: true

createSubnodes 1.025s
2021-02-23 21:55:46 |

2021-02-23 21:55:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:46 | ------------------------------------

2021-02-23 21:55:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3",
    "pubsub#title": "Node 2e9833c2-c504-415a-8d74-e6d02ea4e9e3"
}

2021-02-23 21:55:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:55:47 | [Mutex] waiting for: [received:nodes:88ff5db0-a7fb-4773-aae9-78f7e1f8fef2:localhost]

2021-02-23 21:55:47 | [Mutex] waiting for: [received:nodes:88ff5db0-a7fb-4773-aae9-78f7e1f8fef2:localhost]

2021-02-23 21:55:47 | [Mutex] received everything.

2021-02-23 21:55:47 | [Mutex] isItemNotified: received:node:88ff5db0-a7fb-4773-aae9-78f7e1f8fef2:localhost:node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3:Node 2e9833c2-c504-415a-8d74-e6d02ea4e9e3 :: true

deleteNodes 1.025s
2021-02-23 21:55:52 |

2021-02-23 21:55:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:52 | ------------------------------------

2021-02-23 21:55:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3"
}

2021-02-23 21:55:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:55:53 | [Mutex] waiting for: [received:nodes:e381b27f-a4d9-4fe5-ae7f-21414c706d85:localhost]

2021-02-23 21:55:53 | [Mutex] received everything.

2021-02-23 21:55:53 | [Mutex] isItemNotified: received:node:e381b27f-a4d9-4fe5-ae7f-21414c706d85:localhost:node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3:Node 2e9833c2-c504-415a-8d74-e6d02ea4e9e3 :: false

deleteSubnodes 1.026s
2021-02-23 21:55:51 |

2021-02-23 21:55:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:51 | ------------------------------------

2021-02-23 21:55:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f"
}

2021-02-23 21:55:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:55:52 | [Mutex] waiting for: [received:nodes:e21af980-c8a9-40a0-85d6-76a327250e6c:localhost]

2021-02-23 21:55:52 | [Mutex] received everything.

2021-02-23 21:55:52 | [Mutex] isItemNotified: received:node:e21af980-c8a9-40a0-85d6-76a327250e6c:localhost:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f :: false

2021-02-23 21:55:52 | [Mutex] waiting for: [received:nodes:cffedf25-3e9e-4dba-a657-8ee2b4383cac:localhost]

2021-02-23 21:55:52 | [Mutex] received everything.

2021-02-23 21:55:52 | [Mutex] isItemNotified: received:node:cffedf25-3e9e-4dba-a657-8ee2b4383cac:localhost:node-7967cd23-fe7d-4a97-ad94-c925e8a2285f:Node 7967cd23-fe7d-4a97-ad94-c925e8a2285f :: false

publishItemsToNodes 0.046s
2021-02-23 21:55:49 |

2021-02-23 21:55:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:49 | ------------------------------------

2021-02-23 21:55:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "entry": "<test>item-64146307-cbe0-42ef-8a70-7e9b433df763</test>",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763"
}

2021-02-23 21:55:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763"
}

2021-02-23 21:55:50 | [Mutex] waiting for: [published:item:notifieditem-64146307-cbe0-42ef-8a70-7e9b433df763:admin@test-domain.com]

2021-02-23 21:55:50 | [Mutex] received everything.

2021-02-23 21:55:50 | [Mutex] isItemNotified: published:item:notifieditem-64146307-cbe0-42ef-8a70-7e9b433df763:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2021-02-23 21:55:50 |

2021-02-23 21:55:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:50 | ------------------------------------

2021-02-23 21:55:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763"
}

2021-02-23 21:55:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763"
}

2021-02-23 21:55:50 | [Mutex] waiting for: [retracted:item:notifieditem-64146307-cbe0-42ef-8a70-7e9b433df763:admin@test-domain.com]

2021-02-23 21:55:50 | [Mutex] received everything.

2021-02-23 21:55:50 | [Mutex] isItemNotified: retracted:item:notifieditem-64146307-cbe0-42ef-8a70-7e9b433df763:admin@test-domain.com :: true

retrieveItemsFromNodes 0.156s
2021-02-23 21:55:50 |

2021-02-23 21:55:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:50 | ------------------------------------

2021-02-23 21:55:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763"
}

2021-02-23 21:55:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "item-id": "item-64146307-cbe0-42ef-8a70-7e9b433df763",
    "item": [
        "<item id=\"item-64146307-cbe0-42ef-8a70-7e9b433df763\"><test>item-64146307-cbe0-42ef-8a70-7e9b433df763</test></item>"
    ]
}

2021-02-23 21:55:50 | [Mutex] notify: [retrieved:item:item-64146307-cbe0-42ef-8a70-7e9b433df763:payload-matches:true:localhost]

2021-02-23 21:55:50 | [Mutex] received everything.

2021-02-23 21:55:50 | [Mutex] isItemNotified: retrieved:item:item-64146307-cbe0-42ef-8a70-7e9b433df763:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-02-23 21:55:50 |

2021-02-23 21:55:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:50 | ------------------------------------

2021-02-23 21:55:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-23 21:55:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
        "test",
        "node-2e9833c2-c504-415a-8d74-e6d02ea4e9e3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-23 21:55:50 |

2021-02-23 21:55:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:50 | ------------------------------------

2021-02-23 21:55:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7967cd23-fe7d-4a97-ad94-c925e8a2285f)"
}

2021-02-23 21:55:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-02-23 21:55:48 |

2021-02-23 21:55:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:48 | ------------------------------------

2021-02-23 21:55:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:55:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2021-02-23 21:55:50 |

2021-02-23 21:55:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:55:50 | ------------------------------------

2021-02-23 21:55:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7967cd23-fe7d-4a97-ad94-c925e8a2285f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:55:50 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}