Generated by TestNG with ReportNG at 22:32 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 : 8,026s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,125s
2022-12-15 22:46:32 |

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

2022-12-15 22:46:32 | ------------------------------------

2022-12-15 22:46:32 | [Mutex] waiting for: [configured:node:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:node-77037852-0f24-42ad-b7d8-1242024b7698]

2022-12-15 22:46:32 | [Mutex] received everything.

2022-12-15 22:46:32 | [Mutex] isItemNotified: configured:node:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:node-77037852-0f24-42ad-b7d8-1242024b7698 :: true

2022-12-15 22:46:33 | [Mutex] waiting for: [received:nodes:92007c6c-ed83-4db8-b7a7-e8ee0df79893:localhost]

2022-12-15 22:46:33 | [Mutex] received everything.

2022-12-15 22:46:33 | [Mutex] isItemNotified: received:node:92007c6c-ed83-4db8-b7a7-e8ee0df79893:localhost:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c :: true

2022-12-15 22:46:33 | [Mutex] waiting for: [received:nodes:606437fd-7de8-4728-8303-ce572c051507:localhost]

2022-12-15 22:46:33 | [Mutex] waiting for: [received:nodes:606437fd-7de8-4728-8303-ce572c051507:localhost]

2022-12-15 22:46:33 | [Mutex] received everything.

2022-12-15 22:46:33 | [Mutex] isItemNotified: received:node:606437fd-7de8-4728-8303-ce572c051507:localhost:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c :: false

createNodes 1,271s
2022-12-15 22:46:29 |

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

2022-12-15 22:46:29 | ------------------------------------

2022-12-15 22:46:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "pubsub#title": "Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c"
}

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

2022-12-15 22:46:31 | [Mutex] waiting for: [received:nodes:cf9b026f-5579-485e-89f1-d7f2041a8c20:localhost]

2022-12-15 22:46:31 | [Mutex] received everything.

2022-12-15 22:46:31 | [Mutex] isItemNotified: received:node:cf9b026f-5579-485e-89f1-d7f2041a8c20:localhost:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c :: true

createSubnodes 1,083s
2022-12-15 22:46:31 |

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

2022-12-15 22:46:31 | ------------------------------------

2022-12-15 22:46:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-77037852-0f24-42ad-b7d8-1242024b7698",
    "pubsub#title": "Node 77037852-0f24-42ad-b7d8-1242024b7698"
}

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

2022-12-15 22:46:32 | [Mutex] waiting for: [received:nodes:1f1d4af5-bf1c-49fb-b636-56edd0e90297:localhost]

2022-12-15 22:46:32 | [Mutex] waiting for: [received:nodes:1f1d4af5-bf1c-49fb-b636-56edd0e90297:localhost]

2022-12-15 22:46:32 | [Mutex] waiting for: [received:nodes:1f1d4af5-bf1c-49fb-b636-56edd0e90297:localhost]

2022-12-15 22:46:32 | [Mutex] received everything.

2022-12-15 22:46:32 | [Mutex] isItemNotified: received:node:1f1d4af5-bf1c-49fb-b636-56edd0e90297:localhost:node-77037852-0f24-42ad-b7d8-1242024b7698:Node 77037852-0f24-42ad-b7d8-1242024b7698 :: true

deleteNodes 1,066s
2022-12-15 22:46:36 |

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

2022-12-15 22:46:36 | ------------------------------------

2022-12-15 22:46:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-77037852-0f24-42ad-b7d8-1242024b7698"
}

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

2022-12-15 22:46:37 | [Mutex] waiting for: [received:nodes:fe65a59e-6ae3-46f8-99d8-06e505f31d17:localhost]

2022-12-15 22:46:37 | [Mutex] waiting for: [received:nodes:fe65a59e-6ae3-46f8-99d8-06e505f31d17:localhost]

2022-12-15 22:46:37 | [Mutex] waiting for: [received:nodes:fe65a59e-6ae3-46f8-99d8-06e505f31d17:localhost]

2022-12-15 22:46:37 | [Mutex] received everything.

2022-12-15 22:46:37 | [Mutex] isItemNotified: received:node:fe65a59e-6ae3-46f8-99d8-06e505f31d17:localhost:node-77037852-0f24-42ad-b7d8-1242024b7698:Node 77037852-0f24-42ad-b7d8-1242024b7698 :: false

