Generated by TestNG with ReportNG at 22:42 PDT on Wednesday 17 March 2021
root@43fec6d4badf / 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.003s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-03-17 22:58:19 |

2021-03-17 22:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:19 | ------------------------------------

2021-03-17 22:58:19 | [Mutex] waiting for: [configured:node:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:node-594214a9-8d3c-471d-be0f-55ddd9e9a867]

2021-03-17 22:58:19 | [Mutex] received everything.

2021-03-17 22:58:19 | [Mutex] isItemNotified: configured:node:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:node-594214a9-8d3c-471d-be0f-55ddd9e9a867 :: true

2021-03-17 22:58:20 | [Mutex] waiting for: [received:nodes:baf6381a-de9f-463a-b8db-86d74f309f27:localhost]

2021-03-17 22:58:20 | [Mutex] received everything.

2021-03-17 22:58:20 | [Mutex] isItemNotified: received:node:baf6381a-de9f-463a-b8db-86d74f309f27:localhost:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:Node d933342f-04c5-47e1-8f6d-9778fd3637c9 :: true

2021-03-17 22:58:20 | [Mutex] waiting for: [received:nodes:550ed937-42a7-4bdf-8083-6bd1e2970dfd:localhost]

2021-03-17 22:58:20 | [Mutex] waiting for: [received:nodes:550ed937-42a7-4bdf-8083-6bd1e2970dfd:localhost]

2021-03-17 22:58:20 | [Mutex] received everything.

2021-03-17 22:58:20 | [Mutex] isItemNotified: received:node:550ed937-42a7-4bdf-8083-6bd1e2970dfd:localhost:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:Node d933342f-04c5-47e1-8f6d-9778fd3637c9 :: false

createNodes 1.661s
2021-03-17 22:58:16 |

2021-03-17 22:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:16 | ------------------------------------

2021-03-17 22:58:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "pubsub#title": "Node d933342f-04c5-47e1-8f6d-9778fd3637c9"
}

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

2021-03-17 22:58:18 | [Mutex] waiting for: [received:nodes:fa5b8149-d6e9-4b91-92ae-5b5f8950b064:localhost]

2021-03-17 22:58:18 | [Mutex] received everything.

2021-03-17 22:58:18 | [Mutex] isItemNotified: received:node:fa5b8149-d6e9-4b91-92ae-5b5f8950b064:localhost:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:Node d933342f-04c5-47e1-8f6d-9778fd3637c9 :: true

createSubnodes 1.032s
2021-03-17 22:58:18 |

2021-03-17 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:18 | ------------------------------------

2021-03-17 22:58:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-594214a9-8d3c-471d-be0f-55ddd9e9a867",
    "pubsub#title": "Node 594214a9-8d3c-471d-be0f-55ddd9e9a867"
}

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

2021-03-17 22:58:19 | [Mutex] waiting for: [received:nodes:f652e8ea-06c3-419f-b7de-9ccf6e81f26b:localhost]

2021-03-17 22:58:19 | [Mutex] received everything.

2021-03-17 22:58:19 | [Mutex] isItemNotified: received:node:f652e8ea-06c3-419f-b7de-9ccf6e81f26b:localhost:node-594214a9-8d3c-471d-be0f-55ddd9e9a867:Node 594214a9-8d3c-471d-be0f-55ddd9e9a867 :: true

deleteNodes 1.026s
2021-03-17 22:58:23 |

2021-03-17 22:58:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:23 | ------------------------------------

2021-03-17 22:58:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-594214a9-8d3c-471d-be0f-55ddd9e9a867"
}

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

2021-03-17 22:58:24 | [Mutex] waiting for: [received:nodes:af8b5117-0dad-4819-a173-6f670edbb464:localhost]

2021-03-17 22:58:24 | [Mutex] waiting for: [received:nodes:af8b5117-0dad-4819-a173-6f670edbb464:localhost]

2021-03-17 22:58:24 | [Mutex] received everything.

