Generated by TestNG with ReportNG at 22:18 PDT on Tuesday 21 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.660s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-06-21 22:32:21 |

2022-06-21 22:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:21 | ------------------------------------

2022-06-21 22:32:21 | [Mutex] waiting for: [configured:node:node-630a008f-2a25-405b-83c0-0a9f6c648862:node-282b0344-2dca-438c-8a95-0a44d9233784]

2022-06-21 22:32:21 | [Mutex] received everything.

2022-06-21 22:32:21 | [Mutex] isItemNotified: configured:node:node-630a008f-2a25-405b-83c0-0a9f6c648862:node-282b0344-2dca-438c-8a95-0a44d9233784 :: true

2022-06-21 22:32:22 | [Mutex] waiting for: [received:nodes:70624087-8c24-4578-bd82-2988ff22379e:localhost]

2022-06-21 22:32:22 | [Mutex] received everything.

2022-06-21 22:32:22 | [Mutex] isItemNotified: received:node:70624087-8c24-4578-bd82-2988ff22379e:localhost:node-630a008f-2a25-405b-83c0-0a9f6c648862:Node 630a008f-2a25-405b-83c0-0a9f6c648862 :: true

2022-06-21 22:32:22 | [Mutex] waiting for: [received:nodes:fb18b005-d26d-48c7-a8c6-8bdd98aadb73:localhost]

2022-06-21 22:32:22 | [Mutex] received everything.

2022-06-21 22:32:22 | [Mutex] isItemNotified: received:node:fb18b005-d26d-48c7-a8c6-8bdd98aadb73:localhost:node-630a008f-2a25-405b-83c0-0a9f6c648862:Node 630a008f-2a25-405b-83c0-0a9f6c648862 :: false

createNodes 1.548s
2022-06-21 22:32:19 |

2022-06-21 22:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:19 | ------------------------------------

2022-06-21 22:32:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "pubsub#title": "Node 630a008f-2a25-405b-83c0-0a9f6c648862"
}

2022-06-21 22:32:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:32:20 | [Mutex] waiting for: [received:nodes:38cf6475-6324-4a06-92be-b8128d5eb609:localhost]

2022-06-21 22:32:20 | [Mutex] received everything.

2022-06-21 22:32:20 | [Mutex] isItemNotified: received:node:38cf6475-6324-4a06-92be-b8128d5eb609:localhost:node-630a008f-2a25-405b-83c0-0a9f6c648862:Node 630a008f-2a25-405b-83c0-0a9f6c648862 :: true

createSubnodes 1.024s
2022-06-21 22:32:20 |

2022-06-21 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:20 | ------------------------------------

2022-06-21 22:32:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-282b0344-2dca-438c-8a95-0a44d9233784",
    "pubsub#title": "Node 282b0344-2dca-438c-8a95-0a44d9233784"
}

2022-06-21 22:32:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:32:21 | [Mutex] waiting for: [received:nodes:06166890-baca-4770-bf7b-76f3d799e8d9:localhost]

2022-06-21 22:32:21 | [Mutex] waiting for: [received:nodes:06166890-baca-4770-bf7b-76f3d799e8d9:localhost]

2022-06-21 22:32:21 | [Mutex] received everything.

2022-06-21 22:32:21 | [Mutex] isItemNotified: received:node:06166890-baca-4770-bf7b-76f3d799e8d9:localhost:node-282b0344-2dca-438c-8a95-0a44d9233784:Node 282b0344-2dca-438c-8a95-0a44d9233784 :: true

deleteNodes 1.023s
2022-06-21 22:32:26 |

2022-06-21 22:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:26 | ------------------------------------

2022-06-21 22:32:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-282b0344-2dca-438c-8a95-0a44d9233784"
}

2022-06-21 22:32:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:32:27 | [Mutex] waiting for: [received:nodes:50d5de1f-103c-4d06-a3d3-1e1d6b239503:localhost]

2022-06-21 22:32:27 | [Mutex] waiting for: [received:nodes:50d5de1f-103c-4d06-a3d3-1e1d6b239503:localhost]

2022-06-21 22:32:27 | [Mutex] waiting for: [received:nodes:50d5de1f-103c-4d06-a3d3-1e1d6b239503:localhost]

2022-06-21 22:32:27 | [Mutex] waiting for: [received:nodes:50d5de1f-103c-4d06-a3d3-1e1d6b239503:localhost]

2022-06-21 22:32:27 | [Mutex] received everything.

