Generated by TestNG with ReportNG at 21:42 PST on Monday 09 November 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.038s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2020-11-09 22:00:15 |

2020-11-09 22:00:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:15 | ------------------------------------

2020-11-09 22:00:15 | [Mutex] waiting for: [configured:node:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:node-b6ff90db-a68e-459d-a7be-0578705710ce]

2020-11-09 22:00:15 | [Mutex] received everything.

2020-11-09 22:00:15 | [Mutex] isItemNotified: configured:node:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:node-b6ff90db-a68e-459d-a7be-0578705710ce :: true

2020-11-09 22:00:16 | [Mutex] waiting for: [received:nodes:6eb0278e-fe89-4ab5-86ab-8c1c498d3750:localhost]

2020-11-09 22:00:16 | [Mutex] received everything.

2020-11-09 22:00:16 | [Mutex] isItemNotified: received:node:6eb0278e-fe89-4ab5-86ab-8c1c498d3750:localhost:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f :: true

2020-11-09 22:00:16 | [Mutex] waiting for: [received:nodes:0e6040dd-894f-4a6f-878d-8b5a5f272ac4:localhost]

2020-11-09 22:00:16 | [Mutex] received everything.

2020-11-09 22:00:16 | [Mutex] isItemNotified: received:node:0e6040dd-894f-4a6f-878d-8b5a5f272ac4:localhost:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f :: false

createNodes 1.630s
2020-11-09 22:00:13 |

2020-11-09 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:13 | ------------------------------------

2020-11-09 22:00:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "pubsub#title": "Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f"
}

2020-11-09 22:00:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 22:00:14 | [Mutex] waiting for: [received:nodes:4b0abad9-cd8a-4a16-8818-db0012e7a479:localhost]

2020-11-09 22:00:14 | [Mutex] received everything.

2020-11-09 22:00:14 | [Mutex] isItemNotified: received:node:4b0abad9-cd8a-4a16-8818-db0012e7a479:localhost:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f :: true

createSubnodes 1.026s
2020-11-09 22:00:14 |

2020-11-09 22:00:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:14 | ------------------------------------

2020-11-09 22:00:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b6ff90db-a68e-459d-a7be-0578705710ce",
    "pubsub#title": "Node b6ff90db-a68e-459d-a7be-0578705710ce"
}

2020-11-09 22:00:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 22:00:15 | [Mutex] waiting for: [received:nodes:283e174b-e432-46e9-9348-08daa10052a7:localhost]

2020-11-09 22:00:15 | [Mutex] received everything.

2020-11-09 22:00:15 | [Mutex] isItemNotified: received:node:283e174b-e432-46e9-9348-08daa10052a7:localhost:node-b6ff90db-a68e-459d-a7be-0578705710ce:Node b6ff90db-a68e-459d-a7be-0578705710ce :: true

deleteNodes 1.022s
2020-11-09 22:00:20 |

2020-11-09 22:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:20 | ------------------------------------

2020-11-09 22:00:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b6ff90db-a68e-459d-a7be-0578705710ce"
}

2020-11-09 22:00:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 22:00:21 | [Mutex] waiting for: [received:nodes:e7fcd952-fe4f-42dd-b039-2ab59e67f1f0:localhost]

2020-11-09 22:00:21 | [Mutex] received everything.

2020-11-09 22:00:21 | [Mutex] isItemNotified: received:node:e7fcd952-fe4f-42dd-b039-2ab59e67f1f0:localhost:node-b6ff90db-a68e-459d-a7be-0578705710ce:Node b6ff90db-a68e-459d-a7be-0578705710ce :: false

deleteSubnodes 1.028s
2020-11-09 22:00:19 |

2020-11-09 22:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:19 | ------------------------------------

2020-11-09 22:00:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f"
}

2020-11-09 22:00:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 22:00:20 | [Mutex] waiting for: [received:nodes:46709fd5-f40c-4272-b63c-8ee9a5a3dc71:localhost]

2020-11-09 22:00:20 | [Mutex] received everything.

2020-11-09 22:00:20 | [Mutex] isItemNotified: received:node:46709fd5-f40c-4272-b63c-8ee9a5a3dc71:localhost:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f :: false

2020-11-09 22:00:20 | [Mutex] waiting for: [received:nodes:1ce59973-d15d-4824-a17e-1086d1937790:localhost]

2020-11-09 22:00:20 | [Mutex] received everything.

2020-11-09 22:00:20 | [Mutex] isItemNotified: received:node:1ce59973-d15d-4824-a17e-1086d1937790:localhost:node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f:Node 21844a3f-5c93-45ae-a1e4-95e2eaf3389f :: false

publishItemsToNodes 0.103s
2020-11-09 22:00:17 |

2020-11-09 22:00:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:17 | ------------------------------------

2020-11-09 22:00:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "entry": "<test>item-d37a2042-d461-4251-8a33-fc3b9c513b8d</test>",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d"
}

2020-11-09 22:00:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d"
}

2020-11-09 22:00:18 | [Mutex] waiting for: [published:item:notifieditem-d37a2042-d461-4251-8a33-fc3b9c513b8d:admin@test-domain.com]

2020-11-09 22:00:18 | [Mutex] received everything.

2020-11-09 22:00:18 | [Mutex] isItemNotified: published:item:notifieditem-d37a2042-d461-4251-8a33-fc3b9c513b8d:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-11-09 22:00:18 |

2020-11-09 22:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:18 | ------------------------------------

2020-11-09 22:00:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d"
}

2020-11-09 22:00:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d"
}

2020-11-09 22:00:18 | [Mutex] received everything.

2020-11-09 22:00:18 | [Mutex] isItemNotified: retracted:item:notifieditem-d37a2042-d461-4251-8a33-fc3b9c513b8d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2020-11-09 22:00:18 |

2020-11-09 22:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:18 | ------------------------------------

2020-11-09 22:00:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d"
}

2020-11-09 22:00:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "item-id": "item-d37a2042-d461-4251-8a33-fc3b9c513b8d",
    "item": [
        "<item id=\"item-d37a2042-d461-4251-8a33-fc3b9c513b8d\"><test>item-d37a2042-d461-4251-8a33-fc3b9c513b8d</test></item>"
    ]
}

2020-11-09 22:00:18 | [Mutex] notify: [retrieved:item:item-d37a2042-d461-4251-8a33-fc3b9c513b8d:payload-matches:true:localhost]

2020-11-09 22:00:18 | [Mutex] received everything.

2020-11-09 22:00:18 | [Mutex] isItemNotified: retrieved:item:item-d37a2042-d461-4251-8a33-fc3b9c513b8d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-11-09 22:00:18 |

2020-11-09 22:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:18 | ------------------------------------

2020-11-09 22:00:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-09 22:00:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
        "node-b6ff90db-a68e-459d-a7be-0578705710ce"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-09 22:00:18 |

2020-11-09 22:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:18 | ------------------------------------

2020-11-09 22:00:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f)"
}

2020-11-09 22:00:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-11-09 22:00:16 |

2020-11-09 22:00:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:16 | ------------------------------------

2020-11-09 22:00:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-09 22:00:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-11-09 22:00:18 |

2020-11-09 22:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 22:00:18 | ------------------------------------

2020-11-09 22:00:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-21844a3f-5c93-45ae-a1e4-95e2eaf3389f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-09 22:00:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}