Generated by TestNG with ReportNG at 22:56 PDT on Sunday 18 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.248s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2020-10-18 23:12:50 |

2020-10-18 23:12:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:50 | ------------------------------------

2020-10-18 23:12:50 | [Mutex] waiting for: [configured:node:node-7df344c8-628a-4e30-8f47-ff9944be9a53:node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49]

2020-10-18 23:12:50 | [Mutex] received everything.

2020-10-18 23:12:50 | [Mutex] isItemNotified: configured:node:node-7df344c8-628a-4e30-8f47-ff9944be9a53:node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49 :: true

2020-10-18 23:12:51 | [Mutex] waiting for: [received:nodes:637f49b1-f9a9-4e51-88f0-f91c1e33ef50:localhost]

2020-10-18 23:12:51 | [Mutex] received everything.

2020-10-18 23:12:51 | [Mutex] isItemNotified: received:node:637f49b1-f9a9-4e51-88f0-f91c1e33ef50:localhost:node-7df344c8-628a-4e30-8f47-ff9944be9a53:Node 7df344c8-628a-4e30-8f47-ff9944be9a53 :: true

2020-10-18 23:12:51 | [Mutex] waiting for: [received:nodes:5b9623e2-71b5-49b4-b34b-b46da9bbd109:localhost]

2020-10-18 23:12:51 | [Mutex] received everything.

2020-10-18 23:12:51 | [Mutex] isItemNotified: received:node:5b9623e2-71b5-49b4-b34b-b46da9bbd109:localhost:node-7df344c8-628a-4e30-8f47-ff9944be9a53:Node 7df344c8-628a-4e30-8f47-ff9944be9a53 :: false

createNodes 1.833s
2020-10-18 23:12:47 |

2020-10-18 23:12:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:47 | ------------------------------------

2020-10-18 23:12:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "pubsub#title": "Node 7df344c8-628a-4e30-8f47-ff9944be9a53"
}

2020-10-18 23:12:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 23:12:49 | [Mutex] waiting for: [received:nodes:5b1f48f4-1798-4fc6-bb8a-1224facf3c83:localhost]

2020-10-18 23:12:49 | [Mutex] waiting for: [received:nodes:5b1f48f4-1798-4fc6-bb8a-1224facf3c83:localhost]

2020-10-18 23:12:49 | [Mutex] received everything.

2020-10-18 23:12:49 | [Mutex] isItemNotified: received:node:5b1f48f4-1798-4fc6-bb8a-1224facf3c83:localhost:node-7df344c8-628a-4e30-8f47-ff9944be9a53:Node 7df344c8-628a-4e30-8f47-ff9944be9a53 :: true

createSubnodes 1.032s
2020-10-18 23:12:49 |

2020-10-18 23:12:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:49 | ------------------------------------

2020-10-18 23:12:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49",
    "pubsub#title": "Node 58db4f0c-2ffb-43ac-8e84-b6090d2a5d49"
}

2020-10-18 23:12:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 23:12:50 | [Mutex] waiting for: [received:nodes:1cd7333c-d5e6-48e8-a94c-19585ca8ab26:localhost]

2020-10-18 23:12:50 | [Mutex] waiting for: [received:nodes:1cd7333c-d5e6-48e8-a94c-19585ca8ab26:localhost]

2020-10-18 23:12:50 | [Mutex] received everything.

2020-10-18 23:12:50 | [Mutex] isItemNotified: received:node:1cd7333c-d5e6-48e8-a94c-19585ca8ab26:localhost:node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49:Node 58db4f0c-2ffb-43ac-8e84-b6090d2a5d49 :: true

deleteNodes 1.028s
2020-10-18 23:12:55 |

2020-10-18 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:55 | ------------------------------------

2020-10-18 23:12:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49"
}

2020-10-18 23:12:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 23:12:56 | [Mutex] waiting for: [received:nodes:e7d42b62-101a-420c-9e67-615169c97b4a:localhost]

2020-10-18 23:12:56 | [Mutex] waiting for: [received:nodes:e7d42b62-101a-420c-9e67-615169c97b4a:localhost]

2020-10-18 23:12:56 | [Mutex] received everything.

2020-10-18 23:12:56 | [Mutex] isItemNotified: received:node:e7d42b62-101a-420c-9e67-615169c97b4a:localhost:node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49:Node 58db4f0c-2ffb-43ac-8e84-b6090d2a5d49 :: false

deleteSubnodes 1.032s
2020-10-18 23:12:54 |

2020-10-18 23:12:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:54 | ------------------------------------

2020-10-18 23:12:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53"
}

2020-10-18 23:12:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 23:12:55 | [Mutex] waiting for: [received:nodes:9d4e0965-1bcb-4326-8c69-44015c527c7e:localhost]

2020-10-18 23:12:55 | [Mutex] waiting for: [received:nodes:9d4e0965-1bcb-4326-8c69-44015c527c7e:localhost]

2020-10-18 23:12:55 | [Mutex] received everything.

2020-10-18 23:12:55 | [Mutex] isItemNotified: received:node:9d4e0965-1bcb-4326-8c69-44015c527c7e:localhost:node-7df344c8-628a-4e30-8f47-ff9944be9a53:Node 7df344c8-628a-4e30-8f47-ff9944be9a53 :: false

2020-10-18 23:12:55 | [Mutex] waiting for: [received:nodes:b8579096-f441-4de0-85ba-1fc06566c8fc:localhost]

2020-10-18 23:12:55 | [Mutex] received everything.

2020-10-18 23:12:55 | [Mutex] isItemNotified: received:node:b8579096-f441-4de0-85ba-1fc06566c8fc:localhost:node-7df344c8-628a-4e30-8f47-ff9944be9a53:Node 7df344c8-628a-4e30-8f47-ff9944be9a53 :: false

publishItemsToNodes 0.034s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "entry": "<test>item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1</test>",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1"
}

2020-10-18 23:12:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1"
}

2020-10-18 23:12:52 | [Mutex] waiting for: [published:item:notifieditem-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1:admin@test-domain.com]

2020-10-18 23:12:52 | [Mutex] received everything.

2020-10-18 23:12:52 | [Mutex] isItemNotified: published:item:notifieditem-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1"
}

2020-10-18 23:12:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1"
}

2020-10-18 23:12:52 | [Mutex] received everything.

2020-10-18 23:12:52 | [Mutex] isItemNotified: retracted:item:notifieditem-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1"
}

2020-10-18 23:12:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "item-id": "item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1",
    "item": [
        "<item id=\"item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1\"><test>item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1</test></item>"
    ]
}

2020-10-18 23:12:52 | [Mutex] notify: [retrieved:item:item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1:payload-matches:true:localhost]

2020-10-18 23:12:52 | [Mutex] received everything.

2020-10-18 23:12:52 | [Mutex] isItemNotified: retrieved:item:item-5dc2665f-2abd-4f2c-ab0f-af0ce4c7d7d1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-18 23:12:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
        "node-58db4f0c-2ffb-43ac-8e84-b6090d2a5d49"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7df344c8-628a-4e30-8f47-ff9944be9a53)"
}

2020-10-18 23:12:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-10-18 23:12:51 |

2020-10-18 23:12:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:51 | ------------------------------------

2020-10-18 23:12:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-18 23:12:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.095s
2020-10-18 23:12:52 |

2020-10-18 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 23:12:52 | ------------------------------------

2020-10-18 23:12:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7df344c8-628a-4e30-8f47-ff9944be9a53",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-18 23:12:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}