Generated by TestNG with ReportNG at 22:13 PDT on Wednesday 24 March 2021
root@43fec6d4badf / 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.058s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.174s
2021-03-24 22:30:29 |

2021-03-24 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:29 | ------------------------------------

2021-03-24 22:30:29 | [Mutex] waiting for: [configured:node:node-f214a908-382a-4c9b-b1bd-0069ba310154:node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f]

2021-03-24 22:30:29 | [Mutex] received everything.

2021-03-24 22:30:29 | [Mutex] isItemNotified: configured:node:node-f214a908-382a-4c9b-b1bd-0069ba310154:node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f :: true

2021-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:19104d5d-e925-46fb-a8d0-2c1c7eb7d304:localhost]

2021-03-24 22:30:30 | [Mutex] received everything.

2021-03-24 22:30:30 | [Mutex] isItemNotified: received:node:19104d5d-e925-46fb-a8d0-2c1c7eb7d304:localhost:node-f214a908-382a-4c9b-b1bd-0069ba310154:Node f214a908-382a-4c9b-b1bd-0069ba310154 :: true

2021-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:87832bdd-22b5-42b6-88ae-b83274b906f5:localhost]

2021-03-24 22:30:30 | [Mutex] received everything.

2021-03-24 22:30:30 | [Mutex] isItemNotified: received:node:87832bdd-22b5-42b6-88ae-b83274b906f5:localhost:node-f214a908-382a-4c9b-b1bd-0069ba310154:Node f214a908-382a-4c9b-b1bd-0069ba310154 :: false

createNodes 1.699s
2021-03-24 22:30:26 |

2021-03-24 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:26 | ------------------------------------

2021-03-24 22:30:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "pubsub#title": "Node f214a908-382a-4c9b-b1bd-0069ba310154"
}

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

2021-03-24 22:30:28 | [Mutex] waiting for: [received:nodes:7e17c73c-5bee-452d-a03e-fa33198043d8:localhost]

2021-03-24 22:30:28 | [Mutex] received everything.

2021-03-24 22:30:28 | [Mutex] isItemNotified: received:node:7e17c73c-5bee-452d-a03e-fa33198043d8:localhost:node-f214a908-382a-4c9b-b1bd-0069ba310154:Node f214a908-382a-4c9b-b1bd-0069ba310154 :: true

createSubnodes 1.027s
2021-03-24 22:30:28 |

2021-03-24 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:28 | ------------------------------------

2021-03-24 22:30:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f",
    "pubsub#title": "Node 11e1de9e-08d0-4c71-89e6-3607a4e9c96f"
}

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

2021-03-24 22:30:29 | [Mutex] waiting for: [received:nodes:8bd7ecee-79a9-40de-89a5-2fd0608e8d44:localhost]

2021-03-24 22:30:29 | [Mutex] received everything.

2021-03-24 22:30:29 | [Mutex] isItemNotified: received:node:8bd7ecee-79a9-40de-89a5-2fd0608e8d44:localhost:node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f:Node 11e1de9e-08d0-4c71-89e6-3607a4e9c96f :: true

deleteNodes 1.026s
2021-03-24 22:30:34 |

2021-03-24 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:34 | ------------------------------------

2021-03-24 22:30:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f"
}

2021-03-24 22:30:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:30:35 | [Mutex] waiting for: [received:nodes:77af91a3-b34d-4b15-a246-95b4b67d78f9:localhost]

2021-03-24 22:30:35 | [Mutex] received everything.

2021-03-24 22:30:35 | [Mutex] isItemNotified: received:node:77af91a3-b34d-4b15-a246-95b4b67d78f9:localhost:node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f:Node 11e1de9e-08d0-4c71-89e6-3607a4e9c96f :: false

deleteSubnodes 1.029s
2021-03-24 22:30:33 |

2021-03-24 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:33 | ------------------------------------

2021-03-24 22:30:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154"
}

2021-03-24 22:30:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:30:34 | [Mutex] waiting for: [received:nodes:de481f82-c5ee-4ca7-afc6-765388208d51:localhost]

2021-03-24 22:30:34 | [Mutex] waiting for: [received:nodes:de481f82-c5ee-4ca7-afc6-765388208d51:localhost]

2021-03-24 22:30:34 | [Mutex] received everything.

2021-03-24 22:30:34 | [Mutex] isItemNotified: received:node:de481f82-c5ee-4ca7-afc6-765388208d51:localhost:node-f214a908-382a-4c9b-b1bd-0069ba310154:Node f214a908-382a-4c9b-b1bd-0069ba310154 :: false

2021-03-24 22:30:34 | [Mutex] waiting for: [received:nodes:e90156e5-f773-4a85-b0fa-25afc23c73a0:localhost]

2021-03-24 22:30:34 | [Mutex] received everything.

2021-03-24 22:30:34 | [Mutex] isItemNotified: received:node:e90156e5-f773-4a85-b0fa-25afc23c73a0:localhost:node-f214a908-382a-4c9b-b1bd-0069ba310154:Node f214a908-382a-4c9b-b1bd-0069ba310154 :: false

publishItemsToNodes 0.065s
2021-03-24 22:30:31 |

2021-03-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:31 | ------------------------------------

2021-03-24 22:30:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "entry": "<test>item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a</test>",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a"
}

2021-03-24 22:30:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a"
}

2021-03-24 22:30:31 | [Mutex] waiting for: [published:item:notifieditem-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a:admin@test-domain.com]

2021-03-24 22:30:31 | [Mutex] received everything.

2021-03-24 22:30:31 | [Mutex] isItemNotified: published:item:notifieditem-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-03-24 22:30:31 |

2021-03-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:31 | ------------------------------------

2021-03-24 22:30:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a"
}

2021-03-24 22:30:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a"
}

2021-03-24 22:30:32 | [Mutex] received everything.

2021-03-24 22:30:32 | [Mutex] isItemNotified: retracted:item:notifieditem-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.030s
2021-03-24 22:30:31 |

2021-03-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:31 | ------------------------------------

2021-03-24 22:30:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a"
}

2021-03-24 22:30:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "item-id": "item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a",
    "item": [
        "<item id=\"item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a\"><test>item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a</test></item>"
    ]
}

2021-03-24 22:30:31 | [Mutex] notify: [retrieved:item:item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a:payload-matches:true:localhost]

2021-03-24 22:30:31 | [Mutex] received everything.

2021-03-24 22:30:31 | [Mutex] isItemNotified: retrieved:item:item-a850e66a-2b3f-4bce-a7e8-2ef67ad09a6a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-03-24 22:30:31 |

2021-03-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:31 | ------------------------------------

2021-03-24 22:30:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-24 22:30:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-11e1de9e-08d0-4c71-89e6-3607a4e9c96f",
        "node-f214a908-382a-4c9b-b1bd-0069ba310154"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-03-24 22:30:31 |

2021-03-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:31 | ------------------------------------

2021-03-24 22:30:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f214a908-382a-4c9b-b1bd-0069ba310154)"
}

2021-03-24 22:30:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-03-24 22:30:30 |

2021-03-24 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:30 | ------------------------------------

2021-03-24 22:30:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-24 22:30:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.084s
2021-03-24 22:30:32 |

2021-03-24 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:32 | ------------------------------------

2021-03-24 22:30:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f214a908-382a-4c9b-b1bd-0069ba310154",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-24 22:30:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}