Generated by TestNG with ReportNG at 21:09 PST on Tuesday 23 February 2021
root@87f6aca6b6f2 / Java 11.0.8 (Ubuntu) / 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.910s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2021-02-23 21:26:34 |

2021-02-23 21:26:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:34 | ------------------------------------

2021-02-23 21:26:34 | [Mutex] waiting for: [configured:node:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:node-646595c6-ea47-4ab9-af1d-81164a04cfab]

2021-02-23 21:26:34 | [Mutex] received everything.

2021-02-23 21:26:34 | [Mutex] isItemNotified: configured:node:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:node-646595c6-ea47-4ab9-af1d-81164a04cfab :: true

2021-02-23 21:26:35 | [Mutex] waiting for: [received:nodes:e809023c-6b42-4384-a7e4-e85c8ab943dd:localhost]

2021-02-23 21:26:35 | [Mutex] received everything.

2021-02-23 21:26:35 | [Mutex] isItemNotified: received:node:e809023c-6b42-4384-a7e4-e85c8ab943dd:localhost:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a :: true

2021-02-23 21:26:35 | [Mutex] waiting for: [received:nodes:6f23620d-e477-4d93-9a9a-a8287cd8933e:localhost]

2021-02-23 21:26:35 | [Mutex] waiting for: [received:nodes:6f23620d-e477-4d93-9a9a-a8287cd8933e:localhost]

2021-02-23 21:26:35 | [Mutex] waiting for: [received:nodes:6f23620d-e477-4d93-9a9a-a8287cd8933e:localhost]

2021-02-23 21:26:35 | [Mutex] received everything.

2021-02-23 21:26:35 | [Mutex] isItemNotified: received:node:6f23620d-e477-4d93-9a9a-a8287cd8933e:localhost:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a :: false

createNodes 1.632s
2021-02-23 21:26:31 |

2021-02-23 21:26:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:31 | ------------------------------------

2021-02-23 21:26:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "pubsub#title": "Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a"
}

2021-02-23 21:26:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:26:33 | [Mutex] waiting for: [received:nodes:42b1781d-943c-43db-b9f2-52fae49e6aa9:localhost]

2021-02-23 21:26:33 | [Mutex] received everything.

2021-02-23 21:26:33 | [Mutex] isItemNotified: received:node:42b1781d-943c-43db-b9f2-52fae49e6aa9:localhost:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a :: true

createSubnodes 1.034s
2021-02-23 21:26:33 |

2021-02-23 21:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:33 | ------------------------------------

2021-02-23 21:26:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-646595c6-ea47-4ab9-af1d-81164a04cfab",
    "pubsub#title": "Node 646595c6-ea47-4ab9-af1d-81164a04cfab"
}

2021-02-23 21:26:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:26:34 | [Mutex] waiting for: [received:nodes:e22198ff-254c-4b7e-894c-983edc9a2721:localhost]

2021-02-23 21:26:34 | [Mutex] waiting for: [received:nodes:e22198ff-254c-4b7e-894c-983edc9a2721:localhost]

2021-02-23 21:26:34 | [Mutex] received everything.

2021-02-23 21:26:34 | [Mutex] isItemNotified: received:node:e22198ff-254c-4b7e-894c-983edc9a2721:localhost:node-646595c6-ea47-4ab9-af1d-81164a04cfab:Node 646595c6-ea47-4ab9-af1d-81164a04cfab :: true

deleteNodes 1.024s
2021-02-23 21:26:39 |

2021-02-23 21:26:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:39 | ------------------------------------

2021-02-23 21:26:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-646595c6-ea47-4ab9-af1d-81164a04cfab"
}

2021-02-23 21:26:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:26:40 | [Mutex] waiting for: [received:nodes:eb5869fb-fc53-420b-805e-fc408a2c93a6:localhost]

2021-02-23 21:26:40 | [Mutex] received everything.

2021-02-23 21:26:40 | [Mutex] isItemNotified: received:node:eb5869fb-fc53-420b-805e-fc408a2c93a6:localhost:node-646595c6-ea47-4ab9-af1d-81164a04cfab:Node 646595c6-ea47-4ab9-af1d-81164a04cfab :: false

