Generated by TestNG with ReportNG at 22:23 PDT on Friday 10 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.655s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-06-10 22:38:56 |

2022-06-10 22:38:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:56 | ------------------------------------

2022-06-10 22:38:56 | [Mutex] waiting for: [configured:node:node-17804ffe-8aca-45a8-973b-055b0700d13e:node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd]

2022-06-10 22:38:56 | [Mutex] received everything.

2022-06-10 22:38:56 | [Mutex] isItemNotified: configured:node:node-17804ffe-8aca-45a8-973b-055b0700d13e:node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd :: true

2022-06-10 22:38:57 | [Mutex] waiting for: [received:nodes:d961a5b8-ed6a-4f2c-9746-654a81bbd8b6:localhost]

2022-06-10 22:38:57 | [Mutex] received everything.

2022-06-10 22:38:57 | [Mutex] isItemNotified: received:node:d961a5b8-ed6a-4f2c-9746-654a81bbd8b6:localhost:node-17804ffe-8aca-45a8-973b-055b0700d13e:Node 17804ffe-8aca-45a8-973b-055b0700d13e :: true

2022-06-10 22:38:57 | [Mutex] waiting for: [received:nodes:3c5461e1-7a6b-434b-b4a7-1307d573f708:localhost]

2022-06-10 22:38:57 | [Mutex] received everything.

2022-06-10 22:38:57 | [Mutex] isItemNotified: received:node:3c5461e1-7a6b-434b-b4a7-1307d573f708:localhost:node-17804ffe-8aca-45a8-973b-055b0700d13e:Node 17804ffe-8aca-45a8-973b-055b0700d13e :: false

createNodes 1.598s
2022-06-10 22:38:53 |

2022-06-10 22:38:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:53 | ------------------------------------

2022-06-10 22:38:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "pubsub#title": "Node 17804ffe-8aca-45a8-973b-055b0700d13e"
}

2022-06-10 22:38:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 22:38:55 | [Mutex] waiting for: [received:nodes:4ea743e5-b3c9-497a-9ddf-4ed3faf9e055:localhost]

2022-06-10 22:38:55 | [Mutex] received everything.

2022-06-10 22:38:55 | [Mutex] isItemNotified: received:node:4ea743e5-b3c9-497a-9ddf-4ed3faf9e055:localhost:node-17804ffe-8aca-45a8-973b-055b0700d13e:Node 17804ffe-8aca-45a8-973b-055b0700d13e :: true

createSubnodes 1.026s
2022-06-10 22:38:55 |

2022-06-10 22:38:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:55 | ------------------------------------

2022-06-10 22:38:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd",
    "pubsub#title": "Node 03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd"
}

2022-06-10 22:38:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 22:38:56 | [Mutex] waiting for: [received:nodes:7e071554-2f3b-425e-8343-424076fb14b2:localhost]

2022-06-10 22:38:56 | [Mutex] received everything.

2022-06-10 22:38:56 | [Mutex] isItemNotified: received:node:7e071554-2f3b-425e-8343-424076fb14b2:localhost:node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd:Node 03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd :: true

deleteNodes 1.017s
2022-06-10 22:39:00 |

2022-06-10 22:39:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:39:00 | ------------------------------------

2022-06-10 22:39:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd"
}

2022-06-10 22:39:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 22:39:01 | [Mutex] waiting for: [received:nodes:de1d9ee9-976f-40b8-ba9d-3aa34f3e4712:localhost]

2022-06-10 22:39:01 | [Mutex] waiting for: [received:nodes:de1d9ee9-976f-40b8-ba9d-3aa34f3e4712:localhost]

2022-06-10 22:39:01 | [Mutex] received everything.

2022-06-10 22:39:01 | [Mutex] isItemNotified: received:node:de1d9ee9-976f-40b8-ba9d-3aa34f3e4712:localhost:node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd:Node 03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd :: false

deleteSubnodes 1.026s
2022-06-10 22:38:59 |

2022-06-10 22:38:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:59 | ------------------------------------

2022-06-10 22:38:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e"
}

2022-06-10 22:38:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 22:39:00 | [Mutex] waiting for: [received:nodes:eae0b9a9-df70-4012-90f0-41fa9af063a6:localhost]

2022-06-10 22:39:00 | [Mutex] received everything.

2022-06-10 22:39:00 | [Mutex] isItemNotified: received:node:eae0b9a9-df70-4012-90f0-41fa9af063a6:localhost:node-17804ffe-8aca-45a8-973b-055b0700d13e:Node 17804ffe-8aca-45a8-973b-055b0700d13e :: false

2022-06-10 22:39:00 | [Mutex] waiting for: [received:nodes:b9bbd469-f08b-4ac2-85d9-47dba78bb05f:localhost]

2022-06-10 22:39:00 | [Mutex] received everything.

2022-06-10 22:39:00 | [Mutex] isItemNotified: received:node:b9bbd469-f08b-4ac2-85d9-47dba78bb05f:localhost:node-17804ffe-8aca-45a8-973b-055b0700d13e:Node 17804ffe-8aca-45a8-973b-055b0700d13e :: false

publishItemsToNodes 0.060s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "entry": "<test>item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae</test>",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae"
}

2022-06-10 22:38:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae"
}

2022-06-10 22:38:58 | [Mutex] waiting for: [published:item:notifieditem-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae:admin@test-domain.com]

2022-06-10 22:38:58 | [Mutex] received everything.

2022-06-10 22:38:58 | [Mutex] isItemNotified: published:item:notifieditem-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae"
}

2022-06-10 22:38:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae"
}

2022-06-10 22:38:58 | [Mutex] received everything.

2022-06-10 22:38:58 | [Mutex] isItemNotified: retracted:item:notifieditem-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.109s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae"
}

2022-06-10 22:38:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "item-id": "item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae",
    "item": [
        "<item id=\"item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae\"><test>item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae</test></item>"
    ]
}

2022-06-10 22:38:58 | [Mutex] notify: [retrieved:item:item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae:payload-matches:true:localhost]

2022-06-10 22:38:58 | [Mutex] received everything.

2022-06-10 22:38:58 | [Mutex] isItemNotified: retrieved:item:item-e95b8a16-f54e-4cb6-9381-83b4ea94e7ae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-10 22:38:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-17804ffe-8aca-45a8-973b-055b0700d13e",
        "node-03ac27e8-1c88-4de7-9b5b-9e7a2a9a94cd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-17804ffe-8aca-45a8-973b-055b0700d13e)"
}

2022-06-10 22:38:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-06-10 22:38:57 |

2022-06-10 22:38:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:57 | ------------------------------------

2022-06-10 22:38:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-10 22:38:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-06-10 22:38:58 |

2022-06-10 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 22:38:58 | ------------------------------------

2022-06-10 22:38:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-17804ffe-8aca-45a8-973b-055b0700d13e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-10 22:38:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}