Generated by TestNG with ReportNG at 21:14 PST on Monday 21 December 2020
root@87f6aca6b6f2 / 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.189s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2020-12-21 21:29:55 |

2020-12-21 21:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:55 | ------------------------------------

2020-12-21 21:29:55 | [Mutex] waiting for: [configured:node:node-6538e3d2-45da-46a6-8bf5-3635640b2815:node-4459904a-a0fb-4979-a551-c8a9522a687d]

2020-12-21 21:29:55 | [Mutex] received everything.

2020-12-21 21:29:55 | [Mutex] isItemNotified: configured:node:node-6538e3d2-45da-46a6-8bf5-3635640b2815:node-4459904a-a0fb-4979-a551-c8a9522a687d :: true

2020-12-21 21:29:56 | [Mutex] waiting for: [received:nodes:978f4a04-1d94-4ce6-b49a-94292a1d0d11:localhost]

2020-12-21 21:29:56 | [Mutex] received everything.

2020-12-21 21:29:56 | [Mutex] isItemNotified: received:node:978f4a04-1d94-4ce6-b49a-94292a1d0d11:localhost:node-6538e3d2-45da-46a6-8bf5-3635640b2815:Node 6538e3d2-45da-46a6-8bf5-3635640b2815 :: true

2020-12-21 21:29:56 | [Mutex] waiting for: [received:nodes:1d252e74-f2a4-45f2-bfc2-36f49ad19132:localhost]

2020-12-21 21:29:56 | [Mutex] received everything.

2020-12-21 21:29:56 | [Mutex] isItemNotified: received:node:1d252e74-f2a4-45f2-bfc2-36f49ad19132:localhost:node-6538e3d2-45da-46a6-8bf5-3635640b2815:Node 6538e3d2-45da-46a6-8bf5-3635640b2815 :: false

createNodes 1.784s
2020-12-21 21:29:52 |

2020-12-21 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:52 | ------------------------------------

2020-12-21 21:29:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "pubsub#title": "Node 6538e3d2-45da-46a6-8bf5-3635640b2815"
}

2020-12-21 21:29:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:29:54 | [Mutex] waiting for: [received:nodes:1e98df31-e6bc-4dfe-a3c8-327be85682e8:localhost]

2020-12-21 21:29:54 | [Mutex] received everything.

2020-12-21 21:29:54 | [Mutex] isItemNotified: received:node:1e98df31-e6bc-4dfe-a3c8-327be85682e8:localhost:node-6538e3d2-45da-46a6-8bf5-3635640b2815:Node 6538e3d2-45da-46a6-8bf5-3635640b2815 :: true

createSubnodes 1.023s
2020-12-21 21:29:54 |

2020-12-21 21:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:54 | ------------------------------------

2020-12-21 21:29:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4459904a-a0fb-4979-a551-c8a9522a687d",
    "pubsub#title": "Node 4459904a-a0fb-4979-a551-c8a9522a687d"
}

2020-12-21 21:29:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:29:55 | [Mutex] waiting for: [received:nodes:9e78f67b-67b7-4821-8069-e378f6aab6f7:localhost]

2020-12-21 21:29:55 | [Mutex] received everything.

2020-12-21 21:29:55 | [Mutex] isItemNotified: received:node:9e78f67b-67b7-4821-8069-e378f6aab6f7:localhost:node-4459904a-a0fb-4979-a551-c8a9522a687d:Node 4459904a-a0fb-4979-a551-c8a9522a687d :: true

deleteNodes 1.026s
2020-12-21 21:29:59 |

2020-12-21 21:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:59 | ------------------------------------

2020-12-21 21:29:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4459904a-a0fb-4979-a551-c8a9522a687d"
}

2020-12-21 21:29:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:30:00 | [Mutex] waiting for: [received:nodes:cba93f20-e4a7-4dbe-86d9-718a0d2c671e:localhost]

2020-12-21 21:30:00 | [Mutex] received everything.