2022-06-21 22:32:27 | [Mutex] isItemNotified: received:node:50d5de1f-103c-4d06-a3d3-1e1d6b239503:localhost:node-282b0344-2dca-438c-8a95-0a44d9233784:Node 282b0344-2dca-438c-8a95-0a44d9233784 :: false

deleteSubnodes 1.025s
2022-06-21 22:32:25 |

2022-06-21 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:25 | ------------------------------------

2022-06-21 22:32:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862"
}

2022-06-21 22:32:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:32:26 | [Mutex] waiting for: [received:nodes:f07cd0f2-9684-4ac8-9c43-725d20ae5b3b:localhost]

2022-06-21 22:32:26 | [Mutex] waiting for: [received:nodes:f07cd0f2-9684-4ac8-9c43-725d20ae5b3b:localhost]

2022-06-21 22:32:26 | [Mutex] received everything.

2022-06-21 22:32:26 | [Mutex] isItemNotified: received:node:f07cd0f2-9684-4ac8-9c43-725d20ae5b3b:localhost:node-630a008f-2a25-405b-83c0-0a9f6c648862:Node 630a008f-2a25-405b-83c0-0a9f6c648862 :: false

2022-06-21 22:32:26 | [Mutex] waiting for: [received:nodes:6e9d1963-d215-4a50-b808-c0145c135482:localhost]

2022-06-21 22:32:26 | [Mutex] received everything.

2022-06-21 22:32:26 | [Mutex] isItemNotified: received:node:6e9d1963-d215-4a50-b808-c0145c135482:localhost:node-630a008f-2a25-405b-83c0-0a9f6c648862:Node 630a008f-2a25-405b-83c0-0a9f6c648862 :: false

publishItemsToNodes 0.043s
2022-06-21 22:32:23 |

2022-06-21 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:23 | ------------------------------------

2022-06-21 22:32:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "entry": "<test>item-4c4254c2-6d0c-418d-965c-1ae424e62e5f</test>",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f"
}

2022-06-21 22:32:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f"
}

2022-06-21 22:32:23 | [Mutex] waiting for: [published:item:notifieditem-4c4254c2-6d0c-418d-965c-1ae424e62e5f:admin@test-domain.com]

2022-06-21 22:32:23 | [Mutex] received everything.

2022-06-21 22:32:23 | [Mutex] isItemNotified: published:item:notifieditem-4c4254c2-6d0c-418d-965c-1ae424e62e5f:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-06-21 22:32:24 |

2022-06-21 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:24 | ------------------------------------

2022-06-21 22:32:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f"
}

2022-06-21 22:32:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f"
}

2022-06-21 22:32:24 | [Mutex] received everything.

2022-06-21 22:32:24 | [Mutex] isItemNotified: retracted:item:notifieditem-4c4254c2-6d0c-418d-965c-1ae424e62e5f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-06-21 22:32:23 |

2022-06-21 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:23 | ------------------------------------

2022-06-21 22:32:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f"
}

2022-06-21 22:32:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "item-id": "item-4c4254c2-6d0c-418d-965c-1ae424e62e5f",
    "item": [
        "<item id=\"item-4c4254c2-6d0c-418d-965c-1ae424e62e5f\"><test>item-4c4254c2-6d0c-418d-965c-1ae424e62e5f</test></item>"
    ]
}

2022-06-21 22:32:24 | [Mutex] notify: [retrieved:item:item-4c4254c2-6d0c-418d-965c-1ae424e62e5f:payload-matches:true:localhost]

2022-06-21 22:32:24 | [Mutex] received everything.

2022-06-21 22:32:24 | [Mutex] isItemNotified: retrieved:item:item-4c4254c2-6d0c-418d-965c-1ae424e62e5f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-21 22:32:24 |

2022-06-21 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:24 | ------------------------------------

2022-06-21 22:32:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-21 22:32:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-282b0344-2dca-438c-8a95-0a44d9233784",
        "node-630a008f-2a25-405b-83c0-0a9f6c648862"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-21 22:32:24 |

2022-06-21 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:24 | ------------------------------------

2022-06-21 22:32:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-630a008f-2a25-405b-83c0-0a9f6c648862)"
}

2022-06-21 22:32:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-06-21 22:32:22 |

2022-06-21 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:22 | ------------------------------------

2022-06-21 22:32:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 22:32:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-06-21 22:32:24 |

2022-06-21 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:32:24 | ------------------------------------

2022-06-21 22:32:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-630a008f-2a25-405b-83c0-0a9f6c648862",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 22:32:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}