Generated by TestNG with ReportNG at 22:46 PDT on Monday 20 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.625s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-06-20 23:00:29 |

2022-06-20 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:29 | ------------------------------------

2022-06-20 23:00:29 | [Mutex] waiting for: [configured:node:node-cb326d5c-e87f-44b8-a397-60572287cb0f:node-520dc2c9-066f-47bc-b2fe-85f734d92885]

2022-06-20 23:00:29 | [Mutex] received everything.

2022-06-20 23:00:29 | [Mutex] isItemNotified: configured:node:node-cb326d5c-e87f-44b8-a397-60572287cb0f:node-520dc2c9-066f-47bc-b2fe-85f734d92885 :: true

2022-06-20 23:00:30 | [Mutex] waiting for: [received:nodes:194168d6-8414-40e7-8232-b310913dd5e7:localhost]

2022-06-20 23:00:30 | [Mutex] received everything.

2022-06-20 23:00:30 | [Mutex] isItemNotified: received:node:194168d6-8414-40e7-8232-b310913dd5e7:localhost:node-cb326d5c-e87f-44b8-a397-60572287cb0f:Node cb326d5c-e87f-44b8-a397-60572287cb0f :: true

2022-06-20 23:00:30 | [Mutex] waiting for: [received:nodes:0458ab46-4c62-4634-abd9-3122d54da34f:localhost]

2022-06-20 23:00:30 | [Mutex] waiting for: [received:nodes:0458ab46-4c62-4634-abd9-3122d54da34f:localhost]

2022-06-20 23:00:30 | [Mutex] received everything.

2022-06-20 23:00:30 | [Mutex] isItemNotified: received:node:0458ab46-4c62-4634-abd9-3122d54da34f:localhost:node-cb326d5c-e87f-44b8-a397-60572287cb0f:Node cb326d5c-e87f-44b8-a397-60572287cb0f :: false

createNodes 1.572s
2022-06-20 23:00:26 |

2022-06-20 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:26 | ------------------------------------

2022-06-20 23:00:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "pubsub#title": "Node cb326d5c-e87f-44b8-a397-60572287cb0f"
}

2022-06-20 23:00:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 23:00:28 | [Mutex] waiting for: [received:nodes:12283aee-ca05-4cc8-bb63-0987971160f0:localhost]

2022-06-20 23:00:28 | [Mutex] waiting for: [received:nodes:12283aee-ca05-4cc8-bb63-0987971160f0:localhost]

2022-06-20 23:00:28 | [Mutex] received everything.

2022-06-20 23:00:28 | [Mutex] isItemNotified: received:node:12283aee-ca05-4cc8-bb63-0987971160f0:localhost:node-cb326d5c-e87f-44b8-a397-60572287cb0f:Node cb326d5c-e87f-44b8-a397-60572287cb0f :: true

createSubnodes 1.030s
2022-06-20 23:00:28 |

2022-06-20 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:28 | ------------------------------------

2022-06-20 23:00:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-520dc2c9-066f-47bc-b2fe-85f734d92885",
    "pubsub#title": "Node 520dc2c9-066f-47bc-b2fe-85f734d92885"
}

2022-06-20 23:00:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 23:00:29 | [Mutex] waiting for: [received:nodes:5e1755c6-c505-46a6-a3a5-a8ed16e658ed:localhost]

2022-06-20 23:00:29 | [Mutex] waiting for: [received:nodes:5e1755c6-c505-46a6-a3a5-a8ed16e658ed:localhost]

2022-06-20 23:00:29 | [Mutex] received everything.

2022-06-20 23:00:29 | [Mutex] isItemNotified: received:node:5e1755c6-c505-46a6-a3a5-a8ed16e658ed:localhost:node-520dc2c9-066f-47bc-b2fe-85f734d92885:Node 520dc2c9-066f-47bc-b2fe-85f734d92885 :: true

deleteNodes 1.023s
2022-06-20 23:00:34 |

2022-06-20 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:34 | ------------------------------------

2022-06-20 23:00:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-520dc2c9-066f-47bc-b2fe-85f734d92885"
}

