Generated by TestNG with ReportNG at 09:40 PDT on Tuesday 24 May 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.733s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-05-24 09:54:33 |

2022-05-24 09:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:33 | ------------------------------------

2022-05-24 09:54:33 | [Mutex] waiting for: [configured:node:node-7b10c210-3be0-4657-a641-bf188bbcaee7:node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7]

2022-05-24 09:54:33 | [Mutex] received everything.

2022-05-24 09:54:33 | [Mutex] isItemNotified: configured:node:node-7b10c210-3be0-4657-a641-bf188bbcaee7:node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7 :: true

2022-05-24 09:54:34 | [Mutex] waiting for: [received:nodes:909fefd8-5cf6-4329-a182-2e973b1a6a93:localhost]

2022-05-24 09:54:34 | [Mutex] received everything.

2022-05-24 09:54:34 | [Mutex] isItemNotified: received:node:909fefd8-5cf6-4329-a182-2e973b1a6a93:localhost:node-7b10c210-3be0-4657-a641-bf188bbcaee7:Node 7b10c210-3be0-4657-a641-bf188bbcaee7 :: true

2022-05-24 09:54:34 | [Mutex] waiting for: [received:nodes:95a88733-aac7-4d31-89ab-c5a79156e13b:localhost]

2022-05-24 09:54:34 | [Mutex] received everything.

2022-05-24 09:54:34 | [Mutex] isItemNotified: received:node:95a88733-aac7-4d31-89ab-c5a79156e13b:localhost:node-7b10c210-3be0-4657-a641-bf188bbcaee7:Node 7b10c210-3be0-4657-a641-bf188bbcaee7 :: false

createNodes 1.634s
2022-05-24 09:54:31 |

2022-05-24 09:54:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:31 | ------------------------------------

2022-05-24 09:54:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "pubsub#title": "Node 7b10c210-3be0-4657-a641-bf188bbcaee7"
}

2022-05-24 09:54:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:54:32 | [Mutex] waiting for: [received:nodes:e6bd30cb-6906-4753-80c0-bea9337eba10:localhost]

2022-05-24 09:54:32 | [Mutex] received everything.

2022-05-24 09:54:32 | [Mutex] isItemNotified: received:node:e6bd30cb-6906-4753-80c0-bea9337eba10:localhost:node-7b10c210-3be0-4657-a641-bf188bbcaee7:Node 7b10c210-3be0-4657-a641-bf188bbcaee7 :: true

createSubnodes 1.033s
2022-05-24 09:54:32 |

2022-05-24 09:54:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:32 | ------------------------------------

2022-05-24 09:54:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7",
    "pubsub#title": "Node 80cade73-12c6-4f69-8e86-9a4fb61fdfa7"
}

2022-05-24 09:54:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:54:33 | [Mutex] waiting for: [received:nodes:2b31a9fa-31d5-49fc-9cd2-ef557ff79d50:localhost]

2022-05-24 09:54:33 | [Mutex] waiting for: [received:nodes:2b31a9fa-31d5-49fc-9cd2-ef557ff79d50:localhost]

2022-05-24 09:54:33 | [Mutex] received everything.

2022-05-24 09:54:33 | [Mutex] isItemNotified: received:node:2b31a9fa-31d5-49fc-9cd2-ef557ff79d50:localhost:node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7:Node 80cade73-12c6-4f69-8e86-9a4fb61fdfa7 :: true

deleteNodes 1.018s
2022-05-24 09:54:38 |

2022-05-24 09:54:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:38 | ------------------------------------

2022-05-24 09:54:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7"
}

2022-05-24 09:54:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:54:39 | [Mutex] waiting for: [received:nodes:4a60ce8e-4674-49f8-a07c-133c491ac914:localhost]

2022-05-24 09:54:39 | [Mutex] waiting for: [received:nodes:4a60ce8e-4674-49f8-a07c-133c491ac914:localhost]

2022-05-24 09:54:39 | [Mutex] received everything.

2022-05-24 09:54:39 | [Mutex] isItemNotified: received:node:4a60ce8e-4674-49f8-a07c-133c491ac914:localhost:node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7:Node 80cade73-12c6-4f69-8e86-9a4fb61fdfa7 :: false

