Generated by TestNG with ReportNG at 23:01 PDT on Tuesday 17 May 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.854s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-05-17 23:15:44 |

2022-05-17 23:15:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:44 | ------------------------------------

2022-05-17 23:15:44 | [Mutex] waiting for: [configured:node:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3]

2022-05-17 23:15:44 | [Mutex] received everything.

2022-05-17 23:15:44 | [Mutex] isItemNotified: configured:node:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3 :: true

2022-05-17 23:15:45 | [Mutex] waiting for: [received:nodes:13bbe834-7b43-4b1e-af6a-45baa6523bed:localhost]

2022-05-17 23:15:45 | [Mutex] received everything.

2022-05-17 23:15:45 | [Mutex] isItemNotified: received:node:13bbe834-7b43-4b1e-af6a-45baa6523bed:localhost:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52 :: true

2022-05-17 23:15:45 | [Mutex] waiting for: [received:nodes:41ab34a8-47f9-4687-98dd-22465378b54f:localhost]

2022-05-17 23:15:45 | [Mutex] waiting for: [received:nodes:41ab34a8-47f9-4687-98dd-22465378b54f:localhost]

2022-05-17 23:15:45 | [Mutex] received everything.

2022-05-17 23:15:45 | [Mutex] isItemNotified: received:node:41ab34a8-47f9-4687-98dd-22465378b54f:localhost:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52 :: false

createNodes 1.823s
2022-05-17 23:15:41 |

2022-05-17 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:41 | ------------------------------------

2022-05-17 23:15:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "pubsub#title": "Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52"
}

2022-05-17 23:15:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 23:15:43 | [Mutex] waiting for: [received:nodes:27a492d0-f113-4bb6-a650-e6ceee5c64f1:localhost]

2022-05-17 23:15:43 | [Mutex] received everything.

2022-05-17 23:15:43 | [Mutex] isItemNotified: received:node:27a492d0-f113-4bb6-a650-e6ceee5c64f1:localhost:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52 :: true

createSubnodes 1.024s
2022-05-17 23:15:43 |

2022-05-17 23:15:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:43 | ------------------------------------

2022-05-17 23:15:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3",
    "pubsub#title": "Node 19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3"
}

2022-05-17 23:15:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 23:15:44 | [Mutex] waiting for: [received:nodes:e5f3c5b4-9144-43b8-b8f9-2af0ee893096:localhost]

2022-05-17 23:15:44 | [Mutex] received everything.

2022-05-17 23:15:44 | [Mutex] isItemNotified: received:node:e5f3c5b4-9144-43b8-b8f9-2af0ee893096:localhost:node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3:Node 19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3 :: true

deleteNodes 1.018s
2022-05-17 23:15:48 |

2022-05-17 23:15:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:48 | ------------------------------------

2022-05-17 23:15:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3"
}

2022-05-17 23:15:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 23:15:49 | [Mutex] waiting for: [received:nodes:14fbd27e-58a8-40dc-9d62-fae0de5696fc:localhost]

2022-05-17 23:15:49 | [Mutex] received everything.

2022-05-17 23:15:49 | [Mutex] isItemNotified: received:node:14fbd27e-58a8-40dc-9d62-fae0de5696fc:localhost:node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3:Node 19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3 :: false

deleteSubnodes 1.024s
2022-05-17 23:15:47 |

2022-05-17 23:15:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:47 | ------------------------------------

2022-05-17 23:15:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52"
}

2022-05-17 23:15:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-17 23:15:48 | [Mutex] waiting for: [received:nodes:fef9eee7-6171-4e85-a333-031269e43431:localhost]

2022-05-17 23:15:48 | [Mutex] waiting for: [received:nodes:fef9eee7-6171-4e85-a333-031269e43431:localhost]

2022-05-17 23:15:48 | [Mutex] waiting for: [received:nodes:fef9eee7-6171-4e85-a333-031269e43431:localhost]

2022-05-17 23:15:48 | [Mutex] received everything.

2022-05-17 23:15:48 | [Mutex] isItemNotified: received:node:fef9eee7-6171-4e85-a333-031269e43431:localhost:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52 :: false

2022-05-17 23:15:48 | [Mutex] waiting for: [received:nodes:1d80b154-68b3-4e04-b1c5-441a0f7dca14:localhost]

2022-05-17 23:15:48 | [Mutex] received everything.

2022-05-17 23:15:48 | [Mutex] isItemNotified: received:node:1d80b154-68b3-4e04-b1c5-441a0f7dca14:localhost:node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52:Node 4fec0a02-ebc9-4c2b-86f3-27194bf9dc52 :: false

publishItemsToNodes 0.073s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

2022-05-17 23:15:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "entry": "<test>item-7e433795-8efb-4a36-8c7c-7642f2cb845f</test>",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f"
}

2022-05-17 23:15:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f"
}

2022-05-17 23:15:46 | [Mutex] waiting for: [published:item:notifieditem-7e433795-8efb-4a36-8c7c-7642f2cb845f:admin@test-domain.com]

2022-05-17 23:15:46 | [Mutex] received everything.

2022-05-17 23:15:46 | [Mutex] isItemNotified: published:item:notifieditem-7e433795-8efb-4a36-8c7c-7642f2cb845f:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

2022-05-17 23:15:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f"
}

2022-05-17 23:15:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f"
}

2022-05-17 23:15:46 | [Mutex] received everything.

2022-05-17 23:15:46 | [Mutex] isItemNotified: retracted:item:notifieditem-7e433795-8efb-4a36-8c7c-7642f2cb845f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

2022-05-17 23:15:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f"
}

2022-05-17 23:15:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "item-id": "item-7e433795-8efb-4a36-8c7c-7642f2cb845f",
    "item": [
        "<item id=\"item-7e433795-8efb-4a36-8c7c-7642f2cb845f\"><test>item-7e433795-8efb-4a36-8c7c-7642f2cb845f</test></item>"
    ]
}

2022-05-17 23:15:46 | [Mutex] notify: [retrieved:item:item-7e433795-8efb-4a36-8c7c-7642f2cb845f:payload-matches:true:localhost]

2022-05-17 23:15:46 | [Mutex] received everything.

2022-05-17 23:15:46 | [Mutex] isItemNotified: retrieved:item:item-7e433795-8efb-4a36-8c7c-7642f2cb845f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.083s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

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

2022-05-17 23:15:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
        "node-19cd0fde-1ffc-4bb9-8f7e-c2349689a4b3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

2022-05-17 23:15:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52)"
}

2022-05-17 23:15:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-05-17 23:15:45 |

2022-05-17 23:15:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:45 | ------------------------------------

2022-05-17 23:15:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-17 23:15:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-05-17 23:15:46 |

2022-05-17 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-17 23:15:46 | ------------------------------------

2022-05-17 23:15:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4fec0a02-ebc9-4c2b-86f3-27194bf9dc52",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-17 23:15:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}