Generated by TestNG with ReportNG at 21:28 PST on Sunday 05 December 2021
root@f29ef40080b5 / 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.119s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2021-12-05 21:44:18 |

2021-12-05 21:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:44:18 | ------------------------------------

2021-12-05 21:44:18 | [Mutex] waiting for: [configured:node:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:node-45af734f-d950-45ae-9004-87b76b3b18be]

2021-12-05 21:44:19 | [Mutex] received everything.

2021-12-05 21:44:19 | [Mutex] isItemNotified: configured:node:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:node-45af734f-d950-45ae-9004-87b76b3b18be :: true

2021-12-05 21:44:20 | [Mutex] waiting for: [received:nodes:114a2337-b27a-4219-a989-aa79be876588:localhost]

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

2021-12-05 21:44:20 | [Mutex] isItemNotified: received:node:114a2337-b27a-4219-a989-aa79be876588:localhost:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5 :: true

2021-12-05 21:44:20 | [Mutex] waiting for: [received:nodes:63c15398-aed6-4a24-85b8-fbda17481bd4:localhost]

2021-12-05 21:44:20 | [Mutex] waiting for: [received:nodes:63c15398-aed6-4a24-85b8-fbda17481bd4:localhost]

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

2021-12-05 21:44:20 | [Mutex] isItemNotified: received:node:63c15398-aed6-4a24-85b8-fbda17481bd4:localhost:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5 :: false

createNodes 1.599s
2021-12-05 21:44:16 |

2021-12-05 21:44:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:44:16 | ------------------------------------

2021-12-05 21:44:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "pubsub#title": "Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5"
}

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

2021-12-05 21:44:17 | [Mutex] waiting for: [received:nodes:f9d2536d-1d3c-4a49-bf38-727cfcdbd096:localhost]

2021-12-05 21:44:17 | [Mutex] received everything.

2021-12-05 21:44:17 | [Mutex] isItemNotified: received:node:f9d2536d-1d3c-4a49-bf38-727cfcdbd096:localhost:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5 :: true

createSubnodes 1.029s
2021-12-05 21:44:17 |

2021-12-05 21:44:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:44:17 | ------------------------------------

2021-12-05 21:44:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-45af734f-d950-45ae-9004-87b76b3b18be",
    "pubsub#title": "Node 45af734f-d950-45ae-9004-87b76b3b18be"
}

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

2021-12-05 21:44:18 | [Mutex] waiting for: [received:nodes:b3204c57-3128-4fd2-a6d7-7ee30695e9c9:localhost]

2021-12-05 21:44:18 | [Mutex] received everything.

2021-12-05 21:44:18 | [Mutex] isItemNotified: received:node:b3204c57-3128-4fd2-a6d7-7ee30695e9c9:localhost:node-45af734f-d950-45ae-9004-87b76b3b18be:Node 45af734f-d950-45ae-9004-87b76b3b18be :: true

deleteNodes 1.025s
2021-12-05 21:44:23 |

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

2021-12-05 21:44:23 | ------------------------------------

2021-12-05 21:44:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-45af734f-d950-45ae-9004-87b76b3b18be"
}

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

2021-12-05 21:44:24 | [Mutex] waiting for: [received:nodes:4ac3cb43-5bdb-4196-ba5e-aa0314febce7:localhost]

2021-12-05 21:44:24 | [Mutex] received everything.

2021-12-05 21:44:24 | [Mutex] isItemNotified: received:node:4ac3cb43-5bdb-4196-ba5e-aa0314febce7:localhost:node-45af734f-d950-45ae-9004-87b76b3b18be:Node 45af734f-d950-45ae-9004-87b76b3b18be :: false

deleteSubnodes 1.060s
2021-12-05 21:44:22 |

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

2021-12-05 21:44:22 | ------------------------------------

2021-12-05 21:44:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5"
}

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

2021-12-05 21:44:23 | [Mutex] waiting for: [received:nodes:6a874b30-f46e-418c-a265-32f0ca0f4700:localhost]

2021-12-05 21:44:23 | [Mutex] waiting for: [received:nodes:6a874b30-f46e-418c-a265-32f0ca0f4700:localhost]

2021-12-05 21:44:23 | [Mutex] received everything.

2021-12-05 21:44:23 | [Mutex] isItemNotified: received:node:6a874b30-f46e-418c-a265-32f0ca0f4700:localhost:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5 :: false

2021-12-05 21:44:23 | [Mutex] waiting for: [received:nodes:25e4b9e9-603c-42cb-81aa-61bbf9736b0a:localhost]

2021-12-05 21:44:23 | [Mutex] received everything.

2021-12-05 21:44:23 | [Mutex] isItemNotified: received:node:25e4b9e9-603c-42cb-81aa-61bbf9736b0a:localhost:node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5:Node 3ddb1909-b5e5-4946-9ecb-a3306f9995a5 :: false

publishItemsToNodes 0.048s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

2021-12-05 21:44:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "entry": "<test>item-751805d7-8b82-421d-90b2-73f68e0afe7b</test>",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b"
}

2021-12-05 21:44:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b"
}

2021-12-05 21:44:21 | [Mutex] waiting for: [published:item:notifieditem-751805d7-8b82-421d-90b2-73f68e0afe7b:admin@test-domain.com]

2021-12-05 21:44:21 | [Mutex] received everything.

2021-12-05 21:44:21 | [Mutex] isItemNotified: published:item:notifieditem-751805d7-8b82-421d-90b2-73f68e0afe7b:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

2021-12-05 21:44:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b"
}

2021-12-05 21:44:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b"
}

2021-12-05 21:44:21 | [Mutex] received everything.

2021-12-05 21:44:21 | [Mutex] isItemNotified: retracted:item:notifieditem-751805d7-8b82-421d-90b2-73f68e0afe7b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

2021-12-05 21:44:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b"
}

2021-12-05 21:44:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "item-id": "item-751805d7-8b82-421d-90b2-73f68e0afe7b",
    "item": [
        "<item id=\"item-751805d7-8b82-421d-90b2-73f68e0afe7b\"><test>item-751805d7-8b82-421d-90b2-73f68e0afe7b</test></item>"
    ]
}

2021-12-05 21:44:21 | [Mutex] notify: [retrieved:item:item-751805d7-8b82-421d-90b2-73f68e0afe7b:payload-matches:true:localhost]

2021-12-05 21:44:21 | [Mutex] received everything.

2021-12-05 21:44:21 | [Mutex] isItemNotified: retrieved:item:item-751805d7-8b82-421d-90b2-73f68e0afe7b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

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

2021-12-05 21:44:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
        "node-45af734f-d950-45ae-9004-87b76b3b18be"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

2021-12-05 21:44:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5)"
}

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

subscribeNodes 1.015s
2021-12-05 21:44:20 |

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

2021-12-05 21:44:20 | ------------------------------------

2021-12-05 21:44:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-12-05 21:44:21 |

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

2021-12-05 21:44:21 | ------------------------------------

2021-12-05 21:44:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ddb1909-b5e5-4946-9ecb-a3306f9995a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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