Generated by TestNG with ReportNG at 21:15 PST on Monday 16 January 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.670s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-01-16 21:32:31 |

2023-01-16 21:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:31 | ------------------------------------

2023-01-16 21:32:31 | [Mutex] waiting for: [configured:node:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:node-febe39b5-5163-447d-b4ef-e884f0d44129]

2023-01-16 21:32:31 | [Mutex] received everything.

2023-01-16 21:32:31 | [Mutex] isItemNotified: configured:node:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:node-febe39b5-5163-447d-b4ef-e884f0d44129 :: true

2023-01-16 21:32:32 | [Mutex] waiting for: [received:nodes:a0408fe5-1eb0-4d58-9fe5-f90509439014:localhost]

2023-01-16 21:32:32 | [Mutex] received everything.

2023-01-16 21:32:32 | [Mutex] isItemNotified: received:node:a0408fe5-1eb0-4d58-9fe5-f90509439014:localhost:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec :: true

2023-01-16 21:32:32 | [Mutex] waiting for: [received:nodes:d27f8192-9723-461c-ace7-de94d451fdb4:localhost]

2023-01-16 21:32:32 | [Mutex] waiting for: [received:nodes:d27f8192-9723-461c-ace7-de94d451fdb4:localhost]

2023-01-16 21:32:32 | [Mutex] waiting for: [received:nodes:d27f8192-9723-461c-ace7-de94d451fdb4:localhost]

2023-01-16 21:32:32 | [Mutex] waiting for: [received:nodes:d27f8192-9723-461c-ace7-de94d451fdb4:localhost]

2023-01-16 21:32:32 | [Mutex] received everything.

2023-01-16 21:32:32 | [Mutex] isItemNotified: received:node:d27f8192-9723-461c-ace7-de94d451fdb4:localhost:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec :: false

createNodes 1.617s
2023-01-16 21:32:29 |

2023-01-16 21:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:29 | ------------------------------------

2023-01-16 21:32:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "pubsub#title": "Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec"
}

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

2023-01-16 21:32:30 | [Mutex] waiting for: [received:nodes:f5527ca7-532f-4474-988e-4d25ee775e7c:localhost]

2023-01-16 21:32:30 | [Mutex] waiting for: [received:nodes:f5527ca7-532f-4474-988e-4d25ee775e7c:localhost]

2023-01-16 21:32:30 | [Mutex] waiting for: [received:nodes:f5527ca7-532f-4474-988e-4d25ee775e7c:localhost]

2023-01-16 21:32:30 | [Mutex] waiting for: [received:nodes:f5527ca7-532f-4474-988e-4d25ee775e7c:localhost]

2023-01-16 21:32:30 | [Mutex] received everything.

2023-01-16 21:32:30 | [Mutex] isItemNotified: received:node:f5527ca7-532f-4474-988e-4d25ee775e7c:localhost:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec :: true

createSubnodes 1.026s
2023-01-16 21:32:30 |

2023-01-16 21:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:30 | ------------------------------------

2023-01-16 21:32:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-febe39b5-5163-447d-b4ef-e884f0d44129",
    "pubsub#title": "Node febe39b5-5163-447d-b4ef-e884f0d44129"
}

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

2023-01-16 21:32:31 | [Mutex] waiting for: [received:nodes:6a2350a4-da64-4282-a810-41a7b2f350cf:localhost]

2023-01-16 21:32:31 | [Mutex] waiting for: [received:nodes:6a2350a4-da64-4282-a810-41a7b2f350cf:localhost]

2023-01-16 21:32:31 | [Mutex] waiting for: [received:nodes:6a2350a4-da64-4282-a810-41a7b2f350cf:localhost]

2023-01-16 21:32:31 | [Mutex] waiting for: [received:nodes:6a2350a4-da64-4282-a810-41a7b2f350cf:localhost]

2023-01-16 21:32:31 | [Mutex] received everything.

2023-01-16 21:32:31 | [Mutex] isItemNotified: received:node:6a2350a4-da64-4282-a810-41a7b2f350cf:localhost:node-febe39b5-5163-447d-b4ef-e884f0d44129:Node febe39b5-5163-447d-b4ef-e884f0d44129 :: true

deleteNodes 1.022s
2023-01-16 21:32:36 |

2023-01-16 21:32:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:36 | ------------------------------------

2023-01-16 21:32:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-febe39b5-5163-447d-b4ef-e884f0d44129"
}

2023-01-16 21:32:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:32:37 | [Mutex] waiting for: [received:nodes:fd664c4c-8530-4ff7-b8eb-be4fbd92215c:localhost]

2023-01-16 21:32:37 | [Mutex] waiting for: [received:nodes:fd664c4c-8530-4ff7-b8eb-be4fbd92215c:localhost]

