Generated by TestNG with ReportNG at 22:36 PDT on Friday 10 June 2022
root@1bc69cf4cb94 / 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.885s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-06-10 22:50:49 |

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

2022-06-10 22:50:49 | ------------------------------------

2022-06-10 22:50:49 | [Mutex] waiting for: [configured:node:node-a398f4e5-a161-4704-98b1-8a87d99fa812:node-d2909d70-dfc5-46e9-8137-73de69fb997a]

2022-06-10 22:50:49 | [Mutex] received everything.

2022-06-10 22:50:49 | [Mutex] isItemNotified: configured:node:node-a398f4e5-a161-4704-98b1-8a87d99fa812:node-d2909d70-dfc5-46e9-8137-73de69fb997a :: true

2022-06-10 22:50:50 | [Mutex] waiting for: [received:nodes:0047c0e1-b8bf-4062-983a-caf9c7bc936d:localhost]

2022-06-10 22:50:51 | [Mutex] received everything.

2022-06-10 22:50:51 | [Mutex] isItemNotified: received:node:0047c0e1-b8bf-4062-983a-caf9c7bc936d:localhost:node-a398f4e5-a161-4704-98b1-8a87d99fa812:Node a398f4e5-a161-4704-98b1-8a87d99fa812 :: true

2022-06-10 22:50:51 | [Mutex] waiting for: [received:nodes:b9fe9184-f110-4194-98dc-b0389e14e9f4:localhost]

2022-06-10 22:50:51 | [Mutex] received everything.

2022-06-10 22:50:51 | [Mutex] isItemNotified: received:node:b9fe9184-f110-4194-98dc-b0389e14e9f4:localhost:node-a398f4e5-a161-4704-98b1-8a87d99fa812:Node a398f4e5-a161-4704-98b1-8a87d99fa812 :: false

createNodes 1.836s
2022-06-10 22:50:47 |

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

2022-06-10 22:50:47 | ------------------------------------

2022-06-10 22:50:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "pubsub#title": "Node a398f4e5-a161-4704-98b1-8a87d99fa812"
}

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

2022-06-10 22:50:48 | [Mutex] waiting for: [received:nodes:e97c2efd-1ef3-451f-8c35-4d3f1d8f5c79:localhost]

2022-06-10 22:50:48 | [Mutex] received everything.

2022-06-10 22:50:48 | [Mutex] isItemNotified: received:node:e97c2efd-1ef3-451f-8c35-4d3f1d8f5c79:localhost:node-a398f4e5-a161-4704-98b1-8a87d99fa812:Node a398f4e5-a161-4704-98b1-8a87d99fa812 :: true

createSubnodes 1.028s
2022-06-10 22:50:48 |

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

2022-06-10 22:50:48 | ------------------------------------

2022-06-10 22:50:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d2909d70-dfc5-46e9-8137-73de69fb997a",
    "pubsub#title": "Node d2909d70-dfc5-46e9-8137-73de69fb997a"
}

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

2022-06-10 22:50:49 | [Mutex] waiting for: [received:nodes:16700d91-d5c9-44c6-9706-68dd35cafefd:localhost]

2022-06-10 22:50:49 | [Mutex] waiting for: [received:nodes:16700d91-d5c9-44c6-9706-68dd35cafefd:localhost]

2022-06-10 22:50:49 | [Mutex] waiting for: [received:nodes:16700d91-d5c9-44c6-9706-68dd35cafefd:localhost]

2022-06-10 22:50:49 | [Mutex] waiting for: [received:nodes:16700d91-d5c9-44c6-9706-68dd35cafefd:localhost]

2022-06-10 22:50:49 | [Mutex] received everything.

2022-06-10 22:50:49 | [Mutex] isItemNotified: received:node:16700d91-d5c9-44c6-9706-68dd35cafefd:localhost:node-d2909d70-dfc5-46e9-8137-73de69fb997a:Node d2909d70-dfc5-46e9-8137-73de69fb997a :: true

deleteNodes 1.022s
2022-06-10 22:50:54 |

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

2022-06-10 22:50:54 | ------------------------------------

2022-06-10 22:50:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d2909d70-dfc5-46e9-8137-73de69fb997a"
}

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

2022-06-10 22:50:55 | [Mutex] waiting for: [received:nodes:aecb3d68-ebcc-497f-ae79-250aba503d85:localhost]

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