deleteSubnodes 1.027s
2021-02-23 21:26:38 |

2021-02-23 21:26:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:38 | ------------------------------------

2021-02-23 21:26:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a"
}

2021-02-23 21:26:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:26:39 | [Mutex] waiting for: [received:nodes:11b659f5-86fd-4224-bce6-0511d8773c56:localhost]

2021-02-23 21:26:39 | [Mutex] waiting for: [received:nodes:11b659f5-86fd-4224-bce6-0511d8773c56:localhost]

2021-02-23 21:26:39 | [Mutex] received everything.

2021-02-23 21:26:39 | [Mutex] isItemNotified: received:node:11b659f5-86fd-4224-bce6-0511d8773c56:localhost:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a :: false

2021-02-23 21:26:39 | [Mutex] waiting for: [received:nodes:60b53ac8-e2ff-4d4a-b70b-7b6f16f5e1a4:localhost]

2021-02-23 21:26:39 | [Mutex] received everything.

2021-02-23 21:26:39 | [Mutex] isItemNotified: received:node:60b53ac8-e2ff-4d4a-b70b-7b6f16f5e1a4:localhost:node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a:Node 4faf6bfe-e88d-44eb-86bc-8351514f6b1a :: false

publishItemsToNodes 0.042s
2021-02-23 21:26:36 |

2021-02-23 21:26:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:36 | ------------------------------------

2021-02-23 21:26:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "entry": "<test>item-ede9433a-0394-4862-91c0-4233a1244552</test>",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552"
}

2021-02-23 21:26:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552"
}

2021-02-23 21:26:36 | [Mutex] waiting for: [published:item:notifieditem-ede9433a-0394-4862-91c0-4233a1244552:admin@test-domain.com]

2021-02-23 21:26:36 | [Mutex] received everything.

2021-02-23 21:26:36 | [Mutex] isItemNotified: published:item:notifieditem-ede9433a-0394-4862-91c0-4233a1244552:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-02-23 21:26:36 |

2021-02-23 21:26:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:36 | ------------------------------------

2021-02-23 21:26:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552"
}

2021-02-23 21:26:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552"
}

2021-02-23 21:26:37 | [Mutex] received everything.

2021-02-23 21:26:37 | [Mutex] isItemNotified: retracted:item:notifieditem-ede9433a-0394-4862-91c0-4233a1244552:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2021-02-23 21:26:36 |

2021-02-23 21:26:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:36 | ------------------------------------

2021-02-23 21:26:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552"
}

2021-02-23 21:26:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "item-id": "item-ede9433a-0394-4862-91c0-4233a1244552",
    "item": [
        "<item id=\"item-ede9433a-0394-4862-91c0-4233a1244552\"><test>item-ede9433a-0394-4862-91c0-4233a1244552</test></item>"
    ]
}

2021-02-23 21:26:36 | [Mutex] notify: [retrieved:item:item-ede9433a-0394-4862-91c0-4233a1244552:payload-matches:true:localhost]

2021-02-23 21:26:36 | [Mutex] received everything.

2021-02-23 21:26:36 | [Mutex] isItemNotified: retrieved:item:item-ede9433a-0394-4862-91c0-4233a1244552:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-02-23 21:26:36 |

2021-02-23 21:26:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:36 | ------------------------------------

2021-02-23 21:26:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-23 21:26:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
        "node-646595c6-ea47-4ab9-af1d-81164a04cfab"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-02-23 21:26:36 |

2021-02-23 21:26:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:36 | ------------------------------------

2021-02-23 21:26:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a)"
}

2021-02-23 21:26:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-02-23 21:26:35 |

2021-02-23 21:26:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:35 | ------------------------------------

2021-02-23 21:26:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:26:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-02-23 21:26:37 |

2021-02-23 21:26:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:26:37 | ------------------------------------

2021-02-23 21:26:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4faf6bfe-e88d-44eb-86bc-8351514f6b1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:26:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}