Generated by TestNG with ReportNG at 21:59 PST on Wednesday 09 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.234s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.132s
2022-02-09 22:16:20 |

2022-02-09 22:16:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:20 | ------------------------------------

2022-02-09 22:16:20 | [Mutex] waiting for: [configured:node:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:node-b91742ad-f7aa-45cd-8ef7-5add971eee82]

2022-02-09 22:16:20 | [Mutex] received everything.

2022-02-09 22:16:20 | [Mutex] isItemNotified: configured:node:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:node-b91742ad-f7aa-45cd-8ef7-5add971eee82 :: true

2022-02-09 22:16:21 | [Mutex] waiting for: [received:nodes:40cbaae4-8649-4a0b-9341-403beac7107c:localhost]

2022-02-09 22:16:21 | [Mutex] received everything.

2022-02-09 22:16:21 | [Mutex] isItemNotified: received:node:40cbaae4-8649-4a0b-9341-403beac7107c:localhost:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a :: true

2022-02-09 22:16:21 | [Mutex] waiting for: [received:nodes:6ca508e8-6e09-4987-8a6f-62af56e8f6e4:localhost]

2022-02-09 22:16:21 | [Mutex] received everything.

2022-02-09 22:16:21 | [Mutex] isItemNotified: received:node:6ca508e8-6e09-4987-8a6f-62af56e8f6e4:localhost:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a :: false

createNodes 1.647s
2022-02-09 22:16:17 |

2022-02-09 22:16:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:17 | ------------------------------------

2022-02-09 22:16:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "pubsub#title": "Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a"
}

2022-02-09 22:16:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 22:16:19 | [Mutex] waiting for: [received:nodes:ffa8c821-b514-4425-b620-2fef25b40228:localhost]

2022-02-09 22:16:19 | [Mutex] waiting for: [received:nodes:ffa8c821-b514-4425-b620-2fef25b40228:localhost]

2022-02-09 22:16:19 | [Mutex] received everything.

2022-02-09 22:16:19 | [Mutex] isItemNotified: received:node:ffa8c821-b514-4425-b620-2fef25b40228:localhost:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a :: true

createSubnodes 1.043s
2022-02-09 22:16:19 |

2022-02-09 22:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:19 | ------------------------------------

2022-02-09 22:16:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b91742ad-f7aa-45cd-8ef7-5add971eee82",
    "pubsub#title": "Node b91742ad-f7aa-45cd-8ef7-5add971eee82"
}

2022-02-09 22:16:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 22:16:20 | [Mutex] waiting for: [received:nodes:b906d721-a04b-4c0e-8c2d-0149fd6fb53a:localhost]

2022-02-09 22:16:20 | [Mutex] waiting for: [received:nodes:b906d721-a04b-4c0e-8c2d-0149fd6fb53a:localhost]

2022-02-09 22:16:20 | [Mutex] received everything.

2022-02-09 22:16:20 | [Mutex] isItemNotified: received:node:b906d721-a04b-4c0e-8c2d-0149fd6fb53a:localhost:node-b91742ad-f7aa-45cd-8ef7-5add971eee82:Node b91742ad-f7aa-45cd-8ef7-5add971eee82 :: true

deleteNodes 1.037s
2022-02-09 22:16:24 |

2022-02-09 22:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:24 | ------------------------------------

2022-02-09 22:16:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b91742ad-f7aa-45cd-8ef7-5add971eee82"
}

2022-02-09 22:16:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 22:16:25 | [Mutex] waiting for: [received:nodes:df4fcd5e-bd96-46c9-827d-181869d35b49:localhost]

2022-02-09 22:16:25 | [Mutex] received everything.

2022-02-09 22:16:25 | [Mutex] isItemNotified: received:node:df4fcd5e-bd96-46c9-827d-181869d35b49:localhost:node-b91742ad-f7aa-45cd-8ef7-5add971eee82:Node b91742ad-f7aa-45cd-8ef7-5add971eee82 :: false

deleteSubnodes 1.032s
2022-02-09 22:16:23 |

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

2022-02-09 22:16:23 | ------------------------------------

2022-02-09 22:16:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a"
}

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

2022-02-09 22:16:24 | [Mutex] waiting for: [received:nodes:7e8aa0a7-9fe1-4684-a848-b1207b3f09bf:localhost]

2022-02-09 22:16:24 | [Mutex] received everything.

2022-02-09 22:16:24 | [Mutex] isItemNotified: received:node:7e8aa0a7-9fe1-4684-a848-b1207b3f09bf:localhost:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a :: false

2022-02-09 22:16:24 | [Mutex] waiting for: [received:nodes:5950bbd9-111f-4b71-9018-f5adca8c546e:localhost]

2022-02-09 22:16:24 | [Mutex] received everything.

2022-02-09 22:16:24 | [Mutex] isItemNotified: received:node:5950bbd9-111f-4b71-9018-f5adca8c546e:localhost:node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a:Node 692ce5af-b6d1-42f1-9c24-01dab01c2b9a :: false

publishItemsToNodes 0.060s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

2022-02-09 22:16:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "entry": "<test>item-01fd8079-a67d-4f56-9fcb-b586f81e3325</test>",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325"
}

2022-02-09 22:16:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325"
}

2022-02-09 22:16:22 | [Mutex] waiting for: [published:item:notifieditem-01fd8079-a67d-4f56-9fcb-b586f81e3325:admin@test-domain.com]

2022-02-09 22:16:22 | [Mutex] received everything.

2022-02-09 22:16:22 | [Mutex] isItemNotified: published:item:notifieditem-01fd8079-a67d-4f56-9fcb-b586f81e3325:admin@test-domain.com :: true

retractItemsFromNodes 0.119s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

2022-02-09 22:16:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325"
}

2022-02-09 22:16:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325"
}

2022-02-09 22:16:22 | [Mutex] received everything.

2022-02-09 22:16:22 | [Mutex] isItemNotified: retracted:item:notifieditem-01fd8079-a67d-4f56-9fcb-b586f81e3325:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

2022-02-09 22:16:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325"
}

2022-02-09 22:16:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "item-id": "item-01fd8079-a67d-4f56-9fcb-b586f81e3325",
    "item": [
        "<item id=\"item-01fd8079-a67d-4f56-9fcb-b586f81e3325\"><test>item-01fd8079-a67d-4f56-9fcb-b586f81e3325</test></item>"
    ]
}

2022-02-09 22:16:22 | [Mutex] notify: [retrieved:item:item-01fd8079-a67d-4f56-9fcb-b586f81e3325:payload-matches:true:localhost]

2022-02-09 22:16:22 | [Mutex] received everything.

2022-02-09 22:16:22 | [Mutex] isItemNotified: retrieved:item:item-01fd8079-a67d-4f56-9fcb-b586f81e3325:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.090s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

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

2022-02-09 22:16:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b91742ad-f7aa-45cd-8ef7-5add971eee82",
        "test",
        "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

2022-02-09 22:16:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a)"
}

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

subscribeNodes 1.014s
2022-02-09 22:16:21 |

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

2022-02-09 22:16:21 | ------------------------------------

2022-02-09 22:16:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-02-09 22:16:22 |

2022-02-09 22:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 22:16:22 | ------------------------------------

2022-02-09 22:16:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-692ce5af-b6d1-42f1-9c24-01dab01c2b9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-09 22:16:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}