Generated by TestNG with ReportNG at 22:15 PDT on Thursday 01 October 2020
root@43fec6d4badf / 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.029s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2020-10-01 22:32:31 |

2020-10-01 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:31 | ------------------------------------

2020-10-01 22:32:31 | [Mutex] waiting for: [configured:node:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3]

2020-10-01 22:32:31 | [Mutex] received everything.

2020-10-01 22:32:31 | [Mutex] isItemNotified: configured:node:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3 :: true

2020-10-01 22:32:32 | [Mutex] waiting for: [received:nodes:c6c20140-86e4-4ef0-8d41-50bbfa5172b6:localhost]

2020-10-01 22:32:32 | [Mutex] received everything.

2020-10-01 22:32:32 | [Mutex] isItemNotified: received:node:c6c20140-86e4-4ef0-8d41-50bbfa5172b6:localhost:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:Node d4542ecd-3985-4999-ba5e-83f8a16c409d :: true

2020-10-01 22:32:32 | [Mutex] waiting for: [received:nodes:08d04902-55d3-4d45-be48-69d3e83337f1:localhost]

2020-10-01 22:32:32 | [Mutex] received everything.

2020-10-01 22:32:32 | [Mutex] isItemNotified: received:node:08d04902-55d3-4d45-be48-69d3e83337f1:localhost:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:Node d4542ecd-3985-4999-ba5e-83f8a16c409d :: false

createNodes 1.797s
2020-10-01 22:32:28 |

2020-10-01 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:28 | ------------------------------------

2020-10-01 22:32:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "pubsub#title": "Node d4542ecd-3985-4999-ba5e-83f8a16c409d"
}

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

2020-10-01 22:32:30 | [Mutex] waiting for: [received:nodes:5b5a7f83-7d90-4baa-bb00-8b4fda73da60:localhost]

2020-10-01 22:32:30 | [Mutex] waiting for: [received:nodes:5b5a7f83-7d90-4baa-bb00-8b4fda73da60:localhost]

2020-10-01 22:32:30 | [Mutex] waiting for: [received:nodes:5b5a7f83-7d90-4baa-bb00-8b4fda73da60:localhost]

2020-10-01 22:32:30 | [Mutex] received everything.

2020-10-01 22:32:30 | [Mutex] isItemNotified: received:node:5b5a7f83-7d90-4baa-bb00-8b4fda73da60:localhost:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:Node d4542ecd-3985-4999-ba5e-83f8a16c409d :: true

createSubnodes 1.025s
2020-10-01 22:32:30 |

2020-10-01 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:30 | ------------------------------------

2020-10-01 22:32:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3",
    "pubsub#title": "Node f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3"
}

2020-10-01 22:32:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-01 22:32:31 | [Mutex] waiting for: [received:nodes:23c644b1-a39f-4aa8-9843-0644f95cfd80:localhost]

2020-10-01 22:32:31 | [Mutex] received everything.

2020-10-01 22:32:31 | [Mutex] isItemNotified: received:node:23c644b1-a39f-4aa8-9843-0644f95cfd80:localhost:node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3:Node f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3 :: true

deleteNodes 1.029s
2020-10-01 22:32:35 |

2020-10-01 22:32:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:35 | ------------------------------------

2020-10-01 22:32:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3"
}

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

2020-10-01 22:32:36 | [Mutex] waiting for: [received:nodes:e933da8b-89d0-4f4f-b20d-059ff7ffe6bf:localhost]

2020-10-01 22:32:36 | [Mutex] received everything.

2020-10-01 22:32:36 | [Mutex] isItemNotified: received:node:e933da8b-89d0-4f4f-b20d-059ff7ffe6bf:localhost:node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3:Node f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3 :: false

deleteSubnodes 1.024s
2020-10-01 22:32:34 |

2020-10-01 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:34 | ------------------------------------

2020-10-01 22:32:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d"
}

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

2020-10-01 22:32:35 | [Mutex] waiting for: [received:nodes:ca91f4fe-6b30-4793-ab9c-826a25e8e584:localhost]

2020-10-01 22:32:35 | [Mutex] received everything.

2020-10-01 22:32:35 | [Mutex] isItemNotified: received:node:ca91f4fe-6b30-4793-ab9c-826a25e8e584:localhost:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:Node d4542ecd-3985-4999-ba5e-83f8a16c409d :: false

2020-10-01 22:32:35 | [Mutex] waiting for: [received:nodes:fba9291c-4671-440d-89d8-4081b840a0fa:localhost]

2020-10-01 22:32:35 | [Mutex] received everything.

2020-10-01 22:32:35 | [Mutex] isItemNotified: received:node:fba9291c-4671-440d-89d8-4081b840a0fa:localhost:node-d4542ecd-3985-4999-ba5e-83f8a16c409d:Node d4542ecd-3985-4999-ba5e-83f8a16c409d :: false

publishItemsToNodes 0.084s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

2020-10-01 22:32:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "entry": "<test>item-6a9278dc-2c71-4edb-8ddd-33635e6cd416</test>",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416"
}

2020-10-01 22:32:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416"
}

2020-10-01 22:32:33 | [Mutex] waiting for: [published:item:notifieditem-6a9278dc-2c71-4edb-8ddd-33635e6cd416:admin@test-domain.com]

2020-10-01 22:32:33 | [Mutex] received everything.

2020-10-01 22:32:33 | [Mutex] isItemNotified: published:item:notifieditem-6a9278dc-2c71-4edb-8ddd-33635e6cd416:admin@test-domain.com :: true

retractItemsFromNodes 0.077s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

2020-10-01 22:32:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416"
}

2020-10-01 22:32:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416"
}

2020-10-01 22:32:33 | [Mutex] received everything.

2020-10-01 22:32:33 | [Mutex] isItemNotified: retracted:item:notifieditem-6a9278dc-2c71-4edb-8ddd-33635e6cd416:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

2020-10-01 22:32:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416"
}

2020-10-01 22:32:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "item-id": "item-6a9278dc-2c71-4edb-8ddd-33635e6cd416",
    "item": [
        "<item id=\"item-6a9278dc-2c71-4edb-8ddd-33635e6cd416\"><test>item-6a9278dc-2c71-4edb-8ddd-33635e6cd416</test></item>"
    ]
}

2020-10-01 22:32:33 | [Mutex] notify: [retrieved:item:item-6a9278dc-2c71-4edb-8ddd-33635e6cd416:payload-matches:true:localhost]

2020-10-01 22:32:33 | [Mutex] received everything.

2020-10-01 22:32:33 | [Mutex] isItemNotified: retrieved:item:item-6a9278dc-2c71-4edb-8ddd-33635e6cd416:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

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

2020-10-01 22:32:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
        "node-f8bb4a15-c2a7-4816-be6c-cf58f6f54cf3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

2020-10-01 22:32:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d4542ecd-3985-4999-ba5e-83f8a16c409d)"
}

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

subscribeNodes 1.018s
2020-10-01 22:32:32 |

2020-10-01 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:32 | ------------------------------------

2020-10-01 22:32:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-01 22:32:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2020-10-01 22:32:33 |

2020-10-01 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 22:32:33 | ------------------------------------

2020-10-01 22:32:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d4542ecd-3985-4999-ba5e-83f8a16c409d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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