2022-06-20 23:00:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 23:00:35 | [Mutex] waiting for: [received:nodes:e59d1243-f7b6-4370-bd52-16f81337ae77:localhost]

2022-06-20 23:00:35 | [Mutex] received everything.

2022-06-20 23:00:35 | [Mutex] isItemNotified: received:node:e59d1243-f7b6-4370-bd52-16f81337ae77:localhost:node-520dc2c9-066f-47bc-b2fe-85f734d92885:Node 520dc2c9-066f-47bc-b2fe-85f734d92885 :: false

deleteSubnodes 1.023s
2022-06-20 23:00:32 |

2022-06-20 23:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:32 | ------------------------------------

2022-06-20 23:00:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f"
}

2022-06-20 23:00:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 23:00:34 | [Mutex] waiting for: [received:nodes:617531d2-96ab-411a-a2f8-cffe65cb2155:localhost]

2022-06-20 23:00:34 | [Mutex] received everything.

2022-06-20 23:00:34 | [Mutex] isItemNotified: received:node:617531d2-96ab-411a-a2f8-cffe65cb2155:localhost:node-cb326d5c-e87f-44b8-a397-60572287cb0f:Node cb326d5c-e87f-44b8-a397-60572287cb0f :: false

2022-06-20 23:00:34 | [Mutex] waiting for: [received:nodes:0d23b66f-ea15-4d72-a002-56d8d7f36f30:localhost]

2022-06-20 23:00:34 | [Mutex] received everything.

2022-06-20 23:00:34 | [Mutex] isItemNotified: received:node:0d23b66f-ea15-4d72-a002-56d8d7f36f30:localhost:node-cb326d5c-e87f-44b8-a397-60572287cb0f:Node cb326d5c-e87f-44b8-a397-60572287cb0f :: false

publishItemsToNodes 0.041s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "entry": "<test>item-286e95b2-6a2d-4268-b384-90ca5d9373c5</test>",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5"
}

2022-06-20 23:00:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5"
}

2022-06-20 23:00:31 | [Mutex] waiting for: [published:item:notifieditem-286e95b2-6a2d-4268-b384-90ca5d9373c5:admin@test-domain.com]

2022-06-20 23:00:31 | [Mutex] received everything.

2022-06-20 23:00:31 | [Mutex] isItemNotified: published:item:notifieditem-286e95b2-6a2d-4268-b384-90ca5d9373c5:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5"
}

2022-06-20 23:00:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5"
}

2022-06-20 23:00:31 | [Mutex] received everything.

2022-06-20 23:00:31 | [Mutex] isItemNotified: retracted:item:notifieditem-286e95b2-6a2d-4268-b384-90ca5d9373c5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5"
}

2022-06-20 23:00:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "item-id": "item-286e95b2-6a2d-4268-b384-90ca5d9373c5",
    "item": [
        "<item id=\"item-286e95b2-6a2d-4268-b384-90ca5d9373c5\"><test>item-286e95b2-6a2d-4268-b384-90ca5d9373c5</test></item>"
    ]
}

2022-06-20 23:00:31 | [Mutex] notify: [retrieved:item:item-286e95b2-6a2d-4268-b384-90ca5d9373c5:payload-matches:true:localhost]

2022-06-20 23:00:31 | [Mutex] received everything.

2022-06-20 23:00:31 | [Mutex] isItemNotified: retrieved:item:item-286e95b2-6a2d-4268-b384-90ca5d9373c5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-20 23:00:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-520dc2c9-066f-47bc-b2fe-85f734d92885",
        "test",
        "node-cb326d5c-e87f-44b8-a397-60572287cb0f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cb326d5c-e87f-44b8-a397-60572287cb0f)"
}

2022-06-20 23:00:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-06-20 23:00:30 |

2022-06-20 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:30 | ------------------------------------

2022-06-20 23:00:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 23:00:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-06-20 23:00:31 |

2022-06-20 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 23:00:31 | ------------------------------------

2022-06-20 23:00:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cb326d5c-e87f-44b8-a397-60572287cb0f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 23:00:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}