Generated by TestNG with ReportNG at 22:56 PDT on Wednesday 07 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.639s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2022-09-07 23:11:07 |

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

2022-09-07 23:11:07 | ------------------------------------

2022-09-07 23:11:07 | [Mutex] waiting for: [configured:node:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:node-3c0f2e58-4059-43d8-a2dc-34d319a6283a]

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

2022-09-07 23:11:07 | [Mutex] isItemNotified: configured:node:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:node-3c0f2e58-4059-43d8-a2dc-34d319a6283a :: true

2022-09-07 23:11:08 | [Mutex] waiting for: [received:nodes:9afc4d1a-ec2e-457c-aee8-b442e914601f:localhost]

2022-09-07 23:11:08 | [Mutex] received everything.

2022-09-07 23:11:08 | [Mutex] isItemNotified: received:node:9afc4d1a-ec2e-457c-aee8-b442e914601f:localhost:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:Node f80b869c-54e7-45f7-9dc7-016f07dff6a4 :: true

2022-09-07 23:11:08 | [Mutex] waiting for: [received:nodes:925620be-1189-4acd-a693-a046e76e4012:localhost]

2022-09-07 23:11:08 | [Mutex] received everything.

2022-09-07 23:11:08 | [Mutex] isItemNotified: received:node:925620be-1189-4acd-a693-a046e76e4012:localhost:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:Node f80b869c-54e7-45f7-9dc7-016f07dff6a4 :: false

createNodes 1.609s
2022-09-07 23:11:04 |

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

2022-09-07 23:11:04 | ------------------------------------

2022-09-07 23:11:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "pubsub#title": "Node f80b869c-54e7-45f7-9dc7-016f07dff6a4"
}

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

2022-09-07 23:11:06 | [Mutex] waiting for: [received:nodes:9451ee85-e444-4703-88ee-6498c6f851b3:localhost]

2022-09-07 23:11:06 | [Mutex] received everything.

2022-09-07 23:11:06 | [Mutex] isItemNotified: received:node:9451ee85-e444-4703-88ee-6498c6f851b3:localhost:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:Node f80b869c-54e7-45f7-9dc7-016f07dff6a4 :: true

createSubnodes 1.020s
2022-09-07 23:11:06 |

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

2022-09-07 23:11:06 | ------------------------------------

2022-09-07 23:11:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3c0f2e58-4059-43d8-a2dc-34d319a6283a",
    "pubsub#title": "Node 3c0f2e58-4059-43d8-a2dc-34d319a6283a"
}

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

2022-09-07 23:11:07 | [Mutex] waiting for: [received:nodes:cc3a82dd-98c5-42b6-91f8-c0cabab1bb9a:localhost]

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

2022-09-07 23:11:07 | [Mutex] isItemNotified: received:node:cc3a82dd-98c5-42b6-91f8-c0cabab1bb9a:localhost:node-3c0f2e58-4059-43d8-a2dc-34d319a6283a:Node 3c0f2e58-4059-43d8-a2dc-34d319a6283a :: true

deleteNodes 1.018s
2022-09-07 23:11:11 |

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

2022-09-07 23:11:11 | ------------------------------------

2022-09-07 23:11:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c0f2e58-4059-43d8-a2dc-34d319a6283a"
}

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

2022-09-07 23:11:12 | [Mutex] waiting for: [received:nodes:cb4a826a-d1dd-45e9-bc43-2d626c9ade48:localhost]

2022-09-07 23:11:12 | [Mutex] waiting for: [received:nodes:cb4a826a-d1dd-45e9-bc43-2d626c9ade48:localhost]

2022-09-07 23:11:12 | [Mutex] received everything.

2022-09-07 23:11:12 | [Mutex] isItemNotified: received:node:cb4a826a-d1dd-45e9-bc43-2d626c9ade48:localhost:node-3c0f2e58-4059-43d8-a2dc-34d319a6283a:Node 3c0f2e58-4059-43d8-a2dc-34d319a6283a :: false

deleteSubnodes 1.026s
2022-09-07 23:11:10 |

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

2022-09-07 23:11:10 | ------------------------------------

2022-09-07 23:11:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4"
}

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

2022-09-07 23:11:11 | [Mutex] waiting for: [received:nodes:3dec1ae5-84f5-4ad5-ab8f-9c99018e5fc2:localhost]

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

2022-09-07 23:11:11 | [Mutex] isItemNotified: received:node:3dec1ae5-84f5-4ad5-ab8f-9c99018e5fc2:localhost:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:Node f80b869c-54e7-45f7-9dc7-016f07dff6a4 :: false

2022-09-07 23:11:11 | [Mutex] waiting for: [received:nodes:142d3c28-adc9-4f50-bcf1-72b0cf3e6190:localhost]

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

2022-09-07 23:11:11 | [Mutex] isItemNotified: received:node:142d3c28-adc9-4f50-bcf1-72b0cf3e6190:localhost:node-f80b869c-54e7-45f7-9dc7-016f07dff6a4:Node f80b869c-54e7-45f7-9dc7-016f07dff6a4 :: false

publishItemsToNodes 0.043s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

2022-09-07 23:11:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "entry": "<test>item-a434b022-1bda-4d2d-bdb8-d836a0e455fc</test>",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc"
}

2022-09-07 23:11:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc"
}

2022-09-07 23:11:09 | [Mutex] waiting for: [published:item:notifieditem-a434b022-1bda-4d2d-bdb8-d836a0e455fc:admin@test-domain.com]

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

2022-09-07 23:11:09 | [Mutex] isItemNotified: published:item:notifieditem-a434b022-1bda-4d2d-bdb8-d836a0e455fc:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

2022-09-07 23:11:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc"
}

2022-09-07 23:11:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc"
}

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

2022-09-07 23:11:09 | [Mutex] isItemNotified: retracted:item:notifieditem-a434b022-1bda-4d2d-bdb8-d836a0e455fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

2022-09-07 23:11:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc"
}

2022-09-07 23:11:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "item-id": "item-a434b022-1bda-4d2d-bdb8-d836a0e455fc",
    "item": [
        "<item id=\"item-a434b022-1bda-4d2d-bdb8-d836a0e455fc\"><test>item-a434b022-1bda-4d2d-bdb8-d836a0e455fc</test></item>"
    ]
}

2022-09-07 23:11:09 | [Mutex] notify: [retrieved:item:item-a434b022-1bda-4d2d-bdb8-d836a0e455fc:payload-matches:true:localhost]

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

2022-09-07 23:11:09 | [Mutex] isItemNotified: retrieved:item:item-a434b022-1bda-4d2d-bdb8-d836a0e455fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

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

2022-09-07 23:11:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
        "node-3c0f2e58-4059-43d8-a2dc-34d319a6283a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

2022-09-07 23:11:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f80b869c-54e7-45f7-9dc7-016f07dff6a4)"
}

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

subscribeNodes 1.008s
2022-09-07 23:11:08 |

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

2022-09-07 23:11:08 | ------------------------------------

2022-09-07 23:11:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-09-07 23:11:09 |

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

2022-09-07 23:11:09 | ------------------------------------

2022-09-07 23:11:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f80b869c-54e7-45f7-9dc7-016f07dff6a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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