Generated by TestNG with ReportNG at 22:48 PDT on Monday 08 August 2022
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.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2022-08-08 23:10:09 |

2022-08-08 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:09 | ------------------------------------

2022-08-08 23:10:09 | [Mutex] waiting for: [configured:node:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a]

2022-08-08 23:10:09 | [Mutex] received everything.

2022-08-08 23:10:09 | [Mutex] isItemNotified: configured:node:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a :: true

2022-08-08 23:10:10 | [Mutex] waiting for: [received:nodes:1bf59b0e-28ec-464f-aadb-79f64028d493:localhost]

2022-08-08 23:10:10 | [Mutex] received everything.

2022-08-08 23:10:10 | [Mutex] isItemNotified: received:node:1bf59b0e-28ec-464f-aadb-79f64028d493:localhost:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7 :: true

2022-08-08 23:10:10 | [Mutex] waiting for: [received:nodes:9aca73db-1b04-4947-9e5a-3a423aa46734:localhost]

2022-08-08 23:10:10 | [Mutex] received everything.

2022-08-08 23:10:10 | [Mutex] isItemNotified: received:node:9aca73db-1b04-4947-9e5a-3a423aa46734:localhost:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7 :: false

createNodes 1.820s
2022-08-08 23:10:06 |

2022-08-08 23:10:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:06 | ------------------------------------

2022-08-08 23:10: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-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "pubsub#title": "Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7"
}

2022-08-08 23:10:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 23:10:08 | [Mutex] waiting for: [received:nodes:8de0f7ab-3296-40e6-838e-44b4a5623c27:localhost]

2022-08-08 23:10:08 | [Mutex] received everything.

2022-08-08 23:10:08 | [Mutex] isItemNotified: received:node:8de0f7ab-3296-40e6-838e-44b4a5623c27:localhost:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7 :: true

createSubnodes 1.023s
2022-08-08 23:10:08 |

2022-08-08 23:10:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:08 | ------------------------------------

2022-08-08 23:10: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-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a",
    "pubsub#title": "Node 87ea1de2-d0fd-46e9-bbf0-979fd6694e3a"
}

2022-08-08 23:10:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 23:10:09 | [Mutex] waiting for: [received:nodes:53641e65-91aa-40e8-b3a4-492d365a7dba:localhost]

2022-08-08 23:10:09 | [Mutex] received everything.

2022-08-08 23:10:09 | [Mutex] isItemNotified: received:node:53641e65-91aa-40e8-b3a4-492d365a7dba:localhost:node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a:Node 87ea1de2-d0fd-46e9-bbf0-979fd6694e3a :: true

deleteNodes 1.026s
2022-08-08 23:10:14 |

2022-08-08 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:14 | ------------------------------------

2022-08-08 23:10:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a"
}

2022-08-08 23:10:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 23:10:15 | [Mutex] waiting for: [received:nodes:c591db68-d071-46a2-b2c7-575b76c8527b:localhost]

2022-08-08 23:10:15 | [Mutex] waiting for: [received:nodes:c591db68-d071-46a2-b2c7-575b76c8527b:localhost]

2022-08-08 23:10:15 | [Mutex] waiting for: [received:nodes:c591db68-d071-46a2-b2c7-575b76c8527b:localhost]

2022-08-08 23:10:15 | [Mutex] received everything.

2022-08-08 23:10:15 | [Mutex] isItemNotified: received:node:c591db68-d071-46a2-b2c7-575b76c8527b:localhost:node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a:Node 87ea1de2-d0fd-46e9-bbf0-979fd6694e3a :: false

deleteSubnodes 1.027s
2022-08-08 23:10:13 |

2022-08-08 23:10:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:13 | ------------------------------------

2022-08-08 23:10:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7"
}

2022-08-08 23:10:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 23:10:14 | [Mutex] waiting for: [received:nodes:43259c9a-b0d3-4d5d-a776-46489b5ceb39:localhost]

2022-08-08 23:10:14 | [Mutex] received everything.

2022-08-08 23:10:14 | [Mutex] isItemNotified: received:node:43259c9a-b0d3-4d5d-a776-46489b5ceb39:localhost:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7 :: false

2022-08-08 23:10:14 | [Mutex] waiting for: [received:nodes:69b07d9c-365b-46ce-bfea-eed74057534d:localhost]

2022-08-08 23:10:14 | [Mutex] received everything.

2022-08-08 23:10:14 | [Mutex] isItemNotified: received:node:69b07d9c-365b-46ce-bfea-eed74057534d:localhost:node-15765bac-f55e-42dc-ae37-f5d6ea6736b7:Node 15765bac-f55e-42dc-ae37-f5d6ea6736b7 :: false

publishItemsToNodes 0.066s
2022-08-08 23:10:11 |

2022-08-08 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:11 | ------------------------------------

2022-08-08 23:10:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "entry": "<test>item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51</test>",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51"
}

2022-08-08 23:10:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51"
}

2022-08-08 23:10:11 | [Mutex] received everything.

2022-08-08 23:10:11 | [Mutex] isItemNotified: published:item:notifieditem-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-08-08 23:10:11 |

2022-08-08 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:11 | ------------------------------------

2022-08-08 23:10:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51"
}

2022-08-08 23:10:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51"
}

2022-08-08 23:10:12 | [Mutex] waiting for: [retracted:item:notifieditem-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51:admin@test-domain.com]

2022-08-08 23:10:12 | [Mutex] received everything.

2022-08-08 23:10:12 | [Mutex] isItemNotified: retracted:item:notifieditem-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51:admin@test-domain.com :: true

retrieveItemsFromNodes 0.053s
2022-08-08 23:10:11 |

2022-08-08 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:11 | ------------------------------------

2022-08-08 23:10:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51"
}

2022-08-08 23:10:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "item-id": "item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51",
    "item": [
        "<item id=\"item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51\"><test>item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51</test></item>"
    ]
}

2022-08-08 23:10:11 | [Mutex] notify: [retrieved:item:item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51:payload-matches:true:localhost]

2022-08-08 23:10:11 | [Mutex] received everything.

2022-08-08 23:10:11 | [Mutex] isItemNotified: retrieved:item:item-d426f3a6-e7f7-4bc3-a1be-7fb3948c9b51:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-08 23:10:11 |

2022-08-08 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:11 | ------------------------------------

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

2022-08-08 23:10:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
        "node-87ea1de2-d0fd-46e9-bbf0-979fd6694e3a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-08 23:10:11 |

2022-08-08 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:11 | ------------------------------------

2022-08-08 23:10:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-15765bac-f55e-42dc-ae37-f5d6ea6736b7)"
}

2022-08-08 23:10:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-08 23:10:10 |

2022-08-08 23:10:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:10 | ------------------------------------

2022-08-08 23:10:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-08 23:10:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-08-08 23:10:12 |

2022-08-08 23:10:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 23:10:12 | ------------------------------------

2022-08-08 23:10:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-15765bac-f55e-42dc-ae37-f5d6ea6736b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-08 23:10:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}