Generated by TestNG with ReportNG at 07:30 PST on Friday 30 December 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.677s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-12-30 07:46:26 |

2022-12-30 07:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:26 | ------------------------------------

2022-12-30 07:46:26 | [Mutex] waiting for: [configured:node:node-7e55f278-b6fb-45c8-b572-073ffaeae847:node-91f0472d-c6f1-494d-881d-941a0e1804e5]

2022-12-30 07:46:26 | [Mutex] received everything.

2022-12-30 07:46:26 | [Mutex] isItemNotified: configured:node:node-7e55f278-b6fb-45c8-b572-073ffaeae847:node-91f0472d-c6f1-494d-881d-941a0e1804e5 :: true

2022-12-30 07:46:27 | [Mutex] waiting for: [received:nodes:3d07f0ef-ecc1-4cf1-b85a-b5733ec55630:localhost]

2022-12-30 07:46:27 | [Mutex] received everything.

2022-12-30 07:46:27 | [Mutex] isItemNotified: received:node:3d07f0ef-ecc1-4cf1-b85a-b5733ec55630:localhost:node-7e55f278-b6fb-45c8-b572-073ffaeae847:Node 7e55f278-b6fb-45c8-b572-073ffaeae847 :: true

2022-12-30 07:46:27 | [Mutex] waiting for: [received:nodes:4e5c4b7e-3e45-4707-9c55-1dcb0685c9f8:localhost]

2022-12-30 07:46:27 | [Mutex] waiting for: [received:nodes:4e5c4b7e-3e45-4707-9c55-1dcb0685c9f8:localhost]

2022-12-30 07:46:27 | [Mutex] waiting for: [received:nodes:4e5c4b7e-3e45-4707-9c55-1dcb0685c9f8:localhost]

2022-12-30 07:46:27 | [Mutex] waiting for: [received:nodes:4e5c4b7e-3e45-4707-9c55-1dcb0685c9f8:localhost]

2022-12-30 07:46:27 | [Mutex] received everything.

2022-12-30 07:46:27 | [Mutex] isItemNotified: received:node:4e5c4b7e-3e45-4707-9c55-1dcb0685c9f8:localhost:node-7e55f278-b6fb-45c8-b572-073ffaeae847:Node 7e55f278-b6fb-45c8-b572-073ffaeae847 :: false

createNodes 1.615s
2022-12-30 07:46:23 |

2022-12-30 07:46:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:23 | ------------------------------------

2022-12-30 07:46:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "pubsub#title": "Node 7e55f278-b6fb-45c8-b572-073ffaeae847"
}

2022-12-30 07:46:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:46:25 | [Mutex] waiting for: [received:nodes:940324ff-ca64-41a5-9eda-0fadbbf414cd:localhost]

2022-12-30 07:46:25 | [Mutex] waiting for: [received:nodes:940324ff-ca64-41a5-9eda-0fadbbf414cd:localhost]

2022-12-30 07:46:25 | [Mutex] waiting for: [received:nodes:940324ff-ca64-41a5-9eda-0fadbbf414cd:localhost]

2022-12-30 07:46:25 | [Mutex] waiting for: [received:nodes:940324ff-ca64-41a5-9eda-0fadbbf414cd:localhost]

2022-12-30 07:46:25 | [Mutex] received everything.

2022-12-30 07:46:25 | [Mutex] isItemNotified: received:node:940324ff-ca64-41a5-9eda-0fadbbf414cd:localhost:node-7e55f278-b6fb-45c8-b572-073ffaeae847:Node 7e55f278-b6fb-45c8-b572-073ffaeae847 :: true

createSubnodes 1.027s
2022-12-30 07:46:25 |

2022-12-30 07:46:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:25 | ------------------------------------

2022-12-30 07:46:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-91f0472d-c6f1-494d-881d-941a0e1804e5",
    "pubsub#title": "Node 91f0472d-c6f1-494d-881d-941a0e1804e5"
}

2022-12-30 07:46:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:46:26 | [Mutex] waiting for: [received:nodes:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost]

2022-12-30 07:46:26 | [Mutex] waiting for: [received:nodes:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost]

2022-12-30 07:46:26 | [Mutex] waiting for: [received:nodes:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost]

2022-12-30 07:46:26 | [Mutex] waiting for: [received:nodes:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost]

2022-12-30 07:46:26 | [Mutex] waiting for: [received:nodes:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost]

2022-12-30 07:46:26 | [Mutex] received everything.

2022-12-30 07:46:26 | [Mutex] isItemNotified: received:node:cbb313a3-5e6d-42ee-906c-f36bc79688df:localhost:node-91f0472d-c6f1-494d-881d-941a0e1804e5:Node 91f0472d-c6f1-494d-881d-941a0e1804e5 :: true

