Generated by TestNG with ReportNG at 21:17 PST on Sunday 13 November 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.675s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-11-13 21:33:06 |

2022-11-13 21:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:06 | ------------------------------------

2022-11-13 21:33:06 | [Mutex] waiting for: [configured:node:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:node-9118d3b3-ac74-4de5-bb42-3a5fc160e670]

2022-11-13 21:33:06 | [Mutex] received everything.

2022-11-13 21:33:06 | [Mutex] isItemNotified: configured:node:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:node-9118d3b3-ac74-4de5-bb42-3a5fc160e670 :: true

2022-11-13 21:33:07 | [Mutex] waiting for: [received:nodes:2d82fbba-e384-42c7-a1be-3db8c52b57a4:localhost]

2022-11-13 21:33:07 | [Mutex] received everything.

2022-11-13 21:33:07 | [Mutex] isItemNotified: received:node:2d82fbba-e384-42c7-a1be-3db8c52b57a4:localhost:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb :: true

2022-11-13 21:33:07 | [Mutex] waiting for: [received:nodes:9d5d6926-7aea-41c3-93af-8291250058ec:localhost]

2022-11-13 21:33:07 | [Mutex] received everything.

2022-11-13 21:33:07 | [Mutex] isItemNotified: received:node:9d5d6926-7aea-41c3-93af-8291250058ec:localhost:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb :: false

createNodes 1.521s
2022-11-13 21:33:03 |

2022-11-13 21:33:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:03 | ------------------------------------

2022-11-13 21:33:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "pubsub#title": "Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb"
}

2022-11-13 21:33:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 21:33:04 | [Mutex] waiting for: [received:nodes:55862d29-4efa-406e-b3f3-b323b93205a5:localhost]

2022-11-13 21:33:04 | [Mutex] received everything.

2022-11-13 21:33:04 | [Mutex] isItemNotified: received:node:55862d29-4efa-406e-b3f3-b323b93205a5:localhost:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb :: true

createSubnodes 1.022s
2022-11-13 21:33:04 |

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

2022-11-13 21:33:04 | ------------------------------------

2022-11-13 21:33:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9118d3b3-ac74-4de5-bb42-3a5fc160e670",
    "pubsub#title": "Node 9118d3b3-ac74-4de5-bb42-3a5fc160e670"
}

2022-11-13 21:33:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 21:33:06 | [Mutex] waiting for: [received:nodes:0c0193fb-ab2c-4973-8c13-94ab7d4d5910:localhost]

2022-11-13 21:33:06 | [Mutex] waiting for: [received:nodes:0c0193fb-ab2c-4973-8c13-94ab7d4d5910:localhost]

2022-11-13 21:33:06 | [Mutex] received everything.

2022-11-13 21:33:06 | [Mutex] isItemNotified: received:node:0c0193fb-ab2c-4973-8c13-94ab7d4d5910:localhost:node-9118d3b3-ac74-4de5-bb42-3a5fc160e670:Node 9118d3b3-ac74-4de5-bb42-3a5fc160e670 :: true

deleteNodes 1.022s
2022-11-13 21:33:10 |

2022-11-13 21:33:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:10 | ------------------------------------

2022-11-13 21:33:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9118d3b3-ac74-4de5-bb42-3a5fc160e670"
}

2022-11-13 21:33:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 21:33:11 | [Mutex] waiting for: [received:nodes:4abd5c15-2efa-4194-910f-2d484208b6b2:localhost]

2022-11-13 21:33:11 | [Mutex] received everything.

2022-11-13 21:33:11 | [Mutex] isItemNotified: received:node:4abd5c15-2efa-4194-910f-2d484208b6b2:localhost:node-9118d3b3-ac74-4de5-bb42-3a5fc160e670:Node 9118d3b3-ac74-4de5-bb42-3a5fc160e670 :: false

deleteSubnodes 1.027s
2022-11-13 21:33:09 |

2022-11-13 21:33:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:09 | ------------------------------------

2022-11-13 21:33:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb"
}

2022-11-13 21:33:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 21:33:10 | [Mutex] waiting for: [received:nodes:8f4f8b69-be10-4f2b-88f9-102ccd713e27:localhost]

2022-11-13 21:33:10 | [Mutex] received everything.

2022-11-13 21:33:10 | [Mutex] isItemNotified: received:node:8f4f8b69-be10-4f2b-88f9-102ccd713e27:localhost:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb :: false

2022-11-13 21:33:10 | [Mutex] waiting for: [received:nodes:a0810d44-5c44-4150-8d0c-5148e9abc1cb:localhost]

2022-11-13 21:33:10 | [Mutex] received everything.

2022-11-13 21:33:10 | [Mutex] isItemNotified: received:node:a0810d44-5c44-4150-8d0c-5148e9abc1cb:localhost:node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb:Node f739feb9-0eec-4686-b9ca-a7825d7eb7eb :: false

publishItemsToNodes 0.030s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "entry": "<test>item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e</test>",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e"
}

2022-11-13 21:33:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e"
}

2022-11-13 21:33:08 | [Mutex] waiting for: [published:item:notifieditem-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:admin@test-domain.com]

2022-11-13 21:33:08 | [Mutex] received everything.

2022-11-13 21:33:08 | [Mutex] isItemNotified: published:item:notifieditem-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:admin@test-domain.com :: true

retractItemsFromNodes 0.090s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e"
}

2022-11-13 21:33:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e"
}

2022-11-13 21:33:08 | [Mutex] waiting for: [retracted:item:notifieditem-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:admin@test-domain.com]

2022-11-13 21:33:08 | [Mutex] received everything.

2022-11-13 21:33:08 | [Mutex] isItemNotified: retracted:item:notifieditem-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e"
}

2022-11-13 21:33:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "item-id": "item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e",
    "item": [
        "<item id=\"item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e\"><test>item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e</test></item>"
    ]
}

2022-11-13 21:33:08 | [Mutex] notify: [retrieved:item:item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:payload-matches:true:localhost]

2022-11-13 21:33:08 | [Mutex] received everything.

2022-11-13 21:33:08 | [Mutex] isItemNotified: retrieved:item:item-99a38b50-d01c-4c99-bc75-7e7e0b49ad6e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-13 21:33:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9118d3b3-ac74-4de5-bb42-3a5fc160e670",
        "test",
        "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb)"
}

2022-11-13 21:33:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-11-13 21:33:07 |

2022-11-13 21:33:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:07 | ------------------------------------

2022-11-13 21:33:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-13 21:33:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.077s
2022-11-13 21:33:08 |

2022-11-13 21:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 21:33:08 | ------------------------------------

2022-11-13 21:33:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f739feb9-0eec-4686-b9ca-a7825d7eb7eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-13 21:33:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}