Generated by TestNG with ReportNG at 22:18 PDT on Sunday 17 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.751s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-07-17 22:32:15 |

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

2022-07-17 22:32:15 | ------------------------------------

2022-07-17 22:32:15 | [Mutex] waiting for: [configured:node:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:node-776aac0b-822d-48f8-b1c0-7cee4f384aa8]

2022-07-17 22:32:15 | [Mutex] received everything.

2022-07-17 22:32:15 | [Mutex] isItemNotified: configured:node:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:node-776aac0b-822d-48f8-b1c0-7cee4f384aa8 :: true

2022-07-17 22:32:16 | [Mutex] waiting for: [received:nodes:5671ef4b-7a75-4677-a86a-430dabf0b737:localhost]

2022-07-17 22:32:16 | [Mutex] received everything.

2022-07-17 22:32:16 | [Mutex] isItemNotified: received:node:5671ef4b-7a75-4677-a86a-430dabf0b737:localhost:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960 :: true

2022-07-17 22:32:16 | [Mutex] waiting for: [received:nodes:a73ebee0-38ca-4bff-b1b4-6dfbde78a112:localhost]

2022-07-17 22:32:16 | [Mutex] received everything.

2022-07-17 22:32:16 | [Mutex] isItemNotified: received:node:a73ebee0-38ca-4bff-b1b4-6dfbde78a112:localhost:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960 :: false

createNodes 1.574s
2022-07-17 22:32:12 |

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

2022-07-17 22:32:12 | ------------------------------------

2022-07-17 22:32:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "pubsub#title": "Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960"
}

2022-07-17 22:32:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-17 22:32:14 | [Mutex] waiting for: [received:nodes:6bfbd03a-4485-4f9a-a466-9f55fe6fc2e5:localhost]

2022-07-17 22:32:14 | [Mutex] received everything.

2022-07-17 22:32:14 | [Mutex] isItemNotified: received:node:6bfbd03a-4485-4f9a-a466-9f55fe6fc2e5:localhost:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960 :: true

createSubnodes 1.025s
2022-07-17 22:32:14 |

2022-07-17 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:14 | ------------------------------------

2022-07-17 22:32:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-776aac0b-822d-48f8-b1c0-7cee4f384aa8",
    "pubsub#title": "Node 776aac0b-822d-48f8-b1c0-7cee4f384aa8"
}

2022-07-17 22:32:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-17 22:32:15 | [Mutex] waiting for: [received:nodes:f21d87a5-77fa-4e6e-8e9f-db3e57d899a0:localhost]

2022-07-17 22:32:15 | [Mutex] received everything.

2022-07-17 22:32:15 | [Mutex] isItemNotified: received:node:f21d87a5-77fa-4e6e-8e9f-db3e57d899a0:localhost:node-776aac0b-822d-48f8-b1c0-7cee4f384aa8:Node 776aac0b-822d-48f8-b1c0-7cee4f384aa8 :: true

deleteNodes 1.024s
2022-07-17 22:32:19 |

2022-07-17 22:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:19 | ------------------------------------

2022-07-17 22:32:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-776aac0b-822d-48f8-b1c0-7cee4f384aa8"
}

2022-07-17 22:32:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-17 22:32:20 | [Mutex] waiting for: [received:nodes:ff35f7bb-cc77-494d-85c2-db0ae7529f5e:localhost]

2022-07-17 22:32:20 | [Mutex] received everything.

2022-07-17 22:32:20 | [Mutex] isItemNotified: received:node:ff35f7bb-cc77-494d-85c2-db0ae7529f5e:localhost:node-776aac0b-822d-48f8-b1c0-7cee4f384aa8:Node 776aac0b-822d-48f8-b1c0-7cee4f384aa8 :: false

deleteSubnodes 1.037s
2022-07-17 22:32:18 |

2022-07-17 22:32:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:18 | ------------------------------------

2022-07-17 22:32:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960"
}

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

2022-07-17 22:32:19 | [Mutex] waiting for: [received:nodes:2c7e1245-d919-4554-9912-3d40466b71da:localhost]

2022-07-17 22:32:19 | [Mutex] received everything.

2022-07-17 22:32:19 | [Mutex] isItemNotified: received:node:2c7e1245-d919-4554-9912-3d40466b71da:localhost:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960 :: false

2022-07-17 22:32:19 | [Mutex] waiting for: [received:nodes:e27d8bd7-0c73-481e-a47f-815d09d9d1b9:localhost]

2022-07-17 22:32:19 | [Mutex] received everything.

2022-07-17 22:32:19 | [Mutex] isItemNotified: received:node:e27d8bd7-0c73-481e-a47f-815d09d9d1b9:localhost:node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960:Node c1179081-5ad3-4dc1-8d6e-b0eed94dd960 :: false

publishItemsToNodes 0.048s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

2022-07-17 22:32:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "entry": "<test>item-97fa6890-48e5-41f5-a213-d17e848b20ca</test>",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca"
}

2022-07-17 22:32:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca"
}

2022-07-17 22:32:17 | [Mutex] waiting for: [published:item:notifieditem-97fa6890-48e5-41f5-a213-d17e848b20ca:admin@test-domain.com]

2022-07-17 22:32:17 | [Mutex] received everything.

2022-07-17 22:32:17 | [Mutex] isItemNotified: published:item:notifieditem-97fa6890-48e5-41f5-a213-d17e848b20ca:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

2022-07-17 22:32:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca"
}

2022-07-17 22:32:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca"
}

2022-07-17 22:32:17 | [Mutex] waiting for: [retracted:item:notifieditem-97fa6890-48e5-41f5-a213-d17e848b20ca:admin@test-domain.com]

2022-07-17 22:32:17 | [Mutex] received everything.

2022-07-17 22:32:17 | [Mutex] isItemNotified: retracted:item:notifieditem-97fa6890-48e5-41f5-a213-d17e848b20ca:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

2022-07-17 22:32:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca"
}

2022-07-17 22:32:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "item-id": "item-97fa6890-48e5-41f5-a213-d17e848b20ca",
    "item": [
        "<item id=\"item-97fa6890-48e5-41f5-a213-d17e848b20ca\"><test>item-97fa6890-48e5-41f5-a213-d17e848b20ca</test></item>"
    ]
}

2022-07-17 22:32:17 | [Mutex] notify: [retrieved:item:item-97fa6890-48e5-41f5-a213-d17e848b20ca:payload-matches:true:localhost]

2022-07-17 22:32:17 | [Mutex] received everything.

2022-07-17 22:32:17 | [Mutex] isItemNotified: retrieved:item:item-97fa6890-48e5-41f5-a213-d17e848b20ca:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

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

2022-07-17 22:32:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
        "node-776aac0b-822d-48f8-b1c0-7cee4f384aa8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

2022-07-17 22:32:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960)"
}

2022-07-17 22:32:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-17 22:32:16 |

2022-07-17 22:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:16 | ------------------------------------

2022-07-17 22:32:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-17 22:32:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.134s
2022-07-17 22:32:17 |

2022-07-17 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 22:32:17 | ------------------------------------

2022-07-17 22:32:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c1179081-5ad3-4dc1-8d6e-b0eed94dd960",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-17 22:32:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}