Generated by TestNG with ReportNG at 22:21 PDT on Monday 10 October 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.730s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.155s
2022-10-10 22:35:53 |

2022-10-10 22:35:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:53 | ------------------------------------

2022-10-10 22:35:53 | [Mutex] waiting for: [configured:node:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:node-b16d1649-9dc0-48ea-8854-e45d040c0380]

2022-10-10 22:35:53 | [Mutex] received everything.

2022-10-10 22:35:53 | [Mutex] isItemNotified: configured:node:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:node-b16d1649-9dc0-48ea-8854-e45d040c0380 :: true

2022-10-10 22:35:54 | [Mutex] waiting for: [received:nodes:daeab17b-5421-46e3-a36e-2f4c942d1cef:localhost]

2022-10-10 22:35:54 | [Mutex] received everything.

2022-10-10 22:35:54 | [Mutex] isItemNotified: received:node:daeab17b-5421-46e3-a36e-2f4c942d1cef:localhost:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:Node 89a06852-8d36-47ed-a9df-f5954ddb7a67 :: true

2022-10-10 22:35:54 | [Mutex] waiting for: [received:nodes:449ee3a2-a202-4ee3-9b86-2877f283653d:localhost]

2022-10-10 22:35:54 | [Mutex] received everything.

2022-10-10 22:35:54 | [Mutex] isItemNotified: received:node:449ee3a2-a202-4ee3-9b86-2877f283653d:localhost:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:Node 89a06852-8d36-47ed-a9df-f5954ddb7a67 :: false

createNodes 1.674s
2022-10-10 22:35:50 |

2022-10-10 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:50 | ------------------------------------

2022-10-10 22:35:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "pubsub#title": "Node 89a06852-8d36-47ed-a9df-f5954ddb7a67"
}

2022-10-10 22:35:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:35:52 | [Mutex] waiting for: [received:nodes:b11fe2c0-5aa3-4210-ac1c-3e3a28e32c0f:localhost]

2022-10-10 22:35:52 | [Mutex] received everything.

2022-10-10 22:35:52 | [Mutex] isItemNotified: received:node:b11fe2c0-5aa3-4210-ac1c-3e3a28e32c0f:localhost:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:Node 89a06852-8d36-47ed-a9df-f5954ddb7a67 :: true

createSubnodes 1.023s
2022-10-10 22:35:52 |

2022-10-10 22:35:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:52 | ------------------------------------

2022-10-10 22:35:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b16d1649-9dc0-48ea-8854-e45d040c0380",
    "pubsub#title": "Node b16d1649-9dc0-48ea-8854-e45d040c0380"
}

2022-10-10 22:35:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:35:53 | [Mutex] waiting for: [received:nodes:1f648b5c-185e-47bb-a38f-5f982d37820d:localhost]

2022-10-10 22:35:53 | [Mutex] received everything.

2022-10-10 22:35:53 | [Mutex] isItemNotified: received:node:1f648b5c-185e-47bb-a38f-5f982d37820d:localhost:node-b16d1649-9dc0-48ea-8854-e45d040c0380:Node b16d1649-9dc0-48ea-8854-e45d040c0380 :: true

deleteNodes 1.024s
2022-10-10 22:35:58 |

2022-10-10 22:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:58 | ------------------------------------

2022-10-10 22:35:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b16d1649-9dc0-48ea-8854-e45d040c0380"
}

2022-10-10 22:35:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:35:59 | [Mutex] waiting for: [received:nodes:10599682-3533-4816-98ad-e78a33f75881:localhost]

2022-10-10 22:35:59 | [Mutex] waiting for: [received:nodes:10599682-3533-4816-98ad-e78a33f75881:localhost]

2022-10-10 22:35:59 | [Mutex] received everything.

2022-10-10 22:35:59 | [Mutex] isItemNotified: received:node:10599682-3533-4816-98ad-e78a33f75881:localhost:node-b16d1649-9dc0-48ea-8854-e45d040c0380:Node b16d1649-9dc0-48ea-8854-e45d040c0380 :: false

