Generated by TestNG with ReportNG at 22:19 PDT on Monday 22 August 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.810s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-08-22 22:34:19 |

2022-08-22 22:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 22:34:19 | ------------------------------------

2022-08-22 22:34:19 | [Mutex] waiting for: [configured:node:node-721593a8-7567-429b-842d-e13158144d47:node-471faf69-b740-46a4-be0f-58798d232e00]

2022-08-22 22:34:20 | [Mutex] received everything.

2022-08-22 22:34:20 | [Mutex] isItemNotified: configured:node:node-721593a8-7567-429b-842d-e13158144d47:node-471faf69-b740-46a4-be0f-58798d232e00 :: true

2022-08-22 22:34:21 | [Mutex] waiting for: [received:nodes:22b7367f-e533-4873-a9aa-d957709884a5:localhost]

2022-08-22 22:34:21 | [Mutex] received everything.

2022-08-22 22:34:21 | [Mutex] isItemNotified: received:node:22b7367f-e533-4873-a9aa-d957709884a5:localhost:node-721593a8-7567-429b-842d-e13158144d47:Node 721593a8-7567-429b-842d-e13158144d47 :: true

2022-08-22 22:34:21 | [Mutex] waiting for: [received:nodes:8e59c0d0-699e-418f-97b2-985ba297d8e4:localhost]

2022-08-22 22:34:21 | [Mutex] received everything.

2022-08-22 22:34:21 | [Mutex] isItemNotified: received:node:8e59c0d0-699e-418f-97b2-985ba297d8e4:localhost:node-721593a8-7567-429b-842d-e13158144d47:Node 721593a8-7567-429b-842d-e13158144d47 :: false

createNodes 1.617s
2022-08-22 22:34:17 |

2022-08-22 22:34:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 22:34:17 | ------------------------------------

2022-08-22 22:34:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "pubsub#title": "Node 721593a8-7567-429b-842d-e13158144d47"
}

2022-08-22 22:34:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-22 22:34:18 | [Mutex] waiting for: [received:nodes:d5d2ff16-ffdc-4ead-879c-242163a72d9c:localhost]

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

2022-08-22 22:34:18 | [Mutex] isItemNotified: received:node:d5d2ff16-ffdc-4ead-879c-242163a72d9c:localhost:node-721593a8-7567-429b-842d-e13158144d47:Node 721593a8-7567-429b-842d-e13158144d47 :: true

createSubnodes 1.024s
2022-08-22 22:34:18 |

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

2022-08-22 22:34:18 | ------------------------------------

2022-08-22 22:34:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-471faf69-b740-46a4-be0f-58798d232e00",
    "pubsub#title": "Node 471faf69-b740-46a4-be0f-58798d232e00"
}

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

2022-08-22 22:34:19 | [Mutex] waiting for: [received:nodes:9b5e69be-b22c-492a-b6a7-1feb018b7996:localhost]

2022-08-22 22:34:19 | [Mutex] received everything.

2022-08-22 22:34:19 | [Mutex] isItemNotified: received:node:9b5e69be-b22c-492a-b6a7-1feb018b7996:localhost:node-471faf69-b740-46a4-be0f-58798d232e00:Node 471faf69-b740-46a4-be0f-58798d232e00 :: true

deleteNodes 1.021s
2022-08-22 22:34:24 |

2022-08-22 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 22:34:24 | ------------------------------------

2022-08-22 22:34:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-471faf69-b740-46a4-be0f-58798d232e00"
}

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

2022-08-22 22:34:25 | [Mutex] waiting for: [received:nodes:3a8f7380-6b98-4f2c-ade1-6f8b2bc3dbec:localhost]

2022-08-22 22:34:25 | [Mutex] waiting for: [received:nodes:3a8f7380-6b98-4f2c-ade1-6f8b2bc3dbec:localhost]

2022-08-22 22:34:25 | [Mutex] waiting for: [received:nodes:3a8f7380-6b98-4f2c-ade1-6f8b2bc3dbec:localhost]

2022-08-22 22:34:25 | [Mutex] received everything.

