Generated by TestNG with ReportNG at 15:18 PST on Friday 24 February 2023
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.661s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2023-02-24 15:32:23 |

2023-02-24 15:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:23 | ------------------------------------

2023-02-24 15:32:23 | [Mutex] waiting for: [configured:node:node-190141de-497b-4656-bd82-2d63459c5dac:node-82d6d8a2-50b5-4d41-af66-e977a90b26ca]

2023-02-24 15:32:23 | [Mutex] received everything.

2023-02-24 15:32:23 | [Mutex] isItemNotified: configured:node:node-190141de-497b-4656-bd82-2d63459c5dac:node-82d6d8a2-50b5-4d41-af66-e977a90b26ca :: true

2023-02-24 15:32:24 | [Mutex] waiting for: [received:nodes:20bf8498-d5e2-4054-952f-837eda77f8c8:localhost]

2023-02-24 15:32:24 | [Mutex] received everything.

2023-02-24 15:32:24 | [Mutex] isItemNotified: received:node:20bf8498-d5e2-4054-952f-837eda77f8c8:localhost:node-190141de-497b-4656-bd82-2d63459c5dac:Node 190141de-497b-4656-bd82-2d63459c5dac :: true

2023-02-24 15:32:24 | [Mutex] waiting for: [received:nodes:1acdad13-a0cc-4d8e-b97b-12562d7f2b2a:localhost]

2023-02-24 15:32:24 | [Mutex] waiting for: [received:nodes:1acdad13-a0cc-4d8e-b97b-12562d7f2b2a:localhost]

2023-02-24 15:32:24 | [Mutex] waiting for: [received:nodes:1acdad13-a0cc-4d8e-b97b-12562d7f2b2a:localhost]

2023-02-24 15:32:24 | [Mutex] received everything.

2023-02-24 15:32:24 | [Mutex] isItemNotified: received:node:1acdad13-a0cc-4d8e-b97b-12562d7f2b2a:localhost:node-190141de-497b-4656-bd82-2d63459c5dac:Node 190141de-497b-4656-bd82-2d63459c5dac :: false

createNodes 1.647s
2023-02-24 15:32:20 |

2023-02-24 15:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:20 | ------------------------------------

2023-02-24 15:32:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "pubsub#title": "Node 190141de-497b-4656-bd82-2d63459c5dac"
}

2023-02-24 15:32:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:22 | [Mutex] waiting for: [received:nodes:690e40d6-28a3-490a-89cf-915027b64ccc:localhost]

2023-02-24 15:32:22 | [Mutex] waiting for: [received:nodes:690e40d6-28a3-490a-89cf-915027b64ccc:localhost]

2023-02-24 15:32:22 | [Mutex] received everything.

2023-02-24 15:32:22 | [Mutex] isItemNotified: received:node:690e40d6-28a3-490a-89cf-915027b64ccc:localhost:node-190141de-497b-4656-bd82-2d63459c5dac:Node 190141de-497b-4656-bd82-2d63459c5dac :: true

createSubnodes 1.033s
2023-02-24 15:32:22 |

2023-02-24 15:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:22 | ------------------------------------

2023-02-24 15:32:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-82d6d8a2-50b5-4d41-af66-e977a90b26ca",
    "pubsub#title": "Node 82d6d8a2-50b5-4d41-af66-e977a90b26ca"
}

2023-02-24 15:32:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:23 | [Mutex] waiting for: [received:nodes:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost]

2023-02-24 15:32:23 | [Mutex] waiting for: [received:nodes:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost]

2023-02-24 15:32:23 | [Mutex] waiting for: [received:nodes:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost]

2023-02-24 15:32:23 | [Mutex] waiting for: [received:nodes:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost]

2023-02-24 15:32:23 | [Mutex] waiting for: [received:nodes:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost]

2023-02-24 15:32:23 | [Mutex] received everything.

2023-02-24 15:32:23 | [Mutex] isItemNotified: received:node:f14df4ea-d70c-4dca-aab5-395a83889d50:localhost:node-82d6d8a2-50b5-4d41-af66-e977a90b26ca:Node 82d6d8a2-50b5-4d41-af66-e977a90b26ca :: true

deleteNodes 1.021s
2023-02-24 15:32:27 |

2023-02-24 15:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:27 | ------------------------------------

