Generated by TestNG with ReportNG at 22:29 PDT on Wednesday 21 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 : 9.139s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2021-04-21 22:45:09 |

2021-04-21 22:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:09 | ------------------------------------

2021-04-21 22:45:09 | [Mutex] waiting for: [configured:node:node-477ccf02-60cc-4980-85e2-59796bcae347:node-85e869bb-e10a-4627-8606-65e9e0de5ff6]

2021-04-21 22:45:10 | [Mutex] received everything.

2021-04-21 22:45:10 | [Mutex] isItemNotified: configured:node:node-477ccf02-60cc-4980-85e2-59796bcae347:node-85e869bb-e10a-4627-8606-65e9e0de5ff6 :: true

2021-04-21 22:45:11 | [Mutex] waiting for: [received:nodes:198a09b5-6e78-493c-9f8c-d5d62968d3ae:localhost]

2021-04-21 22:45:11 | [Mutex] received everything.

2021-04-21 22:45:11 | [Mutex] isItemNotified: received:node:198a09b5-6e78-493c-9f8c-d5d62968d3ae:localhost:node-477ccf02-60cc-4980-85e2-59796bcae347:Node 477ccf02-60cc-4980-85e2-59796bcae347 :: true

2021-04-21 22:45:11 | [Mutex] waiting for: [received:nodes:ac275691-51c0-4858-a50b-9c26515074d0:localhost]

2021-04-21 22:45:11 | [Mutex] received everything.

2021-04-21 22:45:11 | [Mutex] isItemNotified: received:node:ac275691-51c0-4858-a50b-9c26515074d0:localhost:node-477ccf02-60cc-4980-85e2-59796bcae347:Node 477ccf02-60cc-4980-85e2-59796bcae347 :: false

createNodes 1.792s
2021-04-21 22:45:07 |

2021-04-21 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:07 | ------------------------------------

2021-04-21 22:45:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "pubsub#title": "Node 477ccf02-60cc-4980-85e2-59796bcae347"
}

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

2021-04-21 22:45:08 | [Mutex] waiting for: [received:nodes:af00538e-05c1-488b-be82-84548c47d3d1:localhost]

2021-04-21 22:45:08 | [Mutex] received everything.

2021-04-21 22:45:08 | [Mutex] isItemNotified: received:node:af00538e-05c1-488b-be82-84548c47d3d1:localhost:node-477ccf02-60cc-4980-85e2-59796bcae347:Node 477ccf02-60cc-4980-85e2-59796bcae347 :: true

createSubnodes 1.034s
2021-04-21 22:45:08 |

2021-04-21 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:08 | ------------------------------------

2021-04-21 22:45:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-85e869bb-e10a-4627-8606-65e9e0de5ff6",
    "pubsub#title": "Node 85e869bb-e10a-4627-8606-65e9e0de5ff6"
}

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

2021-04-21 22:45:09 | [Mutex] waiting for: [received:nodes:f1bfdae2-bcfa-476f-83da-d26c5a1e2bea:localhost]

2021-04-21 22:45:09 | [Mutex] received everything.

2021-04-21 22:45:09 | [Mutex] isItemNotified: received:node:f1bfdae2-bcfa-476f-83da-d26c5a1e2bea:localhost:node-85e869bb-e10a-4627-8606-65e9e0de5ff6:Node 85e869bb-e10a-4627-8606-65e9e0de5ff6 :: true

deleteNodes 1.026s
2021-04-21 22:45:14 |

2021-04-21 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:14 | ------------------------------------

2021-04-21 22:45:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85e869bb-e10a-4627-8606-65e9e0de5ff6"
}

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

2021-04-21 22:45:15 | [Mutex] waiting for: [received:nodes:368ff0cd-c72e-4589-8336-192bb99efbd8:localhost]

2021-04-21 22:45:15 | [Mutex] received everything.

