Generated by TestNG with ReportNG at 22:17 PDT on Sunday 03 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.640s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2022-07-03 22:32:02 |

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

2022-07-03 22:32:02 | ------------------------------------

2022-07-03 22:32:02 | [Mutex] waiting for: [configured:node:node-50d3934d-d882-4a02-806d-58e8941c1c1f:node-dea57068-492f-4c6a-9612-e728f1e263c7]

2022-07-03 22:32:02 | [Mutex] received everything.

2022-07-03 22:32:02 | [Mutex] isItemNotified: configured:node:node-50d3934d-d882-4a02-806d-58e8941c1c1f:node-dea57068-492f-4c6a-9612-e728f1e263c7 :: true

2022-07-03 22:32:03 | [Mutex] waiting for: [received:nodes:b769d630-e439-4caa-8591-7221d8b3d0f5:localhost]

2022-07-03 22:32:03 | [Mutex] received everything.

2022-07-03 22:32:03 | [Mutex] isItemNotified: received:node:b769d630-e439-4caa-8591-7221d8b3d0f5:localhost:node-50d3934d-d882-4a02-806d-58e8941c1c1f:Node 50d3934d-d882-4a02-806d-58e8941c1c1f :: true

2022-07-03 22:32:03 | [Mutex] waiting for: [received:nodes:0d419648-76a1-44d7-b3ba-0e77e436b2ab:localhost]

2022-07-03 22:32:03 | [Mutex] received everything.

2022-07-03 22:32:03 | [Mutex] isItemNotified: received:node:0d419648-76a1-44d7-b3ba-0e77e436b2ab:localhost:node-50d3934d-d882-4a02-806d-58e8941c1c1f:Node 50d3934d-d882-4a02-806d-58e8941c1c1f :: false

createNodes 1.533s
2022-07-03 22:31:59 |

2022-07-03 22:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:31:59 | ------------------------------------

2022-07-03 22:32:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "pubsub#title": "Node 50d3934d-d882-4a02-806d-58e8941c1c1f"
}

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

2022-07-03 22:32:01 | [Mutex] waiting for: [received:nodes:874e409d-89b1-493f-98b6-887ef7599f89:localhost]

2022-07-03 22:32:01 | [Mutex] received everything.

2022-07-03 22:32:01 | [Mutex] isItemNotified: received:node:874e409d-89b1-493f-98b6-887ef7599f89:localhost:node-50d3934d-d882-4a02-806d-58e8941c1c1f:Node 50d3934d-d882-4a02-806d-58e8941c1c1f :: true

createSubnodes 1.026s
2022-07-03 22:32:01 |

2022-07-03 22:32:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:01 | ------------------------------------

2022-07-03 22:32:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dea57068-492f-4c6a-9612-e728f1e263c7",
    "pubsub#title": "Node dea57068-492f-4c6a-9612-e728f1e263c7"
}

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

2022-07-03 22:32:02 | [Mutex] waiting for: [received:nodes:2b914dab-8c3b-4984-a045-c988579bcd1d:localhost]

2022-07-03 22:32:02 | [Mutex] received everything.

2022-07-03 22:32:02 | [Mutex] isItemNotified: received:node:2b914dab-8c3b-4984-a045-c988579bcd1d:localhost:node-dea57068-492f-4c6a-9612-e728f1e263c7:Node dea57068-492f-4c6a-9612-e728f1e263c7 :: true

deleteNodes 1.022s
2022-07-03 22:32:06 |

2022-07-03 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:06 | ------------------------------------

2022-07-03 22:32:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dea57068-492f-4c6a-9612-e728f1e263c7"
}

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

2022-07-03 22:32:07 | [Mutex] waiting for: [received:nodes:df4915e2-decf-4fce-bef2-5951628fac8d:localhost]

2022-07-03 22:32:07 | [Mutex] received everything.

