Generated by TestNG with ReportNG at 08:11 PST on Friday 30 December 2022
root@f9c07ffec79b / 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.727s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-12-30 08:25:47 |

2022-12-30 08:25:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:47 | ------------------------------------

2022-12-30 08:25:47 | [Mutex] waiting for: [configured:node:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:node-5723d8d1-ac59-4dec-ab56-51baf1e9c273]

2022-12-30 08:25:47 | [Mutex] received everything.

2022-12-30 08:25:47 | [Mutex] isItemNotified: configured:node:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:node-5723d8d1-ac59-4dec-ab56-51baf1e9c273 :: true

2022-12-30 08:25:48 | [Mutex] waiting for: [received:nodes:a799d02a-eb5a-4a97-a971-b9cace6c24b7:localhost]

2022-12-30 08:25:48 | [Mutex] received everything.

2022-12-30 08:25:48 | [Mutex] isItemNotified: received:node:a799d02a-eb5a-4a97-a971-b9cace6c24b7:localhost:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:Node 103b6c96-96b6-4f5f-86a1-ac574790df3c :: true

2022-12-30 08:25:48 | [Mutex] waiting for: [received:nodes:af334f9f-9d38-439b-83e1-e8b81fd883c7:localhost]

2022-12-30 08:25:48 | [Mutex] waiting for: [received:nodes:af334f9f-9d38-439b-83e1-e8b81fd883c7:localhost]

2022-12-30 08:25:48 | [Mutex] waiting for: [received:nodes:af334f9f-9d38-439b-83e1-e8b81fd883c7:localhost]

2022-12-30 08:25:48 | [Mutex] waiting for: [received:nodes:af334f9f-9d38-439b-83e1-e8b81fd883c7:localhost]

2022-12-30 08:25:48 | [Mutex] received everything.

2022-12-30 08:25:48 | [Mutex] isItemNotified: received:node:af334f9f-9d38-439b-83e1-e8b81fd883c7:localhost:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:Node 103b6c96-96b6-4f5f-86a1-ac574790df3c :: false

createNodes 1.685s
2022-12-30 08:25:45 |

2022-12-30 08:25:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:45 | ------------------------------------

2022-12-30 08:25:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "pubsub#title": "Node 103b6c96-96b6-4f5f-86a1-ac574790df3c"
}

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

2022-12-30 08:25:46 | [Mutex] waiting for: [received:nodes:6269d73a-8f6d-4c3f-a9e6-1821b2b57169:localhost]

2022-12-30 08:25:46 | [Mutex] waiting for: [received:nodes:6269d73a-8f6d-4c3f-a9e6-1821b2b57169:localhost]

2022-12-30 08:25:46 | [Mutex] waiting for: [received:nodes:6269d73a-8f6d-4c3f-a9e6-1821b2b57169:localhost]

2022-12-30 08:25:46 | [Mutex] waiting for: [received:nodes:6269d73a-8f6d-4c3f-a9e6-1821b2b57169:localhost]

2022-12-30 08:25:46 | [Mutex] received everything.

2022-12-30 08:25:46 | [Mutex] isItemNotified: received:node:6269d73a-8f6d-4c3f-a9e6-1821b2b57169:localhost:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:Node 103b6c96-96b6-4f5f-86a1-ac574790df3c :: true

createSubnodes 1.027s
2022-12-30 08:25:46 |

2022-12-30 08:25:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:46 | ------------------------------------

2022-12-30 08:25:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5723d8d1-ac59-4dec-ab56-51baf1e9c273",
    "pubsub#title": "Node 5723d8d1-ac59-4dec-ab56-51baf1e9c273"
}

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

2022-12-30 08:25:47 | [Mutex] waiting for: [received:nodes:3fca884e-f841-40fc-84ec-ae7493d93597:localhost]

2022-12-30 08:25:47 | [Mutex] waiting for: [received:nodes:3fca884e-f841-40fc-84ec-ae7493d93597:localhost]

2022-12-30 08:25:47 | [Mutex] waiting for: [received:nodes:3fca884e-f841-40fc-84ec-ae7493d93597:localhost]

2022-12-30 08:25:47 | [Mutex] waiting for: [received:nodes:3fca884e-f841-40fc-84ec-ae7493d93597:localhost]

2022-12-30 08:25:47 | [Mutex] waiting for: [received:nodes:3fca884e-f841-40fc-84ec-ae7493d93597:localhost]

2022-12-30 08:25:47 | [Mutex] received everything.

2022-12-30 08:25:47 | [Mutex] isItemNotified: received:node:3fca884e-f841-40fc-84ec-ae7493d93597:localhost:node-5723d8d1-ac59-4dec-ab56-51baf1e9c273:Node 5723d8d1-ac59-4dec-ab56-51baf1e9c273 :: true

deleteNodes 1.022s
2022-12-30 08:25:52 |

2022-12-30 08:25:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:52 | ------------------------------------

2022-12-30 08:25:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5723d8d1-ac59-4dec-ab56-51baf1e9c273"
}

