Generated by TestNG with ReportNG at 22:26 PDT on Monday 05 April 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 : 8.898s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-04-05 22:40:54 |

2021-04-05 22:40:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:54 | ------------------------------------

2021-04-05 22:40:54 | [Mutex] waiting for: [configured:node:node-758d7ad5-e008-4e92-b226-6360045b6e53:node-715f9d91-08a5-421d-ab85-806ec1f13244]

2021-04-05 22:40:54 | [Mutex] received everything.

2021-04-05 22:40:54 | [Mutex] isItemNotified: configured:node:node-758d7ad5-e008-4e92-b226-6360045b6e53:node-715f9d91-08a5-421d-ab85-806ec1f13244 :: true

2021-04-05 22:40:56 | [Mutex] waiting for: [received:nodes:9b4f96b2-874c-459b-a61d-8e67bc3769f0:localhost]

2021-04-05 22:40:56 | [Mutex] received everything.

2021-04-05 22:40:56 | [Mutex] isItemNotified: received:node:9b4f96b2-874c-459b-a61d-8e67bc3769f0:localhost:node-758d7ad5-e008-4e92-b226-6360045b6e53:Node 758d7ad5-e008-4e92-b226-6360045b6e53 :: true

2021-04-05 22:40:56 | [Mutex] waiting for: [received:nodes:966a72ef-6812-48ab-ba53-405001fb7245:localhost]

2021-04-05 22:40:56 | [Mutex] received everything.

2021-04-05 22:40:56 | [Mutex] isItemNotified: received:node:966a72ef-6812-48ab-ba53-405001fb7245:localhost:node-758d7ad5-e008-4e92-b226-6360045b6e53:Node 758d7ad5-e008-4e92-b226-6360045b6e53 :: false

createNodes 1.601s
2021-04-05 22:40:52 |

2021-04-05 22:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:52 | ------------------------------------

2021-04-05 22:40:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "pubsub#title": "Node 758d7ad5-e008-4e92-b226-6360045b6e53"
}

2021-04-05 22:40:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-05 22:40:53 | [Mutex] waiting for: [received:nodes:7b392b1f-4e65-447b-b8c1-17a9ef7d79aa:localhost]

2021-04-05 22:40:53 | [Mutex] waiting for: [received:nodes:7b392b1f-4e65-447b-b8c1-17a9ef7d79aa:localhost]

2021-04-05 22:40:53 | [Mutex] received everything.

2021-04-05 22:40:53 | [Mutex] isItemNotified: received:node:7b392b1f-4e65-447b-b8c1-17a9ef7d79aa:localhost:node-758d7ad5-e008-4e92-b226-6360045b6e53:Node 758d7ad5-e008-4e92-b226-6360045b6e53 :: true

createSubnodes 1.028s
2021-04-05 22:40:53 |

2021-04-05 22:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:53 | ------------------------------------

2021-04-05 22:40:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-715f9d91-08a5-421d-ab85-806ec1f13244",
    "pubsub#title": "Node 715f9d91-08a5-421d-ab85-806ec1f13244"
}

2021-04-05 22:40:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-05 22:40:54 | [Mutex] waiting for: [received:nodes:66e5eddb-07d8-43ae-a736-28782befd4a9:localhost]

2021-04-05 22:40:54 | [Mutex] received everything.

2021-04-05 22:40:54 | [Mutex] isItemNotified: received:node:66e5eddb-07d8-43ae-a736-28782befd4a9:localhost:node-715f9d91-08a5-421d-ab85-806ec1f13244:Node 715f9d91-08a5-421d-ab85-806ec1f13244 :: true

deleteNodes 1.019s
2021-04-05 22:40:59 |

2021-04-05 22:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:59 | ------------------------------------

2021-04-05 22:40:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-715f9d91-08a5-421d-ab85-806ec1f13244"
}

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

2021-04-05 22:41:00 | [Mutex] waiting for: [received:nodes:ae603807-ac2d-48d8-ab06-5ed61cbaf4f0:localhost]

2021-04-05 22:41:00 | [Mutex] received everything.