2022-06-10 22:50:55 | [Mutex] isItemNotified: received:node:aecb3d68-ebcc-497f-ae79-250aba503d85:localhost:node-d2909d70-dfc5-46e9-8137-73de69fb997a:Node d2909d70-dfc5-46e9-8137-73de69fb997a :: false

deleteSubnodes 1.034s
2022-06-10 22:50:53 |

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

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

2022-06-10 22:50:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812"
}

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

2022-06-10 22:50:54 | [Mutex] waiting for: [received:nodes:2ec53031-37e5-409d-9125-fe7887157ec5:localhost]

2022-06-10 22:50:54 | [Mutex] waiting for: [received:nodes:2ec53031-37e5-409d-9125-fe7887157ec5:localhost]

2022-06-10 22:50:54 | [Mutex] received everything.

2022-06-10 22:50:54 | [Mutex] isItemNotified: received:node:2ec53031-37e5-409d-9125-fe7887157ec5:localhost:node-a398f4e5-a161-4704-98b1-8a87d99fa812:Node a398f4e5-a161-4704-98b1-8a87d99fa812 :: false

2022-06-10 22:50:54 | [Mutex] waiting for: [received:nodes:4c02713f-1c01-4073-850e-7e8e81787f34:localhost]

2022-06-10 22:50:54 | [Mutex] received everything.

2022-06-10 22:50:54 | [Mutex] isItemNotified: received:node:4c02713f-1c01-4073-850e-7e8e81787f34:localhost:node-a398f4e5-a161-4704-98b1-8a87d99fa812:Node a398f4e5-a161-4704-98b1-8a87d99fa812 :: false

publishItemsToNodes 0.051s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

2022-06-10 22:50:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "entry": "<test>item-cdf8adbb-7e4f-429f-86ce-41beb3231d59</test>",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59"
}

2022-06-10 22:50:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59"
}

2022-06-10 22:50:52 | [Mutex] waiting for: [published:item:notifieditem-cdf8adbb-7e4f-429f-86ce-41beb3231d59:admin@test-domain.com]

2022-06-10 22:50:52 | [Mutex] received everything.

2022-06-10 22:50:52 | [Mutex] isItemNotified: published:item:notifieditem-cdf8adbb-7e4f-429f-86ce-41beb3231d59:admin@test-domain.com :: true

retractItemsFromNodes 0.113s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

2022-06-10 22:50:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59"
}

2022-06-10 22:50:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59"
}

2022-06-10 22:50:52 | [Mutex] waiting for: [retracted:item:notifieditem-cdf8adbb-7e4f-429f-86ce-41beb3231d59:admin@test-domain.com]

2022-06-10 22:50:52 | [Mutex] received everything.

2022-06-10 22:50:52 | [Mutex] isItemNotified: retracted:item:notifieditem-cdf8adbb-7e4f-429f-86ce-41beb3231d59:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

2022-06-10 22:50:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59"
}

2022-06-10 22:50:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "item-id": "item-cdf8adbb-7e4f-429f-86ce-41beb3231d59",
    "item": [
        "<item id=\"item-cdf8adbb-7e4f-429f-86ce-41beb3231d59\"><test>item-cdf8adbb-7e4f-429f-86ce-41beb3231d59</test></item>"
    ]
}

2022-06-10 22:50:52 | [Mutex] notify: [retrieved:item:item-cdf8adbb-7e4f-429f-86ce-41beb3231d59:payload-matches:true:localhost]

2022-06-10 22:50:52 | [Mutex] received everything.

2022-06-10 22:50:52 | [Mutex] isItemNotified: retrieved:item:item-cdf8adbb-7e4f-429f-86ce-41beb3231d59:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.073s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

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

2022-06-10 22:50:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d2909d70-dfc5-46e9-8137-73de69fb997a",
        "node-a398f4e5-a161-4704-98b1-8a87d99fa812"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

2022-06-10 22:50:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a398f4e5-a161-4704-98b1-8a87d99fa812)"
}

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

subscribeNodes 1.010s
2022-06-10 22:50:51 |

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

2022-06-10 22:50:51 | ------------------------------------

2022-06-10 22:50:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.012s
2022-06-10 22:50:52 |

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

2022-06-10 22:50:52 | ------------------------------------

2022-06-10 22:50:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a398f4e5-a161-4704-98b1-8a87d99fa812",
    "jids": [
        "admin@test-domain.com"
    ]
}

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