2021-04-21 22:45:15 | [Mutex] isItemNotified: received:node:368ff0cd-c72e-4589-8336-192bb99efbd8:localhost:node-85e869bb-e10a-4627-8606-65e9e0de5ff6:Node 85e869bb-e10a-4627-8606-65e9e0de5ff6 :: false

deleteSubnodes 1.029s
2021-04-21 22:45:13 |

2021-04-21 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:13 | ------------------------------------

2021-04-21 22:45:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347"
}

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

2021-04-21 22:45:14 | [Mutex] waiting for: [received:nodes:f0611054-983b-4fee-aad5-fe82e5c1ed2d:localhost]

2021-04-21 22:45:14 | [Mutex] waiting for: [received:nodes:f0611054-983b-4fee-aad5-fe82e5c1ed2d:localhost]

2021-04-21 22:45:14 | [Mutex] received everything.

2021-04-21 22:45:14 | [Mutex] isItemNotified: received:node:f0611054-983b-4fee-aad5-fe82e5c1ed2d:localhost:node-477ccf02-60cc-4980-85e2-59796bcae347:Node 477ccf02-60cc-4980-85e2-59796bcae347 :: false

2021-04-21 22:45:14 | [Mutex] waiting for: [received:nodes:6393c21f-a71f-4d0d-ac1d-79a93c8f5d25:localhost]

2021-04-21 22:45:14 | [Mutex] received everything.

2021-04-21 22:45:14 | [Mutex] isItemNotified: received:node:6393c21f-a71f-4d0d-ac1d-79a93c8f5d25:localhost:node-477ccf02-60cc-4980-85e2-59796bcae347:Node 477ccf02-60cc-4980-85e2-59796bcae347 :: false

publishItemsToNodes 0.048s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

2021-04-21 22:45:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "entry": "<test>item-f7661548-4f18-490a-bafd-404352fcc303</test>",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303"
}

2021-04-21 22:45:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303"
}

2021-04-21 22:45:12 | [Mutex] waiting for: [published:item:notifieditem-f7661548-4f18-490a-bafd-404352fcc303:admin@test-domain.com]

2021-04-21 22:45:12 | [Mutex] received everything.

2021-04-21 22:45:12 | [Mutex] isItemNotified: published:item:notifieditem-f7661548-4f18-490a-bafd-404352fcc303:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

2021-04-21 22:45:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303"
}

2021-04-21 22:45:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303"
}

2021-04-21 22:45:12 | [Mutex] received everything.

2021-04-21 22:45:12 | [Mutex] isItemNotified: retracted:item:notifieditem-f7661548-4f18-490a-bafd-404352fcc303:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

2021-04-21 22:45:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303"
}

2021-04-21 22:45:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "item-id": "item-f7661548-4f18-490a-bafd-404352fcc303",
    "item": [
        "<item id=\"item-f7661548-4f18-490a-bafd-404352fcc303\"><test>item-f7661548-4f18-490a-bafd-404352fcc303</test></item>"
    ]
}

2021-04-21 22:45:12 | [Mutex] notify: [retrieved:item:item-f7661548-4f18-490a-bafd-404352fcc303:payload-matches:true:localhost]

2021-04-21 22:45:12 | [Mutex] received everything.

2021-04-21 22:45:12 | [Mutex] isItemNotified: retrieved:item:item-f7661548-4f18-490a-bafd-404352fcc303:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

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

2021-04-21 22:45:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-477ccf02-60cc-4980-85e2-59796bcae347",
        "node-85e869bb-e10a-4627-8606-65e9e0de5ff6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

2021-04-21 22:45:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-477ccf02-60cc-4980-85e2-59796bcae347)"
}

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

subscribeNodes 1.019s
2021-04-21 22:45:11 |

2021-04-21 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:11 | ------------------------------------

2021-04-21 22:45:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2021-04-21 22:45:12 |

2021-04-21 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:45:12 | ------------------------------------

2021-04-21 22:45:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-477ccf02-60cc-4980-85e2-59796bcae347",
    "jids": [
        "admin@test-domain.com"
    ]
}

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