Generated by TestNG with ReportNG at 10:35 PST on Friday 16 December 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.578s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-12-16 10:50:24 |

2022-12-16 10:50:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:24 | ------------------------------------

2022-12-16 10:50:24 | [Mutex] waiting for: [configured:node:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:node-560dab3e-256d-42c0-ad94-c132eef9bacd]

2022-12-16 10:50:24 | [Mutex] received everything.

2022-12-16 10:50:24 | [Mutex] isItemNotified: configured:node:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:node-560dab3e-256d-42c0-ad94-c132eef9bacd :: true

2022-12-16 10:50:25 | [Mutex] waiting for: [received:nodes:d935fd18-af47-4553-9e1d-dda2946c29a3:localhost]

2022-12-16 10:50:25 | [Mutex] received everything.

2022-12-16 10:50:25 | [Mutex] isItemNotified: received:node:d935fd18-af47-4553-9e1d-dda2946c29a3:localhost:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2 :: true

2022-12-16 10:50:25 | [Mutex] waiting for: [received:nodes:128bb1f7-eedc-4840-b6c6-ec5f36a546ce:localhost]

2022-12-16 10:50:25 | [Mutex] waiting for: [received:nodes:128bb1f7-eedc-4840-b6c6-ec5f36a546ce:localhost]

2022-12-16 10:50:25 | [Mutex] waiting for: [received:nodes:128bb1f7-eedc-4840-b6c6-ec5f36a546ce:localhost]

2022-12-16 10:50:25 | [Mutex] waiting for: [received:nodes:128bb1f7-eedc-4840-b6c6-ec5f36a546ce:localhost]

2022-12-16 10:50:25 | [Mutex] received everything.

2022-12-16 10:50:25 | [Mutex] isItemNotified: received:node:128bb1f7-eedc-4840-b6c6-ec5f36a546ce:localhost:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2 :: false

createNodes 1.564s
2022-12-16 10:50:21 |

2022-12-16 10:50:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:21 | ------------------------------------

2022-12-16 10:50:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "pubsub#title": "Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2"
}

2022-12-16 10:50:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:50:23 | [Mutex] waiting for: [received:nodes:40a7d3b3-3011-4aa9-b51a-2a4d4d610429:localhost]

2022-12-16 10:50:23 | [Mutex] waiting for: [received:nodes:40a7d3b3-3011-4aa9-b51a-2a4d4d610429:localhost]

2022-12-16 10:50:23 | [Mutex] waiting for: [received:nodes:40a7d3b3-3011-4aa9-b51a-2a4d4d610429:localhost]

2022-12-16 10:50:23 | [Mutex] waiting for: [received:nodes:40a7d3b3-3011-4aa9-b51a-2a4d4d610429:localhost]

2022-12-16 10:50:23 | [Mutex] received everything.

2022-12-16 10:50:23 | [Mutex] isItemNotified: received:node:40a7d3b3-3011-4aa9-b51a-2a4d4d610429:localhost:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2 :: true

createSubnodes 1.020s
2022-12-16 10:50:23 |

2022-12-16 10:50:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:23 | ------------------------------------

2022-12-16 10:50:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-560dab3e-256d-42c0-ad94-c132eef9bacd",
    "pubsub#title": "Node 560dab3e-256d-42c0-ad94-c132eef9bacd"
}

2022-12-16 10:50:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:50:24 | [Mutex] waiting for: [received:nodes:42239821-d085-49cd-a210-a2dd0d2d383d:localhost]

2022-12-16 10:50:24 | [Mutex] waiting for: [received:nodes:42239821-d085-49cd-a210-a2dd0d2d383d:localhost]

2022-12-16 10:50:24 | [Mutex] waiting for: [received:nodes:42239821-d085-49cd-a210-a2dd0d2d383d:localhost]

2022-12-16 10:50:24 | [Mutex] waiting for: [received:nodes:42239821-d085-49cd-a210-a2dd0d2d383d:localhost]

2022-12-16 10:50:24 | [Mutex] received everything.

2022-12-16 10:50:24 | [Mutex] isItemNotified: received:node:42239821-d085-49cd-a210-a2dd0d2d383d:localhost:node-560dab3e-256d-42c0-ad94-c132eef9bacd:Node 560dab3e-256d-42c0-ad94-c132eef9bacd :: true

deleteNodes 1.026s
2022-12-16 10:50:28 |

2022-12-16 10:50:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:28 | ------------------------------------

