Generated by TestNG with ReportNG at 22:53 PDT on Thursday 15 September 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.758s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-09-15 23:07:26 |

2022-09-15 23:07:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:26 | ------------------------------------

2022-09-15 23:07:26 | [Mutex] waiting for: [configured:node:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:node-3b4b25c2-278a-45b2-817a-d243b8978171]

2022-09-15 23:07:26 | [Mutex] received everything.

2022-09-15 23:07:26 | [Mutex] isItemNotified: configured:node:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:node-3b4b25c2-278a-45b2-817a-d243b8978171 :: true

2022-09-15 23:07:27 | [Mutex] waiting for: [received:nodes:30cb3dda-f849-4d76-8b5b-59a2f82ee39c:localhost]

2022-09-15 23:07:27 | [Mutex] received everything.

2022-09-15 23:07:27 | [Mutex] isItemNotified: received:node:30cb3dda-f849-4d76-8b5b-59a2f82ee39c:localhost:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421 :: true

2022-09-15 23:07:27 | [Mutex] waiting for: [received:nodes:bb61584c-dc03-445b-ae5d-0c8891fcd48a:localhost]

2022-09-15 23:07:27 | [Mutex] received everything.

2022-09-15 23:07:27 | [Mutex] isItemNotified: received:node:bb61584c-dc03-445b-ae5d-0c8891fcd48a:localhost:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421 :: false

createNodes 1.599s
2022-09-15 23:07:24 |

2022-09-15 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:24 | ------------------------------------

2022-09-15 23:07:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "pubsub#title": "Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421"
}

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

2022-09-15 23:07:25 | [Mutex] waiting for: [received:nodes:5f933085-26ea-4179-a2b9-bd96e2d9f1c0:localhost]

2022-09-15 23:07:25 | [Mutex] waiting for: [received:nodes:5f933085-26ea-4179-a2b9-bd96e2d9f1c0:localhost]

2022-09-15 23:07:25 | [Mutex] received everything.

2022-09-15 23:07:25 | [Mutex] isItemNotified: received:node:5f933085-26ea-4179-a2b9-bd96e2d9f1c0:localhost:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421 :: true

createSubnodes 1.023s
2022-09-15 23:07:25 |

2022-09-15 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:25 | ------------------------------------

2022-09-15 23:07:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3b4b25c2-278a-45b2-817a-d243b8978171",
    "pubsub#title": "Node 3b4b25c2-278a-45b2-817a-d243b8978171"
}

2022-09-15 23:07:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 23:07:26 | [Mutex] waiting for: [received:nodes:5f8112e4-3983-467f-a179-a81ef982a12d:localhost]

2022-09-15 23:07:26 | [Mutex] received everything.

2022-09-15 23:07:26 | [Mutex] isItemNotified: received:node:5f8112e4-3983-467f-a179-a81ef982a12d:localhost:node-3b4b25c2-278a-45b2-817a-d243b8978171:Node 3b4b25c2-278a-45b2-817a-d243b8978171 :: true

deleteNodes 1.026s
2022-09-15 23:07:31 |

2022-09-15 23:07:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:31 | ------------------------------------

2022-09-15 23:07:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3b4b25c2-278a-45b2-817a-d243b8978171"
}

2022-09-15 23:07:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 23:07:32 | [Mutex] waiting for: [received:nodes:cc88d1bc-8e5b-4551-80e8-fba813e291be:localhost]

2022-09-15 23:07:32 | [Mutex] waiting for: [received:nodes:cc88d1bc-8e5b-4551-80e8-fba813e291be:localhost]

2022-09-15 23:07:32 | [Mutex] waiting for: [received:nodes:cc88d1bc-8e5b-4551-80e8-fba813e291be:localhost]

2022-09-15 23:07:32 | [Mutex] received everything.

2022-09-15 23:07:32 | [Mutex] isItemNotified: received:node:cc88d1bc-8e5b-4551-80e8-fba813e291be:localhost:node-3b4b25c2-278a-45b2-817a-d243b8978171:Node 3b4b25c2-278a-45b2-817a-d243b8978171 :: false

