Generated by TestNG with ReportNG at 22:25 PDT on Wednesday 01 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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 : 8.756s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-06-01 22:40:54 |

2022-06-01 22:40:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:54 | ------------------------------------

2022-06-01 22:40:54 | [Mutex] waiting for: [configured:node:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:node-ddde4131-a549-479d-af65-2a5855b7bbfd]

2022-06-01 22:40:54 | [Mutex] received everything.

2022-06-01 22:40:54 | [Mutex] isItemNotified: configured:node:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:node-ddde4131-a549-479d-af65-2a5855b7bbfd :: true

2022-06-01 22:40:55 | [Mutex] waiting for: [received:nodes:92ebc8f2-8991-4c64-8790-7ef6710b481d:localhost]

2022-06-01 22:40:55 | [Mutex] received everything.

2022-06-01 22:40:55 | [Mutex] isItemNotified: received:node:92ebc8f2-8991-4c64-8790-7ef6710b481d:localhost:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e :: true

2022-06-01 22:40:55 | [Mutex] waiting for: [received:nodes:9e2e85b2-39e0-4428-9098-44c40699238a:localhost]

2022-06-01 22:40:55 | [Mutex] received everything.

2022-06-01 22:40:55 | [Mutex] isItemNotified: received:node:9e2e85b2-39e0-4428-9098-44c40699238a:localhost:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e :: false

createNodes 1.643s
2022-06-01 22:40:52 |

2022-06-01 22:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:52 | ------------------------------------

2022-06-01 22:40:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "pubsub#title": "Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e"
}

2022-06-01 22:40:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:40:53 | [Mutex] waiting for: [received:nodes:50d4b480-caef-4dac-bfc1-67ba693df73e:localhost]

2022-06-01 22:40:53 | [Mutex] received everything.

2022-06-01 22:40:53 | [Mutex] isItemNotified: received:node:50d4b480-caef-4dac-bfc1-67ba693df73e:localhost:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e :: true

createSubnodes 1.030s
2022-06-01 22:40:53 |

2022-06-01 22:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:53 | ------------------------------------

2022-06-01 22:40:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ddde4131-a549-479d-af65-2a5855b7bbfd",
    "pubsub#title": "Node ddde4131-a549-479d-af65-2a5855b7bbfd"
}

2022-06-01 22:40:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:40:54 | [Mutex] waiting for: [received:nodes:9f4dc74a-3af9-4eca-8307-4fbb7b2afeff:localhost]

2022-06-01 22:40:54 | [Mutex] received everything.

2022-06-01 22:40:54 | [Mutex] isItemNotified: received:node:9f4dc74a-3af9-4eca-8307-4fbb7b2afeff:localhost:node-ddde4131-a549-479d-af65-2a5855b7bbfd:Node ddde4131-a549-479d-af65-2a5855b7bbfd :: true

deleteNodes 1.023s
2022-06-01 22:40:59 |

2022-06-01 22:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:59 | ------------------------------------

2022-06-01 22:40:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddde4131-a549-479d-af65-2a5855b7bbfd"
}

2022-06-01 22:40:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:41:00 | [Mutex] waiting for: [received:nodes:5fe089a2-5869-4c31-ab38-3bd8a48f56ac:localhost]

2022-06-01 22:41:00 | [Mutex] waiting for: [received:nodes:5fe089a2-5869-4c31-ab38-3bd8a48f56ac:localhost]

2022-06-01 22:41:00 | [Mutex] received everything.

2022-06-01 22:41:00 | [Mutex] isItemNotified: received:node:5fe089a2-5869-4c31-ab38-3bd8a48f56ac:localhost:node-ddde4131-a549-479d-af65-2a5855b7bbfd:Node ddde4131-a549-479d-af65-2a5855b7bbfd :: false

deleteSubnodes 1.028s
2022-06-01 22:40:58 |

2022-06-01 22:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:58 | ------------------------------------

2022-06-01 22:40:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e"
}

2022-06-01 22:40:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:40:59 | [Mutex] waiting for: [received:nodes:d1a15334-5ed3-4146-a233-1a4e2d5cb4f6:localhost]

2022-06-01 22:40:59 | [Mutex] received everything.

2022-06-01 22:40:59 | [Mutex] isItemNotified: received:node:d1a15334-5ed3-4146-a233-1a4e2d5cb4f6:localhost:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e :: false

2022-06-01 22:40:59 | [Mutex] waiting for: [received:nodes:e648f0fa-946e-4f6a-b26d-2ca252518585:localhost]

2022-06-01 22:40:59 | [Mutex] received everything.

2022-06-01 22:40:59 | [Mutex] isItemNotified: received:node:e648f0fa-946e-4f6a-b26d-2ca252518585:localhost:node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e:Node d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e :: false

publishItemsToNodes 0.041s
2022-06-01 22:40:56 |

2022-06-01 22:40:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:56 | ------------------------------------

2022-06-01 22:40:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "entry": "<test>item-b4aade96-a44a-4122-bbf0-7aaa75d955ad</test>",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad"
}

2022-06-01 22:40:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad"
}

2022-06-01 22:40:57 | [Mutex] waiting for: [published:item:notifieditem-b4aade96-a44a-4122-bbf0-7aaa75d955ad:admin@test-domain.com]

2022-06-01 22:40:57 | [Mutex] received everything.

2022-06-01 22:40:57 | [Mutex] isItemNotified: published:item:notifieditem-b4aade96-a44a-4122-bbf0-7aaa75d955ad:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-06-01 22:40:57 |

2022-06-01 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:57 | ------------------------------------

2022-06-01 22:40:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad"
}

2022-06-01 22:40:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad"
}

2022-06-01 22:40:57 | [Mutex] received everything.

2022-06-01 22:40:57 | [Mutex] isItemNotified: retracted:item:notifieditem-b4aade96-a44a-4122-bbf0-7aaa75d955ad:admin@test-domain.com :: true

retrieveItemsFromNodes 0.098s
2022-06-01 22:40:57 |

2022-06-01 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:57 | ------------------------------------

2022-06-01 22:40:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad"
}

2022-06-01 22:40:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "item-id": "item-b4aade96-a44a-4122-bbf0-7aaa75d955ad",
    "item": [
        "<item id=\"item-b4aade96-a44a-4122-bbf0-7aaa75d955ad\"><test>item-b4aade96-a44a-4122-bbf0-7aaa75d955ad</test></item>"
    ]
}

2022-06-01 22:40:57 | [Mutex] notify: [retrieved:item:item-b4aade96-a44a-4122-bbf0-7aaa75d955ad:payload-matches:true:localhost]

2022-06-01 22:40:57 | [Mutex] received everything.

2022-06-01 22:40:57 | [Mutex] isItemNotified: retrieved:item:item-b4aade96-a44a-4122-bbf0-7aaa75d955ad:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-01 22:40:57 |

2022-06-01 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:57 | ------------------------------------

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

2022-06-01 22:40:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
        "node-ddde4131-a549-479d-af65-2a5855b7bbfd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-01 22:40:57 |

2022-06-01 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:57 | ------------------------------------

2022-06-01 22:40:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e)"
}

2022-06-01 22:40:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-06-01 22:40:55 |

2022-06-01 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:55 | ------------------------------------

2022-06-01 22:40:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-01 22:40:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-06-01 22:40:57 |

2022-06-01 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:40:57 | ------------------------------------

2022-06-01 22:40:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d43f5b6f-f58f-41e9-94c5-265a1d7ffd8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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