Generated by TestNG with ReportNG at 09:05 PST on Tuesday 21 December 2021
root@785cf647a4ab / 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 : 9.249s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2021-12-21 09:20:22 |

2021-12-21 09:20:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:22 | ------------------------------------

2021-12-21 09:20:22 | [Mutex] waiting for: [configured:node:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:node-edcd4eb3-3119-477b-a7e4-fa5c283d090a]

2021-12-21 09:20:22 | [Mutex] received everything.

2021-12-21 09:20:22 | [Mutex] isItemNotified: configured:node:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:node-edcd4eb3-3119-477b-a7e4-fa5c283d090a :: true

2021-12-21 09:20:23 | [Mutex] waiting for: [received:nodes:1e3e1c3b-0b32-4ff1-91e4-dbfd72a8aa78:localhost]

2021-12-21 09:20:23 | [Mutex] received everything.

2021-12-21 09:20:23 | [Mutex] isItemNotified: received:node:1e3e1c3b-0b32-4ff1-91e4-dbfd72a8aa78:localhost:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de :: true

2021-12-21 09:20:23 | [Mutex] waiting for: [received:nodes:57fe8b26-6033-46d6-99c8-db3f5b355dc9:localhost]

2021-12-21 09:20:23 | [Mutex] received everything.

2021-12-21 09:20:23 | [Mutex] isItemNotified: received:node:57fe8b26-6033-46d6-99c8-db3f5b355dc9:localhost:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de :: false

createNodes 1.729s
2021-12-21 09:20:19 |

2021-12-21 09:20:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:19 | ------------------------------------

2021-12-21 09:20:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "pubsub#title": "Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de"
}

2021-12-21 09:20:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:20:21 | [Mutex] waiting for: [received:nodes:61343b14-b84d-4d06-b96a-8864606a3cf7:localhost]

2021-12-21 09:20:21 | [Mutex] received everything.

2021-12-21 09:20:21 | [Mutex] isItemNotified: received:node:61343b14-b84d-4d06-b96a-8864606a3cf7:localhost:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de :: true

createSubnodes 1.028s
2021-12-21 09:20:21 |

2021-12-21 09:20:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:21 | ------------------------------------

2021-12-21 09:20:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-edcd4eb3-3119-477b-a7e4-fa5c283d090a",
    "pubsub#title": "Node edcd4eb3-3119-477b-a7e4-fa5c283d090a"
}

2021-12-21 09:20:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:20:22 | [Mutex] waiting for: [received:nodes:1f319f62-dbe9-41f6-ade7-2a5cec47873a:localhost]

2021-12-21 09:20:22 | [Mutex] received everything.

2021-12-21 09:20:22 | [Mutex] isItemNotified: received:node:1f319f62-dbe9-41f6-ade7-2a5cec47873a:localhost:node-edcd4eb3-3119-477b-a7e4-fa5c283d090a:Node edcd4eb3-3119-477b-a7e4-fa5c283d090a :: true

deleteNodes 1.025s
2021-12-21 09:20:26 |

2021-12-21 09:20:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:26 | ------------------------------------

2021-12-21 09:20:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-edcd4eb3-3119-477b-a7e4-fa5c283d090a"
}

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

2021-12-21 09:20:27 | [Mutex] waiting for: [received:nodes:0b7394ea-0f64-44b3-83f0-ee2d2629d631:localhost]

2021-12-21 09:20:27 | [Mutex] received everything.

2021-12-21 09:20:27 | [Mutex] isItemNotified: received:node:0b7394ea-0f64-44b3-83f0-ee2d2629d631:localhost:node-edcd4eb3-3119-477b-a7e4-fa5c283d090a:Node edcd4eb3-3119-477b-a7e4-fa5c283d090a :: false

deleteSubnodes 1.031s
2021-12-21 09:20:25 |

2021-12-21 09:20:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:25 | ------------------------------------

2021-12-21 09:20:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de"
}

2021-12-21 09:20:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:20:26 | [Mutex] waiting for: [received:nodes:ef229716-b88a-471f-b07c-7574ae8770e0:localhost]

2021-12-21 09:20:26 | [Mutex] waiting for: [received:nodes:ef229716-b88a-471f-b07c-7574ae8770e0:localhost]

2021-12-21 09:20:26 | [Mutex] received everything.

2021-12-21 09:20:26 | [Mutex] isItemNotified: received:node:ef229716-b88a-471f-b07c-7574ae8770e0:localhost:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de :: false

2021-12-21 09:20:26 | [Mutex] waiting for: [received:nodes:482299bc-5f8f-43d2-99f1-1a209c9d6f2f:localhost]

2021-12-21 09:20:26 | [Mutex] received everything.

2021-12-21 09:20:26 | [Mutex] isItemNotified: received:node:482299bc-5f8f-43d2-99f1-1a209c9d6f2f:localhost:node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de:Node c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de :: false

publishItemsToNodes 0.117s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "entry": "<test>item-e435cf1d-965c-4d9d-ae28-27c7491d6555</test>",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555"
}

2021-12-21 09:20:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555"
}

2021-12-21 09:20:24 | [Mutex] waiting for: [published:item:notifieditem-e435cf1d-965c-4d9d-ae28-27c7491d6555:admin@test-domain.com]

2021-12-21 09:20:24 | [Mutex] received everything.

2021-12-21 09:20:24 | [Mutex] isItemNotified: published:item:notifieditem-e435cf1d-965c-4d9d-ae28-27c7491d6555:admin@test-domain.com :: true

retractItemsFromNodes 0.145s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555"
}

2021-12-21 09:20:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555"
}

2021-12-21 09:20:24 | [Mutex] waiting for: [retracted:item:notifieditem-e435cf1d-965c-4d9d-ae28-27c7491d6555:admin@test-domain.com]

2021-12-21 09:20:24 | [Mutex] received everything.

2021-12-21 09:20:24 | [Mutex] isItemNotified: retracted:item:notifieditem-e435cf1d-965c-4d9d-ae28-27c7491d6555:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555"
}

2021-12-21 09:20:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "item-id": "item-e435cf1d-965c-4d9d-ae28-27c7491d6555",
    "item": [
        "<item id=\"item-e435cf1d-965c-4d9d-ae28-27c7491d6555\"><test>item-e435cf1d-965c-4d9d-ae28-27c7491d6555</test></item>"
    ]
}

2021-12-21 09:20:24 | [Mutex] notify: [retrieved:item:item-e435cf1d-965c-4d9d-ae28-27c7491d6555:payload-matches:true:localhost]

2021-12-21 09:20:24 | [Mutex] received everything.

2021-12-21 09:20:24 | [Mutex] isItemNotified: retrieved:item:item-e435cf1d-965c-4d9d-ae28-27c7491d6555:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-21 09:20:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-edcd4eb3-3119-477b-a7e4-fa5c283d090a",
        "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de)"
}

2021-12-21 09:20:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-12-21 09:20:23 |

2021-12-21 09:20:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:23 | ------------------------------------

2021-12-21 09:20:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.049s
2021-12-21 09:20:24 |

2021-12-21 09:20:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:20:24 | ------------------------------------

2021-12-21 09:20:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c1e1fcbc-cd23-4ca2-b244-8e089e8fc0de",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-21 09:20:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}