Generated by TestNG with ReportNG at 15:49 PST on Friday 24 February 2023
root@f9c07ffec79b / 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.619s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2023-02-24 16:03:55 |

2023-02-24 16:03:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:55 | ------------------------------------

2023-02-24 16:03:55 | [Mutex] waiting for: [configured:node:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:node-66aca738-825f-47ae-8550-261387891bde]

2023-02-24 16:03:55 | [Mutex] received everything.

2023-02-24 16:03:55 | [Mutex] isItemNotified: configured:node:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:node-66aca738-825f-47ae-8550-261387891bde :: true

2023-02-24 16:03:56 | [Mutex] waiting for: [received:nodes:f55d0a69-5bc0-418a-a339-1f7a2a40e45e:localhost]

2023-02-24 16:03:56 | [Mutex] received everything.

2023-02-24 16:03:56 | [Mutex] isItemNotified: received:node:f55d0a69-5bc0-418a-a339-1f7a2a40e45e:localhost:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:Node 33bc51d4-0c79-46b1-acf5-8723820de0fe :: true

2023-02-24 16:03:56 | [Mutex] waiting for: [received:nodes:c801b585-8916-4de7-b716-62db19b25260:localhost]

2023-02-24 16:03:56 | [Mutex] waiting for: [received:nodes:c801b585-8916-4de7-b716-62db19b25260:localhost]

2023-02-24 16:03:56 | [Mutex] waiting for: [received:nodes:c801b585-8916-4de7-b716-62db19b25260:localhost]

2023-02-24 16:03:56 | [Mutex] received everything.

2023-02-24 16:03:56 | [Mutex] isItemNotified: received:node:c801b585-8916-4de7-b716-62db19b25260:localhost:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:Node 33bc51d4-0c79-46b1-acf5-8723820de0fe :: false

createNodes 1.536s
2023-02-24 16:03:53 |

2023-02-24 16:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:53 | ------------------------------------

2023-02-24 16:03:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "pubsub#title": "Node 33bc51d4-0c79-46b1-acf5-8723820de0fe"
}

2023-02-24 16:03:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:03:54 | [Mutex] waiting for: [received:nodes:220e5a6f-a527-4e98-9a8f-d3644e8c38b9:localhost]

2023-02-24 16:03:54 | [Mutex] waiting for: [received:nodes:220e5a6f-a527-4e98-9a8f-d3644e8c38b9:localhost]

2023-02-24 16:03:54 | [Mutex] waiting for: [received:nodes:220e5a6f-a527-4e98-9a8f-d3644e8c38b9:localhost]

2023-02-24 16:03:54 | [Mutex] waiting for: [received:nodes:220e5a6f-a527-4e98-9a8f-d3644e8c38b9:localhost]

2023-02-24 16:03:54 | [Mutex] received everything.

2023-02-24 16:03:54 | [Mutex] isItemNotified: received:node:220e5a6f-a527-4e98-9a8f-d3644e8c38b9:localhost:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:Node 33bc51d4-0c79-46b1-acf5-8723820de0fe :: true

createSubnodes 1.026s
2023-02-24 16:03:54 |

2023-02-24 16:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:54 | ------------------------------------

2023-02-24 16:03:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-66aca738-825f-47ae-8550-261387891bde",
    "pubsub#title": "Node 66aca738-825f-47ae-8550-261387891bde"
}

2023-02-24 16:03:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:03:55 | [Mutex] waiting for: [received:nodes:90990717-5626-4961-9115-51a2ac0db519:localhost]

2023-02-24 16:03:55 | [Mutex] waiting for: [received:nodes:90990717-5626-4961-9115-51a2ac0db519:localhost]

2023-02-24 16:03:55 | [Mutex] waiting for: [received:nodes:90990717-5626-4961-9115-51a2ac0db519:localhost]

2023-02-24 16:03:55 | [Mutex] waiting for: [received:nodes:90990717-5626-4961-9115-51a2ac0db519:localhost]

2023-02-24 16:03:55 | [Mutex] waiting for: [received:nodes:90990717-5626-4961-9115-51a2ac0db519:localhost]

2023-02-24 16:03:55 | [Mutex] received everything.

2023-02-24 16:03:55 | [Mutex] isItemNotified: received:node:90990717-5626-4961-9115-51a2ac0db519:localhost:node-66aca738-825f-47ae-8550-261387891bde:Node 66aca738-825f-47ae-8550-261387891bde :: true

deleteNodes 1.024s
2023-02-24 16:04:00 |

2023-02-24 16:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:04:00 | ------------------------------------

2023-02-24 16:04:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-66aca738-825f-47ae-8550-261387891bde"
}

2023-02-24 16:04:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:04:01 | [Mutex] waiting for: [received:nodes:f84307df-b170-4f24-8a00-3961c5921908:localhost]

