Generated by TestNG with ReportNG at 22:34 PDT on Thursday 29 April 2021
root@b2c2a8eba6e6 / 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.156s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.125s
2021-04-29 22:50:06 |

2021-04-29 22:50:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:06 | ------------------------------------

2021-04-29 22:50:06 | [Mutex] waiting for: [configured:node:node-a682b688-2536-4226-bf00-69e56901c3b8:node-0536c27e-ce0d-490f-ac3d-ca8e88766caa]

2021-04-29 22:50:06 | [Mutex] received everything.

2021-04-29 22:50:06 | [Mutex] isItemNotified: configured:node:node-a682b688-2536-4226-bf00-69e56901c3b8:node-0536c27e-ce0d-490f-ac3d-ca8e88766caa :: true

2021-04-29 22:50:07 | [Mutex] waiting for: [received:nodes:f858d70c-9035-4bee-a4db-2dd583b538b7:localhost]

2021-04-29 22:50:07 | [Mutex] received everything.

2021-04-29 22:50:07 | [Mutex] isItemNotified: received:node:f858d70c-9035-4bee-a4db-2dd583b538b7:localhost:node-a682b688-2536-4226-bf00-69e56901c3b8:Node a682b688-2536-4226-bf00-69e56901c3b8 :: true

2021-04-29 22:50:07 | [Mutex] waiting for: [received:nodes:77775b4e-3db4-4cd2-a3bb-3bc139b3305f:localhost]

2021-04-29 22:50:07 | [Mutex] received everything.

2021-04-29 22:50:07 | [Mutex] isItemNotified: received:node:77775b4e-3db4-4cd2-a3bb-3bc139b3305f:localhost:node-a682b688-2536-4226-bf00-69e56901c3b8:Node a682b688-2536-4226-bf00-69e56901c3b8 :: false

createNodes 1.767s
2021-04-29 22:50:03 |

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

2021-04-29 22:50:03 | ------------------------------------

2021-04-29 22:50:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "pubsub#title": "Node a682b688-2536-4226-bf00-69e56901c3b8"
}

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

2021-04-29 22:50:05 | [Mutex] waiting for: [received:nodes:728bbc63-786c-47c9-936e-43ad1bdf6095:localhost]

2021-04-29 22:50:05 | [Mutex] received everything.

2021-04-29 22:50:05 | [Mutex] isItemNotified: received:node:728bbc63-786c-47c9-936e-43ad1bdf6095:localhost:node-a682b688-2536-4226-bf00-69e56901c3b8:Node a682b688-2536-4226-bf00-69e56901c3b8 :: true

createSubnodes 1.028s
2021-04-29 22:50:05 |

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

2021-04-29 22:50:05 | ------------------------------------

2021-04-29 22:50:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0536c27e-ce0d-490f-ac3d-ca8e88766caa",
    "pubsub#title": "Node 0536c27e-ce0d-490f-ac3d-ca8e88766caa"
}

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

2021-04-29 22:50:06 | [Mutex] waiting for: [received:nodes:3dc7eea9-d669-4e75-a4b6-68dbb7595efe:localhost]

2021-04-29 22:50:06 | [Mutex] received everything.

2021-04-29 22:50:06 | [Mutex] isItemNotified: received:node:3dc7eea9-d669-4e75-a4b6-68dbb7595efe:localhost:node-0536c27e-ce0d-490f-ac3d-ca8e88766caa:Node 0536c27e-ce0d-490f-ac3d-ca8e88766caa :: true

deleteNodes 1.025s
2021-04-29 22:50:10 |

2021-04-29 22:50:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:10 | ------------------------------------

2021-04-29 22:50:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0536c27e-ce0d-490f-ac3d-ca8e88766caa"
}

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

2021-04-29 22:50:11 | [Mutex] waiting for: [received:nodes:14b36fae-5593-49f1-af19-9a832c333e63:localhost]