2023-02-24 15:32:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-82d6d8a2-50b5-4d41-af66-e977a90b26ca"
}

2023-02-24 15:32:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:28 | [Mutex] waiting for: [received:nodes:ad754588-5e20-4245-943f-126a2c7c6100:localhost]

2023-02-24 15:32:28 | [Mutex] waiting for: [received:nodes:ad754588-5e20-4245-943f-126a2c7c6100:localhost]

2023-02-24 15:32:28 | [Mutex] waiting for: [received:nodes:ad754588-5e20-4245-943f-126a2c7c6100:localhost]

2023-02-24 15:32:28 | [Mutex] received everything.

2023-02-24 15:32:28 | [Mutex] isItemNotified: received:node:ad754588-5e20-4245-943f-126a2c7c6100:localhost:node-82d6d8a2-50b5-4d41-af66-e977a90b26ca:Node 82d6d8a2-50b5-4d41-af66-e977a90b26ca :: false

deleteSubnodes 1.027s
2023-02-24 15:32:26 |

2023-02-24 15:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:26 | ------------------------------------

2023-02-24 15:32:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac"
}

2023-02-24 15:32:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:27 | [Mutex] waiting for: [received:nodes:446ca342-2f4b-4bb8-a13d-818ab4e72339:localhost]

2023-02-24 15:32:27 | [Mutex] received everything.

2023-02-24 15:32:27 | [Mutex] isItemNotified: received:node:446ca342-2f4b-4bb8-a13d-818ab4e72339:localhost:node-190141de-497b-4656-bd82-2d63459c5dac:Node 190141de-497b-4656-bd82-2d63459c5dac :: false

2023-02-24 15:32:27 | [Mutex] waiting for: [received:nodes:ff181c21-d947-4c45-bd71-b44383d1cdbb:localhost]

2023-02-24 15:32:27 | [Mutex] received everything.

2023-02-24 15:32:27 | [Mutex] isItemNotified: received:node:ff181c21-d947-4c45-bd71-b44383d1cdbb:localhost:node-190141de-497b-4656-bd82-2d63459c5dac:Node 190141de-497b-4656-bd82-2d63459c5dac :: false

publishItemsToNodes 0.039s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "entry": "<test>item-8d8d3690-4459-4cc7-bce7-79655005767f</test>",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f"
}

2023-02-24 15:32:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f"
}

2023-02-24 15:32:25 | [Mutex] waiting for: [published:item:notifieditem-8d8d3690-4459-4cc7-bce7-79655005767f:admin@test-domain.com]

2023-02-24 15:32:25 | [Mutex] received everything.

2023-02-24 15:32:25 | [Mutex] isItemNotified: published:item:notifieditem-8d8d3690-4459-4cc7-bce7-79655005767f:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f"
}

2023-02-24 15:32:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f"
}

2023-02-24 15:32:25 | [Mutex] received everything.

2023-02-24 15:32:25 | [Mutex] isItemNotified: retracted:item:notifieditem-8d8d3690-4459-4cc7-bce7-79655005767f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f"
}

2023-02-24 15:32:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "item-id": "item-8d8d3690-4459-4cc7-bce7-79655005767f",
    "item": [
        "<item id=\"item-8d8d3690-4459-4cc7-bce7-79655005767f\"><test>item-8d8d3690-4459-4cc7-bce7-79655005767f</test></item>"
    ]
}

2023-02-24 15:32:25 | [Mutex] notify: [retrieved:item:item-8d8d3690-4459-4cc7-bce7-79655005767f:payload-matches:true:localhost]

2023-02-24 15:32:25 | [Mutex] received everything.

2023-02-24 15:32:25 | [Mutex] isItemNotified: retrieved:item:item-8d8d3690-4459-4cc7-bce7-79655005767f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-24 15:32:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-82d6d8a2-50b5-4d41-af66-e977a90b26ca",
        "node-190141de-497b-4656-bd82-2d63459c5dac"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-190141de-497b-4656-bd82-2d63459c5dac)"
}

2023-02-24 15:32:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-02-24 15:32:24 |

2023-02-24 15:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:24 | ------------------------------------

2023-02-24 15:32:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:32:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.062s
2023-02-24 15:32:25 |

2023-02-24 15:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:25 | ------------------------------------

2023-02-24 15:32:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-190141de-497b-4656-bd82-2d63459c5dac",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:32:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}