Generated by TestNG with ReportNG at 08:45 PDT on Wednesday 27 October 2021
root@f29ef40080b5 / 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.981s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2021-10-27 09:00:19 |

2021-10-27 09:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:19 | ------------------------------------

2021-10-27 09:00:19 | [Mutex] waiting for: [configured:node:node-94a76881-5075-4fd4-9fdf-1431593bb88d:node-f2021db0-d085-4953-9f0a-536dd0b03908]

2021-10-27 09:00:19 | [Mutex] received everything.

2021-10-27 09:00:19 | [Mutex] isItemNotified: configured:node:node-94a76881-5075-4fd4-9fdf-1431593bb88d:node-f2021db0-d085-4953-9f0a-536dd0b03908 :: true

2021-10-27 09:00:20 | [Mutex] waiting for: [received:nodes:b1d1f73f-d63a-44eb-9a02-619750274a39:localhost]

2021-10-27 09:00:20 | [Mutex] received everything.

2021-10-27 09:00:20 | [Mutex] isItemNotified: received:node:b1d1f73f-d63a-44eb-9a02-619750274a39:localhost:node-94a76881-5075-4fd4-9fdf-1431593bb88d:Node 94a76881-5075-4fd4-9fdf-1431593bb88d :: true

2021-10-27 09:00:20 | [Mutex] waiting for: [received:nodes:21a002ed-2090-4556-8827-472e23e3ae99:localhost]

2021-10-27 09:00:20 | [Mutex] waiting for: [received:nodes:21a002ed-2090-4556-8827-472e23e3ae99:localhost]

2021-10-27 09:00:20 | [Mutex] received everything.

2021-10-27 09:00:20 | [Mutex] isItemNotified: received:node:21a002ed-2090-4556-8827-472e23e3ae99:localhost:node-94a76881-5075-4fd4-9fdf-1431593bb88d:Node 94a76881-5075-4fd4-9fdf-1431593bb88d :: false

createNodes 1.579s
2021-10-27 09:00:17 |

2021-10-27 09:00:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:17 | ------------------------------------

2021-10-27 09:00:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "pubsub#title": "Node 94a76881-5075-4fd4-9fdf-1431593bb88d"
}

2021-10-27 09:00:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 09:00:18 | [Mutex] waiting for: [received:nodes:3921f910-d21a-403b-9486-ad3c9a2ee34b:localhost]

2021-10-27 09:00:18 | [Mutex] waiting for: [received:nodes:3921f910-d21a-403b-9486-ad3c9a2ee34b:localhost]

2021-10-27 09:00:18 | [Mutex] waiting for: [received:nodes:3921f910-d21a-403b-9486-ad3c9a2ee34b:localhost]

2021-10-27 09:00:18 | [Mutex] received everything.

2021-10-27 09:00:18 | [Mutex] isItemNotified: received:node:3921f910-d21a-403b-9486-ad3c9a2ee34b:localhost:node-94a76881-5075-4fd4-9fdf-1431593bb88d:Node 94a76881-5075-4fd4-9fdf-1431593bb88d :: true

createSubnodes 1.023s
2021-10-27 09:00:18 |

2021-10-27 09:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:18 | ------------------------------------

2021-10-27 09:00:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f2021db0-d085-4953-9f0a-536dd0b03908",
    "pubsub#title": "Node f2021db0-d085-4953-9f0a-536dd0b03908"
}

2021-10-27 09:00:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 09:00:19 | [Mutex] waiting for: [received:nodes:dc100940-ec6e-47bf-827e-61075079fb34:localhost]

2021-10-27 09:00:19 | [Mutex] waiting for: [received:nodes:dc100940-ec6e-47bf-827e-61075079fb34:localhost]

2021-10-27 09:00:19 | [Mutex] received everything.

2021-10-27 09:00:19 | [Mutex] isItemNotified: received:node:dc100940-ec6e-47bf-827e-61075079fb34:localhost:node-f2021db0-d085-4953-9f0a-536dd0b03908:Node f2021db0-d085-4953-9f0a-536dd0b03908 :: true

deleteNodes 1.022s
2021-10-27 09:00:24 |

2021-10-27 09:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:24 | ------------------------------------

2021-10-27 09:00:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f2021db0-d085-4953-9f0a-536dd0b03908"
}

2021-10-27 09:00:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 09:00:25 | [Mutex] waiting for: [received:nodes:0594e421-159a-4dca-a016-240f897f5c1a:localhost]

2021-10-27 09:00:25 | [Mutex] waiting for: [received:nodes:0594e421-159a-4dca-a016-240f897f5c1a:localhost]

2021-10-27 09:00:25 | [Mutex] received everything.