2022-07-03 22:32:07 | [Mutex] isItemNotified: received:node:df4915e2-decf-4fce-bef2-5951628fac8d:localhost:node-dea57068-492f-4c6a-9612-e728f1e263c7:Node dea57068-492f-4c6a-9612-e728f1e263c7 :: false

deleteSubnodes 1.026s
2022-07-03 22:32:05 |

2022-07-03 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:05 | ------------------------------------

2022-07-03 22:32:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f"
}

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

2022-07-03 22:32:06 | [Mutex] waiting for: [received:nodes:62dc8df5-ffa9-4b53-a238-356799f7a7c0:localhost]

2022-07-03 22:32:06 | [Mutex] received everything.

2022-07-03 22:32:06 | [Mutex] isItemNotified: received:node:62dc8df5-ffa9-4b53-a238-356799f7a7c0:localhost:node-50d3934d-d882-4a02-806d-58e8941c1c1f:Node 50d3934d-d882-4a02-806d-58e8941c1c1f :: false

2022-07-03 22:32:06 | [Mutex] waiting for: [received:nodes:fe333ad1-5819-4f4d-92d3-6b17d513dc1d:localhost]

2022-07-03 22:32:06 | [Mutex] received everything.

2022-07-03 22:32:06 | [Mutex] isItemNotified: received:node:fe333ad1-5819-4f4d-92d3-6b17d513dc1d:localhost:node-50d3934d-d882-4a02-806d-58e8941c1c1f:Node 50d3934d-d882-4a02-806d-58e8941c1c1f :: false

publishItemsToNodes 0.048s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

2022-07-03 22:32:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "entry": "<test>item-fc9262ee-272d-427f-b7eb-e34b1e455e73</test>",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73"
}

2022-07-03 22:32:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73"
}

2022-07-03 22:32:04 | [Mutex] waiting for: [published:item:notifieditem-fc9262ee-272d-427f-b7eb-e34b1e455e73:admin@test-domain.com]

2022-07-03 22:32:04 | [Mutex] received everything.

2022-07-03 22:32:04 | [Mutex] isItemNotified: published:item:notifieditem-fc9262ee-272d-427f-b7eb-e34b1e455e73:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

2022-07-03 22:32:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73"
}

2022-07-03 22:32:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73"
}

2022-07-03 22:32:04 | [Mutex] received everything.

2022-07-03 22:32:04 | [Mutex] isItemNotified: retracted:item:notifieditem-fc9262ee-272d-427f-b7eb-e34b1e455e73:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

2022-07-03 22:32:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73"
}

2022-07-03 22:32:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "item-id": "item-fc9262ee-272d-427f-b7eb-e34b1e455e73",
    "item": [
        "<item id=\"item-fc9262ee-272d-427f-b7eb-e34b1e455e73\"><test>item-fc9262ee-272d-427f-b7eb-e34b1e455e73</test></item>"
    ]
}

2022-07-03 22:32:04 | [Mutex] notify: [retrieved:item:item-fc9262ee-272d-427f-b7eb-e34b1e455e73:payload-matches:true:localhost]

2022-07-03 22:32:04 | [Mutex] received everything.

2022-07-03 22:32:04 | [Mutex] isItemNotified: retrieved:item:item-fc9262ee-272d-427f-b7eb-e34b1e455e73:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

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

2022-07-03 22:32:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
        "node-dea57068-492f-4c6a-9612-e728f1e263c7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

2022-07-03 22:32:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-50d3934d-d882-4a02-806d-58e8941c1c1f)"
}

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

subscribeNodes 1.014s
2022-07-03 22:32:03 |

2022-07-03 22:32:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:03 | ------------------------------------

2022-07-03 22:32:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-03 22:32:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-07-03 22:32:04 |

2022-07-03 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 22:32:04 | ------------------------------------

2022-07-03 22:32:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-50d3934d-d882-4a02-806d-58e8941c1c1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-03 22:32:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}