2023-02-24 16:04:01 | [Mutex] waiting for: [received:nodes:f84307df-b170-4f24-8a00-3961c5921908:localhost]

2023-02-24 16:04:01 | [Mutex] received everything.

2023-02-24 16:04:01 | [Mutex] isItemNotified: received:node:f84307df-b170-4f24-8a00-3961c5921908:localhost:node-66aca738-825f-47ae-8550-261387891bde:Node 66aca738-825f-47ae-8550-261387891bde :: false

deleteSubnodes 1.026s
2023-02-24 16:03:59 |

2023-02-24 16:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:59 | ------------------------------------

2023-02-24 16:03:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe"
}

2023-02-24 16:03:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:04:00 | [Mutex] waiting for: [received:nodes:c3bea52b-5779-4298-9a14-765b1dfc41f6:localhost]

2023-02-24 16:04:00 | [Mutex] waiting for: [received:nodes:c3bea52b-5779-4298-9a14-765b1dfc41f6:localhost]

2023-02-24 16:04:00 | [Mutex] waiting for: [received:nodes:c3bea52b-5779-4298-9a14-765b1dfc41f6:localhost]

2023-02-24 16:04:00 | [Mutex] received everything.

2023-02-24 16:04:00 | [Mutex] isItemNotified: received:node:c3bea52b-5779-4298-9a14-765b1dfc41f6:localhost:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:Node 33bc51d4-0c79-46b1-acf5-8723820de0fe :: false

2023-02-24 16:04:00 | [Mutex] waiting for: [received:nodes:6491ac83-5392-4202-b2ad-c35ef70a822b:localhost]

2023-02-24 16:04:00 | [Mutex] received everything.

2023-02-24 16:04:00 | [Mutex] isItemNotified: received:node:6491ac83-5392-4202-b2ad-c35ef70a822b:localhost:node-33bc51d4-0c79-46b1-acf5-8723820de0fe:Node 33bc51d4-0c79-46b1-acf5-8723820de0fe :: false

publishItemsToNodes 0.076s
2023-02-24 16:03:57 |

2023-02-24 16:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:57 | ------------------------------------

2023-02-24 16:03:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "entry": "<test>item-a700e185-18ce-4bb1-80b2-153e2ef0baf3</test>",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3"
}

2023-02-24 16:03:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3"
}

2023-02-24 16:03:58 | [Mutex] waiting for: [published:item:notifieditem-a700e185-18ce-4bb1-80b2-153e2ef0baf3:admin@test-domain.com]

2023-02-24 16:03:58 | [Mutex] received everything.

2023-02-24 16:03:58 | [Mutex] isItemNotified: published:item:notifieditem-a700e185-18ce-4bb1-80b2-153e2ef0baf3:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-24 16:03:58 |

2023-02-24 16:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:58 | ------------------------------------

2023-02-24 16:03:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3"
}

2023-02-24 16:03:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3"
}

2023-02-24 16:03:58 | [Mutex] received everything.

2023-02-24 16:03:58 | [Mutex] isItemNotified: retracted:item:notifieditem-a700e185-18ce-4bb1-80b2-153e2ef0baf3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2023-02-24 16:03:58 |

2023-02-24 16:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:58 | ------------------------------------

2023-02-24 16:03:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3"
}

2023-02-24 16:03:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "item-id": "item-a700e185-18ce-4bb1-80b2-153e2ef0baf3",
    "item": [
        "<item id=\"item-a700e185-18ce-4bb1-80b2-153e2ef0baf3\"><test>item-a700e185-18ce-4bb1-80b2-153e2ef0baf3</test></item>"
    ]
}

2023-02-24 16:03:58 | [Mutex] notify: [retrieved:item:item-a700e185-18ce-4bb1-80b2-153e2ef0baf3:payload-matches:true:localhost]

2023-02-24 16:03:58 | [Mutex] received everything.

2023-02-24 16:03:58 | [Mutex] isItemNotified: retrieved:item:item-a700e185-18ce-4bb1-80b2-153e2ef0baf3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-02-24 16:03:58 |

2023-02-24 16:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:58 | ------------------------------------

2023-02-24 16:03:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-24 16:03:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
        "node-66aca738-825f-47ae-8550-261387891bde"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-24 16:03:58 |

2023-02-24 16:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:58 | ------------------------------------

2023-02-24 16:03:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-33bc51d4-0c79-46b1-acf5-8723820de0fe)"
}

2023-02-24 16:03:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-02-24 16:03:56 |

2023-02-24 16:03:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:56 | ------------------------------------

2023-02-24 16:03:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 16:03:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2023-02-24 16:03:58 |

2023-02-24 16:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:03:58 | ------------------------------------

2023-02-24 16:03:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-33bc51d4-0c79-46b1-acf5-8723820de0fe",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 16:03:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}