deleteSubnodes 1.026s
2022-10-10 22:35:56 |

2022-10-10 22:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:56 | ------------------------------------

2022-10-10 22:35:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67"
}

2022-10-10 22:35:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:35:58 | [Mutex] waiting for: [received:nodes:01f303fd-0908-4086-a630-c2e86a1b5cfe:localhost]

2022-10-10 22:35:58 | [Mutex] waiting for: [received:nodes:01f303fd-0908-4086-a630-c2e86a1b5cfe:localhost]

2022-10-10 22:35:58 | [Mutex] received everything.

2022-10-10 22:35:58 | [Mutex] isItemNotified: received:node:01f303fd-0908-4086-a630-c2e86a1b5cfe:localhost:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:Node 89a06852-8d36-47ed-a9df-f5954ddb7a67 :: false

2022-10-10 22:35:58 | [Mutex] waiting for: [received:nodes:ca3b61c0-5711-4cb9-b3d2-507548e23726:localhost]

2022-10-10 22:35:58 | [Mutex] received everything.

2022-10-10 22:35:58 | [Mutex] isItemNotified: received:node:ca3b61c0-5711-4cb9-b3d2-507548e23726:localhost:node-89a06852-8d36-47ed-a9df-f5954ddb7a67:Node 89a06852-8d36-47ed-a9df-f5954ddb7a67 :: false

publishItemsToNodes 0.059s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "entry": "<test>item-e61320a0-384c-475d-8da9-578f5913d2dd</test>",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd"
}

2022-10-10 22:35:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd"
}

2022-10-10 22:35:55 | [Mutex] waiting for: [published:item:notifieditem-e61320a0-384c-475d-8da9-578f5913d2dd:admin@test-domain.com]

2022-10-10 22:35:55 | [Mutex] received everything.

2022-10-10 22:35:55 | [Mutex] isItemNotified: published:item:notifieditem-e61320a0-384c-475d-8da9-578f5913d2dd:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd"
}

2022-10-10 22:35:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd"
}

2022-10-10 22:35:55 | [Mutex] waiting for: [retracted:item:notifieditem-e61320a0-384c-475d-8da9-578f5913d2dd:admin@test-domain.com]

2022-10-10 22:35:55 | [Mutex] received everything.

2022-10-10 22:35:55 | [Mutex] isItemNotified: retracted:item:notifieditem-e61320a0-384c-475d-8da9-578f5913d2dd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd"
}

2022-10-10 22:35:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "item-id": "item-e61320a0-384c-475d-8da9-578f5913d2dd",
    "item": [
        "<item id=\"item-e61320a0-384c-475d-8da9-578f5913d2dd\"><test>item-e61320a0-384c-475d-8da9-578f5913d2dd</test></item>"
    ]
}

2022-10-10 22:35:55 | [Mutex] notify: [retrieved:item:item-e61320a0-384c-475d-8da9-578f5913d2dd:payload-matches:true:localhost]

2022-10-10 22:35:55 | [Mutex] received everything.

2022-10-10 22:35:55 | [Mutex] isItemNotified: retrieved:item:item-e61320a0-384c-475d-8da9-578f5913d2dd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-10 22:35:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
        "test",
        "node-b16d1649-9dc0-48ea-8854-e45d040c0380"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-89a06852-8d36-47ed-a9df-f5954ddb7a67)"
}

2022-10-10 22:35:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.024s
2022-10-10 22:35:54 |

2022-10-10 22:35:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:54 | ------------------------------------

2022-10-10 22:35:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-10 22:35:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2022-10-10 22:35:55 |

2022-10-10 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:35:55 | ------------------------------------

2022-10-10 22:35:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-89a06852-8d36-47ed-a9df-f5954ddb7a67",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-10 22:35:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}