Generated by TestNG with ReportNG at 22:13 PDT on Wednesday 06 October 2021
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / 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.831s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2021-10-06 22:29:30 |

2021-10-06 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:30 | ------------------------------------

2021-10-06 22:29:30 | [Mutex] waiting for: [configured:node:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6]

2021-10-06 22:29:30 | [Mutex] received everything.

2021-10-06 22:29:30 | [Mutex] isItemNotified: configured:node:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6 :: true

2021-10-06 22:29:31 | [Mutex] waiting for: [received:nodes:b0fa18b4-7c2b-4027-961c-b19afb0f500e:localhost]

2021-10-06 22:29:31 | [Mutex] received everything.

2021-10-06 22:29:31 | [Mutex] isItemNotified: received:node:b0fa18b4-7c2b-4027-961c-b19afb0f500e:localhost:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0 :: true

2021-10-06 22:29:31 | [Mutex] waiting for: [received:nodes:be3e46e0-0589-42b2-9760-6af50cf0f810:localhost]

2021-10-06 22:29:31 | [Mutex] received everything.

2021-10-06 22:29:31 | [Mutex] isItemNotified: received:node:be3e46e0-0589-42b2-9760-6af50cf0f810:localhost:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0 :: false

createNodes 1.481s
2021-10-06 22:29:27 |

2021-10-06 22:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:27 | ------------------------------------

2021-10-06 22:29:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "pubsub#title": "Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0"
}

2021-10-06 22:29:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:29:29 | [Mutex] waiting for: [received:nodes:e547d79e-8d16-4c84-93e8-e36a25f51150:localhost]

2021-10-06 22:29:29 | [Mutex] received everything.

2021-10-06 22:29:29 | [Mutex] isItemNotified: received:node:e547d79e-8d16-4c84-93e8-e36a25f51150:localhost:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0 :: true

createSubnodes 1.026s
2021-10-06 22:29:29 |

2021-10-06 22:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:29 | ------------------------------------

2021-10-06 22:29:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6",
    "pubsub#title": "Node ddd6eb89-19d7-40d4-aa4a-702eabf556b6"
}

2021-10-06 22:29:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:29:30 | [Mutex] waiting for: [received:nodes:e0c0cb03-42f2-4c41-a905-0159f4a6fe6d:localhost]

2021-10-06 22:29:30 | [Mutex] received everything.

2021-10-06 22:29:30 | [Mutex] isItemNotified: received:node:e0c0cb03-42f2-4c41-a905-0159f4a6fe6d:localhost:node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6:Node ddd6eb89-19d7-40d4-aa4a-702eabf556b6 :: true

deleteNodes 1.024s
2021-10-06 22:29:34 |

2021-10-06 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:34 | ------------------------------------

2021-10-06 22:29:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6"
}

2021-10-06 22:29:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:29:35 | [Mutex] waiting for: [received:nodes:febb29aa-5c70-4c2b-b152-44e6ec4eeb18:localhost]

2021-10-06 22:29:35 | [Mutex] received everything.

2021-10-06 22:29:35 | [Mutex] isItemNotified: received:node:febb29aa-5c70-4c2b-b152-44e6ec4eeb18:localhost:node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6:Node ddd6eb89-19d7-40d4-aa4a-702eabf556b6 :: false

deleteSubnodes 1.025s
2021-10-06 22:29:33 |

2021-10-06 22:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:33 | ------------------------------------

2021-10-06 22:29:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0"
}

2021-10-06 22:29:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:29:34 | [Mutex] waiting for: [received:nodes:4828924c-18dd-4bc5-b79d-3d07412aea05:localhost]

2021-10-06 22:29:34 | [Mutex] received everything.

2021-10-06 22:29:34 | [Mutex] isItemNotified: received:node:4828924c-18dd-4bc5-b79d-3d07412aea05:localhost:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0 :: false

2021-10-06 22:29:34 | [Mutex] waiting for: [received:nodes:f43e5fd3-7354-4a3a-995e-e5e67f67c2ab:localhost]

2021-10-06 22:29:34 | [Mutex] received everything.

2021-10-06 22:29:34 | [Mutex] isItemNotified: received:node:f43e5fd3-7354-4a3a-995e-e5e67f67c2ab:localhost:node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0:Node 1c77a37c-85b0-42ef-b6a3-ec71234e5ea0 :: false

publishItemsToNodes 0.050s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

2021-10-06 22:29:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "entry": "<test>item-a4bdac2f-b285-4c38-b149-f04d18a24c26</test>",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26"
}

2021-10-06 22:29:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26"
}

2021-10-06 22:29:32 | [Mutex] waiting for: [published:item:notifieditem-a4bdac2f-b285-4c38-b149-f04d18a24c26:admin@test-domain.com]

2021-10-06 22:29:32 | [Mutex] received everything.

2021-10-06 22:29:32 | [Mutex] isItemNotified: published:item:notifieditem-a4bdac2f-b285-4c38-b149-f04d18a24c26:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

2021-10-06 22:29:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26"
}

2021-10-06 22:29:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26"
}

2021-10-06 22:29:32 | [Mutex] waiting for: [retracted:item:notifieditem-a4bdac2f-b285-4c38-b149-f04d18a24c26:admin@test-domain.com]

2021-10-06 22:29:32 | [Mutex] received everything.

2021-10-06 22:29:32 | [Mutex] isItemNotified: retracted:item:notifieditem-a4bdac2f-b285-4c38-b149-f04d18a24c26:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

2021-10-06 22:29:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26"
}

2021-10-06 22:29:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "item-id": "item-a4bdac2f-b285-4c38-b149-f04d18a24c26",
    "item": [
        "<item id=\"item-a4bdac2f-b285-4c38-b149-f04d18a24c26\"><test>item-a4bdac2f-b285-4c38-b149-f04d18a24c26</test></item>"
    ]
}

2021-10-06 22:29:32 | [Mutex] notify: [retrieved:item:item-a4bdac2f-b285-4c38-b149-f04d18a24c26:payload-matches:true:localhost]

2021-10-06 22:29:32 | [Mutex] received everything.

2021-10-06 22:29:32 | [Mutex] isItemNotified: retrieved:item:item-a4bdac2f-b285-4c38-b149-f04d18a24c26:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

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

2021-10-06 22:29:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ddd6eb89-19d7-40d4-aa4a-702eabf556b6",
        "test",
        "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.059s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

2021-10-06 22:29:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0)"
}

2021-10-06 22:29:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-10-06 22:29:31 |

2021-10-06 22:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:31 | ------------------------------------

2021-10-06 22:29:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-06 22:29:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-10-06 22:29:32 |

2021-10-06 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:29:32 | ------------------------------------

2021-10-06 22:29:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c77a37c-85b0-42ef-b6a3-ec71234e5ea0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-06 22:29:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}