Generated by TestNG with ReportNG at 22:46 PDT on Saturday 09 July 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.670s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-07-09 23:00:07 |

2022-07-09 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:07 | ------------------------------------

2022-07-09 23:00:07 | [Mutex] waiting for: [configured:node:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:node-ed701b24-5682-4316-b35c-c0749adfb8da]

2022-07-09 23:00:07 | [Mutex] received everything.

2022-07-09 23:00:07 | [Mutex] isItemNotified: configured:node:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:node-ed701b24-5682-4316-b35c-c0749adfb8da :: true

2022-07-09 23:00:08 | [Mutex] waiting for: [received:nodes:77a8ed2e-1475-4735-87b3-fdaab81654f4:localhost]

2022-07-09 23:00:08 | [Mutex] received everything.

2022-07-09 23:00:08 | [Mutex] isItemNotified: received:node:77a8ed2e-1475-4735-87b3-fdaab81654f4:localhost:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255 :: true

2022-07-09 23:00:08 | [Mutex] waiting for: [received:nodes:93bf610f-f9c8-466b-beca-dfa9c63bf346:localhost]

2022-07-09 23:00:08 | [Mutex] waiting for: [received:nodes:93bf610f-f9c8-466b-beca-dfa9c63bf346:localhost]

2022-07-09 23:00:08 | [Mutex] received everything.

2022-07-09 23:00:08 | [Mutex] isItemNotified: received:node:93bf610f-f9c8-466b-beca-dfa9c63bf346:localhost:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255 :: false

createNodes 1.563s
2022-07-09 23:00:05 |

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

2022-07-09 23:00:05 | ------------------------------------

2022-07-09 23:00:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "pubsub#title": "Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255"
}

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

2022-07-09 23:00:06 | [Mutex] waiting for: [received:nodes:e81af058-9445-480b-ae9a-64a2fecbe682:localhost]

2022-07-09 23:00:06 | [Mutex] received everything.

2022-07-09 23:00:06 | [Mutex] isItemNotified: received:node:e81af058-9445-480b-ae9a-64a2fecbe682:localhost:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255 :: true

createSubnodes 1.021s
2022-07-09 23:00:06 |

2022-07-09 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:06 | ------------------------------------

2022-07-09 23:00:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ed701b24-5682-4316-b35c-c0749adfb8da",
    "pubsub#title": "Node ed701b24-5682-4316-b35c-c0749adfb8da"
}

2022-07-09 23:00:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-09 23:00:07 | [Mutex] waiting for: [received:nodes:f2e06df5-946b-4a3f-aa5d-d2ab66e7881d:localhost]

2022-07-09 23:00:07 | [Mutex] received everything.

2022-07-09 23:00:07 | [Mutex] isItemNotified: received:node:f2e06df5-946b-4a3f-aa5d-d2ab66e7881d:localhost:node-ed701b24-5682-4316-b35c-c0749adfb8da:Node ed701b24-5682-4316-b35c-c0749adfb8da :: true

deleteNodes 1.023s
2022-07-09 23:00:12 |

2022-07-09 23:00:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:12 | ------------------------------------

2022-07-09 23:00:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed701b24-5682-4316-b35c-c0749adfb8da"
}

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

2022-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:91c7592d-6627-4fdb-80ff-384923c8bf6f:localhost]

2022-07-09 23:00:13 | [Mutex] waiting for: [received:nodes:91c7592d-6627-4fdb-80ff-384923c8bf6f:localhost]

2022-07-09 23:00:13 | [Mutex] received everything.

2022-07-09 23:00:13 | [Mutex] isItemNotified: received:node:91c7592d-6627-4fdb-80ff-384923c8bf6f:localhost:node-ed701b24-5682-4316-b35c-c0749adfb8da:Node ed701b24-5682-4316-b35c-c0749adfb8da :: false

deleteSubnodes 1.034s
2022-07-09 23:00:11 |

2022-07-09 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:11 | ------------------------------------

2022-07-09 23:00:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255"
}

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

2022-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:30a02d3e-7012-43da-b308-027bfa5c553d:localhost]

2022-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:30a02d3e-7012-43da-b308-027bfa5c553d:localhost]

2022-07-09 23:00:12 | [Mutex] received everything.

2022-07-09 23:00:12 | [Mutex] isItemNotified: received:node:30a02d3e-7012-43da-b308-027bfa5c553d:localhost:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255 :: false

2022-07-09 23:00:12 | [Mutex] waiting for: [received:nodes:fde13fb6-84d2-43bf-aeea-2ecd75711a7a:localhost]

2022-07-09 23:00:12 | [Mutex] received everything.

2022-07-09 23:00:12 | [Mutex] isItemNotified: received:node:fde13fb6-84d2-43bf-aeea-2ecd75711a7a:localhost:node-4e5a4a39-30bd-4e07-816b-33c3b1f59255:Node 4e5a4a39-30bd-4e07-816b-33c3b1f59255 :: false

publishItemsToNodes 0.041s
2022-07-09 23:00:09 |

2022-07-09 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:09 | ------------------------------------

2022-07-09 23:00:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "entry": "<test>item-e8c27123-5993-4217-91a9-303f1c51fca7</test>",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7"
}

2022-07-09 23:00:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7"
}

2022-07-09 23:00:10 | [Mutex] waiting for: [published:item:notifieditem-e8c27123-5993-4217-91a9-303f1c51fca7:admin@test-domain.com]

2022-07-09 23:00:10 | [Mutex] received everything.

2022-07-09 23:00:10 | [Mutex] isItemNotified: published:item:notifieditem-e8c27123-5993-4217-91a9-303f1c51fca7:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-09 23:00:10 |

2022-07-09 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:10 | ------------------------------------

2022-07-09 23:00:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7"
}

2022-07-09 23:00:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7"
}

2022-07-09 23:00:10 | [Mutex] received everything.

2022-07-09 23:00:10 | [Mutex] isItemNotified: retracted:item:notifieditem-e8c27123-5993-4217-91a9-303f1c51fca7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-07-09 23:00:10 |

2022-07-09 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:10 | ------------------------------------

2022-07-09 23:00:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7"
}

2022-07-09 23:00:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "item-id": "item-e8c27123-5993-4217-91a9-303f1c51fca7",
    "item": [
        "<item id=\"item-e8c27123-5993-4217-91a9-303f1c51fca7\"><test>item-e8c27123-5993-4217-91a9-303f1c51fca7</test></item>"
    ]
}

2022-07-09 23:00:10 | [Mutex] notify: [retrieved:item:item-e8c27123-5993-4217-91a9-303f1c51fca7:payload-matches:true:localhost]

2022-07-09 23:00:10 | [Mutex] received everything.

2022-07-09 23:00:10 | [Mutex] isItemNotified: retrieved:item:item-e8c27123-5993-4217-91a9-303f1c51fca7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.083s
2022-07-09 23:00:10 |

2022-07-09 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:10 | ------------------------------------

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

2022-07-09 23:00:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
        "test",
        "node-ed701b24-5682-4316-b35c-c0749adfb8da"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-09 23:00:10 |

2022-07-09 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:10 | ------------------------------------

2022-07-09 23:00:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4e5a4a39-30bd-4e07-816b-33c3b1f59255)"
}

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

subscribeNodes 1.011s
2022-07-09 23:00:08 |

2022-07-09 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:08 | ------------------------------------

2022-07-09 23:00:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-07-09 23:00:10 |

2022-07-09 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:00:10 | ------------------------------------

2022-07-09 23:00:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4e5a4a39-30bd-4e07-816b-33c3b1f59255",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-09 23:00:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}