Generated by TestNG with ReportNG at 22:17 PDT on Tuesday 05 July 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.578s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2022-07-05 22:32:58 |

2022-07-05 22:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:58 | ------------------------------------

2022-07-05 22:32:58 | [Mutex] waiting for: [configured:node:node-a353492b-5654-41b6-b2c9-ae6142235231:node-0bd7d494-bafa-4667-ac44-15016e8edf8d]

2022-07-05 22:32:58 | [Mutex] received everything.

2022-07-05 22:32:58 | [Mutex] isItemNotified: configured:node:node-a353492b-5654-41b6-b2c9-ae6142235231:node-0bd7d494-bafa-4667-ac44-15016e8edf8d :: true

2022-07-05 22:32:59 | [Mutex] waiting for: [received:nodes:65b4200d-538d-41fd-ad6d-1c8ca37b7825:localhost]

2022-07-05 22:32:59 | [Mutex] received everything.

2022-07-05 22:32:59 | [Mutex] isItemNotified: received:node:65b4200d-538d-41fd-ad6d-1c8ca37b7825:localhost:node-a353492b-5654-41b6-b2c9-ae6142235231:Node a353492b-5654-41b6-b2c9-ae6142235231 :: true

2022-07-05 22:32:59 | [Mutex] waiting for: [received:nodes:fb8b034d-711f-4c8b-a13b-28b1a66e8af5:localhost]

2022-07-05 22:32:59 | [Mutex] received everything.

2022-07-05 22:32:59 | [Mutex] isItemNotified: received:node:fb8b034d-711f-4c8b-a13b-28b1a66e8af5:localhost:node-a353492b-5654-41b6-b2c9-ae6142235231:Node a353492b-5654-41b6-b2c9-ae6142235231 :: false

createNodes 1.543s
2022-07-05 22:32:56 |

2022-07-05 22:32:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:56 | ------------------------------------

2022-07-05 22:32:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "pubsub#title": "Node a353492b-5654-41b6-b2c9-ae6142235231"
}

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

2022-07-05 22:32:57 | [Mutex] waiting for: [received:nodes:3aa4dd10-6690-45c4-9739-aa656cd46216:localhost]

2022-07-05 22:32:57 | [Mutex] waiting for: [received:nodes:3aa4dd10-6690-45c4-9739-aa656cd46216:localhost]

2022-07-05 22:32:57 | [Mutex] received everything.

2022-07-05 22:32:57 | [Mutex] isItemNotified: received:node:3aa4dd10-6690-45c4-9739-aa656cd46216:localhost:node-a353492b-5654-41b6-b2c9-ae6142235231:Node a353492b-5654-41b6-b2c9-ae6142235231 :: true

createSubnodes 1.028s
2022-07-05 22:32:57 |

2022-07-05 22:32:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:57 | ------------------------------------

2022-07-05 22:32:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0bd7d494-bafa-4667-ac44-15016e8edf8d",
    "pubsub#title": "Node 0bd7d494-bafa-4667-ac44-15016e8edf8d"
}

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

2022-07-05 22:32:58 | [Mutex] waiting for: [received:nodes:435a1be0-dc4e-40da-85f4-18d89ff74d02:localhost]

2022-07-05 22:32:58 | [Mutex] received everything.

2022-07-05 22:32:58 | [Mutex] isItemNotified: received:node:435a1be0-dc4e-40da-85f4-18d89ff74d02:localhost:node-0bd7d494-bafa-4667-ac44-15016e8edf8d:Node 0bd7d494-bafa-4667-ac44-15016e8edf8d :: true

deleteNodes 1.030s
2022-07-05 22:33:03 |

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

2022-07-05 22:33:03 | ------------------------------------

2022-07-05 22:33:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0bd7d494-bafa-4667-ac44-15016e8edf8d"
}

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

2022-07-05 22:33:04 | [Mutex] waiting for: [received:nodes:a3d11b71-4ea9-4368-8ed1-5396e796e761:localhost]

2022-07-05 22:33:04 | [Mutex] received everything.

2022-07-05 22:33:04 | [Mutex] isItemNotified: received:node:a3d11b71-4ea9-4368-8ed1-5396e796e761:localhost:node-0bd7d494-bafa-4667-ac44-15016e8edf8d:Node 0bd7d494-bafa-4667-ac44-15016e8edf8d :: false

deleteSubnodes 1.024s
2022-07-05 22:33:02 |

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

