Generated by TestNG with ReportNG at 21:47 PST on Sunday 18 December 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.638s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-12-18 22:02:04 |

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

2022-12-18 22:02:04 | ------------------------------------

2022-12-18 22:02:04 | [Mutex] waiting for: [configured:node:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:node-977193ed-53d5-435f-96f0-2b1c95b1fda9]

2022-12-18 22:02:04 | [Mutex] received everything.

2022-12-18 22:02:04 | [Mutex] isItemNotified: configured:node:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:node-977193ed-53d5-435f-96f0-2b1c95b1fda9 :: true

2022-12-18 22:02:05 | [Mutex] waiting for: [received:nodes:d118f047-3f37-40d2-be76-bd081386b605:localhost]

2022-12-18 22:02:05 | [Mutex] received everything.

2022-12-18 22:02:05 | [Mutex] isItemNotified: received:node:d118f047-3f37-40d2-be76-bd081386b605:localhost:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b :: true

2022-12-18 22:02:05 | [Mutex] waiting for: [received:nodes:f6540a36-718e-452d-a816-817732f1cf10:localhost]

2022-12-18 22:02:05 | [Mutex] waiting for: [received:nodes:f6540a36-718e-452d-a816-817732f1cf10:localhost]

2022-12-18 22:02:05 | [Mutex] waiting for: [received:nodes:f6540a36-718e-452d-a816-817732f1cf10:localhost]

2022-12-18 22:02:05 | [Mutex] waiting for: [received:nodes:f6540a36-718e-452d-a816-817732f1cf10:localhost]

2022-12-18 22:02:05 | [Mutex] received everything.

2022-12-18 22:02:05 | [Mutex] isItemNotified: received:node:f6540a36-718e-452d-a816-817732f1cf10:localhost:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b :: false

createNodes 1.564s
2022-12-18 22:02:01 |

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

2022-12-18 22:02:01 | ------------------------------------

2022-12-18 22:02:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "pubsub#title": "Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b"
}

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

2022-12-18 22:02:02 | [Mutex] waiting for: [received:nodes:deb69e88-4e11-44e4-a6a6-954e2ec7ba22:localhost]

2022-12-18 22:02:02 | [Mutex] waiting for: [received:nodes:deb69e88-4e11-44e4-a6a6-954e2ec7ba22:localhost]

2022-12-18 22:02:02 | [Mutex] waiting for: [received:nodes:deb69e88-4e11-44e4-a6a6-954e2ec7ba22:localhost]

2022-12-18 22:02:02 | [Mutex] waiting for: [received:nodes:deb69e88-4e11-44e4-a6a6-954e2ec7ba22:localhost]

2022-12-18 22:02:02 | [Mutex] received everything.

2022-12-18 22:02:02 | [Mutex] isItemNotified: received:node:deb69e88-4e11-44e4-a6a6-954e2ec7ba22:localhost:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b :: true

createSubnodes 1.022s
2022-12-18 22:02:02 |

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

2022-12-18 22:02:02 | ------------------------------------

2022-12-18 22:02:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-977193ed-53d5-435f-96f0-2b1c95b1fda9",
    "pubsub#title": "Node 977193ed-53d5-435f-96f0-2b1c95b1fda9"
}

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

2022-12-18 22:02:03 | [Mutex] waiting for: [received:nodes:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost]

2022-12-18 22:02:04 | [Mutex] waiting for: [received:nodes:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost]

2022-12-18 22:02:04 | [Mutex] waiting for: [received:nodes:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost]

2022-12-18 22:02:04 | [Mutex] waiting for: [received:nodes:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost]

2022-12-18 22:02:04 | [Mutex] waiting for: [received:nodes:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost]

2022-12-18 22:02:04 | [Mutex] received everything.

2022-12-18 22:02:04 | [Mutex] isItemNotified: received:node:994a9fe6-973e-4024-b8de-7d628afcc53f:localhost:node-977193ed-53d5-435f-96f0-2b1c95b1fda9:Node 977193ed-53d5-435f-96f0-2b1c95b1fda9 :: true

deleteNodes 1.019s
2022-12-18 22:02:08 |

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

2022-12-18 22:02:08 | ------------------------------------

2022-12-18 22:02:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-977193ed-53d5-435f-96f0-2b1c95b1fda9"
}

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

