Generated by TestNG with ReportNG at 22:52 PDT on Monday 26 September 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.848s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2022-09-26 23:06:37 |

2022-09-26 23:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:37 | ------------------------------------

2022-09-26 23:06:37 | [Mutex] waiting for: [configured:node:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:node-7696a797-8eb4-4f56-9f3c-9eba57a170b2]

2022-09-26 23:06:37 | [Mutex] received everything.

2022-09-26 23:06:37 | [Mutex] isItemNotified: configured:node:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:node-7696a797-8eb4-4f56-9f3c-9eba57a170b2 :: true

2022-09-26 23:06:38 | [Mutex] waiting for: [received:nodes:6d54c68d-bd8c-4abf-85bd-657ab34d0bf4:localhost]

2022-09-26 23:06:38 | [Mutex] received everything.

2022-09-26 23:06:38 | [Mutex] isItemNotified: received:node:6d54c68d-bd8c-4abf-85bd-657ab34d0bf4:localhost:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe :: true

2022-09-26 23:06:38 | [Mutex] waiting for: [received:nodes:8eab1ec5-f79e-49fe-ad7c-59a674c607be:localhost]

2022-09-26 23:06:38 | [Mutex] received everything.

2022-09-26 23:06:38 | [Mutex] isItemNotified: received:node:8eab1ec5-f79e-49fe-ad7c-59a674c607be:localhost:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe :: false

createNodes 1.671s
2022-09-26 23:06:34 |

2022-09-26 23:06:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:34 | ------------------------------------

2022-09-26 23:06:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "pubsub#title": "Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe"
}

2022-09-26 23:06:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:06:36 | [Mutex] waiting for: [received:nodes:c02864f0-f88c-426a-bd3e-3e7a8644d40c:localhost]

2022-09-26 23:06:36 | [Mutex] received everything.

2022-09-26 23:06:36 | [Mutex] isItemNotified: received:node:c02864f0-f88c-426a-bd3e-3e7a8644d40c:localhost:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe :: true

createSubnodes 1.021s
2022-09-26 23:06:36 |

2022-09-26 23:06:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:36 | ------------------------------------

2022-09-26 23:06:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7696a797-8eb4-4f56-9f3c-9eba57a170b2",
    "pubsub#title": "Node 7696a797-8eb4-4f56-9f3c-9eba57a170b2"
}

2022-09-26 23:06:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:06:37 | [Mutex] waiting for: [received:nodes:ddad66d1-e2ac-4506-b3c9-c6763d25023e:localhost]

2022-09-26 23:06:37 | [Mutex] received everything.

2022-09-26 23:06:37 | [Mutex] isItemNotified: received:node:ddad66d1-e2ac-4506-b3c9-c6763d25023e:localhost:node-7696a797-8eb4-4f56-9f3c-9eba57a170b2:Node 7696a797-8eb4-4f56-9f3c-9eba57a170b2 :: true

deleteNodes 1.025s
2022-09-26 23:06:41 |

2022-09-26 23:06:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:41 | ------------------------------------

2022-09-26 23:06:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7696a797-8eb4-4f56-9f3c-9eba57a170b2"
}

2022-09-26 23:06:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:06:42 | [Mutex] waiting for: [received:nodes:3a0bec12-6cf5-4a72-8290-945533973228:localhost]

2022-09-26 23:06:42 | [Mutex] received everything.

2022-09-26 23:06:42 | [Mutex] isItemNotified: received:node:3a0bec12-6cf5-4a72-8290-945533973228:localhost:node-7696a797-8eb4-4f56-9f3c-9eba57a170b2:Node 7696a797-8eb4-4f56-9f3c-9eba57a170b2 :: false

deleteSubnodes 1.078s
2022-09-26 23:06:40 |

2022-09-26 23:06:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:40 | ------------------------------------

2022-09-26 23:06:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe"
}

2022-09-26 23:06:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:06:41 | [Mutex] waiting for: [received:nodes:fcc45d79-eb0c-4424-b396-2a1379e1ac84:localhost]

2022-09-26 23:06:41 | [Mutex] waiting for: [received:nodes:fcc45d79-eb0c-4424-b396-2a1379e1ac84:localhost]

2022-09-26 23:06:41 | [Mutex] received everything.

2022-09-26 23:06:41 | [Mutex] isItemNotified: received:node:fcc45d79-eb0c-4424-b396-2a1379e1ac84:localhost:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe :: false

2022-09-26 23:06:41 | [Mutex] waiting for: [received:nodes:5d820eb7-9116-47fb-ab85-9c8a03ab2a0c:localhost]

2022-09-26 23:06:41 | [Mutex] received everything.

2022-09-26 23:06:41 | [Mutex] isItemNotified: received:node:5d820eb7-9116-47fb-ab85-9c8a03ab2a0c:localhost:node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe:Node 626f262c-e0ac-4981-9ffd-d99bc45a9bfe :: false

publishItemsToNodes 0.041s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "entry": "<test>item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66</test>",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66"
}

2022-09-26 23:06:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66"
}

2022-09-26 23:06:39 | [Mutex] waiting for: [published:item:notifieditem-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:admin@test-domain.com]

2022-09-26 23:06:39 | [Mutex] received everything.

2022-09-26 23:06:39 | [Mutex] isItemNotified: published:item:notifieditem-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66"
}

2022-09-26 23:06:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66"
}

2022-09-26 23:06:39 | [Mutex] waiting for: [retracted:item:notifieditem-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:admin@test-domain.com]

2022-09-26 23:06:39 | [Mutex] received everything.

2022-09-26 23:06:39 | [Mutex] isItemNotified: retracted:item:notifieditem-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66"
}

2022-09-26 23:06:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "item-id": "item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66",
    "item": [
        "<item id=\"item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66\"><test>item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66</test></item>"
    ]
}

2022-09-26 23:06:39 | [Mutex] notify: [retrieved:item:item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:payload-matches:true:localhost]

2022-09-26 23:06:39 | [Mutex] received everything.

2022-09-26 23:06:39 | [Mutex] isItemNotified: retrieved:item:item-5f740b8c-b74d-4f44-ba2c-2b1a6a25cf66:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-26 23:06:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7696a797-8eb4-4f56-9f3c-9eba57a170b2",
        "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe)"
}

2022-09-26 23:06:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-26 23:06:38 |

2022-09-26 23:06:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:38 | ------------------------------------

2022-09-26 23:06:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.054s
2022-09-26 23:06:39 |

2022-09-26 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:06:39 | ------------------------------------

2022-09-26 23:06:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-626f262c-e0ac-4981-9ffd-d99bc45a9bfe",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-26 23:06:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}