2021-04-29 22:50:11 | [Mutex] received everything.

2021-04-29 22:50:11 | [Mutex] isItemNotified: received:node:14b36fae-5593-49f1-af19-9a832c333e63:localhost:node-0536c27e-ce0d-490f-ac3d-ca8e88766caa:Node 0536c27e-ce0d-490f-ac3d-ca8e88766caa :: false

deleteSubnodes 1.033s
2021-04-29 22:50:09 |

2021-04-29 22:50:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:09 | ------------------------------------

2021-04-29 22:50:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8"
}

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

2021-04-29 22:50:10 | [Mutex] waiting for: [received:nodes:482e366f-c35f-44ac-94a3-28e706893445:localhost]

2021-04-29 22:50:10 | [Mutex] received everything.

2021-04-29 22:50:10 | [Mutex] isItemNotified: received:node:482e366f-c35f-44ac-94a3-28e706893445:localhost:node-a682b688-2536-4226-bf00-69e56901c3b8:Node a682b688-2536-4226-bf00-69e56901c3b8 :: false

2021-04-29 22:50:10 | [Mutex] waiting for: [received:nodes:c4e9fef0-67c7-4a11-876f-726e92210bdc:localhost]

2021-04-29 22:50:10 | [Mutex] received everything.

2021-04-29 22:50:10 | [Mutex] isItemNotified: received:node:c4e9fef0-67c7-4a11-876f-726e92210bdc:localhost:node-a682b688-2536-4226-bf00-69e56901c3b8:Node a682b688-2536-4226-bf00-69e56901c3b8 :: false

publishItemsToNodes 0.042s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

2021-04-29 22:50:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "entry": "<test>item-39d76cb7-725c-42c7-8fae-151270cb6979</test>",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979"
}

2021-04-29 22:50:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979"
}

2021-04-29 22:50:08 | [Mutex] waiting for: [published:item:notifieditem-39d76cb7-725c-42c7-8fae-151270cb6979:admin@test-domain.com]

2021-04-29 22:50:08 | [Mutex] received everything.

2021-04-29 22:50:08 | [Mutex] isItemNotified: published:item:notifieditem-39d76cb7-725c-42c7-8fae-151270cb6979:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

2021-04-29 22:50:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979"
}

2021-04-29 22:50:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979"
}

2021-04-29 22:50:08 | [Mutex] received everything.

2021-04-29 22:50:08 | [Mutex] isItemNotified: retracted:item:notifieditem-39d76cb7-725c-42c7-8fae-151270cb6979:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

2021-04-29 22:50:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979"
}

2021-04-29 22:50:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "item-id": "item-39d76cb7-725c-42c7-8fae-151270cb6979",
    "item": [
        "<item id=\"item-39d76cb7-725c-42c7-8fae-151270cb6979\"><test>item-39d76cb7-725c-42c7-8fae-151270cb6979</test></item>"
    ]
}

2021-04-29 22:50:08 | [Mutex] notify: [retrieved:item:item-39d76cb7-725c-42c7-8fae-151270cb6979:payload-matches:true:localhost]

2021-04-29 22:50:08 | [Mutex] received everything.

2021-04-29 22:50:08 | [Mutex] isItemNotified: retrieved:item:item-39d76cb7-725c-42c7-8fae-151270cb6979:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

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

2021-04-29 22:50:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0536c27e-ce0d-490f-ac3d-ca8e88766caa",
        "node-a682b688-2536-4226-bf00-69e56901c3b8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

2021-04-29 22:50:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a682b688-2536-4226-bf00-69e56901c3b8)"
}

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

subscribeNodes 1.015s
2021-04-29 22:50:07 |

2021-04-29 22:50:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:07 | ------------------------------------

2021-04-29 22:50:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2021-04-29 22:50:08 |

2021-04-29 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:50:08 | ------------------------------------

2021-04-29 22:50:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a682b688-2536-4226-bf00-69e56901c3b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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