2021-04-05 22:41:00 | [Mutex] isItemNotified: received:node:ae603807-ac2d-48d8-ab06-5ed61cbaf4f0:localhost:node-715f9d91-08a5-421d-ab85-806ec1f13244:Node 715f9d91-08a5-421d-ab85-806ec1f13244 :: false

deleteSubnodes 1.030s
2021-04-05 22:40:58 |

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

2021-04-05 22:40:58 | ------------------------------------

2021-04-05 22:40:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53"
}

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

2021-04-05 22:40:59 | [Mutex] waiting for: [received:nodes:4394e9c5-0431-4426-b06d-9a1b68f3f192:localhost]

2021-04-05 22:40:59 | [Mutex] received everything.

2021-04-05 22:40:59 | [Mutex] isItemNotified: received:node:4394e9c5-0431-4426-b06d-9a1b68f3f192:localhost:node-758d7ad5-e008-4e92-b226-6360045b6e53:Node 758d7ad5-e008-4e92-b226-6360045b6e53 :: false

2021-04-05 22:40:59 | [Mutex] waiting for: [received:nodes:d8d921cb-05b5-432d-9731-c3bd2ec71d4d:localhost]

2021-04-05 22:40:59 | [Mutex] received everything.

2021-04-05 22:40:59 | [Mutex] isItemNotified: received:node:d8d921cb-05b5-432d-9731-c3bd2ec71d4d:localhost:node-758d7ad5-e008-4e92-b226-6360045b6e53:Node 758d7ad5-e008-4e92-b226-6360045b6e53 :: false

publishItemsToNodes 0.043s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

2021-04-05 22:40:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "entry": "<test>item-e2d67253-df9b-40e7-8754-160090ea6b7f</test>",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f"
}

2021-04-05 22:40:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f"
}

2021-04-05 22:40:57 | [Mutex] waiting for: [published:item:notifieditem-e2d67253-df9b-40e7-8754-160090ea6b7f:admin@test-domain.com]

2021-04-05 22:40:57 | [Mutex] received everything.

2021-04-05 22:40:57 | [Mutex] isItemNotified: published:item:notifieditem-e2d67253-df9b-40e7-8754-160090ea6b7f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

2021-04-05 22:40:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f"
}

2021-04-05 22:40:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f"
}

2021-04-05 22:40:57 | [Mutex] received everything.

2021-04-05 22:40:57 | [Mutex] isItemNotified: retracted:item:notifieditem-e2d67253-df9b-40e7-8754-160090ea6b7f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.053s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

2021-04-05 22:40:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f"
}

2021-04-05 22:40:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "item-id": "item-e2d67253-df9b-40e7-8754-160090ea6b7f",
    "item": [
        "<item id=\"item-e2d67253-df9b-40e7-8754-160090ea6b7f\"><test>item-e2d67253-df9b-40e7-8754-160090ea6b7f</test></item>"
    ]
}

2021-04-05 22:40:57 | [Mutex] notify: [retrieved:item:item-e2d67253-df9b-40e7-8754-160090ea6b7f:payload-matches:true:localhost]

2021-04-05 22:40:57 | [Mutex] received everything.

2021-04-05 22:40:57 | [Mutex] isItemNotified: retrieved:item:item-e2d67253-df9b-40e7-8754-160090ea6b7f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

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

2021-04-05 22:40:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-758d7ad5-e008-4e92-b226-6360045b6e53",
        "test",
        "node-715f9d91-08a5-421d-ab85-806ec1f13244"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

2021-04-05 22:40:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-758d7ad5-e008-4e92-b226-6360045b6e53)"
}

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

subscribeNodes 1.014s
2021-04-05 22:40:56 |

2021-04-05 22:40:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:56 | ------------------------------------

2021-04-05 22:40:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-05 22:40:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-04-05 22:40:57 |

2021-04-05 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-05 22:40:57 | ------------------------------------

2021-04-05 22:40:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-758d7ad5-e008-4e92-b226-6360045b6e53",
    "jids": [
        "admin@test-domain.com"
    ]
}

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