Generated by TestNG with ReportNG at 21:32 PST on Monday 30 November 2020
root@eaa73862192b / 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 : 8.817s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2020-11-30 21:48:39 |

2020-11-30 21:48:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:39 | ------------------------------------

2020-11-30 21:48:39 | [Mutex] waiting for: [configured:node:node-f063f10c-df10-4480-b4ac-8ccdee869778:node-645872ad-6f65-445e-a84c-353e6335d4a1]

2020-11-30 21:48:39 | [Mutex] received everything.

2020-11-30 21:48:39 | [Mutex] isItemNotified: configured:node:node-f063f10c-df10-4480-b4ac-8ccdee869778:node-645872ad-6f65-445e-a84c-353e6335d4a1 :: true

2020-11-30 21:48:40 | [Mutex] waiting for: [received:nodes:ae3000e0-f90b-4245-baad-5f996fdb2a2d:localhost]

2020-11-30 21:48:40 | [Mutex] received everything.

2020-11-30 21:48:40 | [Mutex] isItemNotified: received:node:ae3000e0-f90b-4245-baad-5f996fdb2a2d:localhost:node-f063f10c-df10-4480-b4ac-8ccdee869778:Node f063f10c-df10-4480-b4ac-8ccdee869778 :: true

2020-11-30 21:48:40 | [Mutex] waiting for: [received:nodes:bef5edd5-53ee-4250-9864-a1a16220b0cd:localhost]

2020-11-30 21:48:41 | [Mutex] received everything.

2020-11-30 21:48:41 | [Mutex] isItemNotified: received:node:bef5edd5-53ee-4250-9864-a1a16220b0cd:localhost:node-f063f10c-df10-4480-b4ac-8ccdee869778:Node f063f10c-df10-4480-b4ac-8ccdee869778 :: false

createNodes 1.470s
2020-11-30 21:48:37 |

2020-11-30 21:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:37 | ------------------------------------

2020-11-30 21:48:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "pubsub#title": "Node f063f10c-df10-4480-b4ac-8ccdee869778"
}

2020-11-30 21:48:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:48:38 | [Mutex] waiting for: [received:nodes:b2e779d0-de75-4ed9-af61-76df30d1b79d:localhost]

2020-11-30 21:48:38 | [Mutex] received everything.

2020-11-30 21:48:38 | [Mutex] isItemNotified: received:node:b2e779d0-de75-4ed9-af61-76df30d1b79d:localhost:node-f063f10c-df10-4480-b4ac-8ccdee869778:Node f063f10c-df10-4480-b4ac-8ccdee869778 :: true

createSubnodes 1.024s
2020-11-30 21:48:38 |

2020-11-30 21:48:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:38 | ------------------------------------

2020-11-30 21:48:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-645872ad-6f65-445e-a84c-353e6335d4a1",
    "pubsub#title": "Node 645872ad-6f65-445e-a84c-353e6335d4a1"
}

2020-11-30 21:48:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:48:39 | [Mutex] waiting for: [received:nodes:cbac8a02-4dcd-4e36-a5d8-0326281515fe:localhost]

2020-11-30 21:48:39 | [Mutex] received everything.

2020-11-30 21:48:39 | [Mutex] isItemNotified: received:node:cbac8a02-4dcd-4e36-a5d8-0326281515fe:localhost:node-645872ad-6f65-445e-a84c-353e6335d4a1:Node 645872ad-6f65-445e-a84c-353e6335d4a1 :: true

deleteNodes 1.020s
2020-11-30 21:48:44 |

2020-11-30 21:48:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:44 | ------------------------------------

2020-11-30 21:48:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-645872ad-6f65-445e-a84c-353e6335d4a1"
}

2020-11-30 21:48:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:48:45 | [Mutex] waiting for: [received:nodes:0e54857c-3cd5-48c6-803a-ad3a4fca2b22:localhost]

2020-11-30 21:48:45 | [Mutex] received everything.

