Generated by TestNG with ReportNG at 21:47 PST on Monday 14 November 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.698s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.082s
2022-11-14 22:03:59 |

2022-11-14 22:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:03:59 | ------------------------------------

2022-11-14 22:03:59 | [Mutex] waiting for: [configured:node:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:node-a460a940-2f17-4e56-ad5b-53ef8ae6d612]

2022-11-14 22:03:59 | [Mutex] received everything.

2022-11-14 22:03:59 | [Mutex] isItemNotified: configured:node:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:node-a460a940-2f17-4e56-ad5b-53ef8ae6d612 :: true

2022-11-14 22:04:00 | [Mutex] waiting for: [received:nodes:6dc187d3-a001-4072-9389-37a9ccdd8dd8:localhost]

2022-11-14 22:04:00 | [Mutex] received everything.

2022-11-14 22:04:00 | [Mutex] isItemNotified: received:node:6dc187d3-a001-4072-9389-37a9ccdd8dd8:localhost:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:Node bc19a9e9-9794-4fc2-a88c-8a3394b91620 :: true

2022-11-14 22:04:00 | [Mutex] waiting for: [received:nodes:93a309c6-4db4-49ec-9241-1f3d10493820:localhost]

2022-11-14 22:04:00 | [Mutex] waiting for: [received:nodes:93a309c6-4db4-49ec-9241-1f3d10493820:localhost]

2022-11-14 22:04:00 | [Mutex] received everything.

2022-11-14 22:04:00 | [Mutex] isItemNotified: received:node:93a309c6-4db4-49ec-9241-1f3d10493820:localhost:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:Node bc19a9e9-9794-4fc2-a88c-8a3394b91620 :: false

createNodes 1.714s
2022-11-14 22:03:56 |

2022-11-14 22:03:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:03:56 | ------------------------------------

2022-11-14 22:03:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "pubsub#title": "Node bc19a9e9-9794-4fc2-a88c-8a3394b91620"
}

2022-11-14 22:03:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-14 22:03:58 | [Mutex] waiting for: [received:nodes:f64f22f5-589f-4eef-8e00-562a92a1ad52:localhost]

2022-11-14 22:03:58 | [Mutex] received everything.

2022-11-14 22:03:58 | [Mutex] isItemNotified: received:node:f64f22f5-589f-4eef-8e00-562a92a1ad52:localhost:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:Node bc19a9e9-9794-4fc2-a88c-8a3394b91620 :: true

createSubnodes 1.021s
2022-11-14 22:03:58 |

2022-11-14 22:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:03:58 | ------------------------------------

2022-11-14 22:03:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a460a940-2f17-4e56-ad5b-53ef8ae6d612",
    "pubsub#title": "Node a460a940-2f17-4e56-ad5b-53ef8ae6d612"
}

2022-11-14 22:03:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-14 22:03:59 | [Mutex] waiting for: [received:nodes:5292a84b-d167-40be-b613-ac9828e6635a:localhost]

2022-11-14 22:03:59 | [Mutex] waiting for: [received:nodes:5292a84b-d167-40be-b613-ac9828e6635a:localhost]

2022-11-14 22:03:59 | [Mutex] received everything.

2022-11-14 22:03:59 | [Mutex] isItemNotified: received:node:5292a84b-d167-40be-b613-ac9828e6635a:localhost:node-a460a940-2f17-4e56-ad5b-53ef8ae6d612:Node a460a940-2f17-4e56-ad5b-53ef8ae6d612 :: true

deleteNodes 1.032s
2022-11-14 22:04:03 |

2022-11-14 22:04:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:03 | ------------------------------------

2022-11-14 22:04:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a460a940-2f17-4e56-ad5b-53ef8ae6d612"
}

2022-11-14 22:04:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-14 22:04:04 | [Mutex] waiting for: [received:nodes:8aeebfdd-54aa-4df1-89a9-215a787f9691:localhost]

2022-11-14 22:04:04 | [Mutex] received everything.

2022-11-14 22:04:04 | [Mutex] isItemNotified: received:node:8aeebfdd-54aa-4df1-89a9-215a787f9691:localhost:node-a460a940-2f17-4e56-ad5b-53ef8ae6d612:Node a460a940-2f17-4e56-ad5b-53ef8ae6d612 :: false

deleteSubnodes 1.027s
2022-11-14 22:04:02 |

2022-11-14 22:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:02 | ------------------------------------

2022-11-14 22:04:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620"
}

2022-11-14 22:04:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-14 22:04:03 | [Mutex] waiting for: [received:nodes:90cb160c-1ba1-4c40-8d3a-92495517f8c9:localhost]

2022-11-14 22:04:03 | [Mutex] received everything.

2022-11-14 22:04:03 | [Mutex] isItemNotified: received:node:90cb160c-1ba1-4c40-8d3a-92495517f8c9:localhost:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:Node bc19a9e9-9794-4fc2-a88c-8a3394b91620 :: false

2022-11-14 22:04:03 | [Mutex] waiting for: [received:nodes:6ef36640-b519-4344-a716-5ac807dac9fc:localhost]

2022-11-14 22:04:03 | [Mutex] received everything.

2022-11-14 22:04:03 | [Mutex] isItemNotified: received:node:6ef36640-b519-4344-a716-5ac807dac9fc:localhost:node-bc19a9e9-9794-4fc2-a88c-8a3394b91620:Node bc19a9e9-9794-4fc2-a88c-8a3394b91620 :: false

publishItemsToNodes 0.045s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "entry": "<test>item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a</test>",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a"
}

2022-11-14 22:04:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a"
}

2022-11-14 22:04:01 | [Mutex] waiting for: [published:item:notifieditem-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a:admin@test-domain.com]

2022-11-14 22:04:01 | [Mutex] received everything.

2022-11-14 22:04:01 | [Mutex] isItemNotified: published:item:notifieditem-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a"
}

2022-11-14 22:04:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a"
}

2022-11-14 22:04:01 | [Mutex] received everything.

2022-11-14 22:04:01 | [Mutex] isItemNotified: retracted:item:notifieditem-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a"
}

2022-11-14 22:04:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "item-id": "item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a",
    "item": [
        "<item id=\"item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a\"><test>item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a</test></item>"
    ]
}

2022-11-14 22:04:01 | [Mutex] notify: [retrieved:item:item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a:payload-matches:true:localhost]

2022-11-14 22:04:01 | [Mutex] received everything.

2022-11-14 22:04:01 | [Mutex] isItemNotified: retrieved:item:item-1684332e-ff41-40f7-a9fa-1d82fdbf9b2a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-14 22:04:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a460a940-2f17-4e56-ad5b-53ef8ae6d612",
        "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bc19a9e9-9794-4fc2-a88c-8a3394b91620)"
}

2022-11-14 22:04:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-11-14 22:04:00 |

2022-11-14 22:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:00 | ------------------------------------

2022-11-14 22:04:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-14 22:04:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2022-11-14 22:04:01 |

2022-11-14 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 22:04:01 | ------------------------------------

2022-11-14 22:04:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bc19a9e9-9794-4fc2-a88c-8a3394b91620",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-14 22:04:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}