2021-03-17 22:58:24 | [Mutex] isItemNotified: received:node:af8b5117-0dad-4819-a173-6f670edbb464:localhost:node-594214a9-8d3c-471d-be0f-55ddd9e9a867:Node 594214a9-8d3c-471d-be0f-55ddd9e9a867 :: false

deleteSubnodes 1.032s
2021-03-17 22:58:22 |

2021-03-17 22:58:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:22 | ------------------------------------

2021-03-17 22:58:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9"
}

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

2021-03-17 22:58:23 | [Mutex] waiting for: [received:nodes:963470d7-4825-43a8-b18d-21ead11531be:localhost]

2021-03-17 22:58:23 | [Mutex] received everything.

2021-03-17 22:58:23 | [Mutex] isItemNotified: received:node:963470d7-4825-43a8-b18d-21ead11531be:localhost:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:Node d933342f-04c5-47e1-8f6d-9778fd3637c9 :: false

2021-03-17 22:58:23 | [Mutex] waiting for: [received:nodes:956a18a3-c09c-418c-ba37-e0a10545f78b:localhost]

2021-03-17 22:58:23 | [Mutex] received everything.

2021-03-17 22:58:23 | [Mutex] isItemNotified: received:node:956a18a3-c09c-418c-ba37-e0a10545f78b:localhost:node-d933342f-04c5-47e1-8f6d-9778fd3637c9:Node d933342f-04c5-47e1-8f6d-9778fd3637c9 :: false

publishItemsToNodes 0.055s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

2021-03-17 22:58:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "entry": "<test>item-55864e35-b526-4c66-8782-b4c34ce24214</test>",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214"
}

2021-03-17 22:58:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214"
}

2021-03-17 22:58:21 | [Mutex] waiting for: [published:item:notifieditem-55864e35-b526-4c66-8782-b4c34ce24214:admin@test-domain.com]

2021-03-17 22:58:21 | [Mutex] received everything.

2021-03-17 22:58:21 | [Mutex] isItemNotified: published:item:notifieditem-55864e35-b526-4c66-8782-b4c34ce24214:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

2021-03-17 22:58:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214"
}

2021-03-17 22:58:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214"
}

2021-03-17 22:58:21 | [Mutex] waiting for: [retracted:item:notifieditem-55864e35-b526-4c66-8782-b4c34ce24214:admin@test-domain.com]

2021-03-17 22:58:21 | [Mutex] received everything.

2021-03-17 22:58:21 | [Mutex] isItemNotified: retracted:item:notifieditem-55864e35-b526-4c66-8782-b4c34ce24214:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

2021-03-17 22:58:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214"
}

2021-03-17 22:58:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "item-id": "item-55864e35-b526-4c66-8782-b4c34ce24214",
    "item": [
        "<item id=\"item-55864e35-b526-4c66-8782-b4c34ce24214\"><test>item-55864e35-b526-4c66-8782-b4c34ce24214</test></item>"
    ]
}

2021-03-17 22:58:21 | [Mutex] notify: [retrieved:item:item-55864e35-b526-4c66-8782-b4c34ce24214:payload-matches:true:localhost]

2021-03-17 22:58:21 | [Mutex] received everything.

2021-03-17 22:58:21 | [Mutex] isItemNotified: retrieved:item:item-55864e35-b526-4c66-8782-b4c34ce24214:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

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

2021-03-17 22:58:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
        "node-594214a9-8d3c-471d-be0f-55ddd9e9a867"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

2021-03-17 22:58:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d933342f-04c5-47e1-8f6d-9778fd3637c9)"
}

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

subscribeNodes 1.015s
2021-03-17 22:58:20 |

2021-03-17 22:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:20 | ------------------------------------

2021-03-17 22:58:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.078s
2021-03-17 22:58:21 |

2021-03-17 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:58:21 | ------------------------------------

2021-03-17 22:58:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d933342f-04c5-47e1-8f6d-9778fd3637c9",
    "jids": [
        "admin@test-domain.com"
    ]
}

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