Generated by TestNG with ReportNG at 21:42 PST on Monday 28 December 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.856s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2020-12-28 21:59:02 |

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

2020-12-28 21:59:02 | ------------------------------------

2020-12-28 21:59:02 | [Mutex] waiting for: [configured:node:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:node-f1a754be-7e40-4829-881a-7501045c3741]

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

2020-12-28 21:59:02 | [Mutex] isItemNotified: configured:node:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:node-f1a754be-7e40-4829-881a-7501045c3741 :: true

2020-12-28 21:59:03 | [Mutex] waiting for: [received:nodes:2996c9a6-856d-4e7f-a3bc-9164151983a7:localhost]

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

2020-12-28 21:59:03 | [Mutex] isItemNotified: received:node:2996c9a6-856d-4e7f-a3bc-9164151983a7:localhost:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:Node e1242f32-ab13-4d1e-817f-d32db8ee9442 :: true

2020-12-28 21:59:03 | [Mutex] waiting for: [received:nodes:bc2cd8b9-81e6-44a3-aafc-7d06faca27b1:localhost]

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

2020-12-28 21:59:03 | [Mutex] isItemNotified: received:node:bc2cd8b9-81e6-44a3-aafc-7d06faca27b1:localhost:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:Node e1242f32-ab13-4d1e-817f-d32db8ee9442 :: false

createNodes 1.681s
2020-12-28 21:58:59 |

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

2020-12-28 21:58:59 | ------------------------------------

2020-12-28 21:58:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "pubsub#title": "Node e1242f32-ab13-4d1e-817f-d32db8ee9442"
}

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

2020-12-28 21:59:01 | [Mutex] waiting for: [received:nodes:370fd62b-a957-4ba6-8f5b-fb1f755cfb58:localhost]

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

2020-12-28 21:59:01 | [Mutex] isItemNotified: received:node:370fd62b-a957-4ba6-8f5b-fb1f755cfb58:localhost:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:Node e1242f32-ab13-4d1e-817f-d32db8ee9442 :: true

createSubnodes 1.025s
2020-12-28 21:59:01 |

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

2020-12-28 21:59:01 | ------------------------------------

2020-12-28 21:59:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f1a754be-7e40-4829-881a-7501045c3741",
    "pubsub#title": "Node f1a754be-7e40-4829-881a-7501045c3741"
}

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

2020-12-28 21:59:02 | [Mutex] waiting for: [received:nodes:aeab1056-ca80-4308-a93c-e47234e24fd7:localhost]

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

2020-12-28 21:59:02 | [Mutex] isItemNotified: received:node:aeab1056-ca80-4308-a93c-e47234e24fd7:localhost:node-f1a754be-7e40-4829-881a-7501045c3741:Node f1a754be-7e40-4829-881a-7501045c3741 :: true

deleteNodes 1.026s
2020-12-28 21:59:06 |

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

2020-12-28 21:59:06 | ------------------------------------

2020-12-28 21:59:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f1a754be-7e40-4829-881a-7501045c3741"
}

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

2020-12-28 21:59:07 | [Mutex] waiting for: [received:nodes:e3b8973d-d579-47e4-8532-26e3907b2c8a:localhost]

2020-12-28 21:59:07 | [Mutex] waiting for: [received:nodes:e3b8973d-d579-47e4-8532-26e3907b2c8a:localhost]

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

2020-12-28 21:59:07 | [Mutex] isItemNotified: received:node:e3b8973d-d579-47e4-8532-26e3907b2c8a:localhost:node-f1a754be-7e40-4829-881a-7501045c3741:Node f1a754be-7e40-4829-881a-7501045c3741 :: false

deleteSubnodes 1.041s
2020-12-28 21:59:05 |

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

2020-12-28 21:59:05 | ------------------------------------

2020-12-28 21:59:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442"
}

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

2020-12-28 21:59:06 | [Mutex] waiting for: [received:nodes:0e262921-4c6a-4d32-937d-e55045899f7f:localhost]

2020-12-28 21:59:06 | [Mutex] waiting for: [received:nodes:0e262921-4c6a-4d32-937d-e55045899f7f:localhost]

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

2020-12-28 21:59:06 | [Mutex] isItemNotified: received:node:0e262921-4c6a-4d32-937d-e55045899f7f:localhost:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:Node e1242f32-ab13-4d1e-817f-d32db8ee9442 :: false

2020-12-28 21:59:06 | [Mutex] waiting for: [received:nodes:6f1e9d25-1dca-4758-9d87-493097e84393:localhost]

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

2020-12-28 21:59:06 | [Mutex] isItemNotified: received:node:6f1e9d25-1dca-4758-9d87-493097e84393:localhost:node-e1242f32-ab13-4d1e-817f-d32db8ee9442:Node e1242f32-ab13-4d1e-817f-d32db8ee9442 :: false

publishItemsToNodes 0.037s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

2020-12-28 21:59:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "entry": "<test>item-1dc63dd6-066d-4423-af65-8b1dcff18778</test>",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778"
}

2020-12-28 21:59:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778"
}

2020-12-28 21:59:04 | [Mutex] waiting for: [published:item:notifieditem-1dc63dd6-066d-4423-af65-8b1dcff18778:admin@test-domain.com]

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

2020-12-28 21:59:04 | [Mutex] isItemNotified: published:item:notifieditem-1dc63dd6-066d-4423-af65-8b1dcff18778:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

2020-12-28 21:59:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778"
}

2020-12-28 21:59:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778"
}

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

2020-12-28 21:59:04 | [Mutex] isItemNotified: retracted:item:notifieditem-1dc63dd6-066d-4423-af65-8b1dcff18778:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

2020-12-28 21:59:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778"
}

2020-12-28 21:59:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "item-id": "item-1dc63dd6-066d-4423-af65-8b1dcff18778",
    "item": [
        "<item id=\"item-1dc63dd6-066d-4423-af65-8b1dcff18778\"><test>item-1dc63dd6-066d-4423-af65-8b1dcff18778</test></item>"
    ]
}

2020-12-28 21:59:04 | [Mutex] notify: [retrieved:item:item-1dc63dd6-066d-4423-af65-8b1dcff18778:payload-matches:true:localhost]

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

2020-12-28 21:59:04 | [Mutex] isItemNotified: retrieved:item:item-1dc63dd6-066d-4423-af65-8b1dcff18778:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

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

2020-12-28 21:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f1a754be-7e40-4829-881a-7501045c3741",
        "test",
        "node-e1242f32-ab13-4d1e-817f-d32db8ee9442"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

2020-12-28 21:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e1242f32-ab13-4d1e-817f-d32db8ee9442)"
}

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

subscribeNodes 1.010s
2020-12-28 21:59:03 |

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

2020-12-28 21:59:03 | ------------------------------------

2020-12-28 21:59:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-12-28 21:59:04 |

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

2020-12-28 21:59:04 | ------------------------------------

2020-12-28 21:59:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e1242f32-ab13-4d1e-817f-d32db8ee9442",
    "jids": [
        "admin@test-domain.com"
    ]
}

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