Generated by TestNG with ReportNG at 06:32 PDT on Wednesday 09 September 2020
root@1c7098e4120c / 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 : 9.179s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2020-09-09 06:48:03 |

2020-09-09 06:48:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:03 | ------------------------------------

2020-09-09 06:48:03 | [Mutex] waiting for: [configured:node:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:node-38772d04-217d-4e02-a5eb-d985e2df65ff]

2020-09-09 06:48:03 | [Mutex] received everything.

2020-09-09 06:48:03 | [Mutex] isItemNotified: configured:node:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:node-38772d04-217d-4e02-a5eb-d985e2df65ff :: true

2020-09-09 06:48:04 | [Mutex] waiting for: [received:nodes:e929920f-71ec-426f-95e1-fe547787b62a:localhost]

2020-09-09 06:48:04 | [Mutex] received everything.

2020-09-09 06:48:04 | [Mutex] isItemNotified: received:node:e929920f-71ec-426f-95e1-fe547787b62a:localhost:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:Node 99216060-dcd3-4dbe-93af-ea0614b4af6f :: true

2020-09-09 06:48:04 | [Mutex] waiting for: [received:nodes:5b0a6c17-8a17-4ca4-b638-2ca85043e478:localhost]

2020-09-09 06:48:04 | [Mutex] waiting for: [received:nodes:5b0a6c17-8a17-4ca4-b638-2ca85043e478:localhost]

2020-09-09 06:48:04 | [Mutex] received everything.

2020-09-09 06:48:04 | [Mutex] isItemNotified: received:node:5b0a6c17-8a17-4ca4-b638-2ca85043e478:localhost:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:Node 99216060-dcd3-4dbe-93af-ea0614b4af6f :: false

createNodes 1.769s
2020-09-09 06:48:00 |

2020-09-09 06:48:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:00 | ------------------------------------

2020-09-09 06:48:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "pubsub#title": "Node 99216060-dcd3-4dbe-93af-ea0614b4af6f"
}

2020-09-09 06:48:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:48:01 | [Mutex] waiting for: [received:nodes:b4b71863-bbef-4fb9-b340-4283cf977e94:localhost]

2020-09-09 06:48:02 | [Mutex] waiting for: [received:nodes:b4b71863-bbef-4fb9-b340-4283cf977e94:localhost]

2020-09-09 06:48:02 | [Mutex] received everything.

2020-09-09 06:48:02 | [Mutex] isItemNotified: received:node:b4b71863-bbef-4fb9-b340-4283cf977e94:localhost:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:Node 99216060-dcd3-4dbe-93af-ea0614b4af6f :: true

createSubnodes 1.038s
2020-09-09 06:48:02 |

2020-09-09 06:48:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:02 | ------------------------------------

2020-09-09 06:48:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-38772d04-217d-4e02-a5eb-d985e2df65ff",
    "pubsub#title": "Node 38772d04-217d-4e02-a5eb-d985e2df65ff"
}

2020-09-09 06:48:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:48:03 | [Mutex] waiting for: [received:nodes:ebfdc1f7-8c04-4542-9425-fc98fc0ce7a3:localhost]

2020-09-09 06:48:03 | [Mutex] waiting for: [received:nodes:ebfdc1f7-8c04-4542-9425-fc98fc0ce7a3:localhost]

2020-09-09 06:48:03 | [Mutex] received everything.

2020-09-09 06:48:03 | [Mutex] isItemNotified: received:node:ebfdc1f7-8c04-4542-9425-fc98fc0ce7a3:localhost:node-38772d04-217d-4e02-a5eb-d985e2df65ff:Node 38772d04-217d-4e02-a5eb-d985e2df65ff :: true

deleteNodes 1.022s
2020-09-09 06:48:07 |

2020-09-09 06:48:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:07 | ------------------------------------

2020-09-09 06:48:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-38772d04-217d-4e02-a5eb-d985e2df65ff"
}

2020-09-09 06:48:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:48:08 | [Mutex] waiting for: [received:nodes:1c04c504-9ee3-4fc7-8ebc-fec4ffc70e28:localhost]

2020-09-09 06:48:08 | [Mutex] received everything.

