Generated by TestNG with ReportNG at 21:18 PST on Thursday 10 February 2022
root@b2c2a8eba6e6 / 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 : 8.996s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.159s
2022-02-10 21:33:30 |

2022-02-10 21:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:30 | ------------------------------------

2022-02-10 21:33:30 | [Mutex] waiting for: [configured:node:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88]

2022-02-10 21:33:30 | [Mutex] received everything.

2022-02-10 21:33:30 | [Mutex] isItemNotified: configured:node:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88 :: true

2022-02-10 21:33:31 | [Mutex] waiting for: [received:nodes:f8af6f28-7690-4677-b003-618c4e0da7b9:localhost]

2022-02-10 21:33:31 | [Mutex] received everything.

2022-02-10 21:33:31 | [Mutex] isItemNotified: received:node:f8af6f28-7690-4677-b003-618c4e0da7b9:localhost:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:Node b143e8f8-4333-4198-b8d5-8a495a37d81c :: true

2022-02-10 21:33:31 | [Mutex] waiting for: [received:nodes:44e58bf0-f10a-481a-a683-964c40eac28b:localhost]

2022-02-10 21:33:31 | [Mutex] received everything.

2022-02-10 21:33:31 | [Mutex] isItemNotified: received:node:44e58bf0-f10a-481a-a683-964c40eac28b:localhost:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:Node b143e8f8-4333-4198-b8d5-8a495a37d81c :: false

createNodes 1.702s
2022-02-10 21:33:27 |

2022-02-10 21:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:27 | ------------------------------------

2022-02-10 21:33:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "pubsub#title": "Node b143e8f8-4333-4198-b8d5-8a495a37d81c"
}

2022-02-10 21:33:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 21:33:29 | [Mutex] waiting for: [received:nodes:38aa3d62-ab23-4bab-bd4a-7ac636023340:localhost]

2022-02-10 21:33:29 | [Mutex] waiting for: [received:nodes:38aa3d62-ab23-4bab-bd4a-7ac636023340:localhost]

2022-02-10 21:33:29 | [Mutex] received everything.

2022-02-10 21:33:29 | [Mutex] isItemNotified: received:node:38aa3d62-ab23-4bab-bd4a-7ac636023340:localhost:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:Node b143e8f8-4333-4198-b8d5-8a495a37d81c :: true

createSubnodes 1.026s
2022-02-10 21:33:29 |

2022-02-10 21:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:29 | ------------------------------------

2022-02-10 21:33:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88",
    "pubsub#title": "Node b22aee1e-ef9a-4b57-88c3-4c2d934f8e88"
}

2022-02-10 21:33:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 21:33:30 | [Mutex] waiting for: [received:nodes:e1ec7e9b-0920-44e8-a9aa-6e84d0ab9de8:localhost]

2022-02-10 21:33:30 | [Mutex] received everything.

2022-02-10 21:33:30 | [Mutex] isItemNotified: received:node:e1ec7e9b-0920-44e8-a9aa-6e84d0ab9de8:localhost:node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88:Node b22aee1e-ef9a-4b57-88c3-4c2d934f8e88 :: true

deleteNodes 1.020s
2022-02-10 21:33:34 |

2022-02-10 21:33:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:34 | ------------------------------------

2022-02-10 21:33:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88"
}

2022-02-10 21:33:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 21:33:35 | [Mutex] waiting for: [received:nodes:eee4eec8-6f37-4bd6-b238-5a7fe930bd83:localhost]

2022-02-10 21:33:35 | [Mutex] received everything.

2022-02-10 21:33:35 | [Mutex] isItemNotified: received:node:eee4eec8-6f37-4bd6-b238-5a7fe930bd83:localhost:node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88:Node b22aee1e-ef9a-4b57-88c3-4c2d934f8e88 :: false

deleteSubnodes 1.028s
2022-02-10 21:33:33 |

2022-02-10 21:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:33 | ------------------------------------

2022-02-10 21:33:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c"
}

2022-02-10 21:33:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 21:33:34 | [Mutex] waiting for: [received:nodes:3f22c2ed-68e7-458f-8a9f-683727c6ef06:localhost]

2022-02-10 21:33:34 | [Mutex] received everything.

2022-02-10 21:33:34 | [Mutex] isItemNotified: received:node:3f22c2ed-68e7-458f-8a9f-683727c6ef06:localhost:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:Node b143e8f8-4333-4198-b8d5-8a495a37d81c :: false

2022-02-10 21:33:34 | [Mutex] waiting for: [received:nodes:e19ab364-be37-4bf3-9645-ca05e28110b2:localhost]

2022-02-10 21:33:34 | [Mutex] received everything.

2022-02-10 21:33:34 | [Mutex] isItemNotified: received:node:e19ab364-be37-4bf3-9645-ca05e28110b2:localhost:node-b143e8f8-4333-4198-b8d5-8a495a37d81c:Node b143e8f8-4333-4198-b8d5-8a495a37d81c :: false

publishItemsToNodes 0.032s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "entry": "<test>item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6</test>",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6"
}

2022-02-10 21:33:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6"
}

2022-02-10 21:33:32 | [Mutex] waiting for: [published:item:notifieditem-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:admin@test-domain.com]

2022-02-10 21:33:32 | [Mutex] received everything.

2022-02-10 21:33:32 | [Mutex] isItemNotified: published:item:notifieditem-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:admin@test-domain.com :: true

retractItemsFromNodes 0.078s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6"
}

2022-02-10 21:33:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6"
}

2022-02-10 21:33:32 | [Mutex] waiting for: [retracted:item:notifieditem-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:admin@test-domain.com]

2022-02-10 21:33:32 | [Mutex] received everything.

2022-02-10 21:33:32 | [Mutex] isItemNotified: retracted:item:notifieditem-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6"
}

2022-02-10 21:33:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "item-id": "item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6",
    "item": [
        "<item id=\"item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6\"><test>item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6</test></item>"
    ]
}

2022-02-10 21:33:32 | [Mutex] notify: [retrieved:item:item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:payload-matches:true:localhost]

2022-02-10 21:33:32 | [Mutex] received everything.

2022-02-10 21:33:32 | [Mutex] isItemNotified: retrieved:item:item-a1c0b247-5100-4d6d-adf8-802c7ea94fc6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-10 21:33:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
        "node-b22aee1e-ef9a-4b57-88c3-4c2d934f8e88"
    ]
}

retrieveUserSubscriptionsWithRegex 0.059s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b143e8f8-4333-4198-b8d5-8a495a37d81c)"
}

2022-02-10 21:33:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.021s
2022-02-10 21:33:31 |

2022-02-10 21:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:31 | ------------------------------------

2022-02-10 21:33:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-10 21:33:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-02-10 21:33:32 |

2022-02-10 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 21:33:32 | ------------------------------------

2022-02-10 21:33:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b143e8f8-4333-4198-b8d5-8a495a37d81c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-10 21:33:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}