Generated by TestNG with ReportNG at 22:57 CLST on jueves 15 diciembre 2022
wojtek@atlantiscity.local / Java 17.0.5 (Eclipse Adoptium) / Mac OS X 13.0.1 (aarch64)

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

Suites · Log Output

Test duration : 7,920s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,093s
2022-12-15 23:11:25 |

2022-12-15 23:11:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:25 | ------------------------------------

2022-12-15 23:11:25 | [Mutex] waiting for: [configured:node:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:node-4d62e0a3-2d65-481a-bdd6-897ac47fced7]

2022-12-15 23:11:25 | [Mutex] received everything.

2022-12-15 23:11:25 | [Mutex] isItemNotified: configured:node:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:node-4d62e0a3-2d65-481a-bdd6-897ac47fced7 :: true

2022-12-15 23:11:26 | [Mutex] waiting for: [received:nodes:e3a1fe70-089f-4ab4-9011-6baa429b1dfb:localhost]

2022-12-15 23:11:26 | [Mutex] received everything.

2022-12-15 23:11:26 | [Mutex] isItemNotified: received:node:e3a1fe70-089f-4ab4-9011-6baa429b1dfb:localhost:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:Node f94487d6-2696-4d8e-a183-8cd1c91a299e :: true

2022-12-15 23:11:26 | [Mutex] waiting for: [received:nodes:ccdb2fbd-d43d-43c5-9294-f7e718023185:localhost]

2022-12-15 23:11:26 | [Mutex] waiting for: [received:nodes:ccdb2fbd-d43d-43c5-9294-f7e718023185:localhost]

2022-12-15 23:11:26 | [Mutex] received everything.

2022-12-15 23:11:26 | [Mutex] isItemNotified: received:node:ccdb2fbd-d43d-43c5-9294-f7e718023185:localhost:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:Node f94487d6-2696-4d8e-a183-8cd1c91a299e :: false

createNodes 1,239s
2022-12-15 23:11:22 |

2022-12-15 23:11:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:22 | ------------------------------------

2022-12-15 23:11:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "pubsub#title": "Node f94487d6-2696-4d8e-a183-8cd1c91a299e"
}

2022-12-15 23:11:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-15 23:11:23 | [Mutex] waiting for: [received:nodes:7e5e7b59-a43c-42c3-8b8a-29c9be118b71:localhost]

2022-12-15 23:11:23 | [Mutex] waiting for: [received:nodes:7e5e7b59-a43c-42c3-8b8a-29c9be118b71:localhost]

2022-12-15 23:11:23 | [Mutex] received everything.

2022-12-15 23:11:23 | [Mutex] isItemNotified: received:node:7e5e7b59-a43c-42c3-8b8a-29c9be118b71:localhost:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:Node f94487d6-2696-4d8e-a183-8cd1c91a299e :: true

createSubnodes 1,048s
2022-12-15 23:11:23 |

2022-12-15 23:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:23 | ------------------------------------

2022-12-15 23:11:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4d62e0a3-2d65-481a-bdd6-897ac47fced7",
    "pubsub#title": "Node 4d62e0a3-2d65-481a-bdd6-897ac47fced7"
}

2022-12-15 23:11:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-15 23:11:25 | [Mutex] waiting for: [received:nodes:18f8528c-a3f4-4169-bdea-4588d5cd3788:localhost]

2022-12-15 23:11:25 | [Mutex] waiting for: [received:nodes:18f8528c-a3f4-4169-bdea-4588d5cd3788:localhost]

2022-12-15 23:11:25 | [Mutex] received everything.

2022-12-15 23:11:25 | [Mutex] isItemNotified: received:node:18f8528c-a3f4-4169-bdea-4588d5cd3788:localhost:node-4d62e0a3-2d65-481a-bdd6-897ac47fced7:Node 4d62e0a3-2d65-481a-bdd6-897ac47fced7 :: true

deleteNodes 1,049s
2022-12-15 23:11:29 |

2022-12-15 23:11:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:29 | ------------------------------------

2022-12-15 23:11:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4d62e0a3-2d65-481a-bdd6-897ac47fced7"
}

2022-12-15 23:11:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-15 23:11:30 | [Mutex] waiting for: [received:nodes:1cb3e1ef-bb56-437b-8f51-d0eef1b2ad47:localhost]

2022-12-15 23:11:30 | [Mutex] received everything.

