Generated by TestNG with ReportNG at 22:20 PDT on Monday 26 April 2021
root@f29ef40080b5 / 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.959s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-04-26 22:35:37 |

2021-04-26 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:37 | ------------------------------------

2021-04-26 22:35:37 | [Mutex] waiting for: [configured:node:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:node-70d56a66-2d18-484f-998f-d26e3ab9f8fa]

2021-04-26 22:35:37 | [Mutex] received everything.

2021-04-26 22:35:37 | [Mutex] isItemNotified: configured:node:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:node-70d56a66-2d18-484f-998f-d26e3ab9f8fa :: true

2021-04-26 22:35:38 | [Mutex] waiting for: [received:nodes:336aa442-2b52-4641-b446-b978d0c296c9:localhost]

2021-04-26 22:35:38 | [Mutex] received everything.

2021-04-26 22:35:38 | [Mutex] isItemNotified: received:node:336aa442-2b52-4641-b446-b978d0c296c9:localhost:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a :: true

2021-04-26 22:35:38 | [Mutex] waiting for: [received:nodes:c7257817-a920-4c34-8aa2-6ee80e0b34f3:localhost]

2021-04-26 22:35:38 | [Mutex] received everything.

2021-04-26 22:35:38 | [Mutex] isItemNotified: received:node:c7257817-a920-4c34-8aa2-6ee80e0b34f3:localhost:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a :: false

createNodes 1.586s
2021-04-26 22:35:34 |

2021-04-26 22:35:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:34 | ------------------------------------

2021-04-26 22:35:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "pubsub#title": "Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a"
}

2021-04-26 22:35:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:35:36 | [Mutex] waiting for: [received:nodes:a8b2f714-2ba3-4052-b187-21c30b396e19:localhost]

2021-04-26 22:35:36 | [Mutex] waiting for: [received:nodes:a8b2f714-2ba3-4052-b187-21c30b396e19:localhost]

2021-04-26 22:35:36 | [Mutex] received everything.

2021-04-26 22:35:36 | [Mutex] isItemNotified: received:node:a8b2f714-2ba3-4052-b187-21c30b396e19:localhost:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a :: true

createSubnodes 1.027s
2021-04-26 22:35:36 |

2021-04-26 22:35:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:36 | ------------------------------------

2021-04-26 22:35:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-70d56a66-2d18-484f-998f-d26e3ab9f8fa",
    "pubsub#title": "Node 70d56a66-2d18-484f-998f-d26e3ab9f8fa"
}

2021-04-26 22:35:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:35:37 | [Mutex] waiting for: [received:nodes:05269a1c-d0e8-403e-a497-ce5507933726:localhost]

2021-04-26 22:35:37 | [Mutex] received everything.

2021-04-26 22:35:37 | [Mutex] isItemNotified: received:node:05269a1c-d0e8-403e-a497-ce5507933726:localhost:node-70d56a66-2d18-484f-998f-d26e3ab9f8fa:Node 70d56a66-2d18-484f-998f-d26e3ab9f8fa :: true

deleteNodes 1.021s
2021-04-26 22:35:41 |

2021-04-26 22:35:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:41 | ------------------------------------

2021-04-26 22:35:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-70d56a66-2d18-484f-998f-d26e3ab9f8fa"
}

2021-04-26 22:35:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:35:42 | [Mutex] waiting for: [received:nodes:bd3ec28e-d6ef-4da4-b4a7-2c785c973d0b:localhost]

2021-04-26 22:35:42 | [Mutex] received everything.

2021-04-26 22:35:42 | [Mutex] isItemNotified: received:node:bd3ec28e-d6ef-4da4-b4a7-2c785c973d0b:localhost:node-70d56a66-2d18-484f-998f-d26e3ab9f8fa:Node 70d56a66-2d18-484f-998f-d26e3ab9f8fa :: false

deleteSubnodes 1.037s
2021-04-26 22:35:40 |

2021-04-26 22:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:40 | ------------------------------------

2021-04-26 22:35:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a"
}

2021-04-26 22:35:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:35:41 | [Mutex] waiting for: [received:nodes:ffabaffc-6993-4ad7-adbd-5899c13cf429:localhost]

2021-04-26 22:35:41 | [Mutex] waiting for: [received:nodes:ffabaffc-6993-4ad7-adbd-5899c13cf429:localhost]

2021-04-26 22:35:41 | [Mutex] received everything.

2021-04-26 22:35:41 | [Mutex] isItemNotified: received:node:ffabaffc-6993-4ad7-adbd-5899c13cf429:localhost:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a :: false

2021-04-26 22:35:41 | [Mutex] waiting for: [received:nodes:36c7de4a-72bc-48f7-96a2-0146176c4c2e:localhost]

2021-04-26 22:35:41 | [Mutex] received everything.

2021-04-26 22:35:41 | [Mutex] isItemNotified: received:node:36c7de4a-72bc-48f7-96a2-0146176c4c2e:localhost:node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a:Node 9e47dc3f-e14e-4a79-aabd-134309cb8e1a :: false

publishItemsToNodes 0.125s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "entry": "<test>item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813</test>",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813"
}

2021-04-26 22:35:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813"
}

2021-04-26 22:35:39 | [Mutex] waiting for: [published:item:notifieditem-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813:admin@test-domain.com]

2021-04-26 22:35:39 | [Mutex] received everything.

2021-04-26 22:35:39 | [Mutex] isItemNotified: published:item:notifieditem-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813"
}

2021-04-26 22:35:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813"
}

2021-04-26 22:35:39 | [Mutex] received everything.

2021-04-26 22:35:39 | [Mutex] isItemNotified: retracted:item:notifieditem-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813"
}

2021-04-26 22:35:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "item-id": "item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813",
    "item": [
        "<item id=\"item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813\"><test>item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813</test></item>"
    ]
}

2021-04-26 22:35:39 | [Mutex] notify: [retrieved:item:item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813:payload-matches:true:localhost]

2021-04-26 22:35:39 | [Mutex] received everything.

2021-04-26 22:35:39 | [Mutex] isItemNotified: retrieved:item:item-89d5fbd5-bf14-4ddb-a1e6-04d1328a2813:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-26 22:35:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-70d56a66-2d18-484f-998f-d26e3ab9f8fa",
        "test",
        "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a)"
}

2021-04-26 22:35:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-04-26 22:35:38 |

2021-04-26 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:38 | ------------------------------------

2021-04-26 22:35:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:35:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-04-26 22:35:39 |

2021-04-26 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:35:39 | ------------------------------------

2021-04-26 22:35:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9e47dc3f-e14e-4a79-aabd-134309cb8e1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:35:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}