Generated by TestNG with ReportNG at 21:50 PST on Friday 17 February 2023
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.579s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2023-02-17 22:05:36 |

2023-02-17 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:36 | ------------------------------------

2023-02-17 22:05:36 | [Mutex] waiting for: [configured:node:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63]

2023-02-17 22:05:36 | [Mutex] received everything.

2023-02-17 22:05:36 | [Mutex] isItemNotified: configured:node:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63 :: true

2023-02-17 22:05:37 | [Mutex] waiting for: [received:nodes:08ada036-8f11-4bda-afe4-1866f1618b60:localhost]

2023-02-17 22:05:37 | [Mutex] received everything.

2023-02-17 22:05:37 | [Mutex] isItemNotified: received:node:08ada036-8f11-4bda-afe4-1866f1618b60:localhost:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:Node 0b22c602-e8bd-413d-90db-b71e4f8a1172 :: true

2023-02-17 22:05:37 | [Mutex] waiting for: [received:nodes:c7501990-6914-4905-b203-50281200f437:localhost]

2023-02-17 22:05:37 | [Mutex] waiting for: [received:nodes:c7501990-6914-4905-b203-50281200f437:localhost]

2023-02-17 22:05:37 | [Mutex] waiting for: [received:nodes:c7501990-6914-4905-b203-50281200f437:localhost]

2023-02-17 22:05:37 | [Mutex] received everything.

2023-02-17 22:05:37 | [Mutex] isItemNotified: received:node:c7501990-6914-4905-b203-50281200f437:localhost:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:Node 0b22c602-e8bd-413d-90db-b71e4f8a1172 :: false

createNodes 1.616s
2023-02-17 22:05:33 |

2023-02-17 22:05:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:33 | ------------------------------------

2023-02-17 22:05:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "pubsub#title": "Node 0b22c602-e8bd-413d-90db-b71e4f8a1172"
}

2023-02-17 22:05:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:05:35 | [Mutex] waiting for: [received:nodes:25d22fba-9e24-413a-b654-5f9b7258abe9:localhost]

2023-02-17 22:05:35 | [Mutex] waiting for: [received:nodes:25d22fba-9e24-413a-b654-5f9b7258abe9:localhost]

2023-02-17 22:05:35 | [Mutex] waiting for: [received:nodes:25d22fba-9e24-413a-b654-5f9b7258abe9:localhost]

2023-02-17 22:05:35 | [Mutex] waiting for: [received:nodes:25d22fba-9e24-413a-b654-5f9b7258abe9:localhost]

2023-02-17 22:05:35 | [Mutex] received everything.

2023-02-17 22:05:35 | [Mutex] isItemNotified: received:node:25d22fba-9e24-413a-b654-5f9b7258abe9:localhost:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:Node 0b22c602-e8bd-413d-90db-b71e4f8a1172 :: true

createSubnodes 1.022s
2023-02-17 22:05:35 |

2023-02-17 22:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:35 | ------------------------------------

2023-02-17 22:05:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63",
    "pubsub#title": "Node 867a5703-4a85-4e3c-ac4f-33e3f7c93b63"
}

2023-02-17 22:05:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:05:36 | [Mutex] waiting for: [received:nodes:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost]

2023-02-17 22:05:36 | [Mutex] waiting for: [received:nodes:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost]

2023-02-17 22:05:36 | [Mutex] waiting for: [received:nodes:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost]

2023-02-17 22:05:36 | [Mutex] waiting for: [received:nodes:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost]

2023-02-17 22:05:36 | [Mutex] waiting for: [received:nodes:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost]

2023-02-17 22:05:36 | [Mutex] received everything.

2023-02-17 22:05:36 | [Mutex] isItemNotified: received:node:f7efc054-3c06-41f2-af6f-7fef96e48109:localhost:node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63:Node 867a5703-4a85-4e3c-ac4f-33e3f7c93b63 :: true

deleteNodes 1.019s
2023-02-17 22:05:40 |

2023-02-17 22:05:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:40 | ------------------------------------

2023-02-17 22:05:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63"
}

2023-02-17 22:05:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:05:41 | [Mutex] waiting for: [received:nodes:78b5bd6e-e672-4b7a-bba1-b7b1d5bd0567:localhost]

2023-02-17 22:05:41 | [Mutex] waiting for: [received:nodes:78b5bd6e-e672-4b7a-bba1-b7b1d5bd0567:localhost]

