Generated by TestNG with ReportNG at 22:18 PDT on Tuesday 12 July 2022
root@ed1b7dd8a1b3 / 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.892s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-07-12 22:33:14 |

2022-07-12 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:14 | ------------------------------------

2022-07-12 22:33:14 | [Mutex] waiting for: [configured:node:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:node-279b42a3-c213-4291-8c6e-a1a84f0da458]

2022-07-12 22:33:14 | [Mutex] received everything.

2022-07-12 22:33:14 | [Mutex] isItemNotified: configured:node:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:node-279b42a3-c213-4291-8c6e-a1a84f0da458 :: true

2022-07-12 22:33:15 | [Mutex] waiting for: [received:nodes:3ecc3a0c-204f-4d51-a1a1-7fccfd6a5c51:localhost]

2022-07-12 22:33:15 | [Mutex] received everything.

2022-07-12 22:33:15 | [Mutex] isItemNotified: received:node:3ecc3a0c-204f-4d51-a1a1-7fccfd6a5c51:localhost:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2 :: true

2022-07-12 22:33:15 | [Mutex] waiting for: [received:nodes:b3ab120a-31ef-4670-9ce6-ad4dd13974f1:localhost]

2022-07-12 22:33:15 | [Mutex] received everything.

2022-07-12 22:33:15 | [Mutex] isItemNotified: received:node:b3ab120a-31ef-4670-9ce6-ad4dd13974f1:localhost:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2 :: false

createNodes 1.701s
2022-07-12 22:33:11 |

2022-07-12 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:11 | ------------------------------------

2022-07-12 22:33:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "pubsub#title": "Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2"
}

2022-07-12 22:33:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 22:33:13 | [Mutex] waiting for: [received:nodes:8edbcf4d-3e8c-41fb-96f6-2eb096eacba4:localhost]

2022-07-12 22:33:13 | [Mutex] waiting for: [received:nodes:8edbcf4d-3e8c-41fb-96f6-2eb096eacba4:localhost]

2022-07-12 22:33:13 | [Mutex] received everything.

2022-07-12 22:33:13 | [Mutex] isItemNotified: received:node:8edbcf4d-3e8c-41fb-96f6-2eb096eacba4:localhost:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2 :: true

createSubnodes 1.025s
2022-07-12 22:33:13 |

2022-07-12 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:13 | ------------------------------------

2022-07-12 22:33:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-279b42a3-c213-4291-8c6e-a1a84f0da458",
    "pubsub#title": "Node 279b42a3-c213-4291-8c6e-a1a84f0da458"
}

2022-07-12 22:33:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 22:33:14 | [Mutex] waiting for: [received:nodes:be19e881-254a-46c5-a952-4ccfbc92ff48:localhost]

2022-07-12 22:33:14 | [Mutex] waiting for: [received:nodes:be19e881-254a-46c5-a952-4ccfbc92ff48:localhost]

2022-07-12 22:33:14 | [Mutex] waiting for: [received:nodes:be19e881-254a-46c5-a952-4ccfbc92ff48:localhost]

2022-07-12 22:33:14 | [Mutex] received everything.

2022-07-12 22:33:14 | [Mutex] isItemNotified: received:node:be19e881-254a-46c5-a952-4ccfbc92ff48:localhost:node-279b42a3-c213-4291-8c6e-a1a84f0da458:Node 279b42a3-c213-4291-8c6e-a1a84f0da458 :: true

deleteNodes 1.021s
2022-07-12 22:33:19 |

2022-07-12 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:19 | ------------------------------------

2022-07-12 22:33:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-279b42a3-c213-4291-8c6e-a1a84f0da458"
}

2022-07-12 22:33:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 22:33:20 | [Mutex] waiting for: [received:nodes:5d4de748-48ed-46a6-a0a1-54fd788edd60:localhost]

2022-07-12 22:33:20 | [Mutex] received everything.

2022-07-12 22:33:20 | [Mutex] isItemNotified: received:node:5d4de748-48ed-46a6-a0a1-54fd788edd60:localhost:node-279b42a3-c213-4291-8c6e-a1a84f0da458:Node 279b42a3-c213-4291-8c6e-a1a84f0da458 :: false