2023-01-16 21:32:37 | [Mutex] waiting for: [received:nodes:fd664c4c-8530-4ff7-b8eb-be4fbd92215c:localhost]

2023-01-16 21:32:37 | [Mutex] received everything.

2023-01-16 21:32:37 | [Mutex] isItemNotified: received:node:fd664c4c-8530-4ff7-b8eb-be4fbd92215c:localhost:node-febe39b5-5163-447d-b4ef-e884f0d44129:Node febe39b5-5163-447d-b4ef-e884f0d44129 :: false

deleteSubnodes 1.027s
2023-01-16 21:32:35 |

2023-01-16 21:32:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:35 | ------------------------------------

2023-01-16 21:32:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec"
}

2023-01-16 21:32:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:32:36 | [Mutex] waiting for: [received:nodes:19ae2279-251c-4bf6-9309-14decd344d5b:localhost]

2023-01-16 21:32:36 | [Mutex] waiting for: [received:nodes:19ae2279-251c-4bf6-9309-14decd344d5b:localhost]

2023-01-16 21:32:36 | [Mutex] waiting for: [received:nodes:19ae2279-251c-4bf6-9309-14decd344d5b:localhost]

2023-01-16 21:32:36 | [Mutex] received everything.

2023-01-16 21:32:36 | [Mutex] isItemNotified: received:node:19ae2279-251c-4bf6-9309-14decd344d5b:localhost:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec :: false

2023-01-16 21:32:36 | [Mutex] waiting for: [received:nodes:84bbb5df-fb27-4f59-8f66-f27b448a42d8:localhost]

2023-01-16 21:32:36 | [Mutex] received everything.

2023-01-16 21:32:36 | [Mutex] isItemNotified: received:node:84bbb5df-fb27-4f59-8f66-f27b448a42d8:localhost:node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec:Node 2c9e2194-003e-4a82-b5a0-62f21e2d5aec :: false

publishItemsToNodes 0.030s
2023-01-16 21:32:33 |

2023-01-16 21:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:33 | ------------------------------------

2023-01-16 21:32:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "entry": "<test>item-257248ad-948d-4597-9bb9-6ea81209fb18</test>",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18"
}

2023-01-16 21:32:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18"
}

2023-01-16 21:32:34 | [Mutex] waiting for: [published:item:notifieditem-257248ad-948d-4597-9bb9-6ea81209fb18:admin@test-domain.com]

2023-01-16 21:32:34 | [Mutex] received everything.

2023-01-16 21:32:34 | [Mutex] isItemNotified: published:item:notifieditem-257248ad-948d-4597-9bb9-6ea81209fb18:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-01-16 21:32:34 |

2023-01-16 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:34 | ------------------------------------

2023-01-16 21:32:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18"
}

2023-01-16 21:32:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18"
}

2023-01-16 21:32:34 | [Mutex] received everything.

2023-01-16 21:32:34 | [Mutex] isItemNotified: retracted:item:notifieditem-257248ad-948d-4597-9bb9-6ea81209fb18:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2023-01-16 21:32:34 |

2023-01-16 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:34 | ------------------------------------

2023-01-16 21:32:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18"
}

2023-01-16 21:32:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "item-id": "item-257248ad-948d-4597-9bb9-6ea81209fb18",
    "item": [
        "<item id=\"item-257248ad-948d-4597-9bb9-6ea81209fb18\"><test>item-257248ad-948d-4597-9bb9-6ea81209fb18</test></item>"
    ]
}

2023-01-16 21:32:34 | [Mutex] notify: [retrieved:item:item-257248ad-948d-4597-9bb9-6ea81209fb18:payload-matches:true:localhost]

2023-01-16 21:32:34 | [Mutex] received everything.

2023-01-16 21:32:34 | [Mutex] isItemNotified: retrieved:item:item-257248ad-948d-4597-9bb9-6ea81209fb18:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-16 21:32:34 |

2023-01-16 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:34 | ------------------------------------

2023-01-16 21:32:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-01-16 21:32:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
        "node-febe39b5-5163-447d-b4ef-e884f0d44129"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-01-16 21:32:34 |

2023-01-16 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:34 | ------------------------------------

2023-01-16 21:32:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec)"
}

2023-01-16 21:32:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-01-16 21:32:32 |

2023-01-16 21:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:32 | ------------------------------------

2023-01-16 21:32:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-16 21:32:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2023-01-16 21:32:34 |

2023-01-16 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:32:34 | ------------------------------------

2023-01-16 21:32:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2c9e2194-003e-4a82-b5a0-62f21e2d5aec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-16 21:32:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}