Generated by TestNG with ReportNG at 22:50 PDT on Sunday 01 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.783s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-05-01 23:04:56 |

2022-05-01 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:56 | ------------------------------------

2022-05-01 23:04:56 | [Mutex] waiting for: [configured:node:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd]

2022-05-01 23:04:56 | [Mutex] received everything.

2022-05-01 23:04:56 | [Mutex] isItemNotified: configured:node:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd :: true

2022-05-01 23:04:57 | [Mutex] waiting for: [received:nodes:2ac531ea-84fc-4a48-9255-12a251a7638a:localhost]

2022-05-01 23:04:57 | [Mutex] received everything.

2022-05-01 23:04:57 | [Mutex] isItemNotified: received:node:2ac531ea-84fc-4a48-9255-12a251a7638a:localhost:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25 :: true

2022-05-01 23:04:57 | [Mutex] waiting for: [received:nodes:805f4889-67cd-45ad-8caf-7403a6612d9c:localhost]

2022-05-01 23:04:57 | [Mutex] received everything.

2022-05-01 23:04:57 | [Mutex] isItemNotified: received:node:805f4889-67cd-45ad-8caf-7403a6612d9c:localhost:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25 :: false

createNodes 1.527s
2022-05-01 23:04:53 |

2022-05-01 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:53 | ------------------------------------

2022-05-01 23:04:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "pubsub#title": "Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25"
}

2022-05-01 23:04:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:04:55 | [Mutex] waiting for: [received:nodes:6231cc3a-3a44-4f78-9548-41cb93821b70:localhost]

2022-05-01 23:04:55 | [Mutex] waiting for: [received:nodes:6231cc3a-3a44-4f78-9548-41cb93821b70:localhost]

2022-05-01 23:04:55 | [Mutex] received everything.

2022-05-01 23:04:55 | [Mutex] isItemNotified: received:node:6231cc3a-3a44-4f78-9548-41cb93821b70:localhost:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25 :: true

createSubnodes 1.022s
2022-05-01 23:04:55 |

2022-05-01 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:55 | ------------------------------------

2022-05-01 23:04:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd",
    "pubsub#title": "Node 1e12b89e-655c-4f14-8b6c-f9188fc8e2fd"
}

2022-05-01 23:04:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:04:56 | [Mutex] waiting for: [received:nodes:3a2a07c9-ada0-43e0-9140-2897e4ead3ba:localhost]

2022-05-01 23:04:56 | [Mutex] received everything.

2022-05-01 23:04:56 | [Mutex] isItemNotified: received:node:3a2a07c9-ada0-43e0-9140-2897e4ead3ba:localhost:node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd:Node 1e12b89e-655c-4f14-8b6c-f9188fc8e2fd :: true

deleteNodes 1.021s
2022-05-01 23:05:00 |

2022-05-01 23:05:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:05:00 | ------------------------------------

2022-05-01 23:05:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd"
}

2022-05-01 23:05:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:05:01 | [Mutex] waiting for: [received:nodes:60135b60-1260-42f1-82d7-4395021b56ba:localhost]

2022-05-01 23:05:02 | [Mutex] received everything.

2022-05-01 23:05:02 | [Mutex] isItemNotified: received:node:60135b60-1260-42f1-82d7-4395021b56ba:localhost:node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd:Node 1e12b89e-655c-4f14-8b6c-f9188fc8e2fd :: false

deleteSubnodes 1.031s
2022-05-01 23:04:59 |

2022-05-01 23:04:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:59 | ------------------------------------

2022-05-01 23:04:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25"
}

2022-05-01 23:04:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:05:00 | [Mutex] waiting for: [received:nodes:e9a2eced-034b-4239-bc0d-bf5f97b0db61:localhost]

2022-05-01 23:05:00 | [Mutex] received everything.

2022-05-01 23:05:00 | [Mutex] isItemNotified: received:node:e9a2eced-034b-4239-bc0d-bf5f97b0db61:localhost:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25 :: false

2022-05-01 23:05:00 | [Mutex] waiting for: [received:nodes:4f92110c-27f4-42dc-88f6-ce83477361a0:localhost]

2022-05-01 23:05:00 | [Mutex] received everything.

2022-05-01 23:05:00 | [Mutex] isItemNotified: received:node:4f92110c-27f4-42dc-88f6-ce83477361a0:localhost:node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25:Node f975a0ee-9f0a-47d3-b89a-d963ee5caf25 :: false

publishItemsToNodes 0.104s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "entry": "<test>item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841</test>",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841"
}

2022-05-01 23:04:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841"
}

2022-05-01 23:04:58 | [Mutex] waiting for: [published:item:notifieditem-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841:admin@test-domain.com]

2022-05-01 23:04:58 | [Mutex] received everything.

2022-05-01 23:04:58 | [Mutex] isItemNotified: published:item:notifieditem-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841"
}

2022-05-01 23:04:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841"
}

2022-05-01 23:04:58 | [Mutex] received everything.

2022-05-01 23:04:58 | [Mutex] isItemNotified: retracted:item:notifieditem-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841:admin@test-domain.com :: true

retrieveItemsFromNodes 0.029s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841"
}

2022-05-01 23:04:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "item-id": "item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841",
    "item": [
        "<item id=\"item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841\"><test>item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841</test></item>"
    ]
}

2022-05-01 23:04:58 | [Mutex] notify: [retrieved:item:item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841:payload-matches:true:localhost]

2022-05-01 23:04:58 | [Mutex] received everything.

2022-05-01 23:04:58 | [Mutex] isItemNotified: retrieved:item:item-a22ee1c7-f7e5-4ac5-8b4d-7760e942b841:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-01 23:04:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1e12b89e-655c-4f14-8b6c-f9188fc8e2fd",
        "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25)"
}

2022-05-01 23:04:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-05-01 23:04:57 |

2022-05-01 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:57 | ------------------------------------

2022-05-01 23:04:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 23:04:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-05-01 23:04:58 |

2022-05-01 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:04:58 | ------------------------------------

2022-05-01 23:04:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f975a0ee-9f0a-47d3-b89a-d963ee5caf25",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 23:04:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}