Generated by TestNG with ReportNG at 21:45 PST on Saturday 06 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.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-02-06 22:01:46 |

2021-02-06 22:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:46 | ------------------------------------

2021-02-06 22:01:46 | [Mutex] waiting for: [configured:node:node-96d03340-f053-48ca-92bd-d5597849e550:node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04]

2021-02-06 22:01:46 | [Mutex] received everything.

2021-02-06 22:01:46 | [Mutex] isItemNotified: configured:node:node-96d03340-f053-48ca-92bd-d5597849e550:node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04 :: true

2021-02-06 22:01:47 | [Mutex] waiting for: [received:nodes:c6373810-cf9b-4b57-bc0f-c10e3cc852d4:localhost]

2021-02-06 22:01:47 | [Mutex] received everything.

2021-02-06 22:01:47 | [Mutex] isItemNotified: received:node:c6373810-cf9b-4b57-bc0f-c10e3cc852d4:localhost:node-96d03340-f053-48ca-92bd-d5597849e550:Node 96d03340-f053-48ca-92bd-d5597849e550 :: true

2021-02-06 22:01:47 | [Mutex] waiting for: [received:nodes:5540a120-afe3-46ca-836c-7e9502d64135:localhost]

2021-02-06 22:01:47 | [Mutex] received everything.

2021-02-06 22:01:47 | [Mutex] isItemNotified: received:node:5540a120-afe3-46ca-836c-7e9502d64135:localhost:node-96d03340-f053-48ca-92bd-d5597849e550:Node 96d03340-f053-48ca-92bd-d5597849e550 :: false

createNodes 1.685s
2021-02-06 22:01:43 |

2021-02-06 22:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:43 | ------------------------------------

2021-02-06 22:01:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "pubsub#title": "Node 96d03340-f053-48ca-92bd-d5597849e550"
}

2021-02-06 22:01:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 22:01:45 | [Mutex] waiting for: [received:nodes:e1fc7e96-8dde-4897-adc5-55c944df515b:localhost]

2021-02-06 22:01:45 | [Mutex] received everything.

2021-02-06 22:01:45 | [Mutex] isItemNotified: received:node:e1fc7e96-8dde-4897-adc5-55c944df515b:localhost:node-96d03340-f053-48ca-92bd-d5597849e550:Node 96d03340-f053-48ca-92bd-d5597849e550 :: true

createSubnodes 1.023s
2021-02-06 22:01:45 |

2021-02-06 22:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:45 | ------------------------------------

2021-02-06 22:01:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04",
    "pubsub#title": "Node 0c2e94bc-b06e-4536-a2ac-dddfc6482a04"
}

2021-02-06 22:01:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 22:01:46 | [Mutex] waiting for: [received:nodes:6d548480-1b4f-4a2b-b415-081999ab9a00:localhost]

2021-02-06 22:01:46 | [Mutex] received everything.

2021-02-06 22:01:46 | [Mutex] isItemNotified: received:node:6d548480-1b4f-4a2b-b415-081999ab9a00:localhost:node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04:Node 0c2e94bc-b06e-4536-a2ac-dddfc6482a04 :: true

deleteNodes 1.027s
2021-02-06 22:01:51 |

2021-02-06 22:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:51 | ------------------------------------

2021-02-06 22:01:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04"
}

2021-02-06 22:01:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 22:01:52 | [Mutex] waiting for: [received:nodes:c0b17d54-33ea-4631-b539-b2e3e07e12b2:localhost]

2021-02-06 22:01:52 | [Mutex] waiting for: [received:nodes:c0b17d54-33ea-4631-b539-b2e3e07e12b2:localhost]

2021-02-06 22:01:52 | [Mutex] received everything.

2021-02-06 22:01:52 | [Mutex] isItemNotified: received:node:c0b17d54-33ea-4631-b539-b2e3e07e12b2:localhost:node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04:Node 0c2e94bc-b06e-4536-a2ac-dddfc6482a04 :: false

deleteSubnodes 1.054s
2021-02-06 22:01:50 |

