Generated by TestNG with ReportNG at 21:13 PST on Sunday 14 February 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.095s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2021-02-14 21:29:42 |

2021-02-14 21:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:42 | ------------------------------------

2021-02-14 21:29:42 | [Mutex] waiting for: [configured:node:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:node-e1b49845-b61c-4021-a622-937d2477e775]

2021-02-14 21:29:42 | [Mutex] received everything.

2021-02-14 21:29:42 | [Mutex] isItemNotified: configured:node:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:node-e1b49845-b61c-4021-a622-937d2477e775 :: true

2021-02-14 21:29:43 | [Mutex] waiting for: [received:nodes:595a8ee9-d6fa-4c49-918a-3f716cd32760:localhost]

2021-02-14 21:29:43 | [Mutex] received everything.

2021-02-14 21:29:43 | [Mutex] isItemNotified: received:node:595a8ee9-d6fa-4c49-918a-3f716cd32760:localhost:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:Node a4a627fe-a462-466a-87c0-2b4f43187d2d :: true

2021-02-14 21:29:43 | [Mutex] waiting for: [received:nodes:f04d044d-80a3-47f3-83cb-96022ed2bc54:localhost]

2021-02-14 21:29:43 | [Mutex] waiting for: [received:nodes:f04d044d-80a3-47f3-83cb-96022ed2bc54:localhost]

2021-02-14 21:29:43 | [Mutex] received everything.

2021-02-14 21:29:43 | [Mutex] isItemNotified: received:node:f04d044d-80a3-47f3-83cb-96022ed2bc54:localhost:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:Node a4a627fe-a462-466a-87c0-2b4f43187d2d :: false

createNodes 1.684s
2021-02-14 21:29:39 |

2021-02-14 21:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:39 | ------------------------------------

2021-02-14 21:29:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "pubsub#title": "Node a4a627fe-a462-466a-87c0-2b4f43187d2d"
}

2021-02-14 21:29:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:29:41 | [Mutex] waiting for: [received:nodes:3ba79c34-8f16-4c9a-9445-2004771c924c:localhost]

2021-02-14 21:29:41 | [Mutex] received everything.

2021-02-14 21:29:41 | [Mutex] isItemNotified: received:node:3ba79c34-8f16-4c9a-9445-2004771c924c:localhost:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:Node a4a627fe-a462-466a-87c0-2b4f43187d2d :: true

createSubnodes 1.037s
2021-02-14 21:29:41 |

2021-02-14 21:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:41 | ------------------------------------

2021-02-14 21:29:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e1b49845-b61c-4021-a622-937d2477e775",
    "pubsub#title": "Node e1b49845-b61c-4021-a622-937d2477e775"
}

2021-02-14 21:29:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:29:42 | [Mutex] waiting for: [received:nodes:5c3d4994-caa7-40bb-b96c-e6cff1c61c08:localhost]

2021-02-14 21:29:42 | [Mutex] waiting for: [received:nodes:5c3d4994-caa7-40bb-b96c-e6cff1c61c08:localhost]

2021-02-14 21:29:42 | [Mutex] waiting for: [received:nodes:5c3d4994-caa7-40bb-b96c-e6cff1c61c08:localhost]

2021-02-14 21:29:42 | [Mutex] received everything.

2021-02-14 21:29:42 | [Mutex] isItemNotified: received:node:5c3d4994-caa7-40bb-b96c-e6cff1c61c08:localhost:node-e1b49845-b61c-4021-a622-937d2477e775:Node e1b49845-b61c-4021-a622-937d2477e775 :: true

deleteNodes 1.029s
2021-02-14 21:29:46 |

2021-02-14 21:29:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:46 | ------------------------------------

2021-02-14 21:29:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1b49845-b61c-4021-a622-937d2477e775"
}

2021-02-14 21:29:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:29:47 | [Mutex] waiting for: [received:nodes:9625ff9d-08a6-4e6c-a185-99555ba0ec37:localhost]

2021-02-14 21:29:47 | [Mutex] received everything.

2021-02-14 21:29:47 | [Mutex] isItemNotified: received:node:9625ff9d-08a6-4e6c-a185-99555ba0ec37:localhost:node-e1b49845-b61c-4021-a622-937d2477e775:Node e1b49845-b61c-4021-a622-937d2477e775 :: false

deleteSubnodes 1.027s
2021-02-14 21:29:45 |

2021-02-14 21:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:45 | ------------------------------------

2021-02-14 21:29:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d"
}

2021-02-14 21:29:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:29:46 | [Mutex] waiting for: [received:nodes:c4d2e630-519e-4e5b-bb86-28ab2986b34c:localhost]

2021-02-14 21:29:46 | [Mutex] received everything.

2021-02-14 21:29:46 | [Mutex] isItemNotified: received:node:c4d2e630-519e-4e5b-bb86-28ab2986b34c:localhost:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:Node a4a627fe-a462-466a-87c0-2b4f43187d2d :: false

2021-02-14 21:29:46 | [Mutex] waiting for: [received:nodes:841f0d3f-8759-49b1-b97f-d4bc42b7f5d8:localhost]

2021-02-14 21:29:46 | [Mutex] received everything.

2021-02-14 21:29:46 | [Mutex] isItemNotified: received:node:841f0d3f-8759-49b1-b97f-d4bc42b7f5d8:localhost:node-a4a627fe-a462-466a-87c0-2b4f43187d2d:Node a4a627fe-a462-466a-87c0-2b4f43187d2d :: false

publishItemsToNodes 0.037s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "entry": "<test>item-aef79478-110a-49fe-8ff9-6bf04052679e</test>",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e"
}

2021-02-14 21:29:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e"
}

2021-02-14 21:29:44 | [Mutex] received everything.

2021-02-14 21:29:44 | [Mutex] isItemNotified: published:item:notifieditem-aef79478-110a-49fe-8ff9-6bf04052679e:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e"
}

2021-02-14 21:29:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e"
}

2021-02-14 21:29:44 | [Mutex] received everything.

2021-02-14 21:29:44 | [Mutex] isItemNotified: retracted:item:notifieditem-aef79478-110a-49fe-8ff9-6bf04052679e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e"
}

2021-02-14 21:29:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "item-id": "item-aef79478-110a-49fe-8ff9-6bf04052679e",
    "item": [
        "<item id=\"item-aef79478-110a-49fe-8ff9-6bf04052679e\"><test>item-aef79478-110a-49fe-8ff9-6bf04052679e</test></item>"
    ]
}

2021-02-14 21:29:44 | [Mutex] notify: [retrieved:item:item-aef79478-110a-49fe-8ff9-6bf04052679e:payload-matches:true:localhost]

2021-02-14 21:29:44 | [Mutex] received everything.

2021-02-14 21:29:44 | [Mutex] isItemNotified: retrieved:item:item-aef79478-110a-49fe-8ff9-6bf04052679e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-14 21:29:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
        "node-e1b49845-b61c-4021-a622-937d2477e775",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a4a627fe-a462-466a-87c0-2b4f43187d2d)"
}

2021-02-14 21:29:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-02-14 21:29:43 |

2021-02-14 21:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:43 | ------------------------------------

2021-02-14 21:29:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:29:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a4a627fe-a462-466a-87c0-2b4f43187d2d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:29:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}