deleteSubnodes 1.029s
2022-09-15 23:07:30 |

2022-09-15 23:07:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:30 | ------------------------------------

2022-09-15 23:07:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421"
}

2022-09-15 23:07:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 23:07:31 | [Mutex] waiting for: [received:nodes:2b71e933-5e82-4040-9983-0c75bd2a4f9f:localhost]

2022-09-15 23:07:31 | [Mutex] waiting for: [received:nodes:2b71e933-5e82-4040-9983-0c75bd2a4f9f:localhost]

2022-09-15 23:07:31 | [Mutex] received everything.

2022-09-15 23:07:31 | [Mutex] isItemNotified: received:node:2b71e933-5e82-4040-9983-0c75bd2a4f9f:localhost:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421 :: false

2022-09-15 23:07:31 | [Mutex] waiting for: [received:nodes:72a898d2-4211-4397-8c1b-21016f50764d:localhost]

2022-09-15 23:07:31 | [Mutex] received everything.

2022-09-15 23:07:31 | [Mutex] isItemNotified: received:node:72a898d2-4211-4397-8c1b-21016f50764d:localhost:node-50b3cb82-b130-4bb0-8ac3-84fce8e04421:Node 50b3cb82-b130-4bb0-8ac3-84fce8e04421 :: false

publishItemsToNodes 0.064s
2022-09-15 23:07:28 |

2022-09-15 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:28 | ------------------------------------

2022-09-15 23:07:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "entry": "<test>item-617b2123-22f2-4986-b43b-7b7e5c3be9e7</test>",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7"
}

2022-09-15 23:07:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7"
}

2022-09-15 23:07:28 | [Mutex] received everything.

2022-09-15 23:07:28 | [Mutex] isItemNotified: published:item:notifieditem-617b2123-22f2-4986-b43b-7b7e5c3be9e7:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-09-15 23:07:29 |

2022-09-15 23:07:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:29 | ------------------------------------

2022-09-15 23:07:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7"
}

2022-09-15 23:07:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7"
}

2022-09-15 23:07:29 | [Mutex] received everything.

2022-09-15 23:07:29 | [Mutex] isItemNotified: retracted:item:notifieditem-617b2123-22f2-4986-b43b-7b7e5c3be9e7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-09-15 23:07:28 |

2022-09-15 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:28 | ------------------------------------

2022-09-15 23:07:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7"
}

2022-09-15 23:07:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "item-id": "item-617b2123-22f2-4986-b43b-7b7e5c3be9e7",
    "item": [
        "<item id=\"item-617b2123-22f2-4986-b43b-7b7e5c3be9e7\"><test>item-617b2123-22f2-4986-b43b-7b7e5c3be9e7</test></item>"
    ]
}

2022-09-15 23:07:28 | [Mutex] notify: [retrieved:item:item-617b2123-22f2-4986-b43b-7b7e5c3be9e7:payload-matches:true:localhost]

2022-09-15 23:07:28 | [Mutex] received everything.

2022-09-15 23:07:28 | [Mutex] isItemNotified: retrieved:item:item-617b2123-22f2-4986-b43b-7b7e5c3be9e7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-09-15 23:07:28 |

2022-09-15 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:28 | ------------------------------------

2022-09-15 23:07:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-15 23:07:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3b4b25c2-278a-45b2-817a-d243b8978171",
        "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-15 23:07:29 |

2022-09-15 23:07:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:29 | ------------------------------------

2022-09-15 23:07:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-50b3cb82-b130-4bb0-8ac3-84fce8e04421)"
}

2022-09-15 23:07:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-09-15 23:07:27 |

2022-09-15 23:07:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:27 | ------------------------------------

2022-09-15 23:07:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-15 23:07:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.084s
2022-09-15 23:07:29 |

2022-09-15 23:07:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:07:29 | ------------------------------------

2022-09-15 23:07:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-50b3cb82-b130-4bb0-8ac3-84fce8e04421",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-15 23:07:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}