2022-12-16 10:50:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-560dab3e-256d-42c0-ad94-c132eef9bacd"
}

2022-12-16 10:50:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:50:29 | [Mutex] waiting for: [received:nodes:ad51bb94-8d52-4c7f-8e65-353065e146a2:localhost]

2022-12-16 10:50:29 | [Mutex] waiting for: [received:nodes:ad51bb94-8d52-4c7f-8e65-353065e146a2:localhost]

2022-12-16 10:50:29 | [Mutex] waiting for: [received:nodes:ad51bb94-8d52-4c7f-8e65-353065e146a2:localhost]

2022-12-16 10:50:29 | [Mutex] received everything.

2022-12-16 10:50:29 | [Mutex] isItemNotified: received:node:ad51bb94-8d52-4c7f-8e65-353065e146a2:localhost:node-560dab3e-256d-42c0-ad94-c132eef9bacd:Node 560dab3e-256d-42c0-ad94-c132eef9bacd :: false

deleteSubnodes 1.024s
2022-12-16 10:50:27 |

2022-12-16 10:50:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:27 | ------------------------------------

2022-12-16 10:50:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2"
}

2022-12-16 10:50:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 10:50:28 | [Mutex] waiting for: [received:nodes:d5acb5f0-7264-485c-b22d-dd4a5142e404:localhost]

2022-12-16 10:50:28 | [Mutex] waiting for: [received:nodes:d5acb5f0-7264-485c-b22d-dd4a5142e404:localhost]

2022-12-16 10:50:28 | [Mutex] waiting for: [received:nodes:d5acb5f0-7264-485c-b22d-dd4a5142e404:localhost]

2022-12-16 10:50:28 | [Mutex] received everything.

2022-12-16 10:50:28 | [Mutex] isItemNotified: received:node:d5acb5f0-7264-485c-b22d-dd4a5142e404:localhost:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2 :: false

2022-12-16 10:50:28 | [Mutex] waiting for: [received:nodes:37f20221-0f98-4294-97bc-dcf1ce8e45bf:localhost]

2022-12-16 10:50:28 | [Mutex] received everything.

2022-12-16 10:50:28 | [Mutex] isItemNotified: received:node:37f20221-0f98-4294-97bc-dcf1ce8e45bf:localhost:node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2:Node 865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2 :: false

publishItemsToNodes 0.022s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "entry": "<test>item-18693a63-8604-4242-8ca3-02cd9d1735e0</test>",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0"
}

2022-12-16 10:50:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0"
}

2022-12-16 10:50:26 | [Mutex] waiting for: [published:item:notifieditem-18693a63-8604-4242-8ca3-02cd9d1735e0:admin@test-domain.com]

2022-12-16 10:50:26 | [Mutex] received everything.

2022-12-16 10:50:26 | [Mutex] isItemNotified: published:item:notifieditem-18693a63-8604-4242-8ca3-02cd9d1735e0:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0"
}

2022-12-16 10:50:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0"
}

2022-12-16 10:50:26 | [Mutex] received everything.

2022-12-16 10:50:26 | [Mutex] isItemNotified: retracted:item:notifieditem-18693a63-8604-4242-8ca3-02cd9d1735e0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0"
}

2022-12-16 10:50:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "item-id": "item-18693a63-8604-4242-8ca3-02cd9d1735e0",
    "item": [
        "<item id=\"item-18693a63-8604-4242-8ca3-02cd9d1735e0\"><test>item-18693a63-8604-4242-8ca3-02cd9d1735e0</test></item>"
    ]
}

2022-12-16 10:50:26 | [Mutex] notify: [retrieved:item:item-18693a63-8604-4242-8ca3-02cd9d1735e0:payload-matches:true:localhost]

2022-12-16 10:50:26 | [Mutex] received everything.

2022-12-16 10:50:26 | [Mutex] isItemNotified: retrieved:item:item-18693a63-8604-4242-8ca3-02cd9d1735e0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-16 10:50:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
        "node-560dab3e-256d-42c0-ad94-c132eef9bacd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2)"
}

2022-12-16 10:50:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-12-16 10:50:25 |

2022-12-16 10:50:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:25 | ------------------------------------

2022-12-16 10:50:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 10:50:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-12-16 10:50:26 |

2022-12-16 10:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 10:50:26 | ------------------------------------

2022-12-16 10:50:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-865b17bb-a7c8-4e0c-8d8d-a739b1e65ff2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 10:50:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}