Generated by TestNG with ReportNG at 15:43 PDT on Friday 25 September 2020
root@0a7dacfb9e9e / 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.040s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.140s
2020-09-25 15:59:34 |

2020-09-25 15:59:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:34 | ------------------------------------

2020-09-25 15:59:34 | [Mutex] waiting for: [configured:node:node-5afafd02-3348-453f-b6a5-df3b508c20aa:node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec]

2020-09-25 15:59:34 | [Mutex] received everything.

2020-09-25 15:59:34 | [Mutex] isItemNotified: configured:node:node-5afafd02-3348-453f-b6a5-df3b508c20aa:node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec :: true

2020-09-25 15:59:35 | [Mutex] waiting for: [received:nodes:544de571-8cd9-44c4-99f5-c5892376c44d:localhost]

2020-09-25 15:59:35 | [Mutex] received everything.

2020-09-25 15:59:35 | [Mutex] isItemNotified: received:node:544de571-8cd9-44c4-99f5-c5892376c44d:localhost:node-5afafd02-3348-453f-b6a5-df3b508c20aa:Node 5afafd02-3348-453f-b6a5-df3b508c20aa :: true

2020-09-25 15:59:35 | [Mutex] waiting for: [received:nodes:2bf1bbde-ecfc-4802-83e6-053a101d8f09:localhost]

2020-09-25 15:59:35 | [Mutex] received everything.

2020-09-25 15:59:35 | [Mutex] isItemNotified: received:node:2bf1bbde-ecfc-4802-83e6-053a101d8f09:localhost:node-5afafd02-3348-453f-b6a5-df3b508c20aa:Node 5afafd02-3348-453f-b6a5-df3b508c20aa :: false

createNodes 1.797s
2020-09-25 15:59:31 |

2020-09-25 15:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:31 | ------------------------------------

2020-09-25 15:59:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "pubsub#title": "Node 5afafd02-3348-453f-b6a5-df3b508c20aa"
}

2020-09-25 15:59:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 15:59:33 | [Mutex] waiting for: [received:nodes:0a7fbdc3-957b-4960-80e0-7ca1e35ca9df:localhost]

2020-09-25 15:59:33 | [Mutex] received everything.

2020-09-25 15:59:33 | [Mutex] isItemNotified: received:node:0a7fbdc3-957b-4960-80e0-7ca1e35ca9df:localhost:node-5afafd02-3348-453f-b6a5-df3b508c20aa:Node 5afafd02-3348-453f-b6a5-df3b508c20aa :: true

createSubnodes 1.025s
2020-09-25 15:59:33 |

2020-09-25 15:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:33 | ------------------------------------

2020-09-25 15:59:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec",
    "pubsub#title": "Node b5bf3f52-bed8-40dc-b533-b62a390eb6ec"
}

2020-09-25 15:59:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 15:59:34 | [Mutex] waiting for: [received:nodes:4d220b54-23a4-4a8e-ac3a-c4e06c795108:localhost]

2020-09-25 15:59:34 | [Mutex] received everything.

2020-09-25 15:59:34 | [Mutex] isItemNotified: received:node:4d220b54-23a4-4a8e-ac3a-c4e06c795108:localhost:node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec:Node b5bf3f52-bed8-40dc-b533-b62a390eb6ec :: true

deleteNodes 1.020s
2020-09-25 15:59:39 |

2020-09-25 15:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:39 | ------------------------------------

2020-09-25 15:59:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec"
}

2020-09-25 15:59:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 15:59:40 | [Mutex] waiting for: [received:nodes:bc428ccd-9da0-4206-8516-3c29c3ef2027:localhost]

2020-09-25 15:59:40 | [Mutex] received everything.

2020-09-25 15:59:40 | [Mutex] isItemNotified: received:node:bc428ccd-9da0-4206-8516-3c29c3ef2027:localhost:node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec:Node b5bf3f52-bed8-40dc-b533-b62a390eb6ec :: false

deleteSubnodes 1.023s
2020-09-25 15:59:37 |

2020-09-25 15:59:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:37 | ------------------------------------

2020-09-25 15:59:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa"
}

2020-09-25 15:59:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 15:59:38 | [Mutex] waiting for: [received:nodes:f1725b21-e88a-4cad-bbab-906f66560401:localhost]

2020-09-25 15:59:38 | [Mutex] waiting for: [received:nodes:f1725b21-e88a-4cad-bbab-906f66560401:localhost]

2020-09-25 15:59:38 | [Mutex] received everything.

2020-09-25 15:59:38 | [Mutex] isItemNotified: received:node:f1725b21-e88a-4cad-bbab-906f66560401:localhost:node-5afafd02-3348-453f-b6a5-df3b508c20aa:Node 5afafd02-3348-453f-b6a5-df3b508c20aa :: false

2020-09-25 15:59:38 | [Mutex] waiting for: [received:nodes:e5c6967c-1b26-43ce-94b2-01654add26cf:localhost]

2020-09-25 15:59:39 | [Mutex] received everything.

2020-09-25 15:59:39 | [Mutex] isItemNotified: received:node:e5c6967c-1b26-43ce-94b2-01654add26cf:localhost:node-5afafd02-3348-453f-b6a5-df3b508c20aa:Node 5afafd02-3348-453f-b6a5-df3b508c20aa :: false

publishItemsToNodes 0.036s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

2020-09-25 15:59:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "entry": "<test>item-9072a368-4850-4cf4-8a6f-4493a00fd932</test>",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932"
}

2020-09-25 15:59:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932"
}

2020-09-25 15:59:36 | [Mutex] waiting for: [published:item:notifieditem-9072a368-4850-4cf4-8a6f-4493a00fd932:admin@test-domain.com]

2020-09-25 15:59:36 | [Mutex] received everything.

2020-09-25 15:59:36 | [Mutex] isItemNotified: published:item:notifieditem-9072a368-4850-4cf4-8a6f-4493a00fd932:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

2020-09-25 15:59:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932"
}

2020-09-25 15:59:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932"
}

2020-09-25 15:59:36 | [Mutex] received everything.

2020-09-25 15:59:36 | [Mutex] isItemNotified: retracted:item:notifieditem-9072a368-4850-4cf4-8a6f-4493a00fd932:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

2020-09-25 15:59:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932"
}

2020-09-25 15:59:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "item-id": "item-9072a368-4850-4cf4-8a6f-4493a00fd932",
    "item": [
        "<item id=\"item-9072a368-4850-4cf4-8a6f-4493a00fd932\"><test>item-9072a368-4850-4cf4-8a6f-4493a00fd932</test></item>"
    ]
}

2020-09-25 15:59:36 | [Mutex] notify: [retrieved:item:item-9072a368-4850-4cf4-8a6f-4493a00fd932:payload-matches:true:localhost]

2020-09-25 15:59:36 | [Mutex] received everything.

2020-09-25 15:59:36 | [Mutex] isItemNotified: retrieved:item:item-9072a368-4850-4cf4-8a6f-4493a00fd932:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

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

2020-09-25 15:59:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
        "test",
        "node-b5bf3f52-bed8-40dc-b533-b62a390eb6ec"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

2020-09-25 15:59:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5afafd02-3348-453f-b6a5-df3b508c20aa)"
}

2020-09-25 15:59:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-09-25 15:59:35 |

2020-09-25 15:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:35 | ------------------------------------

2020-09-25 15:59:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 15:59:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2020-09-25 15:59:36 |

2020-09-25 15:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 15:59:36 | ------------------------------------

2020-09-25 15:59:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5afafd02-3348-453f-b6a5-df3b508c20aa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 15:59:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}