Generated by TestNG with ReportNG at 09:23 PST on Monday 06 March 2023
root@f9c07ffec79b / 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.762s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2023-03-06 09:37:50 |

2023-03-06 09:37:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:50 | ------------------------------------

2023-03-06 09:37:50 | [Mutex] waiting for: [configured:node:node-4af420f4-4152-4f6d-af31-76dc68f36251:node-2f117fdc-a53d-4b2a-b673-d123e30f3f15]

2023-03-06 09:37:50 | [Mutex] received everything.

2023-03-06 09:37:50 | [Mutex] isItemNotified: configured:node:node-4af420f4-4152-4f6d-af31-76dc68f36251:node-2f117fdc-a53d-4b2a-b673-d123e30f3f15 :: true

2023-03-06 09:37:51 | [Mutex] waiting for: [received:nodes:5b83b75a-a4e3-41ea-a4a4-eda70fd99c2e:localhost]

2023-03-06 09:37:51 | [Mutex] received everything.

2023-03-06 09:37:51 | [Mutex] isItemNotified: received:node:5b83b75a-a4e3-41ea-a4a4-eda70fd99c2e:localhost:node-4af420f4-4152-4f6d-af31-76dc68f36251:Node 4af420f4-4152-4f6d-af31-76dc68f36251 :: true

2023-03-06 09:37:51 | [Mutex] waiting for: [received:nodes:84b07662-aaf7-468c-9337-7d097632e8d0:localhost]

2023-03-06 09:37:51 | [Mutex] waiting for: [received:nodes:84b07662-aaf7-468c-9337-7d097632e8d0:localhost]

2023-03-06 09:37:51 | [Mutex] waiting for: [received:nodes:84b07662-aaf7-468c-9337-7d097632e8d0:localhost]

2023-03-06 09:37:51 | [Mutex] received everything.

2023-03-06 09:37:51 | [Mutex] isItemNotified: received:node:84b07662-aaf7-468c-9337-7d097632e8d0:localhost:node-4af420f4-4152-4f6d-af31-76dc68f36251:Node 4af420f4-4152-4f6d-af31-76dc68f36251 :: false

createNodes 1.794s
2023-03-06 09:37:47 |

2023-03-06 09:37:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:47 | ------------------------------------

2023-03-06 09:37: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-4af420f4-4152-4f6d-af31-76dc68f36251",
    "pubsub#title": "Node 4af420f4-4152-4f6d-af31-76dc68f36251"
}

2023-03-06 09:37:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:37:48 | [Mutex] waiting for: [received:nodes:50013369-7df4-437c-bfb7-1225b1bda789:localhost]

2023-03-06 09:37:48 | [Mutex] received everything.

2023-03-06 09:37:48 | [Mutex] isItemNotified: received:node:50013369-7df4-437c-bfb7-1225b1bda789:localhost:node-4af420f4-4152-4f6d-af31-76dc68f36251:Node 4af420f4-4152-4f6d-af31-76dc68f36251 :: true

createSubnodes 1.022s
2023-03-06 09:37:48 |

2023-03-06 09:37:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:48 | ------------------------------------

2023-03-06 09:37: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-2f117fdc-a53d-4b2a-b673-d123e30f3f15",
    "pubsub#title": "Node 2f117fdc-a53d-4b2a-b673-d123e30f3f15"
}

2023-03-06 09:37:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:37:50 | [Mutex] waiting for: [received:nodes:680d6a7f-eaba-4447-a36f-69504b15cc48:localhost]

2023-03-06 09:37:50 | [Mutex] waiting for: [received:nodes:680d6a7f-eaba-4447-a36f-69504b15cc48:localhost]

2023-03-06 09:37:50 | [Mutex] waiting for: [received:nodes:680d6a7f-eaba-4447-a36f-69504b15cc48:localhost]

2023-03-06 09:37:50 | [Mutex] waiting for: [received:nodes:680d6a7f-eaba-4447-a36f-69504b15cc48:localhost]

2023-03-06 09:37:50 | [Mutex] received everything.

2023-03-06 09:37:50 | [Mutex] isItemNotified: received:node:680d6a7f-eaba-4447-a36f-69504b15cc48:localhost:node-2f117fdc-a53d-4b2a-b673-d123e30f3f15:Node 2f117fdc-a53d-4b2a-b673-d123e30f3f15 :: true

deleteNodes 1.023s
2023-03-06 09:37:54 |

2023-03-06 09:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:54 | ------------------------------------

