Generated by TestNG with ReportNG at 22:48 PDT on Sunday 28 August 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.656s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-08-28 23:03:10 |

2022-08-28 23:03:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:10 | ------------------------------------

2022-08-28 23:03:10 | [Mutex] waiting for: [configured:node:node-3a480cb3-d1f0-4558-868c-70fe468467c2:node-2e1ed547-b94a-4465-a41d-049142415902]

2022-08-28 23:03:10 | [Mutex] received everything.

2022-08-28 23:03:10 | [Mutex] isItemNotified: configured:node:node-3a480cb3-d1f0-4558-868c-70fe468467c2:node-2e1ed547-b94a-4465-a41d-049142415902 :: true

2022-08-28 23:03:11 | [Mutex] waiting for: [received:nodes:4040e394-c31c-49a0-adda-2b1762c99d61:localhost]

2022-08-28 23:03:11 | [Mutex] received everything.

2022-08-28 23:03:11 | [Mutex] isItemNotified: received:node:4040e394-c31c-49a0-adda-2b1762c99d61:localhost:node-3a480cb3-d1f0-4558-868c-70fe468467c2:Node 3a480cb3-d1f0-4558-868c-70fe468467c2 :: true

2022-08-28 23:03:11 | [Mutex] waiting for: [received:nodes:61c3483d-e4f2-4a49-9817-2fb7fd02ee16:localhost]

2022-08-28 23:03:11 | [Mutex] received everything.

2022-08-28 23:03:11 | [Mutex] isItemNotified: received:node:61c3483d-e4f2-4a49-9817-2fb7fd02ee16:localhost:node-3a480cb3-d1f0-4558-868c-70fe468467c2:Node 3a480cb3-d1f0-4558-868c-70fe468467c2 :: false

createNodes 1.571s
2022-08-28 23:03:07 |

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

2022-08-28 23:03:07 | ------------------------------------

2022-08-28 23:03:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "pubsub#title": "Node 3a480cb3-d1f0-4558-868c-70fe468467c2"
}

2022-08-28 23:03:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-28 23:03:09 | [Mutex] waiting for: [received:nodes:d0ec8e74-77dd-4f5b-9040-ae6f2c08fde0:localhost]

2022-08-28 23:03:09 | [Mutex] received everything.

2022-08-28 23:03:09 | [Mutex] isItemNotified: received:node:d0ec8e74-77dd-4f5b-9040-ae6f2c08fde0:localhost:node-3a480cb3-d1f0-4558-868c-70fe468467c2:Node 3a480cb3-d1f0-4558-868c-70fe468467c2 :: true

createSubnodes 1.024s
2022-08-28 23:03:09 |

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

2022-08-28 23:03:09 | ------------------------------------

2022-08-28 23:03:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2e1ed547-b94a-4465-a41d-049142415902",
    "pubsub#title": "Node 2e1ed547-b94a-4465-a41d-049142415902"
}

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

2022-08-28 23:03:10 | [Mutex] waiting for: [received:nodes:d5bcec4f-7206-4b36-9199-f6cdd418b25f:localhost]

2022-08-28 23:03:10 | [Mutex] received everything.

2022-08-28 23:03:10 | [Mutex] isItemNotified: received:node:d5bcec4f-7206-4b36-9199-f6cdd418b25f:localhost:node-2e1ed547-b94a-4465-a41d-049142415902:Node 2e1ed547-b94a-4465-a41d-049142415902 :: true

deleteNodes 1.020s
2022-08-28 23:03:14 |

2022-08-28 23:03:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:14 | ------------------------------------

2022-08-28 23:03:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e1ed547-b94a-4465-a41d-049142415902"
}

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

2022-08-28 23:03:15 | [Mutex] waiting for: [received:nodes:6feb3c76-6781-4d76-b5ec-5b23e6c5c5ef:localhost]

2022-08-28 23:03:15 | [Mutex] waiting for: [received:nodes:6feb3c76-6781-4d76-b5ec-5b23e6c5c5ef:localhost]

2022-08-28 23:03:15 | [Mutex] received everything.