2021-02-06 22:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:50 | ------------------------------------

2021-02-06 22:01:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550"
}

2021-02-06 22:01:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 22:01:51 | [Mutex] waiting for: [received:nodes:a4021be4-59a7-4872-9c3e-4fe9b72b3701:localhost]

2021-02-06 22:01:51 | [Mutex] received everything.

2021-02-06 22:01:51 | [Mutex] isItemNotified: received:node:a4021be4-59a7-4872-9c3e-4fe9b72b3701:localhost:node-96d03340-f053-48ca-92bd-d5597849e550:Node 96d03340-f053-48ca-92bd-d5597849e550 :: false

2021-02-06 22:01:51 | [Mutex] waiting for: [received:nodes:4b2d3be4-0088-4ce9-bcad-14765625ce50:localhost]

2021-02-06 22:01:51 | [Mutex] received everything.

2021-02-06 22:01:51 | [Mutex] isItemNotified: received:node:4b2d3be4-0088-4ce9-bcad-14765625ce50:localhost:node-96d03340-f053-48ca-92bd-d5597849e550:Node 96d03340-f053-48ca-92bd-d5597849e550 :: false

publishItemsToNodes 0.056s
2021-02-06 22:01:48 |

2021-02-06 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:48 | ------------------------------------

2021-02-06 22:01:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "entry": "<test>item-b5cecb46-3502-4892-b67c-5561f69b138b</test>",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b"
}

2021-02-06 22:01:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b"
}

2021-02-06 22:01:48 | [Mutex] waiting for: [published:item:notifieditem-b5cecb46-3502-4892-b67c-5561f69b138b:admin@test-domain.com]

2021-02-06 22:01:48 | [Mutex] received everything.

2021-02-06 22:01:48 | [Mutex] isItemNotified: published:item:notifieditem-b5cecb46-3502-4892-b67c-5561f69b138b:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-02-06 22:01:48 |

2021-02-06 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:48 | ------------------------------------

2021-02-06 22:01:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b"
}

2021-02-06 22:01:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b"
}

2021-02-06 22:01:49 | [Mutex] received everything.

2021-02-06 22:01:49 | [Mutex] isItemNotified: retracted:item:notifieditem-b5cecb46-3502-4892-b67c-5561f69b138b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2021-02-06 22:01:48 |

2021-02-06 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:48 | ------------------------------------

2021-02-06 22:01:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b"
}

2021-02-06 22:01:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "item-id": "item-b5cecb46-3502-4892-b67c-5561f69b138b",
    "item": [
        "<item id=\"item-b5cecb46-3502-4892-b67c-5561f69b138b\"><test>item-b5cecb46-3502-4892-b67c-5561f69b138b</test></item>"
    ]
}

2021-02-06 22:01:48 | [Mutex] notify: [retrieved:item:item-b5cecb46-3502-4892-b67c-5561f69b138b:payload-matches:true:localhost]

2021-02-06 22:01:48 | [Mutex] received everything.

2021-02-06 22:01:48 | [Mutex] isItemNotified: retrieved:item:item-b5cecb46-3502-4892-b67c-5561f69b138b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2021-02-06 22:01:48 |

2021-02-06 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:48 | ------------------------------------

2021-02-06 22:01:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-06 22:01:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-96d03340-f053-48ca-92bd-d5597849e550",
        "test",
        "node-0c2e94bc-b06e-4536-a2ac-dddfc6482a04"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-02-06 22:01:48 |

2021-02-06 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:48 | ------------------------------------

2021-02-06 22:01:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-96d03340-f053-48ca-92bd-d5597849e550)"
}

2021-02-06 22:01:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-02-06 22:01:47 |

2021-02-06 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:47 | ------------------------------------

2021-02-06 22:01:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-06 22:01:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-02-06 22:01:49 |

2021-02-06 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 22:01:49 | ------------------------------------

2021-02-06 22:01:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-96d03340-f053-48ca-92bd-d5597849e550",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-06 22:01:49 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}