Generated by TestNG with ReportNG at 22:32 PDT on Monday 14 September 2020
root@01e855a2b68d / 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.978s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2020-09-14 22:57:13 |

2020-09-14 22:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:13 | ------------------------------------

2020-09-14 22:57:13 | [Mutex] waiting for: [configured:node:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:node-7d4654e0-a4e4-4090-918b-7ca134f2f216]

2020-09-14 22:57:13 | [Mutex] received everything.

2020-09-14 22:57:13 | [Mutex] isItemNotified: configured:node:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:node-7d4654e0-a4e4-4090-918b-7ca134f2f216 :: true

2020-09-14 22:57:14 | [Mutex] waiting for: [received:nodes:29c1d8a8-99d6-4854-9303-3c2abe634c91:localhost]

2020-09-14 22:57:14 | [Mutex] waiting for: [received:nodes:29c1d8a8-99d6-4854-9303-3c2abe634c91:localhost]

2020-09-14 22:57:14 | [Mutex] received everything.

2020-09-14 22:57:14 | [Mutex] isItemNotified: received:node:29c1d8a8-99d6-4854-9303-3c2abe634c91:localhost:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:Node 17bd2053-df73-427e-afb0-08b24c1ac3b3 :: true

2020-09-14 22:57:14 | [Mutex] waiting for: [received:nodes:86e0840e-a982-4056-be13-dbd0cb1743b2:localhost]

2020-09-14 22:57:14 | [Mutex] waiting for: [received:nodes:86e0840e-a982-4056-be13-dbd0cb1743b2:localhost]

2020-09-14 22:57:14 | [Mutex] received everything.

2020-09-14 22:57:14 | [Mutex] isItemNotified: received:node:86e0840e-a982-4056-be13-dbd0cb1743b2:localhost:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:Node 17bd2053-df73-427e-afb0-08b24c1ac3b3 :: false

createNodes 1.605s
2020-09-14 22:57:11 |

2020-09-14 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:11 | ------------------------------------

2020-09-14 22:57:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "pubsub#title": "Node 17bd2053-df73-427e-afb0-08b24c1ac3b3"
}

2020-09-14 22:57:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-14 22:57:12 | [Mutex] waiting for: [received:nodes:9917e7dd-5305-4c8d-bf35-763ef1844294:localhost]

2020-09-14 22:57:12 | [Mutex] received everything.

2020-09-14 22:57:12 | [Mutex] isItemNotified: received:node:9917e7dd-5305-4c8d-bf35-763ef1844294:localhost:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:Node 17bd2053-df73-427e-afb0-08b24c1ac3b3 :: true

createSubnodes 1.026s
2020-09-14 22:57:12 |

2020-09-14 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:12 | ------------------------------------

2020-09-14 22:57:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7d4654e0-a4e4-4090-918b-7ca134f2f216",
    "pubsub#title": "Node 7d4654e0-a4e4-4090-918b-7ca134f2f216"
}

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

2020-09-14 22:57:13 | [Mutex] waiting for: [received:nodes:e4e143bb-671b-41f6-a5c5-80c7bf76dce3:localhost]

2020-09-14 22:57:13 | [Mutex] received everything.

2020-09-14 22:57:13 | [Mutex] isItemNotified: received:node:e4e143bb-671b-41f6-a5c5-80c7bf76dce3:localhost:node-7d4654e0-a4e4-4090-918b-7ca134f2f216:Node 7d4654e0-a4e4-4090-918b-7ca134f2f216 :: true

deleteNodes 1.017s
2020-09-14 22:57:18 |

2020-09-14 22:57:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:18 | ------------------------------------

2020-09-14 22:57:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7d4654e0-a4e4-4090-918b-7ca134f2f216"
}

2020-09-14 22:57:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-14 22:57:19 | [Mutex] waiting for: [received:nodes:4394ccaf-d7ea-4eb8-b6cc-64d24bb8ef99:localhost]

2020-09-14 22:57:19 | [Mutex] received everything.

2020-09-14 22:57:19 | [Mutex] isItemNotified: received:node:4394ccaf-d7ea-4eb8-b6cc-64d24bb8ef99:localhost:node-7d4654e0-a4e4-4090-918b-7ca134f2f216:Node 7d4654e0-a4e4-4090-918b-7ca134f2f216 :: false