deleteNodes 1.029s
2022-12-30 07:46:30 |

2022-12-30 07:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:30 | ------------------------------------

2022-12-30 07:46:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-91f0472d-c6f1-494d-881d-941a0e1804e5"
}

2022-12-30 07:46:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:46:31 | [Mutex] waiting for: [received:nodes:d1d0e98b-2fea-4285-9e62-a83b24f46d2b:localhost]

2022-12-30 07:46:31 | [Mutex] waiting for: [received:nodes:d1d0e98b-2fea-4285-9e62-a83b24f46d2b:localhost]

2022-12-30 07:46:31 | [Mutex] waiting for: [received:nodes:d1d0e98b-2fea-4285-9e62-a83b24f46d2b:localhost]

2022-12-30 07:46:31 | [Mutex] received everything.

2022-12-30 07:46:31 | [Mutex] isItemNotified: received:node:d1d0e98b-2fea-4285-9e62-a83b24f46d2b:localhost:node-91f0472d-c6f1-494d-881d-941a0e1804e5:Node 91f0472d-c6f1-494d-881d-941a0e1804e5 :: false

deleteSubnodes 1.033s
2022-12-30 07:46:29 |

2022-12-30 07:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:29 | ------------------------------------

2022-12-30 07:46:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847"
}

2022-12-30 07:46:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:46:30 | [Mutex] waiting for: [received:nodes:85f71c9a-8444-4863-b791-7172e60dcef7:localhost]

2022-12-30 07:46:30 | [Mutex] waiting for: [received:nodes:85f71c9a-8444-4863-b791-7172e60dcef7:localhost]

2022-12-30 07:46:30 | [Mutex] waiting for: [received:nodes:85f71c9a-8444-4863-b791-7172e60dcef7:localhost]

2022-12-30 07:46:30 | [Mutex] waiting for: [received:nodes:85f71c9a-8444-4863-b791-7172e60dcef7:localhost]

2022-12-30 07:46:30 | [Mutex] received everything.

2022-12-30 07:46:30 | [Mutex] isItemNotified: received:node:85f71c9a-8444-4863-b791-7172e60dcef7:localhost:node-7e55f278-b6fb-45c8-b572-073ffaeae847:Node 7e55f278-b6fb-45c8-b572-073ffaeae847 :: false

2022-12-30 07:46:30 | [Mutex] waiting for: [received:nodes:8bb7961c-4d3a-402c-af05-f973b2ae62b2:localhost]

2022-12-30 07:46:30 | [Mutex] received everything.

2022-12-30 07:46:30 | [Mutex] isItemNotified: received:node:8bb7961c-4d3a-402c-af05-f973b2ae62b2:localhost:node-7e55f278-b6fb-45c8-b572-073ffaeae847:Node 7e55f278-b6fb-45c8-b572-073ffaeae847 :: false

publishItemsToNodes 0.057s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "entry": "<test>item-9f174f23-5cfb-447e-820a-2375fd838a6f</test>",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f"
}

2022-12-30 07:46:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f"
}

2022-12-30 07:46:28 | [Mutex] received everything.

2022-12-30 07:46:28 | [Mutex] isItemNotified: published:item:notifieditem-9f174f23-5cfb-447e-820a-2375fd838a6f:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f"
}

2022-12-30 07:46:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f"
}

2022-12-30 07:46:28 | [Mutex] received everything.

2022-12-30 07:46:28 | [Mutex] isItemNotified: retracted:item:notifieditem-9f174f23-5cfb-447e-820a-2375fd838a6f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f"
}

2022-12-30 07:46:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "item-id": "item-9f174f23-5cfb-447e-820a-2375fd838a6f",
    "item": [
        "<item id=\"item-9f174f23-5cfb-447e-820a-2375fd838a6f\"><test>item-9f174f23-5cfb-447e-820a-2375fd838a6f</test></item>"
    ]
}

2022-12-30 07:46:28 | [Mutex] notify: [retrieved:item:item-9f174f23-5cfb-447e-820a-2375fd838a6f:payload-matches:true:localhost]

2022-12-30 07:46:28 | [Mutex] received everything.

2022-12-30 07:46:28 | [Mutex] isItemNotified: retrieved:item:item-9f174f23-5cfb-447e-820a-2375fd838a6f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 07:46:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
        "test",
        "node-91f0472d-c6f1-494d-881d-941a0e1804e5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7e55f278-b6fb-45c8-b572-073ffaeae847)"
}

2022-12-30 07:46:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-12-30 07:46:27 |

2022-12-30 07:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:27 | ------------------------------------

2022-12-30 07:46:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 07:46:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-12-30 07:46:28 |

2022-12-30 07:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:46:28 | ------------------------------------

2022-12-30 07:46:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7e55f278-b6fb-45c8-b572-073ffaeae847",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 07:46:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}