2022-07-05 22:33:02 | ------------------------------------

2022-07-05 22:33:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231"
}

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

2022-07-05 22:33:03 | [Mutex] waiting for: [received:nodes:eebeabd7-55c6-4095-a920-9b6e54673f0e:localhost]

2022-07-05 22:33:03 | [Mutex] waiting for: [received:nodes:eebeabd7-55c6-4095-a920-9b6e54673f0e:localhost]

2022-07-05 22:33:03 | [Mutex] waiting for: [received:nodes:eebeabd7-55c6-4095-a920-9b6e54673f0e:localhost]

2022-07-05 22:33:03 | [Mutex] received everything.

2022-07-05 22:33:03 | [Mutex] isItemNotified: received:node:eebeabd7-55c6-4095-a920-9b6e54673f0e:localhost:node-a353492b-5654-41b6-b2c9-ae6142235231:Node a353492b-5654-41b6-b2c9-ae6142235231 :: false

2022-07-05 22:33:03 | [Mutex] waiting for: [received:nodes:58dc4af8-5c4a-414d-b65e-74ee638e2f43:localhost]

2022-07-05 22:33:03 | [Mutex] received everything.

2022-07-05 22:33:03 | [Mutex] isItemNotified: received:node:58dc4af8-5c4a-414d-b65e-74ee638e2f43:localhost:node-a353492b-5654-41b6-b2c9-ae6142235231:Node a353492b-5654-41b6-b2c9-ae6142235231 :: false

publishItemsToNodes 0.051s
2022-07-05 22:33:00 |

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

2022-07-05 22:33:00 | ------------------------------------

2022-07-05 22:33:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "entry": "<test>item-042f3f24-720c-47ed-ac03-b61ccf6c9886</test>",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886"
}

2022-07-05 22:33:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886"
}

2022-07-05 22:33:00 | [Mutex] waiting for: [published:item:notifieditem-042f3f24-720c-47ed-ac03-b61ccf6c9886:admin@test-domain.com]

2022-07-05 22:33:00 | [Mutex] received everything.

2022-07-05 22:33:00 | [Mutex] isItemNotified: published:item:notifieditem-042f3f24-720c-47ed-ac03-b61ccf6c9886:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-07-05 22:33:00 |

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

2022-07-05 22:33:00 | ------------------------------------

2022-07-05 22:33:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886"
}

2022-07-05 22:33:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886"
}

2022-07-05 22:33:01 | [Mutex] received everything.

2022-07-05 22:33:01 | [Mutex] isItemNotified: retracted:item:notifieditem-042f3f24-720c-47ed-ac03-b61ccf6c9886:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2022-07-05 22:33:00 |

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

2022-07-05 22:33:00 | ------------------------------------

2022-07-05 22:33:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886"
}

2022-07-05 22:33:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "item-id": "item-042f3f24-720c-47ed-ac03-b61ccf6c9886",
    "item": [
        "<item id=\"item-042f3f24-720c-47ed-ac03-b61ccf6c9886\"><test>item-042f3f24-720c-47ed-ac03-b61ccf6c9886</test></item>"
    ]
}

2022-07-05 22:33:00 | [Mutex] notify: [retrieved:item:item-042f3f24-720c-47ed-ac03-b61ccf6c9886:payload-matches:true:localhost]

2022-07-05 22:33:00 | [Mutex] received everything.

2022-07-05 22:33:00 | [Mutex] isItemNotified: retrieved:item:item-042f3f24-720c-47ed-ac03-b61ccf6c9886:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-07-05 22:33:00 |

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

2022-07-05 22:33:00 | ------------------------------------

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

2022-07-05 22:33:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a353492b-5654-41b6-b2c9-ae6142235231",
        "node-0bd7d494-bafa-4667-ac44-15016e8edf8d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-05 22:33:00 |

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

2022-07-05 22:33:00 | ------------------------------------

2022-07-05 22:33:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a353492b-5654-41b6-b2c9-ae6142235231)"
}

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

subscribeNodes 1.012s
2022-07-05 22:32:59 |

2022-07-05 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:59 | ------------------------------------

2022-07-05 22:32:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.047s
2022-07-05 22:33:01 |

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

2022-07-05 22:33:01 | ------------------------------------

2022-07-05 22:33:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a353492b-5654-41b6-b2c9-ae6142235231",
    "jids": [
        "admin@test-domain.com"
    ]
}

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