Generated by TestNG with ReportNG at 21:17 PST on Wednesday 23 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.280s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-02-23 21:33:25 |

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

2022-02-23 21:33:25 | ------------------------------------

2022-02-23 21:33:25 | [Mutex] waiting for: [configured:node:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:node-21aec203-7d92-4985-8b25-4c22509c3fd5]

2022-02-23 21:33:25 | [Mutex] received everything.

2022-02-23 21:33:25 | [Mutex] isItemNotified: configured:node:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:node-21aec203-7d92-4985-8b25-4c22509c3fd5 :: true

2022-02-23 21:33:26 | [Mutex] waiting for: [received:nodes:b2b12615-786d-4c99-b676-9ac0355b1922:localhost]

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

2022-02-23 21:33:26 | [Mutex] isItemNotified: received:node:b2b12615-786d-4c99-b676-9ac0355b1922:localhost:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e :: true

2022-02-23 21:33:26 | [Mutex] waiting for: [received:nodes:01baa572-ceac-466f-ab1b-23d0ad07bcab:localhost]

2022-02-23 21:33:26 | [Mutex] waiting for: [received:nodes:01baa572-ceac-466f-ab1b-23d0ad07bcab:localhost]

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

2022-02-23 21:33:26 | [Mutex] isItemNotified: received:node:01baa572-ceac-466f-ab1b-23d0ad07bcab:localhost:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e :: false

createNodes 1.729s
2022-02-23 21:33:22 |

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

2022-02-23 21:33:22 | ------------------------------------

2022-02-23 21:33:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "pubsub#title": "Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e"
}

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

2022-02-23 21:33:24 | [Mutex] waiting for: [received:nodes:fdee8f05-3335-464c-ab0f-3b1eebd63e4d:localhost]

2022-02-23 21:33:24 | [Mutex] waiting for: [received:nodes:fdee8f05-3335-464c-ab0f-3b1eebd63e4d:localhost]

2022-02-23 21:33:24 | [Mutex] received everything.

2022-02-23 21:33:24 | [Mutex] isItemNotified: received:node:fdee8f05-3335-464c-ab0f-3b1eebd63e4d:localhost:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e :: true

createSubnodes 1.029s
2022-02-23 21:33:24 |

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

2022-02-23 21:33:24 | ------------------------------------

2022-02-23 21:33:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-21aec203-7d92-4985-8b25-4c22509c3fd5",
    "pubsub#title": "Node 21aec203-7d92-4985-8b25-4c22509c3fd5"
}

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

2022-02-23 21:33:25 | [Mutex] waiting for: [received:nodes:0ba5fadd-d635-48a9-85e3-4fedbf8fe984:localhost]

2022-02-23 21:33:25 | [Mutex] waiting for: [received:nodes:0ba5fadd-d635-48a9-85e3-4fedbf8fe984:localhost]

2022-02-23 21:33:25 | [Mutex] received everything.

2022-02-23 21:33:25 | [Mutex] isItemNotified: received:node:0ba5fadd-d635-48a9-85e3-4fedbf8fe984:localhost:node-21aec203-7d92-4985-8b25-4c22509c3fd5:Node 21aec203-7d92-4985-8b25-4c22509c3fd5 :: true

deleteNodes 1.071s
2022-02-23 21:33:29 |

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

2022-02-23 21:33:29 | ------------------------------------

2022-02-23 21:33:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-21aec203-7d92-4985-8b25-4c22509c3fd5"
}

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

2022-02-23 21:33:30 | [Mutex] waiting for: [received:nodes:b4d3d916-2349-4a75-8974-a86fc94c038c:localhost]

2022-02-23 21:33:30 | [Mutex] received everything.

2022-02-23 21:33:30 | [Mutex] isItemNotified: received:node:b4d3d916-2349-4a75-8974-a86fc94c038c:localhost:node-21aec203-7d92-4985-8b25-4c22509c3fd5:Node 21aec203-7d92-4985-8b25-4c22509c3fd5 :: false

deleteSubnodes 1.030s
2022-02-23 21:33:28 |

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

2022-02-23 21:33:28 | ------------------------------------

2022-02-23 21:33:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e"
}

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

2022-02-23 21:33:29 | [Mutex] waiting for: [received:nodes:007da56c-bd1e-4508-a8a2-20e066b31416:localhost]

2022-02-23 21:33:29 | [Mutex] received everything.

2022-02-23 21:33:29 | [Mutex] isItemNotified: received:node:007da56c-bd1e-4508-a8a2-20e066b31416:localhost:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e :: false

2022-02-23 21:33:29 | [Mutex] waiting for: [received:nodes:f211cd03-e583-460f-82ae-9290fb88ae35:localhost]

2022-02-23 21:33:29 | [Mutex] received everything.

2022-02-23 21:33:29 | [Mutex] isItemNotified: received:node:f211cd03-e583-460f-82ae-9290fb88ae35:localhost:node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e:Node c8c39eda-9f7b-4f90-a7a6-d17679beb04e :: false

publishItemsToNodes 0.049s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

2022-02-23 21:33:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "entry": "<test>item-2ac3776d-a43f-4ca2-a2a0-a5538e930449</test>",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449"
}

2022-02-23 21:33:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449"
}

2022-02-23 21:33:27 | [Mutex] waiting for: [published:item:notifieditem-2ac3776d-a43f-4ca2-a2a0-a5538e930449:admin@test-domain.com]

2022-02-23 21:33:27 | [Mutex] received everything.

2022-02-23 21:33:27 | [Mutex] isItemNotified: published:item:notifieditem-2ac3776d-a43f-4ca2-a2a0-a5538e930449:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

2022-02-23 21:33:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449"
}

2022-02-23 21:33:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449"
}

2022-02-23 21:33:27 | [Mutex] waiting for: [retracted:item:notifieditem-2ac3776d-a43f-4ca2-a2a0-a5538e930449:admin@test-domain.com]

2022-02-23 21:33:27 | [Mutex] received everything.

2022-02-23 21:33:27 | [Mutex] isItemNotified: retracted:item:notifieditem-2ac3776d-a43f-4ca2-a2a0-a5538e930449:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

2022-02-23 21:33:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449"
}

2022-02-23 21:33:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "item-id": "item-2ac3776d-a43f-4ca2-a2a0-a5538e930449",
    "item": [
        "<item id=\"item-2ac3776d-a43f-4ca2-a2a0-a5538e930449\"><test>item-2ac3776d-a43f-4ca2-a2a0-a5538e930449</test></item>"
    ]
}

2022-02-23 21:33:27 | [Mutex] notify: [retrieved:item:item-2ac3776d-a43f-4ca2-a2a0-a5538e930449:payload-matches:true:localhost]

2022-02-23 21:33:27 | [Mutex] received everything.

2022-02-23 21:33:27 | [Mutex] isItemNotified: retrieved:item:item-2ac3776d-a43f-4ca2-a2a0-a5538e930449:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

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

2022-02-23 21:33:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
        "node-21aec203-7d92-4985-8b25-4c22509c3fd5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

2022-02-23 21:33:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e)"
}

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

subscribeNodes 1.011s
2022-02-23 21:33:26 |

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

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

2022-02-23 21:33:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-02-23 21:33:27 |

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

2022-02-23 21:33:27 | ------------------------------------

2022-02-23 21:33:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c8c39eda-9f7b-4f90-a7a6-d17679beb04e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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