2020-12-21 21:30:00 | [Mutex] isItemNotified: received:node:cba93f20-e4a7-4dbe-86d9-718a0d2c671e:localhost:node-4459904a-a0fb-4979-a551-c8a9522a687d:Node 4459904a-a0fb-4979-a551-c8a9522a687d :: false

deleteSubnodes 1.030s
2020-12-21 21:29:58 |

2020-12-21 21:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:58 | ------------------------------------

2020-12-21 21:29:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815"
}

2020-12-21 21:29:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:29:59 | [Mutex] waiting for: [received:nodes:56697519-1f38-45f3-a792-4460bad2c86f:localhost]

2020-12-21 21:29:59 | [Mutex] received everything.

2020-12-21 21:29:59 | [Mutex] isItemNotified: received:node:56697519-1f38-45f3-a792-4460bad2c86f:localhost:node-6538e3d2-45da-46a6-8bf5-3635640b2815:Node 6538e3d2-45da-46a6-8bf5-3635640b2815 :: false

2020-12-21 21:29:59 | [Mutex] waiting for: [received:nodes:ba0c2700-994f-4c01-96bd-4c7f411d359c:localhost]

2020-12-21 21:29:59 | [Mutex] received everything.

2020-12-21 21:29:59 | [Mutex] isItemNotified: received:node:ba0c2700-994f-4c01-96bd-4c7f411d359c:localhost:node-6538e3d2-45da-46a6-8bf5-3635640b2815:Node 6538e3d2-45da-46a6-8bf5-3635640b2815 :: false

publishItemsToNodes 0.049s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

2020-12-21 21:29:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "entry": "<test>item-0d650407-480f-4ebf-a30b-ec89044d99eb</test>",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb"
}

2020-12-21 21:29:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb"
}

2020-12-21 21:29:57 | [Mutex] waiting for: [published:item:notifieditem-0d650407-480f-4ebf-a30b-ec89044d99eb:admin@test-domain.com]

2020-12-21 21:29:57 | [Mutex] received everything.

2020-12-21 21:29:57 | [Mutex] isItemNotified: published:item:notifieditem-0d650407-480f-4ebf-a30b-ec89044d99eb:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

2020-12-21 21:29:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb"
}

2020-12-21 21:29:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb"
}

2020-12-21 21:29:57 | [Mutex] received everything.

2020-12-21 21:29:57 | [Mutex] isItemNotified: retracted:item:notifieditem-0d650407-480f-4ebf-a30b-ec89044d99eb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

2020-12-21 21:29:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb"
}

2020-12-21 21:29:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "item-id": "item-0d650407-480f-4ebf-a30b-ec89044d99eb",
    "item": [
        "<item id=\"item-0d650407-480f-4ebf-a30b-ec89044d99eb\"><test>item-0d650407-480f-4ebf-a30b-ec89044d99eb</test></item>"
    ]
}

2020-12-21 21:29:57 | [Mutex] notify: [retrieved:item:item-0d650407-480f-4ebf-a30b-ec89044d99eb:payload-matches:true:localhost]

2020-12-21 21:29:57 | [Mutex] received everything.

2020-12-21 21:29:57 | [Mutex] isItemNotified: retrieved:item:item-0d650407-480f-4ebf-a30b-ec89044d99eb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

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

2020-12-21 21:29:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4459904a-a0fb-4979-a551-c8a9522a687d",
        "node-6538e3d2-45da-46a6-8bf5-3635640b2815"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

2020-12-21 21:29:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6538e3d2-45da-46a6-8bf5-3635640b2815)"
}

2020-12-21 21:29:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-12-21 21:29:56 |

2020-12-21 21:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:56 | ------------------------------------

2020-12-21 21:29:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:29:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-12-21 21:29:57 |

2020-12-21 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:29:57 | ------------------------------------

2020-12-21 21:29:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6538e3d2-45da-46a6-8bf5-3635640b2815",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:29:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}