deleteSubnodes 1.054s
2020-09-14 22:57:17 |

2020-09-14 22:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:17 | ------------------------------------

2020-09-14 22:57:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3"
}

2020-09-14 22:57:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-14 22:57:18 | [Mutex] waiting for: [received:nodes:f355a3f2-fd38-448c-8f7b-69acdf05ce63:localhost]

2020-09-14 22:57:18 | [Mutex] waiting for: [received:nodes:f355a3f2-fd38-448c-8f7b-69acdf05ce63:localhost]

2020-09-14 22:57:18 | [Mutex] received everything.

2020-09-14 22:57:18 | [Mutex] isItemNotified: received:node:f355a3f2-fd38-448c-8f7b-69acdf05ce63:localhost:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:Node 17bd2053-df73-427e-afb0-08b24c1ac3b3 :: false

2020-09-14 22:57:18 | [Mutex] waiting for: [received:nodes:07dcc0c5-499e-4850-b02e-987ac6c666da:localhost]

2020-09-14 22:57:18 | [Mutex] received everything.

2020-09-14 22:57:18 | [Mutex] isItemNotified: received:node:07dcc0c5-499e-4850-b02e-987ac6c666da:localhost:node-17bd2053-df73-427e-afb0-08b24c1ac3b3:Node 17bd2053-df73-427e-afb0-08b24c1ac3b3 :: false

publishItemsToNodes 0.041s
2020-09-14 22:57:15 |

2020-09-14 22:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:15 | ------------------------------------

2020-09-14 22:57:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "entry": "<test>item-998b5554-da42-4587-833f-f32002a820b8</test>",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8"
}

2020-09-14 22:57:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8"
}

2020-09-14 22:57:15 | [Mutex] waiting for: [published:item:notifieditem-998b5554-da42-4587-833f-f32002a820b8:admin@test-domain.com]

2020-09-14 22:57:15 | [Mutex] received everything.

2020-09-14 22:57:15 | [Mutex] isItemNotified: published:item:notifieditem-998b5554-da42-4587-833f-f32002a820b8:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2020-09-14 22:57:16 |

2020-09-14 22:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:16 | ------------------------------------

2020-09-14 22:57:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8"
}

2020-09-14 22:57:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8"
}

2020-09-14 22:57:16 | [Mutex] received everything.

2020-09-14 22:57:16 | [Mutex] isItemNotified: retracted:item:notifieditem-998b5554-da42-4587-833f-f32002a820b8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2020-09-14 22:57:15 |

2020-09-14 22:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:15 | ------------------------------------

2020-09-14 22:57:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8"
}

2020-09-14 22:57:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "item-id": "item-998b5554-da42-4587-833f-f32002a820b8",
    "item": [
        "<item id=\"item-998b5554-da42-4587-833f-f32002a820b8\"><test>item-998b5554-da42-4587-833f-f32002a820b8</test></item>"
    ]
}

2020-09-14 22:57:16 | [Mutex] notify: [retrieved:item:item-998b5554-da42-4587-833f-f32002a820b8:payload-matches:true:localhost]

2020-09-14 22:57:16 | [Mutex] received everything.

2020-09-14 22:57:16 | [Mutex] isItemNotified: retrieved:item:item-998b5554-da42-4587-833f-f32002a820b8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-14 22:57:16 |

2020-09-14 22:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:16 | ------------------------------------

2020-09-14 22:57:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-14 22:57:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
        "test",
        "node-7d4654e0-a4e4-4090-918b-7ca134f2f216"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-14 22:57:16 |

2020-09-14 22:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:16 | ------------------------------------

2020-09-14 22:57:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-17bd2053-df73-427e-afb0-08b24c1ac3b3)"
}

2020-09-14 22:57:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-09-14 22:57:14 |

2020-09-14 22:57:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:14 | ------------------------------------

2020-09-14 22:57:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-14 22:57:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-14 22:57:16 |

2020-09-14 22:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:57:16 | ------------------------------------

2020-09-14 22:57:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-17bd2053-df73-427e-afb0-08b24c1ac3b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-14 22:57:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}