2023-03-06 09:37:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2f117fdc-a53d-4b2a-b673-d123e30f3f15"
}

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

2023-03-06 09:37:55 | [Mutex] waiting for: [received:nodes:a9689d1d-b35d-4542-85f0-a50673950e00:localhost]

2023-03-06 09:37:55 | [Mutex] received everything.

2023-03-06 09:37:55 | [Mutex] isItemNotified: received:node:a9689d1d-b35d-4542-85f0-a50673950e00:localhost:node-2f117fdc-a53d-4b2a-b673-d123e30f3f15:Node 2f117fdc-a53d-4b2a-b673-d123e30f3f15 :: false

deleteSubnodes 1.022s
2023-03-06 09:37:53 |

2023-03-06 09:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:53 | ------------------------------------

2023-03-06 09:37:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251"
}

2023-03-06 09:37:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:37:54 | [Mutex] waiting for: [received:nodes:eaebfe02-515e-4644-aacf-11313da484f0:localhost]

2023-03-06 09:37:54 | [Mutex] waiting for: [received:nodes:eaebfe02-515e-4644-aacf-11313da484f0:localhost]

2023-03-06 09:37:54 | [Mutex] waiting for: [received:nodes:eaebfe02-515e-4644-aacf-11313da484f0:localhost]

2023-03-06 09:37:54 | [Mutex] waiting for: [received:nodes:eaebfe02-515e-4644-aacf-11313da484f0:localhost]

2023-03-06 09:37:54 | [Mutex] received everything.

2023-03-06 09:37:54 | [Mutex] isItemNotified: received:node:eaebfe02-515e-4644-aacf-11313da484f0:localhost:node-4af420f4-4152-4f6d-af31-76dc68f36251:Node 4af420f4-4152-4f6d-af31-76dc68f36251 :: false

2023-03-06 09:37:54 | [Mutex] waiting for: [received:nodes:b87c4e47-eca2-4ef2-9947-7f803e226653:localhost]

2023-03-06 09:37:54 | [Mutex] received everything.

2023-03-06 09:37:54 | [Mutex] isItemNotified: received:node:b87c4e47-eca2-4ef2-9947-7f803e226653:localhost:node-4af420f4-4152-4f6d-af31-76dc68f36251:Node 4af420f4-4152-4f6d-af31-76dc68f36251 :: false

publishItemsToNodes 0.038s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "entry": "<test>item-144ae665-4df3-40d6-8b54-93e7611252e8</test>",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8"
}

2023-03-06 09:37:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8"
}

2023-03-06 09:37:52 | [Mutex] waiting for: [published:item:notifieditem-144ae665-4df3-40d6-8b54-93e7611252e8:admin@test-domain.com]

2023-03-06 09:37:52 | [Mutex] received everything.

2023-03-06 09:37:52 | [Mutex] isItemNotified: published:item:notifieditem-144ae665-4df3-40d6-8b54-93e7611252e8:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8"
}

2023-03-06 09:37:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8"
}

2023-03-06 09:37:52 | [Mutex] received everything.

2023-03-06 09:37:52 | [Mutex] isItemNotified: retracted:item:notifieditem-144ae665-4df3-40d6-8b54-93e7611252e8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8"
}

2023-03-06 09:37:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "item-id": "item-144ae665-4df3-40d6-8b54-93e7611252e8",
    "item": [
        "<item id=\"item-144ae665-4df3-40d6-8b54-93e7611252e8\"><test>item-144ae665-4df3-40d6-8b54-93e7611252e8</test></item>"
    ]
}

2023-03-06 09:37:52 | [Mutex] notify: [retrieved:item:item-144ae665-4df3-40d6-8b54-93e7611252e8:payload-matches:true:localhost]

2023-03-06 09:37:52 | [Mutex] received everything.

2023-03-06 09:37:52 | [Mutex] isItemNotified: retrieved:item:item-144ae665-4df3-40d6-8b54-93e7611252e8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 09:37:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2f117fdc-a53d-4b2a-b673-d123e30f3f15",
        "test",
        "node-4af420f4-4152-4f6d-af31-76dc68f36251"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4af420f4-4152-4f6d-af31-76dc68f36251)"
}

2023-03-06 09:37:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-03-06 09:37:51 |

2023-03-06 09:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:51 | ------------------------------------

2023-03-06 09:37:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:37:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2023-03-06 09:37:52 |

2023-03-06 09:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:37:52 | ------------------------------------

2023-03-06 09:37:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4af420f4-4152-4f6d-af31-76dc68f36251",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:37:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}