Generated by TestNG with ReportNG at 22:49 PDT on Monday 18 July 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.654s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2022-07-18 23:05:57 |

2022-07-18 23:05:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:57 | ------------------------------------

2022-07-18 23:05:57 | [Mutex] waiting for: [configured:node:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:node-a9b62ce6-08bd-4026-a44e-a29140055d99]

2022-07-18 23:05:57 | [Mutex] received everything.

2022-07-18 23:05:57 | [Mutex] isItemNotified: configured:node:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:node-a9b62ce6-08bd-4026-a44e-a29140055d99 :: true

2022-07-18 23:05:58 | [Mutex] waiting for: [received:nodes:58a564fd-2dd9-49e1-8577-304420a16695:localhost]

2022-07-18 23:05:58 | [Mutex] received everything.

2022-07-18 23:05:58 | [Mutex] isItemNotified: received:node:58a564fd-2dd9-49e1-8577-304420a16695:localhost:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8 :: true

2022-07-18 23:05:58 | [Mutex] waiting for: [received:nodes:28197b5f-25a3-4f61-a258-7028cdf3513f:localhost]

2022-07-18 23:05:58 | [Mutex] received everything.

2022-07-18 23:05:58 | [Mutex] isItemNotified: received:node:28197b5f-25a3-4f61-a258-7028cdf3513f:localhost:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8 :: false

createNodes 1.533s
2022-07-18 23:05:54 |

2022-07-18 23:05:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:54 | ------------------------------------

2022-07-18 23:05:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "pubsub#title": "Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8"
}

2022-07-18 23:05:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 23:05:56 | [Mutex] waiting for: [received:nodes:ef90613a-6d96-4b7f-91f1-62417286c5f0:localhost]

2022-07-18 23:05:56 | [Mutex] waiting for: [received:nodes:ef90613a-6d96-4b7f-91f1-62417286c5f0:localhost]

2022-07-18 23:05:56 | [Mutex] received everything.

2022-07-18 23:05:56 | [Mutex] isItemNotified: received:node:ef90613a-6d96-4b7f-91f1-62417286c5f0:localhost:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8 :: true

createSubnodes 1.027s
2022-07-18 23:05:56 |

2022-07-18 23:05:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:56 | ------------------------------------

2022-07-18 23:05:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a9b62ce6-08bd-4026-a44e-a29140055d99",
    "pubsub#title": "Node a9b62ce6-08bd-4026-a44e-a29140055d99"
}

2022-07-18 23:05:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 23:05:57 | [Mutex] waiting for: [received:nodes:5a4bf662-2ded-4243-b0fb-cad8c5694740:localhost]

2022-07-18 23:05:57 | [Mutex] waiting for: [received:nodes:5a4bf662-2ded-4243-b0fb-cad8c5694740:localhost]

2022-07-18 23:05:57 | [Mutex] waiting for: [received:nodes:5a4bf662-2ded-4243-b0fb-cad8c5694740:localhost]

2022-07-18 23:05:57 | [Mutex] waiting for: [received:nodes:5a4bf662-2ded-4243-b0fb-cad8c5694740:localhost]

2022-07-18 23:05:57 | [Mutex] received everything.

2022-07-18 23:05:57 | [Mutex] isItemNotified: received:node:5a4bf662-2ded-4243-b0fb-cad8c5694740:localhost:node-a9b62ce6-08bd-4026-a44e-a29140055d99:Node a9b62ce6-08bd-4026-a44e-a29140055d99 :: true

deleteNodes 1.025s
2022-07-18 23:06:01 |

2022-07-18 23:06:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:06:01 | ------------------------------------

2022-07-18 23:06:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9b62ce6-08bd-4026-a44e-a29140055d99"
}

2022-07-18 23:06:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 23:06:02 | [Mutex] waiting for: [received:nodes:74b1edcf-f530-4f2d-99e0-006be1859634:localhost]

2022-07-18 23:06:02 | [Mutex] waiting for: [received:nodes:74b1edcf-f530-4f2d-99e0-006be1859634:localhost]

2022-07-18 23:06:02 | [Mutex] waiting for: [received:nodes:74b1edcf-f530-4f2d-99e0-006be1859634:localhost]

2022-07-18 23:06:02 | [Mutex] received everything.

2022-07-18 23:06:02 | [Mutex] isItemNotified: received:node:74b1edcf-f530-4f2d-99e0-006be1859634:localhost:node-a9b62ce6-08bd-4026-a44e-a29140055d99:Node a9b62ce6-08bd-4026-a44e-a29140055d99 :: false

deleteSubnodes 1.025s
2022-07-18 23:06:00 |

2022-07-18 23:06:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:06:00 | ------------------------------------

2022-07-18 23:06:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8"
}

2022-07-18 23:06:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 23:06:01 | [Mutex] waiting for: [received:nodes:f64b4306-34a0-4fb6-b71f-e976b9adbaf4:localhost]

2022-07-18 23:06:01 | [Mutex] waiting for: [received:nodes:f64b4306-34a0-4fb6-b71f-e976b9adbaf4:localhost]

2022-07-18 23:06:01 | [Mutex] received everything.

2022-07-18 23:06:01 | [Mutex] isItemNotified: received:node:f64b4306-34a0-4fb6-b71f-e976b9adbaf4:localhost:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8 :: false

2022-07-18 23:06:01 | [Mutex] waiting for: [received:nodes:5d28e22d-4eaf-4e76-ac90-9192560697dd:localhost]

2022-07-18 23:06:01 | [Mutex] received everything.

2022-07-18 23:06:01 | [Mutex] isItemNotified: received:node:5d28e22d-4eaf-4e76-ac90-9192560697dd:localhost:node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8:Node e887d20a-0251-46c2-9bb5-d16b3e8ad1c8 :: false

publishItemsToNodes 0.053s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "entry": "<test>item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2</test>",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2"
}

2022-07-18 23:05:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2"
}

2022-07-18 23:05:59 | [Mutex] waiting for: [published:item:notifieditem-d228764d-4f75-4cdc-89dd-8b6280c2c2a2:admin@test-domain.com]

2022-07-18 23:05:59 | [Mutex] received everything.

2022-07-18 23:05:59 | [Mutex] isItemNotified: published:item:notifieditem-d228764d-4f75-4cdc-89dd-8b6280c2c2a2:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2"
}

2022-07-18 23:05:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2"
}

2022-07-18 23:05:59 | [Mutex] received everything.

2022-07-18 23:05:59 | [Mutex] isItemNotified: retracted:item:notifieditem-d228764d-4f75-4cdc-89dd-8b6280c2c2a2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2"
}

2022-07-18 23:05:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "item-id": "item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2",
    "item": [
        "<item id=\"item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2\"><test>item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2</test></item>"
    ]
}

2022-07-18 23:05:59 | [Mutex] notify: [retrieved:item:item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2:payload-matches:true:localhost]

2022-07-18 23:05:59 | [Mutex] received everything.

2022-07-18 23:05:59 | [Mutex] isItemNotified: retrieved:item:item-d228764d-4f75-4cdc-89dd-8b6280c2c2a2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-18 23:05:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a9b62ce6-08bd-4026-a44e-a29140055d99",
        "test",
        "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8)"
}

2022-07-18 23:05:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-07-18 23:05:58 |

2022-07-18 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:58 | ------------------------------------

2022-07-18 23:05:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 23:05:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.047s
2022-07-18 23:05:59 |

2022-07-18 23:05:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 23:05:59 | ------------------------------------

2022-07-18 23:05:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e887d20a-0251-46c2-9bb5-d16b3e8ad1c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 23:05:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}