Generated by TestNG with ReportNG at 22:17 PDT on Monday 27 June 2022
root@21fb2cc9076b / 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.745s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-06-27 22:32:09 |

2022-06-27 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:09 | ------------------------------------

2022-06-27 22:32:09 | [Mutex] waiting for: [configured:node:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d]

2022-06-27 22:32:09 | [Mutex] received everything.

2022-06-27 22:32:09 | [Mutex] isItemNotified: configured:node:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d :: true

2022-06-27 22:32:10 | [Mutex] waiting for: [received:nodes:a4776cc5-140d-44df-bb2a-180ab75a8f49:localhost]

2022-06-27 22:32:10 | [Mutex] received everything.

2022-06-27 22:32:10 | [Mutex] isItemNotified: received:node:a4776cc5-140d-44df-bb2a-180ab75a8f49:localhost:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4 :: true

2022-06-27 22:32:10 | [Mutex] waiting for: [received:nodes:445cb912-43e8-40cb-9c84-fc2f777d4ce5:localhost]

2022-06-27 22:32:10 | [Mutex] waiting for: [received:nodes:445cb912-43e8-40cb-9c84-fc2f777d4ce5:localhost]

2022-06-27 22:32:10 | [Mutex] received everything.

2022-06-27 22:32:10 | [Mutex] isItemNotified: received:node:445cb912-43e8-40cb-9c84-fc2f777d4ce5:localhost:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4 :: false

createNodes 1.643s
2022-06-27 22:32:06 |

2022-06-27 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:06 | ------------------------------------

2022-06-27 22:32:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "pubsub#title": "Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4"
}

2022-06-27 22:32:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:32:08 | [Mutex] waiting for: [received:nodes:4ac9d0b9-fad8-4d93-8b67-fff7e686f0a2:localhost]

2022-06-27 22:32:08 | [Mutex] waiting for: [received:nodes:4ac9d0b9-fad8-4d93-8b67-fff7e686f0a2:localhost]

2022-06-27 22:32:08 | [Mutex] received everything.

2022-06-27 22:32:08 | [Mutex] isItemNotified: received:node:4ac9d0b9-fad8-4d93-8b67-fff7e686f0a2:localhost:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4 :: true

createSubnodes 1.027s
2022-06-27 22:32:08 |

2022-06-27 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:08 | ------------------------------------

2022-06-27 22:32:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d",
    "pubsub#title": "Node a3bfaa02-08a6-4a73-aa35-6c7805b2a93d"
}

2022-06-27 22:32:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:32:09 | [Mutex] waiting for: [received:nodes:aead75c3-0a00-43a3-a336-6a121774bbf8:localhost]

2022-06-27 22:32:09 | [Mutex] waiting for: [received:nodes:aead75c3-0a00-43a3-a336-6a121774bbf8:localhost]

2022-06-27 22:32:09 | [Mutex] received everything.

2022-06-27 22:32:09 | [Mutex] isItemNotified: received:node:aead75c3-0a00-43a3-a336-6a121774bbf8:localhost:node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d:Node a3bfaa02-08a6-4a73-aa35-6c7805b2a93d :: true

deleteNodes 1.025s
2022-06-27 22:32:13 |

2022-06-27 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:13 | ------------------------------------

2022-06-27 22:32:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d"
}

2022-06-27 22:32:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:32:14 | [Mutex] waiting for: [received:nodes:468e0987-203a-465a-81f4-fe94feba0cd5:localhost]

2022-06-27 22:32:14 | [Mutex] received everything.

2022-06-27 22:32:14 | [Mutex] isItemNotified: received:node:468e0987-203a-465a-81f4-fe94feba0cd5:localhost:node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d:Node a3bfaa02-08a6-4a73-aa35-6c7805b2a93d :: false

deleteSubnodes 1.028s
2022-06-27 22:32:12 |

2022-06-27 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:12 | ------------------------------------

2022-06-27 22:32:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4"
}

2022-06-27 22:32:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:32:13 | [Mutex] waiting for: [received:nodes:2294f9d2-c6a9-4476-b2ea-200694429e00:localhost]

2022-06-27 22:32:13 | [Mutex] received everything.

2022-06-27 22:32:13 | [Mutex] isItemNotified: received:node:2294f9d2-c6a9-4476-b2ea-200694429e00:localhost:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4 :: false

2022-06-27 22:32:13 | [Mutex] waiting for: [received:nodes:076d2ff6-f66f-4215-a5f6-4b56901b481b:localhost]

2022-06-27 22:32:13 | [Mutex] received everything.

2022-06-27 22:32:13 | [Mutex] isItemNotified: received:node:076d2ff6-f66f-4215-a5f6-4b56901b481b:localhost:node-1db09442-7fdb-4cfb-b88e-dea83a18aed4:Node 1db09442-7fdb-4cfb-b88e-dea83a18aed4 :: false

publishItemsToNodes 0.048s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

2022-06-27 22:32:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "entry": "<test>item-f1485564-b8d6-4a18-97d8-599d36582f58</test>",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58"
}

2022-06-27 22:32:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58"
}

2022-06-27 22:32:11 | [Mutex] waiting for: [published:item:notifieditem-f1485564-b8d6-4a18-97d8-599d36582f58:admin@test-domain.com]

2022-06-27 22:32:11 | [Mutex] received everything.

2022-06-27 22:32:11 | [Mutex] isItemNotified: published:item:notifieditem-f1485564-b8d6-4a18-97d8-599d36582f58:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

2022-06-27 22:32:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58"
}

2022-06-27 22:32:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58"
}

2022-06-27 22:32:11 | [Mutex] waiting for: [retracted:item:notifieditem-f1485564-b8d6-4a18-97d8-599d36582f58:admin@test-domain.com]

2022-06-27 22:32:11 | [Mutex] received everything.

2022-06-27 22:32:11 | [Mutex] isItemNotified: retracted:item:notifieditem-f1485564-b8d6-4a18-97d8-599d36582f58:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

2022-06-27 22:32:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58"
}

2022-06-27 22:32:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "item-id": "item-f1485564-b8d6-4a18-97d8-599d36582f58",
    "item": [
        "<item id=\"item-f1485564-b8d6-4a18-97d8-599d36582f58\"><test>item-f1485564-b8d6-4a18-97d8-599d36582f58</test></item>"
    ]
}

2022-06-27 22:32:11 | [Mutex] notify: [retrieved:item:item-f1485564-b8d6-4a18-97d8-599d36582f58:payload-matches:true:localhost]

2022-06-27 22:32:11 | [Mutex] received everything.

2022-06-27 22:32:11 | [Mutex] isItemNotified: retrieved:item:item-f1485564-b8d6-4a18-97d8-599d36582f58:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

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

2022-06-27 22:32:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
        "test",
        "node-a3bfaa02-08a6-4a73-aa35-6c7805b2a93d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

2022-06-27 22:32:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1db09442-7fdb-4cfb-b88e-dea83a18aed4)"
}

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

subscribeNodes 1.013s
2022-06-27 22:32:10 |

2022-06-27 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:10 | ------------------------------------

2022-06-27 22:32:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-27 22:32:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2022-06-27 22:32:11 |

2022-06-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:32:11 | ------------------------------------

2022-06-27 22:32:11 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1db09442-7fdb-4cfb-b88e-dea83a18aed4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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