2021-10-27 09:00:25 | [Mutex] isItemNotified: received:node:0594e421-159a-4dca-a016-240f897f5c1a:localhost:node-f2021db0-d085-4953-9f0a-536dd0b03908:Node f2021db0-d085-4953-9f0a-536dd0b03908 :: false

deleteSubnodes 1.026s
2021-10-27 09:00:23 |

2021-10-27 09:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:23 | ------------------------------------

2021-10-27 09:00:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d"
}

2021-10-27 09:00:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 09:00:24 | [Mutex] waiting for: [received:nodes:2b8cfd83-ea65-498a-aed4-3f799ea7e036:localhost]

2021-10-27 09:00:24 | [Mutex] waiting for: [received:nodes:2b8cfd83-ea65-498a-aed4-3f799ea7e036:localhost]

2021-10-27 09:00:24 | [Mutex] waiting for: [received:nodes:2b8cfd83-ea65-498a-aed4-3f799ea7e036:localhost]

2021-10-27 09:00:24 | [Mutex] received everything.

2021-10-27 09:00:24 | [Mutex] isItemNotified: received:node:2b8cfd83-ea65-498a-aed4-3f799ea7e036:localhost:node-94a76881-5075-4fd4-9fdf-1431593bb88d:Node 94a76881-5075-4fd4-9fdf-1431593bb88d :: false

2021-10-27 09:00:24 | [Mutex] waiting for: [received:nodes:d91bc310-0bcf-412b-93e9-0b72acbb9ffa:localhost]

2021-10-27 09:00:24 | [Mutex] received everything.

2021-10-27 09:00:24 | [Mutex] isItemNotified: received:node:d91bc310-0bcf-412b-93e9-0b72acbb9ffa:localhost:node-94a76881-5075-4fd4-9fdf-1431593bb88d:Node 94a76881-5075-4fd4-9fdf-1431593bb88d :: false

publishItemsToNodes 0.053s
2021-10-27 09:00:21 |

2021-10-27 09:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:21 | ------------------------------------

2021-10-27 09:00:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "entry": "<test>item-fc296aac-5dc6-426b-96ad-3521c0842c9c</test>",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c"
}

2021-10-27 09:00:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c"
}

2021-10-27 09:00:21 | [Mutex] waiting for: [published:item:notifieditem-fc296aac-5dc6-426b-96ad-3521c0842c9c:admin@test-domain.com]

2021-10-27 09:00:21 | [Mutex] received everything.

2021-10-27 09:00:21 | [Mutex] isItemNotified: published:item:notifieditem-fc296aac-5dc6-426b-96ad-3521c0842c9c:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-10-27 09:00:22 |

2021-10-27 09:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:22 | ------------------------------------

2021-10-27 09:00:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c"
}

2021-10-27 09:00:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c"
}

2021-10-27 09:00:22 | [Mutex] waiting for: [retracted:item:notifieditem-fc296aac-5dc6-426b-96ad-3521c0842c9c:admin@test-domain.com]

2021-10-27 09:00:22 | [Mutex] received everything.

2021-10-27 09:00:22 | [Mutex] isItemNotified: retracted:item:notifieditem-fc296aac-5dc6-426b-96ad-3521c0842c9c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2021-10-27 09:00:21 |

2021-10-27 09:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:21 | ------------------------------------

2021-10-27 09:00:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c"
}

2021-10-27 09:00:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "item-id": "item-fc296aac-5dc6-426b-96ad-3521c0842c9c",
    "item": [
        "<item id=\"item-fc296aac-5dc6-426b-96ad-3521c0842c9c\"><test>item-fc296aac-5dc6-426b-96ad-3521c0842c9c</test></item>"
    ]
}

2021-10-27 09:00:21 | [Mutex] notify: [retrieved:item:item-fc296aac-5dc6-426b-96ad-3521c0842c9c:payload-matches:true:localhost]

2021-10-27 09:00:21 | [Mutex] received everything.

2021-10-27 09:00:21 | [Mutex] isItemNotified: retrieved:item:item-fc296aac-5dc6-426b-96ad-3521c0842c9c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-10-27 09:00:21 |

2021-10-27 09:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:21 | ------------------------------------

2021-10-27 09:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-27 09:00:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
        "node-f2021db0-d085-4953-9f0a-536dd0b03908"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-27 09:00:22 |

2021-10-27 09:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:22 | ------------------------------------

2021-10-27 09:00:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-94a76881-5075-4fd4-9fdf-1431593bb88d)"
}

2021-10-27 09:00:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-10-27 09:00:20 |

2021-10-27 09:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:20 | ------------------------------------

2021-10-27 09:00:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 09:00:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2021-10-27 09:00:22 |

2021-10-27 09:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 09:00:22 | ------------------------------------

2021-10-27 09:00:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-94a76881-5075-4fd4-9fdf-1431593bb88d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 09:00:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}