Generated by TestNG with ReportNG at 22:41 PDT on Friday 04 September 2020
root@55161683a995 / 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.988s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2020-09-04 22:58:35 |

2020-09-04 22:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:35 | ------------------------------------

2020-09-04 22:58:35 | [Mutex] waiting for: [configured:node:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:node-10c5acd1-af59-4216-b6fb-a086ded66246]

2020-09-04 22:58:35 | [Mutex] received everything.

2020-09-04 22:58:35 | [Mutex] isItemNotified: configured:node:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:node-10c5acd1-af59-4216-b6fb-a086ded66246 :: true

2020-09-04 22:58:36 | [Mutex] waiting for: [received:nodes:57b0f9ae-cec7-4e6a-9cfa-02e22bf49e48:localhost]

2020-09-04 22:58:36 | [Mutex] received everything.

2020-09-04 22:58:36 | [Mutex] isItemNotified: received:node:57b0f9ae-cec7-4e6a-9cfa-02e22bf49e48:localhost:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:Node b4153e87-516a-4fc2-93f1-96e0138bffb2 :: true

2020-09-04 22:58:36 | [Mutex] waiting for: [received:nodes:46be46f4-072c-4339-b41d-055834a1b08f:localhost]

2020-09-04 22:58:36 | [Mutex] received everything.

2020-09-04 22:58:36 | [Mutex] isItemNotified: received:node:46be46f4-072c-4339-b41d-055834a1b08f:localhost:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:Node b4153e87-516a-4fc2-93f1-96e0138bffb2 :: false

createNodes 1.666s
2020-09-04 22:58:32 |

2020-09-04 22:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:32 | ------------------------------------

2020-09-04 22:58:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "pubsub#title": "Node b4153e87-516a-4fc2-93f1-96e0138bffb2"
}

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

2020-09-04 22:58:34 | [Mutex] waiting for: [received:nodes:86ce24dc-da44-439e-82b2-3ed79d502a1a:localhost]

2020-09-04 22:58:34 | [Mutex] waiting for: [received:nodes:86ce24dc-da44-439e-82b2-3ed79d502a1a:localhost]

2020-09-04 22:58:34 | [Mutex] received everything.

2020-09-04 22:58:34 | [Mutex] isItemNotified: received:node:86ce24dc-da44-439e-82b2-3ed79d502a1a:localhost:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:Node b4153e87-516a-4fc2-93f1-96e0138bffb2 :: true

createSubnodes 1.030s
2020-09-04 22:58:34 |

2020-09-04 22:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:34 | ------------------------------------

2020-09-04 22:58:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-10c5acd1-af59-4216-b6fb-a086ded66246",
    "pubsub#title": "Node 10c5acd1-af59-4216-b6fb-a086ded66246"
}

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

2020-09-04 22:58:35 | [Mutex] waiting for: [received:nodes:747208b0-5947-459e-b795-b5d158074099:localhost]

2020-09-04 22:58:35 | [Mutex] received everything.

2020-09-04 22:58:35 | [Mutex] isItemNotified: received:node:747208b0-5947-459e-b795-b5d158074099:localhost:node-10c5acd1-af59-4216-b6fb-a086ded66246:Node 10c5acd1-af59-4216-b6fb-a086ded66246 :: true

deleteNodes 1.029s
2020-09-04 22:58:40 |

2020-09-04 22:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:40 | ------------------------------------

2020-09-04 22:58:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-10c5acd1-af59-4216-b6fb-a086ded66246"
}

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

2020-09-04 22:58:41 | [Mutex] waiting for: [received:nodes:6562b63d-8ee5-4b2f-84a6-20fad40f62e1:localhost]

2020-09-04 22:58:41 | [Mutex] waiting for: [received:nodes:6562b63d-8ee5-4b2f-84a6-20fad40f62e1:localhost]

2020-09-04 22:58:41 | [Mutex] received everything.

