Generated by TestNG with ReportNG at 22:48 PDT on Tuesday 09 August 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.739s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-08-09 23:02:39 |

2022-08-09 23:02:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:39 | ------------------------------------

2022-08-09 23:02:39 | [Mutex] waiting for: [configured:node:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0]

2022-08-09 23:02:39 | [Mutex] received everything.

2022-08-09 23:02:39 | [Mutex] isItemNotified: configured:node:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0 :: true

2022-08-09 23:02:40 | [Mutex] waiting for: [received:nodes:25368913-7529-482e-97a6-f4c679a5993c:localhost]

2022-08-09 23:02:40 | [Mutex] received everything.

2022-08-09 23:02:40 | [Mutex] isItemNotified: received:node:25368913-7529-482e-97a6-f4c679a5993c:localhost:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:Node 5d88245a-f010-4c96-9fdc-8d51f83015c9 :: true

2022-08-09 23:02:40 | [Mutex] waiting for: [received:nodes:d0c96d69-6877-4c11-9072-72975a46309d:localhost]

2022-08-09 23:02:40 | [Mutex] received everything.

2022-08-09 23:02:40 | [Mutex] isItemNotified: received:node:d0c96d69-6877-4c11-9072-72975a46309d:localhost:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:Node 5d88245a-f010-4c96-9fdc-8d51f83015c9 :: false

createNodes 1.585s
2022-08-09 23:02:36 |

2022-08-09 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:36 | ------------------------------------

2022-08-09 23:02:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "pubsub#title": "Node 5d88245a-f010-4c96-9fdc-8d51f83015c9"
}

2022-08-09 23:02:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:02:38 | [Mutex] waiting for: [received:nodes:2759e470-6209-442a-b62b-8b6ae6b7a3c4:localhost]

2022-08-09 23:02:38 | [Mutex] received everything.

2022-08-09 23:02:38 | [Mutex] isItemNotified: received:node:2759e470-6209-442a-b62b-8b6ae6b7a3c4:localhost:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:Node 5d88245a-f010-4c96-9fdc-8d51f83015c9 :: true

createSubnodes 1.023s
2022-08-09 23:02:38 |

2022-08-09 23:02:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:38 | ------------------------------------

2022-08-09 23:02:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0",
    "pubsub#title": "Node b516e747-7982-4ae2-bd7d-1a5ea26e33c0"
}

2022-08-09 23:02:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:02:39 | [Mutex] waiting for: [received:nodes:e161b251-3ca1-4332-837e-469ee28602d9:localhost]

2022-08-09 23:02:39 | [Mutex] received everything.

2022-08-09 23:02:39 | [Mutex] isItemNotified: received:node:e161b251-3ca1-4332-837e-469ee28602d9:localhost:node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0:Node b516e747-7982-4ae2-bd7d-1a5ea26e33c0 :: true

deleteNodes 1.019s
2022-08-09 23:02:43 |

2022-08-09 23:02:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:43 | ------------------------------------

2022-08-09 23:02:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0"
}

2022-08-09 23:02:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:02:44 | [Mutex] waiting for: [received:nodes:33d9c057-2650-43f1-8dc8-6d3d151ed9b9:localhost]

2022-08-09 23:02:44 | [Mutex] waiting for: [received:nodes:33d9c057-2650-43f1-8dc8-6d3d151ed9b9:localhost]

2022-08-09 23:02:44 | [Mutex] received everything.

2022-08-09 23:02:44 | [Mutex] isItemNotified: received:node:33d9c057-2650-43f1-8dc8-6d3d151ed9b9:localhost:node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0:Node b516e747-7982-4ae2-bd7d-1a5ea26e33c0 :: false

deleteSubnodes 1.026s
2022-08-09 23:02:42 |

2022-08-09 23:02:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:42 | ------------------------------------

2022-08-09 23:02:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9"
}

2022-08-09 23:02:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:02:43 | [Mutex] waiting for: [received:nodes:a9af7b7a-66c8-4191-8728-876e311e9f10:localhost]

2022-08-09 23:02:43 | [Mutex] received everything.

2022-08-09 23:02:43 | [Mutex] isItemNotified: received:node:a9af7b7a-66c8-4191-8728-876e311e9f10:localhost:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:Node 5d88245a-f010-4c96-9fdc-8d51f83015c9 :: false

2022-08-09 23:02:43 | [Mutex] waiting for: [received:nodes:0cb4be53-38cb-4ba4-a05a-968389b5c156:localhost]

2022-08-09 23:02:43 | [Mutex] received everything.

2022-08-09 23:02:43 | [Mutex] isItemNotified: received:node:0cb4be53-38cb-4ba4-a05a-968389b5c156:localhost:node-5d88245a-f010-4c96-9fdc-8d51f83015c9:Node 5d88245a-f010-4c96-9fdc-8d51f83015c9 :: false

publishItemsToNodes 0.088s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "entry": "<test>item-ae7c61c5-cfb7-409f-a56c-e5af85831651</test>",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651"
}

2022-08-09 23:02:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651"
}

2022-08-09 23:02:41 | [Mutex] received everything.

2022-08-09 23:02:41 | [Mutex] isItemNotified: published:item:notifieditem-ae7c61c5-cfb7-409f-a56c-e5af85831651:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651"
}

2022-08-09 23:02:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651"
}

2022-08-09 23:02:41 | [Mutex] received everything.

2022-08-09 23:02:41 | [Mutex] isItemNotified: retracted:item:notifieditem-ae7c61c5-cfb7-409f-a56c-e5af85831651:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651"
}

2022-08-09 23:02:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "item-id": "item-ae7c61c5-cfb7-409f-a56c-e5af85831651",
    "item": [
        "<item id=\"item-ae7c61c5-cfb7-409f-a56c-e5af85831651\"><test>item-ae7c61c5-cfb7-409f-a56c-e5af85831651</test></item>"
    ]
}

2022-08-09 23:02:41 | [Mutex] notify: [retrieved:item:item-ae7c61c5-cfb7-409f-a56c-e5af85831651:payload-matches:true:localhost]

2022-08-09 23:02:41 | [Mutex] received everything.

2022-08-09 23:02:41 | [Mutex] isItemNotified: retrieved:item:item-ae7c61c5-cfb7-409f-a56c-e5af85831651:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-09 23:02:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b516e747-7982-4ae2-bd7d-1a5ea26e33c0",
        "test",
        "node-5d88245a-f010-4c96-9fdc-8d51f83015c9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5d88245a-f010-4c96-9fdc-8d51f83015c9)"
}

2022-08-09 23:02:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-08-09 23:02:40 |

2022-08-09 23:02:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:40 | ------------------------------------

2022-08-09 23:02:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-09 23:02:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-08-09 23:02:41 |

2022-08-09 23:02:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:02:41 | ------------------------------------

2022-08-09 23:02:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5d88245a-f010-4c96-9fdc-8d51f83015c9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-09 23:02:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}