Generated by TestNG with ReportNG at 08:07 PST on Friday 25 February 2022
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.124s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-02-25 08:21:43 |

2022-02-25 08:21:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:43 | ------------------------------------

2022-02-25 08:21:43 | [Mutex] waiting for: [configured:node:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea]

2022-02-25 08:21:43 | [Mutex] received everything.

2022-02-25 08:21:43 | [Mutex] isItemNotified: configured:node:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea :: true

2022-02-25 08:21:44 | [Mutex] waiting for: [received:nodes:c0d71404-1150-4a67-824d-8717c56d5053:localhost]

2022-02-25 08:21:44 | [Mutex] received everything.

2022-02-25 08:21:44 | [Mutex] isItemNotified: received:node:c0d71404-1150-4a67-824d-8717c56d5053:localhost:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:Node d89bf1e7-21a4-4f9f-a00e-2b313befb815 :: true

2022-02-25 08:21:44 | [Mutex] waiting for: [received:nodes:28eb331e-b59f-4b38-86dd-1d3c9905a37a:localhost]

2022-02-25 08:21:44 | [Mutex] received everything.

2022-02-25 08:21:44 | [Mutex] isItemNotified: received:node:28eb331e-b59f-4b38-86dd-1d3c9905a37a:localhost:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:Node d89bf1e7-21a4-4f9f-a00e-2b313befb815 :: false

createNodes 1.779s
2022-02-25 08:21:40 |

2022-02-25 08:21:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:40 | ------------------------------------

2022-02-25 08:21:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "pubsub#title": "Node d89bf1e7-21a4-4f9f-a00e-2b313befb815"
}

2022-02-25 08:21:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-25 08:21:42 | [Mutex] waiting for: [received:nodes:af9605f4-a001-4164-88d6-c34cd857f135:localhost]

2022-02-25 08:21:42 | [Mutex] waiting for: [received:nodes:af9605f4-a001-4164-88d6-c34cd857f135:localhost]

2022-02-25 08:21:42 | [Mutex] received everything.

2022-02-25 08:21:42 | [Mutex] isItemNotified: received:node:af9605f4-a001-4164-88d6-c34cd857f135:localhost:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:Node d89bf1e7-21a4-4f9f-a00e-2b313befb815 :: true

createSubnodes 1.025s
2022-02-25 08:21:42 |

2022-02-25 08:21:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:42 | ------------------------------------

2022-02-25 08:21:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea",
    "pubsub#title": "Node 2c3f32e3-90bf-4221-9ccc-16bddacf43ea"
}

2022-02-25 08:21:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-25 08:21:43 | [Mutex] waiting for: [received:nodes:639e0afb-c702-4675-9ce0-78d657a3dc63:localhost]

2022-02-25 08:21:43 | [Mutex] waiting for: [received:nodes:639e0afb-c702-4675-9ce0-78d657a3dc63:localhost]

2022-02-25 08:21:43 | [Mutex] received everything.

2022-02-25 08:21:43 | [Mutex] isItemNotified: received:node:639e0afb-c702-4675-9ce0-78d657a3dc63:localhost:node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea:Node 2c3f32e3-90bf-4221-9ccc-16bddacf43ea :: true

deleteNodes 1.026s
2022-02-25 08:21:47 |

2022-02-25 08:21:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:47 | ------------------------------------

2022-02-25 08:21:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea"
}

2022-02-25 08:21:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-25 08:21:48 | [Mutex] waiting for: [received:nodes:42e18857-c3b7-415b-ad5a-90d906d3c340:localhost]

2022-02-25 08:21:48 | [Mutex] received everything.

2022-02-25 08:21:48 | [Mutex] isItemNotified: received:node:42e18857-c3b7-415b-ad5a-90d906d3c340:localhost:node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea:Node 2c3f32e3-90bf-4221-9ccc-16bddacf43ea :: false

deleteSubnodes 1.031s
2022-02-25 08:21:46 |

2022-02-25 08:21:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:46 | ------------------------------------

2022-02-25 08:21:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815"
}

2022-02-25 08:21:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-25 08:21:47 | [Mutex] waiting for: [received:nodes:8bf829a4-73a9-4e16-907e-718047f2f319:localhost]

2022-02-25 08:21:47 | [Mutex] received everything.

2022-02-25 08:21:47 | [Mutex] isItemNotified: received:node:8bf829a4-73a9-4e16-907e-718047f2f319:localhost:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:Node d89bf1e7-21a4-4f9f-a00e-2b313befb815 :: false

2022-02-25 08:21:47 | [Mutex] waiting for: [received:nodes:878258bd-d296-44e2-99e6-2f3a7c483b85:localhost]

2022-02-25 08:21:47 | [Mutex] received everything.

2022-02-25 08:21:47 | [Mutex] isItemNotified: received:node:878258bd-d296-44e2-99e6-2f3a7c483b85:localhost:node-d89bf1e7-21a4-4f9f-a00e-2b313befb815:Node d89bf1e7-21a4-4f9f-a00e-2b313befb815 :: false

publishItemsToNodes 0.057s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

2022-02-25 08:21:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "entry": "<test>item-fb3cef37-50a2-4281-8044-2c82fc2a53e8</test>",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8"
}

2022-02-25 08:21:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8"
}

2022-02-25 08:21:45 | [Mutex] waiting for: [published:item:notifieditem-fb3cef37-50a2-4281-8044-2c82fc2a53e8:admin@test-domain.com]

2022-02-25 08:21:45 | [Mutex] received everything.

2022-02-25 08:21:45 | [Mutex] isItemNotified: published:item:notifieditem-fb3cef37-50a2-4281-8044-2c82fc2a53e8:admin@test-domain.com :: true

retractItemsFromNodes 0.143s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

2022-02-25 08:21:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8"
}

2022-02-25 08:21:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8"
}

2022-02-25 08:21:45 | [Mutex] waiting for: [retracted:item:notifieditem-fb3cef37-50a2-4281-8044-2c82fc2a53e8:admin@test-domain.com]

2022-02-25 08:21:45 | [Mutex] received everything.

2022-02-25 08:21:45 | [Mutex] isItemNotified: retracted:item:notifieditem-fb3cef37-50a2-4281-8044-2c82fc2a53e8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

2022-02-25 08:21:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8"
}

2022-02-25 08:21:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "item-id": "item-fb3cef37-50a2-4281-8044-2c82fc2a53e8",
    "item": [
        "<item id=\"item-fb3cef37-50a2-4281-8044-2c82fc2a53e8\"><test>item-fb3cef37-50a2-4281-8044-2c82fc2a53e8</test></item>"
    ]
}

2022-02-25 08:21:45 | [Mutex] notify: [retrieved:item:item-fb3cef37-50a2-4281-8044-2c82fc2a53e8:payload-matches:true:localhost]

2022-02-25 08:21:45 | [Mutex] received everything.

2022-02-25 08:21:45 | [Mutex] isItemNotified: retrieved:item:item-fb3cef37-50a2-4281-8044-2c82fc2a53e8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

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

2022-02-25 08:21:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2c3f32e3-90bf-4221-9ccc-16bddacf43ea",
        "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

2022-02-25 08:21:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d89bf1e7-21a4-4f9f-a00e-2b313befb815)"
}

2022-02-25 08:21:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-25 08:21:44 |

2022-02-25 08:21:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:44 | ------------------------------------

2022-02-25 08:21:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-25 08:21:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.017s
2022-02-25 08:21:45 |

2022-02-25 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-25 08:21:45 | ------------------------------------

2022-02-25 08:21:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d89bf1e7-21a4-4f9f-a00e-2b313befb815",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-25 08:21:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}