2020-09-04 22:58:41 | [Mutex] isItemNotified: received:node:6562b63d-8ee5-4b2f-84a6-20fad40f62e1:localhost:node-10c5acd1-af59-4216-b6fb-a086ded66246:Node 10c5acd1-af59-4216-b6fb-a086ded66246 :: false

deleteSubnodes 1.024s
2020-09-04 22:58:39 |

2020-09-04 22:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:39 | ------------------------------------

2020-09-04 22:58:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2"
}

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

2020-09-04 22:58:40 | [Mutex] waiting for: [received:nodes:c652be14-c4f1-4511-97d3-e9f14132d78f:localhost]

2020-09-04 22:58:40 | [Mutex] received everything.

2020-09-04 22:58:40 | [Mutex] isItemNotified: received:node:c652be14-c4f1-4511-97d3-e9f14132d78f:localhost:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:Node b4153e87-516a-4fc2-93f1-96e0138bffb2 :: false

2020-09-04 22:58:40 | [Mutex] waiting for: [received:nodes:4808ea6f-2b38-4d8f-b9f2-0b92f7dfd41b:localhost]

2020-09-04 22:58:40 | [Mutex] received everything.

2020-09-04 22:58:40 | [Mutex] isItemNotified: received:node:4808ea6f-2b38-4d8f-b9f2-0b92f7dfd41b:localhost:node-b4153e87-516a-4fc2-93f1-96e0138bffb2:Node b4153e87-516a-4fc2-93f1-96e0138bffb2 :: false

publishItemsToNodes 0.056s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

2020-09-04 22:58:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "entry": "<test>item-d8a87b2d-6629-4e02-83fa-db95245f9cba</test>",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba"
}

2020-09-04 22:58:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba"
}

2020-09-04 22:58:37 | [Mutex] waiting for: [published:item:notifieditem-d8a87b2d-6629-4e02-83fa-db95245f9cba:admin@test-domain.com]

2020-09-04 22:58:37 | [Mutex] received everything.

2020-09-04 22:58:37 | [Mutex] isItemNotified: published:item:notifieditem-d8a87b2d-6629-4e02-83fa-db95245f9cba:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

2020-09-04 22:58:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba"
}

2020-09-04 22:58:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba"
}

2020-09-04 22:58:37 | [Mutex] received everything.

2020-09-04 22:58:37 | [Mutex] isItemNotified: retracted:item:notifieditem-d8a87b2d-6629-4e02-83fa-db95245f9cba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

2020-09-04 22:58:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba"
}

2020-09-04 22:58:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "item-id": "item-d8a87b2d-6629-4e02-83fa-db95245f9cba",
    "item": [
        "<item id=\"item-d8a87b2d-6629-4e02-83fa-db95245f9cba\"><test>item-d8a87b2d-6629-4e02-83fa-db95245f9cba</test></item>"
    ]
}

2020-09-04 22:58:37 | [Mutex] notify: [retrieved:item:item-d8a87b2d-6629-4e02-83fa-db95245f9cba:payload-matches:true:localhost]

2020-09-04 22:58:37 | [Mutex] received everything.

2020-09-04 22:58:37 | [Mutex] isItemNotified: retrieved:item:item-d8a87b2d-6629-4e02-83fa-db95245f9cba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

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

2020-09-04 22:58:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-10c5acd1-af59-4216-b6fb-a086ded66246",
        "test",
        "node-b4153e87-516a-4fc2-93f1-96e0138bffb2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

2020-09-04 22:58:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b4153e87-516a-4fc2-93f1-96e0138bffb2)"
}

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

subscribeNodes 1.013s
2020-09-04 22:58:36 |

2020-09-04 22:58:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:36 | ------------------------------------

2020-09-04 22:58:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2020-09-04 22:58:37 |

2020-09-04 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:58:37 | ------------------------------------

2020-09-04 22:58:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b4153e87-516a-4fc2-93f1-96e0138bffb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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