2022-08-28 23:03:15 | [Mutex] isItemNotified: received:node:6feb3c76-6781-4d76-b5ec-5b23e6c5c5ef:localhost:node-2e1ed547-b94a-4465-a41d-049142415902:Node 2e1ed547-b94a-4465-a41d-049142415902 :: false

deleteSubnodes 1.035s
2022-08-28 23:03:13 |

2022-08-28 23:03:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:13 | ------------------------------------

2022-08-28 23:03:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2"
}

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

2022-08-28 23:03:14 | [Mutex] waiting for: [received:nodes:000d5aca-5cc5-4c4c-8fb6-f6d33ec15723:localhost]

2022-08-28 23:03:14 | [Mutex] received everything.

2022-08-28 23:03:14 | [Mutex] isItemNotified: received:node:000d5aca-5cc5-4c4c-8fb6-f6d33ec15723:localhost:node-3a480cb3-d1f0-4558-868c-70fe468467c2:Node 3a480cb3-d1f0-4558-868c-70fe468467c2 :: false

2022-08-28 23:03:14 | [Mutex] waiting for: [received:nodes:6e9213db-bd00-4111-9556-80e51f5d8c00:localhost]

2022-08-28 23:03:14 | [Mutex] received everything.

2022-08-28 23:03:14 | [Mutex] isItemNotified: received:node:6e9213db-bd00-4111-9556-80e51f5d8c00:localhost:node-3a480cb3-d1f0-4558-868c-70fe468467c2:Node 3a480cb3-d1f0-4558-868c-70fe468467c2 :: false

publishItemsToNodes 0.035s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

2022-08-28 23:03:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "entry": "<test>item-172273ad-4b3e-4a26-9e84-c32e6e17bb36</test>",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36"
}

2022-08-28 23:03:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36"
}

2022-08-28 23:03:12 | [Mutex] waiting for: [published:item:notifieditem-172273ad-4b3e-4a26-9e84-c32e6e17bb36:admin@test-domain.com]

2022-08-28 23:03:12 | [Mutex] received everything.

2022-08-28 23:03:12 | [Mutex] isItemNotified: published:item:notifieditem-172273ad-4b3e-4a26-9e84-c32e6e17bb36:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

2022-08-28 23:03:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36"
}

2022-08-28 23:03:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36"
}

2022-08-28 23:03:12 | [Mutex] received everything.

2022-08-28 23:03:12 | [Mutex] isItemNotified: retracted:item:notifieditem-172273ad-4b3e-4a26-9e84-c32e6e17bb36:admin@test-domain.com :: true

retrieveItemsFromNodes 0.097s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

2022-08-28 23:03:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36"
}

2022-08-28 23:03:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "item-id": "item-172273ad-4b3e-4a26-9e84-c32e6e17bb36",
    "item": [
        "<item id=\"item-172273ad-4b3e-4a26-9e84-c32e6e17bb36\"><test>item-172273ad-4b3e-4a26-9e84-c32e6e17bb36</test></item>"
    ]
}

2022-08-28 23:03:12 | [Mutex] notify: [retrieved:item:item-172273ad-4b3e-4a26-9e84-c32e6e17bb36:payload-matches:true:localhost]

2022-08-28 23:03:12 | [Mutex] received everything.

2022-08-28 23:03:12 | [Mutex] isItemNotified: retrieved:item:item-172273ad-4b3e-4a26-9e84-c32e6e17bb36:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

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

2022-08-28 23:03:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2e1ed547-b94a-4465-a41d-049142415902",
        "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

2022-08-28 23:03:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3a480cb3-d1f0-4558-868c-70fe468467c2)"
}

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

subscribeNodes 1.009s
2022-08-28 23:03:11 |

2022-08-28 23:03:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:11 | ------------------------------------

2022-08-28 23:03:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-08-28 23:03:12 |

2022-08-28 23:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-28 23:03:12 | ------------------------------------

2022-08-28 23:03:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3a480cb3-d1f0-4558-868c-70fe468467c2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-28 23:03:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}