Generated by TestNG with ReportNG at 04:16 PST on Thursday 24 November 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.799s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-11-24 04:31:36 |

2022-11-24 04:31:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:36 | ------------------------------------

2022-11-24 04:31:36 | [Mutex] waiting for: [configured:node:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:node-1742e5ee-3cb9-4448-a4a7-feecfce473df]

2022-11-24 04:31:36 | [Mutex] received everything.

2022-11-24 04:31:36 | [Mutex] isItemNotified: configured:node:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:node-1742e5ee-3cb9-4448-a4a7-feecfce473df :: true

2022-11-24 04:31:37 | [Mutex] waiting for: [received:nodes:9b2f827e-da6f-4399-b3d5-ea0c10396605:localhost]

2022-11-24 04:31:37 | [Mutex] received everything.

2022-11-24 04:31:37 | [Mutex] isItemNotified: received:node:9b2f827e-da6f-4399-b3d5-ea0c10396605:localhost:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f :: true

2022-11-24 04:31:37 | [Mutex] waiting for: [received:nodes:25506a36-f056-4b79-88dd-1f32ba065457:localhost]

2022-11-24 04:31:37 | [Mutex] received everything.

2022-11-24 04:31:37 | [Mutex] isItemNotified: received:node:25506a36-f056-4b79-88dd-1f32ba065457:localhost:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f :: false

createNodes 1.758s
2022-11-24 04:31:33 |

2022-11-24 04:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:33 | ------------------------------------

2022-11-24 04:31:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "pubsub#title": "Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f"
}

2022-11-24 04:31:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:31:35 | [Mutex] waiting for: [received:nodes:96295d9a-7550-46e6-a56c-188c104b7885:localhost]

2022-11-24 04:31:35 | [Mutex] received everything.

2022-11-24 04:31:35 | [Mutex] isItemNotified: received:node:96295d9a-7550-46e6-a56c-188c104b7885:localhost:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f :: true

createSubnodes 1.019s
2022-11-24 04:31:35 |

2022-11-24 04:31:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:35 | ------------------------------------

2022-11-24 04:31:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1742e5ee-3cb9-4448-a4a7-feecfce473df",
    "pubsub#title": "Node 1742e5ee-3cb9-4448-a4a7-feecfce473df"
}

2022-11-24 04:31:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:31:36 | [Mutex] waiting for: [received:nodes:b187195d-a38c-4f8f-b324-4ccd2ce8d6bd:localhost]

2022-11-24 04:31:36 | [Mutex] received everything.

2022-11-24 04:31:36 | [Mutex] isItemNotified: received:node:b187195d-a38c-4f8f-b324-4ccd2ce8d6bd:localhost:node-1742e5ee-3cb9-4448-a4a7-feecfce473df:Node 1742e5ee-3cb9-4448-a4a7-feecfce473df :: true

deleteNodes 1.028s
2022-11-24 04:31:40 |

2022-11-24 04:31:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:40 | ------------------------------------

2022-11-24 04:31:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1742e5ee-3cb9-4448-a4a7-feecfce473df"
}

2022-11-24 04:31:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:31:41 | [Mutex] waiting for: [received:nodes:d85cf267-ebdb-4638-8360-4a46ddf062ec:localhost]

2022-11-24 04:31:41 | [Mutex] received everything.

2022-11-24 04:31:41 | [Mutex] isItemNotified: received:node:d85cf267-ebdb-4638-8360-4a46ddf062ec:localhost:node-1742e5ee-3cb9-4448-a4a7-feecfce473df:Node 1742e5ee-3cb9-4448-a4a7-feecfce473df :: false

deleteSubnodes 1.024s
2022-11-24 04:31:39 |

2022-11-24 04:31:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:39 | ------------------------------------

2022-11-24 04:31:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f"
}

2022-11-24 04:31:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:31:40 | [Mutex] waiting for: [received:nodes:337512f8-c6fd-4a0e-b1cc-235cd7227d68:localhost]

2022-11-24 04:31:40 | [Mutex] received everything.

2022-11-24 04:31:40 | [Mutex] isItemNotified: received:node:337512f8-c6fd-4a0e-b1cc-235cd7227d68:localhost:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f :: false

2022-11-24 04:31:40 | [Mutex] waiting for: [received:nodes:3feb8f4b-3072-44ee-af75-923800da2efd:localhost]

2022-11-24 04:31:40 | [Mutex] received everything.

2022-11-24 04:31:40 | [Mutex] isItemNotified: received:node:3feb8f4b-3072-44ee-af75-923800da2efd:localhost:node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f:Node 5a33942b-2503-4a5e-a3e1-c62e2003aa6f :: false

publishItemsToNodes 0.049s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "entry": "<test>item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754</test>",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754"
}

2022-11-24 04:31:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754"
}

2022-11-24 04:31:38 | [Mutex] received everything.

2022-11-24 04:31:38 | [Mutex] isItemNotified: published:item:notifieditem-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754"
}

2022-11-24 04:31:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754"
}

2022-11-24 04:31:38 | [Mutex] received everything.

2022-11-24 04:31:38 | [Mutex] isItemNotified: retracted:item:notifieditem-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754"
}

2022-11-24 04:31:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "item-id": "item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754",
    "item": [
        "<item id=\"item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754\"><test>item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754</test></item>"
    ]
}

2022-11-24 04:31:38 | [Mutex] notify: [retrieved:item:item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754:payload-matches:true:localhost]

2022-11-24 04:31:38 | [Mutex] received everything.

2022-11-24 04:31:38 | [Mutex] isItemNotified: retrieved:item:item-f1617dc2-0eb6-4fc3-9d8d-f0b707ecd754:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 04:31:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
        "test",
        "node-1742e5ee-3cb9-4448-a4a7-feecfce473df"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f)"
}

2022-11-24 04:31:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-11-24 04:31:37 |

2022-11-24 04:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:37 | ------------------------------------

2022-11-24 04:31:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 04:31:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-11-24 04:31:38 |

2022-11-24 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:31:38 | ------------------------------------

2022-11-24 04:31:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5a33942b-2503-4a5e-a3e1-c62e2003aa6f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 04:31:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}