Generated by TestNG with ReportNG at 22:14 PDT on Monday 03 May 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.108s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-05-03 22:28:32 |

2021-05-03 22:28:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:32 | ------------------------------------

2021-05-03 22:28:32 | [Mutex] waiting for: [configured:node:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:node-815d1779-e2b3-4d00-89c3-643f212efa4c]

2021-05-03 22:28:32 | [Mutex] received everything.

2021-05-03 22:28:32 | [Mutex] isItemNotified: configured:node:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:node-815d1779-e2b3-4d00-89c3-643f212efa4c :: true

2021-05-03 22:28:33 | [Mutex] waiting for: [received:nodes:2732b26e-0c80-4cf6-bb1d-089c14940f2d:localhost]

2021-05-03 22:28:33 | [Mutex] waiting for: [received:nodes:2732b26e-0c80-4cf6-bb1d-089c14940f2d:localhost]

2021-05-03 22:28:33 | [Mutex] received everything.

2021-05-03 22:28:33 | [Mutex] isItemNotified: received:node:2732b26e-0c80-4cf6-bb1d-089c14940f2d:localhost:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb :: true

2021-05-03 22:28:33 | [Mutex] waiting for: [received:nodes:de094316-9d35-465b-9e67-6acda0415034:localhost]

2021-05-03 22:28:33 | [Mutex] waiting for: [received:nodes:de094316-9d35-465b-9e67-6acda0415034:localhost]

2021-05-03 22:28:33 | [Mutex] received everything.

2021-05-03 22:28:33 | [Mutex] isItemNotified: received:node:de094316-9d35-465b-9e67-6acda0415034:localhost:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb :: false

createNodes 1.722s
2021-05-03 22:28:29 |

2021-05-03 22:28:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:29 | ------------------------------------

2021-05-03 22:28:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "pubsub#title": "Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb"
}

2021-05-03 22:28:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-03 22:28:31 | [Mutex] waiting for: [received:nodes:28ebe4a4-7883-4f11-9711-b5263aaf525d:localhost]

2021-05-03 22:28:31 | [Mutex] received everything.

2021-05-03 22:28:31 | [Mutex] isItemNotified: received:node:28ebe4a4-7883-4f11-9711-b5263aaf525d:localhost:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb :: true

createSubnodes 1.029s
2021-05-03 22:28:31 |

2021-05-03 22:28:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:31 | ------------------------------------

2021-05-03 22:28:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-815d1779-e2b3-4d00-89c3-643f212efa4c",
    "pubsub#title": "Node 815d1779-e2b3-4d00-89c3-643f212efa4c"
}

2021-05-03 22:28:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-03 22:28:32 | [Mutex] waiting for: [received:nodes:c8326a35-67b6-4058-a306-af94b79df15b:localhost]

2021-05-03 22:28:32 | [Mutex] received everything.

2021-05-03 22:28:32 | [Mutex] isItemNotified: received:node:c8326a35-67b6-4058-a306-af94b79df15b:localhost:node-815d1779-e2b3-4d00-89c3-643f212efa4c:Node 815d1779-e2b3-4d00-89c3-643f212efa4c :: true

deleteNodes 1.023s
2021-05-03 22:28:36 |

2021-05-03 22:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:36 | ------------------------------------

2021-05-03 22:28:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-815d1779-e2b3-4d00-89c3-643f212efa4c"
}

2021-05-03 22:28:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-03 22:28:37 | [Mutex] waiting for: [received:nodes:9c943a17-311d-4db0-b9e7-59eb6c3a15a6:localhost]

2021-05-03 22:28:37 | [Mutex] received everything.

2021-05-03 22:28:37 | [Mutex] isItemNotified: received:node:9c943a17-311d-4db0-b9e7-59eb6c3a15a6:localhost:node-815d1779-e2b3-4d00-89c3-643f212efa4c:Node 815d1779-e2b3-4d00-89c3-643f212efa4c :: false

deleteSubnodes 1.030s
2021-05-03 22:28:35 |

2021-05-03 22:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:35 | ------------------------------------

2021-05-03 22:28:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb"
}

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

2021-05-03 22:28:36 | [Mutex] waiting for: [received:nodes:5b7eefeb-c22e-4bd0-9afd-8c629524fc99:localhost]

2021-05-03 22:28:36 | [Mutex] received everything.

2021-05-03 22:28:36 | [Mutex] isItemNotified: received:node:5b7eefeb-c22e-4bd0-9afd-8c629524fc99:localhost:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb :: false

2021-05-03 22:28:36 | [Mutex] waiting for: [received:nodes:9c9e7bb1-38bc-4f67-bb98-985aa54116d7:localhost]

2021-05-03 22:28:36 | [Mutex] received everything.

2021-05-03 22:28:36 | [Mutex] isItemNotified: received:node:9c9e7bb1-38bc-4f67-bb98-985aa54116d7:localhost:node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb:Node ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb :: false

publishItemsToNodes 0.040s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "entry": "<test>item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41</test>",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41"
}

2021-05-03 22:28:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41"
}

2021-05-03 22:28:34 | [Mutex] waiting for: [published:item:notifieditem-16a52485-cb7b-49b3-9c19-8cc6e5eeee41:admin@test-domain.com]

2021-05-03 22:28:34 | [Mutex] received everything.

2021-05-03 22:28:34 | [Mutex] isItemNotified: published:item:notifieditem-16a52485-cb7b-49b3-9c19-8cc6e5eeee41:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41"
}

2021-05-03 22:28:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41"
}

2021-05-03 22:28:34 | [Mutex] received everything.

2021-05-03 22:28:34 | [Mutex] isItemNotified: retracted:item:notifieditem-16a52485-cb7b-49b3-9c19-8cc6e5eeee41:admin@test-domain.com :: true

retrieveItemsFromNodes 0.121s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41"
}

2021-05-03 22:28:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "item-id": "item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41",
    "item": [
        "<item id=\"item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41\"><test>item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41</test></item>"
    ]
}

2021-05-03 22:28:34 | [Mutex] notify: [retrieved:item:item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41:payload-matches:true:localhost]

2021-05-03 22:28:34 | [Mutex] received everything.

2021-05-03 22:28:34 | [Mutex] isItemNotified: retrieved:item:item-16a52485-cb7b-49b3-9c19-8cc6e5eeee41:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-03 22:28:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
        "node-815d1779-e2b3-4d00-89c3-643f212efa4c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb)"
}

2021-05-03 22:28:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-05-03 22:28:33 |

2021-05-03 22:28:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:33 | ------------------------------------

2021-05-03 22:28:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-03 22:28:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2021-05-03 22:28:34 |

2021-05-03 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:28:34 | ------------------------------------

2021-05-03 22:28:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce8f0c8e-ee0a-4008-8413-be2f3d1e1ddb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-03 22:28:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}