Generated by TestNG with ReportNG at 21:14 PST on Monday 08 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.204s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-03-08 21:30:20 |

2021-03-08 21:30:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:30:20 | ------------------------------------

2021-03-08 21:30:20 | [Mutex] waiting for: [configured:node:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:node-f3910f7a-85ae-4f0a-a320-65182b27e6a4]

2021-03-08 21:30:20 | [Mutex] received everything.

2021-03-08 21:30:20 | [Mutex] isItemNotified: configured:node:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:node-f3910f7a-85ae-4f0a-a320-65182b27e6a4 :: true

2021-03-08 21:30:21 | [Mutex] waiting for: [received:nodes:cebcd810-0cf4-4c70-b004-08565500f804:localhost]

2021-03-08 21:30:21 | [Mutex] received everything.

2021-03-08 21:30:21 | [Mutex] isItemNotified: received:node:cebcd810-0cf4-4c70-b004-08565500f804:localhost:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52 :: true

2021-03-08 21:30:21 | [Mutex] waiting for: [received:nodes:fd6456bd-0b15-45e5-ba56-17734e31c07b:localhost]

2021-03-08 21:30:21 | [Mutex] received everything.

2021-03-08 21:30:21 | [Mutex] isItemNotified: received:node:fd6456bd-0b15-45e5-ba56-17734e31c07b:localhost:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52 :: false

createNodes 1.904s
2021-03-08 21:30:17 |

2021-03-08 21:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:30:17 | ------------------------------------

2021-03-08 21:30:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "pubsub#title": "Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52"
}

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

2021-03-08 21:30:19 | [Mutex] waiting for: [received:nodes:bcf1da78-24c9-422c-9329-7d495ac11e0c:localhost]

2021-03-08 21:30:19 | [Mutex] waiting for: [received:nodes:bcf1da78-24c9-422c-9329-7d495ac11e0c:localhost]

2021-03-08 21:30:19 | [Mutex] received everything.

2021-03-08 21:30:19 | [Mutex] isItemNotified: received:node:bcf1da78-24c9-422c-9329-7d495ac11e0c:localhost:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52 :: true

createSubnodes 1.035s
2021-03-08 21:30:19 |

2021-03-08 21:30:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:30:19 | ------------------------------------

2021-03-08 21:30:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f3910f7a-85ae-4f0a-a320-65182b27e6a4",
    "pubsub#title": "Node f3910f7a-85ae-4f0a-a320-65182b27e6a4"
}

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

2021-03-08 21:30:20 | [Mutex] waiting for: [received:nodes:abf8749a-598f-4571-952f-82a52a31743d:localhost]

2021-03-08 21:30:20 | [Mutex] received everything.

2021-03-08 21:30:20 | [Mutex] isItemNotified: received:node:abf8749a-598f-4571-952f-82a52a31743d:localhost:node-f3910f7a-85ae-4f0a-a320-65182b27e6a4:Node f3910f7a-85ae-4f0a-a320-65182b27e6a4 :: true

deleteNodes 1.021s
2021-03-08 21:30:25 |

2021-03-08 21:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:30:25 | ------------------------------------

2021-03-08 21:30:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f3910f7a-85ae-4f0a-a320-65182b27e6a4"
}

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

2021-03-08 21:30:26 | [Mutex] waiting for: [received:nodes:36c8e4c2-1af3-4d17-879d-a8953d10a351:localhost]

2021-03-08 21:30:26 | [Mutex] waiting for: [received:nodes:36c8e4c2-1af3-4d17-879d-a8953d10a351:localhost]

2021-03-08 21:30:26 | [Mutex] received everything.

2021-03-08 21:30:26 | [Mutex] isItemNotified: received:node:36c8e4c2-1af3-4d17-879d-a8953d10a351:localhost:node-f3910f7a-85ae-4f0a-a320-65182b27e6a4:Node f3910f7a-85ae-4f0a-a320-65182b27e6a4 :: false

deleteSubnodes 1.036s
2021-03-08 21:30:24 |

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

2021-03-08 21:30:24 | ------------------------------------

2021-03-08 21:30:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52"
}

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

2021-03-08 21:30:25 | [Mutex] waiting for: [received:nodes:761024c6-e1cf-4584-b042-8976a7783f75:localhost]

2021-03-08 21:30:25 | [Mutex] waiting for: [received:nodes:761024c6-e1cf-4584-b042-8976a7783f75:localhost]

2021-03-08 21:30:25 | [Mutex] received everything.

2021-03-08 21:30:25 | [Mutex] isItemNotified: received:node:761024c6-e1cf-4584-b042-8976a7783f75:localhost:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52 :: false

2021-03-08 21:30:25 | [Mutex] waiting for: [received:nodes:6b559ce4-e045-4b38-a729-b730d51d1a3f:localhost]

2021-03-08 21:30:25 | [Mutex] received everything.

2021-03-08 21:30:25 | [Mutex] isItemNotified: received:node:6b559ce4-e045-4b38-a729-b730d51d1a3f:localhost:node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52:Node 509ee3c1-6be0-4d17-b3fe-fa0dfc200f52 :: false

publishItemsToNodes 0.041s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

2021-03-08 21:30:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "entry": "<test>item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0</test>",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0"
}

2021-03-08 21:30:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0"
}

2021-03-08 21:30:22 | [Mutex] waiting for: [published:item:notifieditem-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0:admin@test-domain.com]

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

2021-03-08 21:30:22 | [Mutex] isItemNotified: published:item:notifieditem-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

2021-03-08 21:30:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0"
}

2021-03-08 21:30:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0"
}

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

2021-03-08 21:30:22 | [Mutex] isItemNotified: retracted:item:notifieditem-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

2021-03-08 21:30:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0"
}

2021-03-08 21:30:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "item-id": "item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0",
    "item": [
        "<item id=\"item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0\"><test>item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0</test></item>"
    ]
}

2021-03-08 21:30:22 | [Mutex] notify: [retrieved:item:item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0:payload-matches:true:localhost]

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

2021-03-08 21:30:22 | [Mutex] isItemNotified: retrieved:item:item-e1ec1b9e-6de6-470a-b6a2-cc5d33d9deb0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

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

2021-03-08 21:30:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f3910f7a-85ae-4f0a-a320-65182b27e6a4",
        "test",
        "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

2021-03-08 21:30:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52)"
}

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

subscribeNodes 1.019s
2021-03-08 21:30:21 |

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

2021-03-08 21:30:21 | ------------------------------------

2021-03-08 21:30:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.112s
2021-03-08 21:30:22 |

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

2021-03-08 21:30:22 | ------------------------------------

2021-03-08 21:30:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-509ee3c1-6be0-4d17-b3fe-fa0dfc200f52",
    "jids": [
        "admin@test-domain.com"
    ]
}

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