deleteSubnodes 1.079s
2022-07-12 22:33:18 |

2022-07-12 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:18 | ------------------------------------

2022-07-12 22:33:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2"
}

2022-07-12 22:33:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 22:33:19 | [Mutex] waiting for: [received:nodes:7da2c326-6da4-4f87-b7fa-1a366ef76f0e:localhost]

2022-07-12 22:33:19 | [Mutex] received everything.

2022-07-12 22:33:19 | [Mutex] isItemNotified: received:node:7da2c326-6da4-4f87-b7fa-1a366ef76f0e:localhost:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2 :: false

2022-07-12 22:33:19 | [Mutex] waiting for: [received:nodes:327fd090-4593-444f-87a3-639bc3f5de56:localhost]

2022-07-12 22:33:19 | [Mutex] received everything.

2022-07-12 22:33:19 | [Mutex] isItemNotified: received:node:327fd090-4593-444f-87a3-639bc3f5de56:localhost:node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2:Node fa9230bc-58ed-442a-83ec-7de8f26e7ba2 :: false

publishItemsToNodes 0.055s
2022-07-12 22:33:16 |

2022-07-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:16 | ------------------------------------

2022-07-12 22:33:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "entry": "<test>item-f9e8cf33-e512-475e-8c5f-c41774e1ba96</test>",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96"
}

2022-07-12 22:33:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96"
}

2022-07-12 22:33:16 | [Mutex] waiting for: [published:item:notifieditem-f9e8cf33-e512-475e-8c5f-c41774e1ba96:admin@test-domain.com]

2022-07-12 22:33:16 | [Mutex] received everything.

2022-07-12 22:33:16 | [Mutex] isItemNotified: published:item:notifieditem-f9e8cf33-e512-475e-8c5f-c41774e1ba96:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-07-12 22:33:16 |

2022-07-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:16 | ------------------------------------

2022-07-12 22:33:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96"
}

2022-07-12 22:33:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96"
}

2022-07-12 22:33:17 | [Mutex] waiting for: [retracted:item:notifieditem-f9e8cf33-e512-475e-8c5f-c41774e1ba96:admin@test-domain.com]

2022-07-12 22:33:17 | [Mutex] received everything.

2022-07-12 22:33:17 | [Mutex] isItemNotified: retracted:item:notifieditem-f9e8cf33-e512-475e-8c5f-c41774e1ba96:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2022-07-12 22:33:16 |

2022-07-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:16 | ------------------------------------

2022-07-12 22:33:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96"
}

2022-07-12 22:33:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "item-id": "item-f9e8cf33-e512-475e-8c5f-c41774e1ba96",
    "item": [
        "<item id=\"item-f9e8cf33-e512-475e-8c5f-c41774e1ba96\"><test>item-f9e8cf33-e512-475e-8c5f-c41774e1ba96</test></item>"
    ]
}

2022-07-12 22:33:16 | [Mutex] notify: [retrieved:item:item-f9e8cf33-e512-475e-8c5f-c41774e1ba96:payload-matches:true:localhost]

2022-07-12 22:33:16 | [Mutex] received everything.

2022-07-12 22:33:16 | [Mutex] isItemNotified: retrieved:item:item-f9e8cf33-e512-475e-8c5f-c41774e1ba96:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-12 22:33:16 |

2022-07-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:16 | ------------------------------------

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

2022-07-12 22:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-279b42a3-c213-4291-8c6e-a1a84f0da458",
        "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-12 22:33:16 |

2022-07-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:16 | ------------------------------------

2022-07-12 22:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2)"
}

2022-07-12 22:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-12 22:33:15 |

2022-07-12 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:15 | ------------------------------------

2022-07-12 22:33:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.052s
2022-07-12 22:33:17 |

2022-07-12 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 22:33:17 | ------------------------------------

2022-07-12 22:33:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fa9230bc-58ed-442a-83ec-7de8f26e7ba2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 22:33:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}