2022-08-22 22:34:25 | [Mutex] isItemNotified: received:node:3a8f7380-6b98-4f2c-ade1-6f8b2bc3dbec:localhost:node-471faf69-b740-46a4-be0f-58798d232e00:Node 471faf69-b740-46a4-be0f-58798d232e00 :: false

deleteSubnodes 1.027s
2022-08-22 22:34:23 |

2022-08-22 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 22:34:23 | ------------------------------------

2022-08-22 22:34:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47"
}

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

2022-08-22 22:34:24 | [Mutex] waiting for: [received:nodes:7eb4c7c4-7f53-4962-aea3-a054c0fb8e7e:localhost]

2022-08-22 22:34:24 | [Mutex] received everything.

2022-08-22 22:34:24 | [Mutex] isItemNotified: received:node:7eb4c7c4-7f53-4962-aea3-a054c0fb8e7e:localhost:node-721593a8-7567-429b-842d-e13158144d47:Node 721593a8-7567-429b-842d-e13158144d47 :: false

2022-08-22 22:34:24 | [Mutex] waiting for: [received:nodes:db6a0b64-1422-44f6-ba64-25251dd1cc0f:localhost]

2022-08-22 22:34:24 | [Mutex] received everything.

2022-08-22 22:34:24 | [Mutex] isItemNotified: received:node:db6a0b64-1422-44f6-ba64-25251dd1cc0f:localhost:node-721593a8-7567-429b-842d-e13158144d47:Node 721593a8-7567-429b-842d-e13158144d47 :: false

publishItemsToNodes 0.045s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

2022-08-22 22:34:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "entry": "<test>item-c6943109-e76a-40a3-bbc9-e301eb65bed3</test>",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3"
}

2022-08-22 22:34:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3"
}

2022-08-22 22:34:22 | [Mutex] waiting for: [published:item:notifieditem-c6943109-e76a-40a3-bbc9-e301eb65bed3:admin@test-domain.com]

2022-08-22 22:34:22 | [Mutex] received everything.

2022-08-22 22:34:22 | [Mutex] isItemNotified: published:item:notifieditem-c6943109-e76a-40a3-bbc9-e301eb65bed3:admin@test-domain.com :: true

retractItemsFromNodes 0.078s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

2022-08-22 22:34:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3"
}

2022-08-22 22:34:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3"
}

2022-08-22 22:34:22 | [Mutex] waiting for: [retracted:item:notifieditem-c6943109-e76a-40a3-bbc9-e301eb65bed3:admin@test-domain.com]

2022-08-22 22:34:22 | [Mutex] received everything.

2022-08-22 22:34:22 | [Mutex] isItemNotified: retracted:item:notifieditem-c6943109-e76a-40a3-bbc9-e301eb65bed3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.102s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

2022-08-22 22:34:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3"
}

2022-08-22 22:34:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "item-id": "item-c6943109-e76a-40a3-bbc9-e301eb65bed3",
    "item": [
        "<item id=\"item-c6943109-e76a-40a3-bbc9-e301eb65bed3\"><test>item-c6943109-e76a-40a3-bbc9-e301eb65bed3</test></item>"
    ]
}

2022-08-22 22:34:22 | [Mutex] notify: [retrieved:item:item-c6943109-e76a-40a3-bbc9-e301eb65bed3:payload-matches:true:localhost]

2022-08-22 22:34:22 | [Mutex] received everything.

2022-08-22 22:34:22 | [Mutex] isItemNotified: retrieved:item:item-c6943109-e76a-40a3-bbc9-e301eb65bed3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

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

2022-08-22 22:34:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-471faf69-b740-46a4-be0f-58798d232e00",
        "test",
        "node-721593a8-7567-429b-842d-e13158144d47"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

2022-08-22 22:34:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-721593a8-7567-429b-842d-e13158144d47)"
}

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

subscribeNodes 1.012s
2022-08-22 22:34:21 |

2022-08-22 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 22:34:21 | ------------------------------------

2022-08-22 22:34:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.061s
2022-08-22 22:34:22 |

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

2022-08-22 22:34:22 | ------------------------------------

2022-08-22 22:34:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-721593a8-7567-429b-842d-e13158144d47",
    "jids": [
        "admin@test-domain.com"
    ]
}

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