2020-09-09 06:48:08 | [Mutex] isItemNotified: received:node:1c04c504-9ee3-4fc7-8ebc-fec4ffc70e28:localhost:node-38772d04-217d-4e02-a5eb-d985e2df65ff:Node 38772d04-217d-4e02-a5eb-d985e2df65ff :: false

deleteSubnodes 1.034s
2020-09-09 06:48:06 |

2020-09-09 06:48:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:06 | ------------------------------------

2020-09-09 06:48:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f"
}

2020-09-09 06:48:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:48:07 | [Mutex] waiting for: [received:nodes:64d47fed-812e-410c-85c4-07d8c7fb2376:localhost]

2020-09-09 06:48:07 | [Mutex] waiting for: [received:nodes:64d47fed-812e-410c-85c4-07d8c7fb2376:localhost]

2020-09-09 06:48:07 | [Mutex] waiting for: [received:nodes:64d47fed-812e-410c-85c4-07d8c7fb2376:localhost]

2020-09-09 06:48:07 | [Mutex] received everything.

2020-09-09 06:48:07 | [Mutex] isItemNotified: received:node:64d47fed-812e-410c-85c4-07d8c7fb2376:localhost:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:Node 99216060-dcd3-4dbe-93af-ea0614b4af6f :: false

2020-09-09 06:48:07 | [Mutex] waiting for: [received:nodes:22602dd2-2549-43b6-bc55-64920a393466:localhost]

2020-09-09 06:48:07 | [Mutex] received everything.

2020-09-09 06:48:07 | [Mutex] isItemNotified: received:node:22602dd2-2549-43b6-bc55-64920a393466:localhost:node-99216060-dcd3-4dbe-93af-ea0614b4af6f:Node 99216060-dcd3-4dbe-93af-ea0614b4af6f :: false

publishItemsToNodes 0.037s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "entry": "<test>item-26e0bb74-140f-485a-b355-7a9bd8b34215</test>",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215"
}

2020-09-09 06:48:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215"
}

2020-09-09 06:48:05 | [Mutex] waiting for: [published:item:notifieditem-26e0bb74-140f-485a-b355-7a9bd8b34215:admin@test-domain.com]

2020-09-09 06:48:05 | [Mutex] received everything.

2020-09-09 06:48:05 | [Mutex] isItemNotified: published:item:notifieditem-26e0bb74-140f-485a-b355-7a9bd8b34215:admin@test-domain.com :: true

retractItemsFromNodes 0.108s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215"
}

2020-09-09 06:48:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215"
}

2020-09-09 06:48:05 | [Mutex] received everything.

2020-09-09 06:48:05 | [Mutex] isItemNotified: retracted:item:notifieditem-26e0bb74-140f-485a-b355-7a9bd8b34215:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215"
}

2020-09-09 06:48:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "item-id": "item-26e0bb74-140f-485a-b355-7a9bd8b34215",
    "item": [
        "<item id=\"item-26e0bb74-140f-485a-b355-7a9bd8b34215\"><test>item-26e0bb74-140f-485a-b355-7a9bd8b34215</test></item>"
    ]
}

2020-09-09 06:48:05 | [Mutex] notify: [retrieved:item:item-26e0bb74-140f-485a-b355-7a9bd8b34215:payload-matches:true:localhost]

2020-09-09 06:48:05 | [Mutex] received everything.

2020-09-09 06:48:05 | [Mutex] isItemNotified: retrieved:item:item-26e0bb74-140f-485a-b355-7a9bd8b34215:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-09 06:48:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-38772d04-217d-4e02-a5eb-d985e2df65ff",
        "node-99216060-dcd3-4dbe-93af-ea0614b4af6f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-99216060-dcd3-4dbe-93af-ea0614b4af6f)"
}

2020-09-09 06:48:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-09-09 06:48:04 |

2020-09-09 06:48:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:04 | ------------------------------------

2020-09-09 06:48:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 06:48:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-09 06:48:05 |

2020-09-09 06:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:48:05 | ------------------------------------

2020-09-09 06:48:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-99216060-dcd3-4dbe-93af-ea0614b4af6f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 06:48:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}