deleteSubnodes 1.029s
2022-05-24 09:54:37 |

2022-05-24 09:54:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:37 | ------------------------------------

2022-05-24 09:54:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7"
}

2022-05-24 09:54:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:54:38 | [Mutex] waiting for: [received:nodes:7d1b5ce3-7d1c-4f8b-90a2-68000290a9ac:localhost]

2022-05-24 09:54:38 | [Mutex] received everything.

2022-05-24 09:54:38 | [Mutex] isItemNotified: received:node:7d1b5ce3-7d1c-4f8b-90a2-68000290a9ac:localhost:node-7b10c210-3be0-4657-a641-bf188bbcaee7:Node 7b10c210-3be0-4657-a641-bf188bbcaee7 :: false

2022-05-24 09:54:38 | [Mutex] waiting for: [received:nodes:8abf9b69-fc65-4fe4-aff0-4df67dd0f9a0:localhost]

2022-05-24 09:54:38 | [Mutex] received everything.

2022-05-24 09:54:38 | [Mutex] isItemNotified: received:node:8abf9b69-fc65-4fe4-aff0-4df67dd0f9a0:localhost:node-7b10c210-3be0-4657-a641-bf188bbcaee7:Node 7b10c210-3be0-4657-a641-bf188bbcaee7 :: false

publishItemsToNodes 0.036s
2022-05-24 09:54:35 |

2022-05-24 09:54:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:35 | ------------------------------------

2022-05-24 09:54:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "entry": "<test>item-102362c5-6d3b-4a5c-9064-91a23f080573</test>",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573"
}

2022-05-24 09:54:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573"
}

2022-05-24 09:54:36 | [Mutex] received everything.

2022-05-24 09:54:36 | [Mutex] isItemNotified: published:item:notifieditem-102362c5-6d3b-4a5c-9064-91a23f080573:admin@test-domain.com :: true

retractItemsFromNodes 0.110s
2022-05-24 09:54:36 |

2022-05-24 09:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:36 | ------------------------------------

2022-05-24 09:54:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573"
}

2022-05-24 09:54:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573"
}

2022-05-24 09:54:36 | [Mutex] waiting for: [retracted:item:notifieditem-102362c5-6d3b-4a5c-9064-91a23f080573:admin@test-domain.com]

2022-05-24 09:54:36 | [Mutex] received everything.

2022-05-24 09:54:36 | [Mutex] isItemNotified: retracted:item:notifieditem-102362c5-6d3b-4a5c-9064-91a23f080573:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2022-05-24 09:54:36 |

2022-05-24 09:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:36 | ------------------------------------

2022-05-24 09:54:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573"
}

2022-05-24 09:54:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "item-id": "item-102362c5-6d3b-4a5c-9064-91a23f080573",
    "item": [
        "<item id=\"item-102362c5-6d3b-4a5c-9064-91a23f080573\"><test>item-102362c5-6d3b-4a5c-9064-91a23f080573</test></item>"
    ]
}

2022-05-24 09:54:36 | [Mutex] notify: [retrieved:item:item-102362c5-6d3b-4a5c-9064-91a23f080573:payload-matches:true:localhost]

2022-05-24 09:54:36 | [Mutex] received everything.

2022-05-24 09:54:36 | [Mutex] isItemNotified: retrieved:item:item-102362c5-6d3b-4a5c-9064-91a23f080573:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-24 09:54:36 |

2022-05-24 09:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:36 | ------------------------------------

2022-05-24 09:54:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-24 09:54:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
        "node-80cade73-12c6-4f69-8e86-9a4fb61fdfa7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-24 09:54:36 |

2022-05-24 09:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:36 | ------------------------------------

2022-05-24 09:54:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7b10c210-3be0-4657-a641-bf188bbcaee7)"
}

2022-05-24 09:54:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-05-24 09:54:34 |

2022-05-24 09:54:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:34 | ------------------------------------

2022-05-24 09:54:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 09:54:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.018s
2022-05-24 09:54:36 |

2022-05-24 09:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:54:36 | ------------------------------------

2022-05-24 09:54:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7b10c210-3be0-4657-a641-bf188bbcaee7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 09:54:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}