2022-12-18 22:02:09 | [Mutex] waiting for: [received:nodes:458cce1a-7bae-4366-9911-11760bbabac0:localhost]

2022-12-18 22:02:09 | [Mutex] waiting for: [received:nodes:458cce1a-7bae-4366-9911-11760bbabac0:localhost]

2022-12-18 22:02:09 | [Mutex] waiting for: [received:nodes:458cce1a-7bae-4366-9911-11760bbabac0:localhost]

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

2022-12-18 22:02:09 | [Mutex] isItemNotified: received:node:458cce1a-7bae-4366-9911-11760bbabac0:localhost:node-977193ed-53d5-435f-96f0-2b1c95b1fda9:Node 977193ed-53d5-435f-96f0-2b1c95b1fda9 :: false

deleteSubnodes 1.031s
2022-12-18 22:02:07 |

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

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

2022-12-18 22:02:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b"
}

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

2022-12-18 22:02:08 | [Mutex] waiting for: [received:nodes:ea13193b-4455-4dd6-9cc9-259906640593:localhost]

2022-12-18 22:02:08 | [Mutex] waiting for: [received:nodes:ea13193b-4455-4dd6-9cc9-259906640593:localhost]

2022-12-18 22:02:08 | [Mutex] waiting for: [received:nodes:ea13193b-4455-4dd6-9cc9-259906640593:localhost]

2022-12-18 22:02:08 | [Mutex] received everything.

2022-12-18 22:02:08 | [Mutex] isItemNotified: received:node:ea13193b-4455-4dd6-9cc9-259906640593:localhost:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b :: false

2022-12-18 22:02:08 | [Mutex] waiting for: [received:nodes:e22c21e0-bc44-428b-9b01-5e8f910aded6:localhost]

2022-12-18 22:02:08 | [Mutex] received everything.

2022-12-18 22:02:08 | [Mutex] isItemNotified: received:node:e22c21e0-bc44-428b-9b01-5e8f910aded6:localhost:node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b:Node 5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b :: false

publishItemsToNodes 0.101s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

2022-12-18 22:02:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "entry": "<test>item-657c7db3-e273-4641-8087-5992fb826403</test>",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403"
}

2022-12-18 22:02:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403"
}

2022-12-18 22:02:06 | [Mutex] waiting for: [published:item:notifieditem-657c7db3-e273-4641-8087-5992fb826403:admin@test-domain.com]

2022-12-18 22:02:06 | [Mutex] received everything.

2022-12-18 22:02:06 | [Mutex] isItemNotified: published:item:notifieditem-657c7db3-e273-4641-8087-5992fb826403:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

2022-12-18 22:02:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403"
}

2022-12-18 22:02:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403"
}

2022-12-18 22:02:06 | [Mutex] received everything.

2022-12-18 22:02:06 | [Mutex] isItemNotified: retracted:item:notifieditem-657c7db3-e273-4641-8087-5992fb826403:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

2022-12-18 22:02:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403"
}

2022-12-18 22:02:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "item-id": "item-657c7db3-e273-4641-8087-5992fb826403",
    "item": [
        "<item id=\"item-657c7db3-e273-4641-8087-5992fb826403\"><test>item-657c7db3-e273-4641-8087-5992fb826403</test></item>"
    ]
}

2022-12-18 22:02:06 | [Mutex] notify: [retrieved:item:item-657c7db3-e273-4641-8087-5992fb826403:payload-matches:true:localhost]

2022-12-18 22:02:06 | [Mutex] received everything.

2022-12-18 22:02:06 | [Mutex] isItemNotified: retrieved:item:item-657c7db3-e273-4641-8087-5992fb826403:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

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

2022-12-18 22:02:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
        "test",
        "node-977193ed-53d5-435f-96f0-2b1c95b1fda9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

2022-12-18 22:02:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b)"
}

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

subscribeNodes 1.009s
2022-12-18 22:02:05 |

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

2022-12-18 22:02:05 | ------------------------------------

2022-12-18 22:02:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-12-18 22:02:06 |

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

2022-12-18 22:02:06 | ------------------------------------

2022-12-18 22:02:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5e3dc8e5-f72e-4390-be5b-f01a1b9ee90b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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