Generated by TestNG with ReportNG at 22:50 PDT on Tuesday 23 August 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.623s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.029s
2022-08-23 23:04:53 |

2022-08-23 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:53 | ------------------------------------

2022-08-23 23:04:53 | [Mutex] waiting for: [configured:node:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:node-d1372edd-da71-4a70-a22f-a102a2b58f1b]

2022-08-23 23:04:53 | [Mutex] received everything.

2022-08-23 23:04:53 | [Mutex] isItemNotified: configured:node:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:node-d1372edd-da71-4a70-a22f-a102a2b58f1b :: true

2022-08-23 23:04:54 | [Mutex] waiting for: [received:nodes:2c44f0f8-f89f-4782-99ec-0f6208c9b4ef:localhost]

2022-08-23 23:04:54 | [Mutex] received everything.

2022-08-23 23:04:54 | [Mutex] isItemNotified: received:node:2c44f0f8-f89f-4782-99ec-0f6208c9b4ef:localhost:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58 :: true

2022-08-23 23:04:54 | [Mutex] waiting for: [received:nodes:6c542f3e-4e1e-4bd7-917f-e23f75f126fa:localhost]

2022-08-23 23:04:54 | [Mutex] received everything.

2022-08-23 23:04:54 | [Mutex] isItemNotified: received:node:6c542f3e-4e1e-4bd7-917f-e23f75f126fa:localhost:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58 :: false

createNodes 1.589s
2022-08-23 23:04:50 |

2022-08-23 23:04:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:50 | ------------------------------------

2022-08-23 23:04:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "pubsub#title": "Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58"
}

2022-08-23 23:04:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:04:52 | [Mutex] waiting for: [received:nodes:0bca4682-7c70-4c27-9d21-e849c9499da0:localhost]

2022-08-23 23:04:52 | [Mutex] received everything.

2022-08-23 23:04:52 | [Mutex] isItemNotified: received:node:0bca4682-7c70-4c27-9d21-e849c9499da0:localhost:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58 :: true

createSubnodes 1.021s
2022-08-23 23:04:52 |

2022-08-23 23:04:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:52 | ------------------------------------

2022-08-23 23:04:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d1372edd-da71-4a70-a22f-a102a2b58f1b",
    "pubsub#title": "Node d1372edd-da71-4a70-a22f-a102a2b58f1b"
}

2022-08-23 23:04:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:04:53 | [Mutex] waiting for: [received:nodes:0842e290-479b-4a21-9422-53c41f7fd5ec:localhost]

2022-08-23 23:04:53 | [Mutex] received everything.

2022-08-23 23:04:53 | [Mutex] isItemNotified: received:node:0842e290-479b-4a21-9422-53c41f7fd5ec:localhost:node-d1372edd-da71-4a70-a22f-a102a2b58f1b:Node d1372edd-da71-4a70-a22f-a102a2b58f1b :: true

deleteNodes 1.024s
2022-08-23 23:04:57 |

2022-08-23 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:57 | ------------------------------------

2022-08-23 23:04:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1372edd-da71-4a70-a22f-a102a2b58f1b"
}

2022-08-23 23:04:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:04:58 | [Mutex] waiting for: [received:nodes:44f28622-fb0d-41bc-86a6-b3094aad406c:localhost]

2022-08-23 23:04:58 | [Mutex] waiting for: [received:nodes:44f28622-fb0d-41bc-86a6-b3094aad406c:localhost]

2022-08-23 23:04:58 | [Mutex] received everything.

2022-08-23 23:04:58 | [Mutex] isItemNotified: received:node:44f28622-fb0d-41bc-86a6-b3094aad406c:localhost:node-d1372edd-da71-4a70-a22f-a102a2b58f1b:Node d1372edd-da71-4a70-a22f-a102a2b58f1b :: false

deleteSubnodes 1.067s
2022-08-23 23:04:56 |

2022-08-23 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:56 | ------------------------------------

2022-08-23 23:04:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58"
}

2022-08-23 23:04:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:04:57 | [Mutex] waiting for: [received:nodes:18a53092-52d3-4f02-bcd5-5b98aaf85cbe:localhost]

2022-08-23 23:04:57 | [Mutex] received everything.

2022-08-23 23:04:57 | [Mutex] isItemNotified: received:node:18a53092-52d3-4f02-bcd5-5b98aaf85cbe:localhost:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58 :: false

2022-08-23 23:04:57 | [Mutex] waiting for: [received:nodes:e0672304-031e-4a7c-b8c5-6b48ef21b5af:localhost]

2022-08-23 23:04:57 | [Mutex] received everything.

2022-08-23 23:04:57 | [Mutex] isItemNotified: received:node:e0672304-031e-4a7c-b8c5-6b48ef21b5af:localhost:node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58:Node d57c9f24-32c9-429a-a497-a8e7f2ff1b58 :: false

publishItemsToNodes 0.058s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

2022-08-23 23:04:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "entry": "<test>item-3ef2ad88-5421-410b-a666-aa6c94ce8892</test>",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892"
}

2022-08-23 23:04:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892"
}

2022-08-23 23:04:55 | [Mutex] waiting for: [published:item:notifieditem-3ef2ad88-5421-410b-a666-aa6c94ce8892:admin@test-domain.com]

2022-08-23 23:04:55 | [Mutex] received everything.

2022-08-23 23:04:55 | [Mutex] isItemNotified: published:item:notifieditem-3ef2ad88-5421-410b-a666-aa6c94ce8892:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

2022-08-23 23:04:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892"
}

2022-08-23 23:04:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892"
}

2022-08-23 23:04:55 | [Mutex] received everything.

2022-08-23 23:04:55 | [Mutex] isItemNotified: retracted:item:notifieditem-3ef2ad88-5421-410b-a666-aa6c94ce8892:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

2022-08-23 23:04:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892"
}

2022-08-23 23:04:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "item-id": "item-3ef2ad88-5421-410b-a666-aa6c94ce8892",
    "item": [
        "<item id=\"item-3ef2ad88-5421-410b-a666-aa6c94ce8892\"><test>item-3ef2ad88-5421-410b-a666-aa6c94ce8892</test></item>"
    ]
}

2022-08-23 23:04:55 | [Mutex] notify: [retrieved:item:item-3ef2ad88-5421-410b-a666-aa6c94ce8892:payload-matches:true:localhost]

2022-08-23 23:04:55 | [Mutex] received everything.

2022-08-23 23:04:55 | [Mutex] isItemNotified: retrieved:item:item-3ef2ad88-5421-410b-a666-aa6c94ce8892:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

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

2022-08-23 23:04:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d1372edd-da71-4a70-a22f-a102a2b58f1b",
        "test",
        "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

2022-08-23 23:04:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58)"
}

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

subscribeNodes 1.009s
2022-08-23 23:04:54 |

2022-08-23 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:54 | ------------------------------------

2022-08-23 23:04:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-08-23 23:04:55 |

2022-08-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:04:55 | ------------------------------------

2022-08-23 23:04:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d57c9f24-32c9-429a-a497-a8e7f2ff1b58",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-23 23:04:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}