2020-11-30 21:48:45 | [Mutex] isItemNotified: received:node:0e54857c-3cd5-48c6-803a-ad3a4fca2b22:localhost:node-645872ad-6f65-445e-a84c-353e6335d4a1:Node 645872ad-6f65-445e-a84c-353e6335d4a1 :: false

deleteSubnodes 1.027s
2020-11-30 21:48:43 |

2020-11-30 21:48:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:43 | ------------------------------------

2020-11-30 21:48:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778"
}

2020-11-30 21:48:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:48:44 | [Mutex] waiting for: [received:nodes:a79e5fb3-1e87-48e8-9658-e868b24c1b4e:localhost]

2020-11-30 21:48:44 | [Mutex] waiting for: [received:nodes:a79e5fb3-1e87-48e8-9658-e868b24c1b4e:localhost]

2020-11-30 21:48:44 | [Mutex] received everything.

2020-11-30 21:48:44 | [Mutex] isItemNotified: received:node:a79e5fb3-1e87-48e8-9658-e868b24c1b4e:localhost:node-f063f10c-df10-4480-b4ac-8ccdee869778:Node f063f10c-df10-4480-b4ac-8ccdee869778 :: false

2020-11-30 21:48:44 | [Mutex] waiting for: [received:nodes:93ead6f7-56ae-41f5-b3a2-5a503592ec95:localhost]

2020-11-30 21:48:44 | [Mutex] received everything.

2020-11-30 21:48:44 | [Mutex] isItemNotified: received:node:93ead6f7-56ae-41f5-b3a2-5a503592ec95:localhost:node-f063f10c-df10-4480-b4ac-8ccdee869778:Node f063f10c-df10-4480-b4ac-8ccdee869778 :: false

publishItemsToNodes 0.081s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

2020-11-30 21:48:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "entry": "<test>item-8e100c5b-53a6-4010-be69-a7f00f05269e</test>",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e"
}

2020-11-30 21:48:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e"
}

2020-11-30 21:48:42 | [Mutex] waiting for: [published:item:notifieditem-8e100c5b-53a6-4010-be69-a7f00f05269e:admin@test-domain.com]

2020-11-30 21:48:42 | [Mutex] received everything.

2020-11-30 21:48:42 | [Mutex] isItemNotified: published:item:notifieditem-8e100c5b-53a6-4010-be69-a7f00f05269e:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

2020-11-30 21:48:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e"
}

2020-11-30 21:48:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e"
}

2020-11-30 21:48:42 | [Mutex] received everything.

2020-11-30 21:48:42 | [Mutex] isItemNotified: retracted:item:notifieditem-8e100c5b-53a6-4010-be69-a7f00f05269e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

2020-11-30 21:48:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e"
}

2020-11-30 21:48:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "item-id": "item-8e100c5b-53a6-4010-be69-a7f00f05269e",
    "item": [
        "<item id=\"item-8e100c5b-53a6-4010-be69-a7f00f05269e\"><test>item-8e100c5b-53a6-4010-be69-a7f00f05269e</test></item>"
    ]
}

2020-11-30 21:48:42 | [Mutex] notify: [retrieved:item:item-8e100c5b-53a6-4010-be69-a7f00f05269e:payload-matches:true:localhost]

2020-11-30 21:48:42 | [Mutex] received everything.

2020-11-30 21:48:42 | [Mutex] isItemNotified: retrieved:item:item-8e100c5b-53a6-4010-be69-a7f00f05269e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

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

2020-11-30 21:48:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f063f10c-df10-4480-b4ac-8ccdee869778",
        "node-645872ad-6f65-445e-a84c-353e6335d4a1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

2020-11-30 21:48:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f063f10c-df10-4480-b4ac-8ccdee869778)"
}

2020-11-30 21:48:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-11-30 21:48:41 |

2020-11-30 21:48:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:41 | ------------------------------------

2020-11-30 21:48:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-30 21:48:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2020-11-30 21:48:42 |

2020-11-30 21:48:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:48:42 | ------------------------------------

2020-11-30 21:48:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f063f10c-df10-4480-b4ac-8ccdee869778",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-30 21:48:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}