2023-02-17 22:05:41 | [Mutex] waiting for: [received:nodes:78b5bd6e-e672-4b7a-bba1-b7b1d5bd0567:localhost]

2023-02-17 22:05:41 | [Mutex] received everything.

2023-02-17 22:05:41 | [Mutex] isItemNotified: received:node:78b5bd6e-e672-4b7a-bba1-b7b1d5bd0567:localhost:node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63:Node 867a5703-4a85-4e3c-ac4f-33e3f7c93b63 :: false

deleteSubnodes 1.025s
2023-02-17 22:05:39 |

2023-02-17 22:05:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:39 | ------------------------------------

2023-02-17 22:05:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172"
}

2023-02-17 22:05:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:05:40 | [Mutex] waiting for: [received:nodes:e797c229-c897-4ea4-a30d-841fd7d30e31:localhost]

2023-02-17 22:05:40 | [Mutex] waiting for: [received:nodes:e797c229-c897-4ea4-a30d-841fd7d30e31:localhost]

2023-02-17 22:05:40 | [Mutex] waiting for: [received:nodes:e797c229-c897-4ea4-a30d-841fd7d30e31:localhost]

2023-02-17 22:05:40 | [Mutex] waiting for: [received:nodes:e797c229-c897-4ea4-a30d-841fd7d30e31:localhost]

2023-02-17 22:05:40 | [Mutex] received everything.

2023-02-17 22:05:40 | [Mutex] isItemNotified: received:node:e797c229-c897-4ea4-a30d-841fd7d30e31:localhost:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:Node 0b22c602-e8bd-413d-90db-b71e4f8a1172 :: false

2023-02-17 22:05:40 | [Mutex] waiting for: [received:nodes:8c0b0694-0299-4c5b-89a6-ae6baf32cea2:localhost]

2023-02-17 22:05:40 | [Mutex] received everything.

2023-02-17 22:05:40 | [Mutex] isItemNotified: received:node:8c0b0694-0299-4c5b-89a6-ae6baf32cea2:localhost:node-0b22c602-e8bd-413d-90db-b71e4f8a1172:Node 0b22c602-e8bd-413d-90db-b71e4f8a1172 :: false

publishItemsToNodes 0.049s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "entry": "<test>item-e64ba14e-f142-4c6c-889d-e5e57cc3559f</test>",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f"
}

2023-02-17 22:05:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f"
}

2023-02-17 22:05:38 | [Mutex] received everything.

2023-02-17 22:05:38 | [Mutex] isItemNotified: published:item:notifieditem-e64ba14e-f142-4c6c-889d-e5e57cc3559f:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f"
}

2023-02-17 22:05:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f"
}

2023-02-17 22:05:38 | [Mutex] received everything.

2023-02-17 22:05:38 | [Mutex] isItemNotified: retracted:item:notifieditem-e64ba14e-f142-4c6c-889d-e5e57cc3559f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f"
}

2023-02-17 22:05:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "item-id": "item-e64ba14e-f142-4c6c-889d-e5e57cc3559f",
    "item": [
        "<item id=\"item-e64ba14e-f142-4c6c-889d-e5e57cc3559f\"><test>item-e64ba14e-f142-4c6c-889d-e5e57cc3559f</test></item>"
    ]
}

2023-02-17 22:05:38 | [Mutex] notify: [retrieved:item:item-e64ba14e-f142-4c6c-889d-e5e57cc3559f:payload-matches:true:localhost]

2023-02-17 22:05:38 | [Mutex] received everything.

2023-02-17 22:05:38 | [Mutex] isItemNotified: retrieved:item:item-e64ba14e-f142-4c6c-889d-e5e57cc3559f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-17 22:05:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-867a5703-4a85-4e3c-ac4f-33e3f7c93b63",
        "node-0b22c602-e8bd-413d-90db-b71e4f8a1172"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0b22c602-e8bd-413d-90db-b71e4f8a1172)"
}

2023-02-17 22:05:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.007s
2023-02-17 22:05:37 |

2023-02-17 22:05:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:37 | ------------------------------------

2023-02-17 22:05:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 22:05:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-02-17 22:05:38 |

2023-02-17 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:05:38 | ------------------------------------

2023-02-17 22:05:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0b22c602-e8bd-413d-90db-b71e4f8a1172",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 22:05:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}