2022-12-15 23:11:30 | [Mutex] isItemNotified: received:node:1cb3e1ef-bb56-437b-8f51-d0eef1b2ad47:localhost:node-4d62e0a3-2d65-481a-bdd6-897ac47fced7:Node 4d62e0a3-2d65-481a-bdd6-897ac47fced7 :: false

deleteSubnodes 1,067s
2022-12-15 23:11:28 |

2022-12-15 23:11:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:28 | ------------------------------------

2022-12-15 23:11:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e"
}

2022-12-15 23:11:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-15 23:11:29 | [Mutex] waiting for: [received:nodes:1689fcf5-104c-464f-b3d6-66c7f1627432:localhost]

2022-12-15 23:11:29 | [Mutex] waiting for: [received:nodes:1689fcf5-104c-464f-b3d6-66c7f1627432:localhost]

2022-12-15 23:11:29 | [Mutex] waiting for: [received:nodes:1689fcf5-104c-464f-b3d6-66c7f1627432:localhost]

2022-12-15 23:11:29 | [Mutex] received everything.

2022-12-15 23:11:29 | [Mutex] isItemNotified: received:node:1689fcf5-104c-464f-b3d6-66c7f1627432:localhost:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:Node f94487d6-2696-4d8e-a183-8cd1c91a299e :: false

2022-12-15 23:11:29 | [Mutex] waiting for: [received:nodes:53a3ef5a-0ccf-403d-a873-6b8e1828cabd:localhost]

2022-12-15 23:11:29 | [Mutex] received everything.

2022-12-15 23:11:29 | [Mutex] isItemNotified: received:node:53a3ef5a-0ccf-403d-a873-6b8e1828cabd:localhost:node-f94487d6-2696-4d8e-a183-8cd1c91a299e:Node f94487d6-2696-4d8e-a183-8cd1c91a299e :: false

publishItemsToNodes 0,052s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "entry": "<test>item-170881a2-1800-4a22-9efa-a05f4954be93</test>",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93"
}

2022-12-15 23:11:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93"
}

2022-12-15 23:11:27 | [Mutex] received everything.

2022-12-15 23:11:27 | [Mutex] isItemNotified: published:item:notifieditem-170881a2-1800-4a22-9efa-a05f4954be93:admin@test-domain.com :: true

retractItemsFromNodes 0,027s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93"
}

2022-12-15 23:11:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93"
}

2022-12-15 23:11:27 | [Mutex] waiting for: [retracted:item:notifieditem-170881a2-1800-4a22-9efa-a05f4954be93:admin@test-domain.com]

2022-12-15 23:11:27 | [Mutex] received everything.

2022-12-15 23:11:27 | [Mutex] isItemNotified: retracted:item:notifieditem-170881a2-1800-4a22-9efa-a05f4954be93:admin@test-domain.com :: true

retrieveItemsFromNodes 0,027s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93"
}

2022-12-15 23:11:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "item-id": "item-170881a2-1800-4a22-9efa-a05f4954be93",
    "item": [
        "<item id=\"item-170881a2-1800-4a22-9efa-a05f4954be93\"><test>item-170881a2-1800-4a22-9efa-a05f4954be93</test></item>"
    ]
}

2022-12-15 23:11:27 | [Mutex] notify: [retrieved:item:item-170881a2-1800-4a22-9efa-a05f4954be93:payload-matches:true:localhost]

2022-12-15 23:11:27 | [Mutex] received everything.

2022-12-15 23:11:27 | [Mutex] isItemNotified: retrieved:item:item-170881a2-1800-4a22-9efa-a05f4954be93:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,005s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-15 23:11:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4d62e0a3-2d65-481a-bdd6-897ac47fced7",
        "node-f94487d6-2696-4d8e-a183-8cd1c91a299e"
    ]
}

retrieveUserSubscriptionsWithRegex 0,004s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f94487d6-2696-4d8e-a183-8cd1c91a299e)"
}

2022-12-15 23:11:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1,028s
2022-12-15 23:11:26 |

2022-12-15 23:11:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:26 | ------------------------------------

2022-12-15 23:11:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-15 23:11:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1,047s
2022-12-15 23:11:27 |

2022-12-15 23:11:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-15 23:11:27 | ------------------------------------

2022-12-15 23:11:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f94487d6-2696-4d8e-a183-8cd1c91a299e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-15 23:11:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}