deleteSubnodes 1,076s
2022-12-15 22:46:35 |

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

2022-12-15 22:46:35 | ------------------------------------

2022-12-15 22:46:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c"
}

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

2022-12-15 22:46:36 | [Mutex] waiting for: [received:nodes:014c0d08-98ee-40a8-a998-4408e25901ad:localhost]

2022-12-15 22:46:36 | [Mutex] waiting for: [received:nodes:014c0d08-98ee-40a8-a998-4408e25901ad:localhost]

2022-12-15 22:46:36 | [Mutex] waiting for: [received:nodes:014c0d08-98ee-40a8-a998-4408e25901ad:localhost]

2022-12-15 22:46:36 | [Mutex] received everything.

2022-12-15 22:46:36 | [Mutex] isItemNotified: received:node:014c0d08-98ee-40a8-a998-4408e25901ad:localhost:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c :: false

2022-12-15 22:46:36 | [Mutex] waiting for: [received:nodes:8a014145-291a-4d8e-b42d-d52377cd0974:localhost]

2022-12-15 22:46:36 | [Mutex] received everything.

2022-12-15 22:46:36 | [Mutex] isItemNotified: received:node:8a014145-291a-4d8e-b42d-d52377cd0974:localhost:node-8d6bd53f-8080-4b7c-a098-81b79a143d8c:Node 8d6bd53f-8080-4b7c-a098-81b79a143d8c :: false

publishItemsToNodes 0,080s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

2022-12-15 22:46:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "entry": "<test>item-01a6e073-86d7-4aa3-ac23-e623c5b1255e</test>",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e"
}

2022-12-15 22:46:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e"
}

2022-12-15 22:46:34 | [Mutex] waiting for: [published:item:notifieditem-01a6e073-86d7-4aa3-ac23-e623c5b1255e:admin@test-domain.com]

2022-12-15 22:46:34 | [Mutex] received everything.

2022-12-15 22:46:34 | [Mutex] isItemNotified: published:item:notifieditem-01a6e073-86d7-4aa3-ac23-e623c5b1255e:admin@test-domain.com :: true

retractItemsFromNodes 0,035s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

2022-12-15 22:46:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e"
}

2022-12-15 22:46:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e"
}

2022-12-15 22:46:34 | [Mutex] waiting for: [retracted:item:notifieditem-01a6e073-86d7-4aa3-ac23-e623c5b1255e:admin@test-domain.com]

2022-12-15 22:46:34 | [Mutex] received everything.

2022-12-15 22:46:34 | [Mutex] isItemNotified: retracted:item:notifieditem-01a6e073-86d7-4aa3-ac23-e623c5b1255e:admin@test-domain.com :: true

retrieveItemsFromNodes 0,020s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

2022-12-15 22:46:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e"
}

2022-12-15 22:46:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "item-id": "item-01a6e073-86d7-4aa3-ac23-e623c5b1255e",
    "item": [
        "<item id=\"item-01a6e073-86d7-4aa3-ac23-e623c5b1255e\"><test>item-01a6e073-86d7-4aa3-ac23-e623c5b1255e</test></item>"
    ]
}

2022-12-15 22:46:34 | [Mutex] notify: [retrieved:item:item-01a6e073-86d7-4aa3-ac23-e623c5b1255e:payload-matches:true:localhost]

2022-12-15 22:46:34 | [Mutex] received everything.

2022-12-15 22:46:34 | [Mutex] isItemNotified: retrieved:item:item-01a6e073-86d7-4aa3-ac23-e623c5b1255e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,004s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

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

2022-12-15 22:46:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
        "test",
        "node-77037852-0f24-42ad-b7d8-1242024b7698"
    ]
}

retrieveUserSubscriptionsWithRegex 0,004s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

2022-12-15 22:46:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8d6bd53f-8080-4b7c-a098-81b79a143d8c)"
}

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

subscribeNodes 1,013s
2022-12-15 22:46:33 |

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

2022-12-15 22:46:33 | ------------------------------------

2022-12-15 22:46:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1,021s
2022-12-15 22:46:34 |

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

2022-12-15 22:46:34 | ------------------------------------

2022-12-15 22:46:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8d6bd53f-8080-4b7c-a098-81b79a143d8c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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