2022-12-30 08:25:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:25:53 | [Mutex] waiting for: [received:nodes:c0ab4024-e0c1-4cc0-accc-5ac2a3846bdb:localhost]

2022-12-30 08:25:53 | [Mutex] waiting for: [received:nodes:c0ab4024-e0c1-4cc0-accc-5ac2a3846bdb:localhost]

2022-12-30 08:25:53 | [Mutex] waiting for: [received:nodes:c0ab4024-e0c1-4cc0-accc-5ac2a3846bdb:localhost]

2022-12-30 08:25:53 | [Mutex] received everything.

2022-12-30 08:25:53 | [Mutex] isItemNotified: received:node:c0ab4024-e0c1-4cc0-accc-5ac2a3846bdb:localhost:node-5723d8d1-ac59-4dec-ab56-51baf1e9c273:Node 5723d8d1-ac59-4dec-ab56-51baf1e9c273 :: false

deleteSubnodes 1.026s
2022-12-30 08:25:51 |

2022-12-30 08:25:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:51 | ------------------------------------

2022-12-30 08:25:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c"
}

2022-12-30 08:25:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:25:52 | [Mutex] waiting for: [received:nodes:bd7ea091-8c0d-484c-ae65-bbad44af73aa:localhost]

2022-12-30 08:25:52 | [Mutex] waiting for: [received:nodes:bd7ea091-8c0d-484c-ae65-bbad44af73aa:localhost]

2022-12-30 08:25:52 | [Mutex] waiting for: [received:nodes:bd7ea091-8c0d-484c-ae65-bbad44af73aa:localhost]

2022-12-30 08:25:52 | [Mutex] received everything.

2022-12-30 08:25:52 | [Mutex] isItemNotified: received:node:bd7ea091-8c0d-484c-ae65-bbad44af73aa:localhost:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:Node 103b6c96-96b6-4f5f-86a1-ac574790df3c :: false

2022-12-30 08:25:52 | [Mutex] waiting for: [received:nodes:8da2c929-a0a7-452d-bc19-e96741189f89:localhost]

2022-12-30 08:25:52 | [Mutex] received everything.

2022-12-30 08:25:52 | [Mutex] isItemNotified: received:node:8da2c929-a0a7-452d-bc19-e96741189f89:localhost:node-103b6c96-96b6-4f5f-86a1-ac574790df3c:Node 103b6c96-96b6-4f5f-86a1-ac574790df3c :: false

publishItemsToNodes 0.051s
2022-12-30 08:25:49 |

2022-12-30 08:25:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:49 | ------------------------------------

2022-12-30 08:25:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "entry": "<test>item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb</test>",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb"
}

2022-12-30 08:25:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb"
}

2022-12-30 08:25:49 | [Mutex] waiting for: [published:item:notifieditem-01a6afee-fc90-4dce-87c8-2c4462f7e2fb:admin@test-domain.com]

2022-12-30 08:25:49 | [Mutex] received everything.

2022-12-30 08:25:49 | [Mutex] isItemNotified: published:item:notifieditem-01a6afee-fc90-4dce-87c8-2c4462f7e2fb:admin@test-domain.com :: true

retractItemsFromNodes 0.050s
2022-12-30 08:25:50 |

2022-12-30 08:25:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:50 | ------------------------------------

2022-12-30 08:25:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb"
}

2022-12-30 08:25:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb"
}

2022-12-30 08:25:50 | [Mutex] received everything.

2022-12-30 08:25:50 | [Mutex] isItemNotified: retracted:item:notifieditem-01a6afee-fc90-4dce-87c8-2c4462f7e2fb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2022-12-30 08:25:49 |

2022-12-30 08:25:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:49 | ------------------------------------

2022-12-30 08:25:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb"
}

2022-12-30 08:25:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "item-id": "item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb",
    "item": [
        "<item id=\"item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb\"><test>item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb</test></item>"
    ]
}

2022-12-30 08:25:50 | [Mutex] notify: [retrieved:item:item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb:payload-matches:true:localhost]

2022-12-30 08:25:50 | [Mutex] received everything.

2022-12-30 08:25:50 | [Mutex] isItemNotified: retrieved:item:item-01a6afee-fc90-4dce-87c8-2c4462f7e2fb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-30 08:25:50 |

2022-12-30 08:25:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:50 | ------------------------------------

2022-12-30 08:25:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 08:25:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5723d8d1-ac59-4dec-ab56-51baf1e9c273",
        "test",
        "node-103b6c96-96b6-4f5f-86a1-ac574790df3c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-30 08:25:50 |

2022-12-30 08:25:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:50 | ------------------------------------

2022-12-30 08:25:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-103b6c96-96b6-4f5f-86a1-ac574790df3c)"
}

2022-12-30 08:25:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-12-30 08:25:48 |

2022-12-30 08:25:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:48 | ------------------------------------

2022-12-30 08:25:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 08:25:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-12-30 08:25:50 |

2022-12-30 08:25:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:25:50 | ------------------------------------

2022-12-30 08:25:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-103b6c96-96b6-4f5f-86a1-ac574790df3c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 08:25:50 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}