Generated by TestNG with ReportNG at 22:50 PDT on Friday 01 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.506s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.079s
2022-07-01 23:06:18 |

2022-07-01 23:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:18 | ------------------------------------

2022-07-01 23:06:18 | [Mutex] waiting for: [configured:node:node-20487843-2102-4f10-807d-1da79b22c277:node-00ca7133-33de-4ce7-8111-3bafe8805969]

2022-07-01 23:06:18 | [Mutex] received everything.

2022-07-01 23:06:18 | [Mutex] isItemNotified: configured:node:node-20487843-2102-4f10-807d-1da79b22c277:node-00ca7133-33de-4ce7-8111-3bafe8805969 :: true

2022-07-01 23:06:19 | [Mutex] waiting for: [received:nodes:292290f8-50dc-452e-90e4-e75192d6a531:localhost]

2022-07-01 23:06:19 | [Mutex] received everything.

2022-07-01 23:06:19 | [Mutex] isItemNotified: received:node:292290f8-50dc-452e-90e4-e75192d6a531:localhost:node-20487843-2102-4f10-807d-1da79b22c277:Node 20487843-2102-4f10-807d-1da79b22c277 :: true

2022-07-01 23:06:19 | [Mutex] waiting for: [received:nodes:b2e91a8d-ec56-4211-98f2-30d54f9d4b55:localhost]

2022-07-01 23:06:19 | [Mutex] waiting for: [received:nodes:b2e91a8d-ec56-4211-98f2-30d54f9d4b55:localhost]

2022-07-01 23:06:19 | [Mutex] received everything.

2022-07-01 23:06:19 | [Mutex] isItemNotified: received:node:b2e91a8d-ec56-4211-98f2-30d54f9d4b55:localhost:node-20487843-2102-4f10-807d-1da79b22c277:Node 20487843-2102-4f10-807d-1da79b22c277 :: false

createNodes 1.510s
2022-07-01 23:06:16 |

2022-07-01 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:16 | ------------------------------------

2022-07-01 23:06:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "pubsub#title": "Node 20487843-2102-4f10-807d-1da79b22c277"
}

2022-07-01 23:06:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-01 23:06:17 | [Mutex] waiting for: [received:nodes:6fd8f0fb-4ddf-42ac-9608-8588c1500f1f:localhost]

2022-07-01 23:06:17 | [Mutex] received everything.

2022-07-01 23:06:17 | [Mutex] isItemNotified: received:node:6fd8f0fb-4ddf-42ac-9608-8588c1500f1f:localhost:node-20487843-2102-4f10-807d-1da79b22c277:Node 20487843-2102-4f10-807d-1da79b22c277 :: true

createSubnodes 1.026s
2022-07-01 23:06:17 |

2022-07-01 23:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:17 | ------------------------------------

2022-07-01 23:06:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-00ca7133-33de-4ce7-8111-3bafe8805969",
    "pubsub#title": "Node 00ca7133-33de-4ce7-8111-3bafe8805969"
}

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

2022-07-01 23:06:18 | [Mutex] waiting for: [received:nodes:2e92a6db-9ea9-441e-b85a-68a6bbdea314:localhost]

2022-07-01 23:06:18 | [Mutex] received everything.

2022-07-01 23:06:18 | [Mutex] isItemNotified: received:node:2e92a6db-9ea9-441e-b85a-68a6bbdea314:localhost:node-00ca7133-33de-4ce7-8111-3bafe8805969:Node 00ca7133-33de-4ce7-8111-3bafe8805969 :: true

deleteNodes 1.025s
2022-07-01 23:06:23 |

2022-07-01 23:06:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:23 | ------------------------------------

2022-07-01 23:06:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-00ca7133-33de-4ce7-8111-3bafe8805969"
}

2022-07-01 23:06:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-01 23:06:24 | [Mutex] waiting for: [received:nodes:858761b5-3565-49f1-bfb9-80adae28c641:localhost]

2022-07-01 23:06:24 | [Mutex] received everything.

2022-07-01 23:06:24 | [Mutex] isItemNotified: received:node:858761b5-3565-49f1-bfb9-80adae28c641:localhost:node-00ca7133-33de-4ce7-8111-3bafe8805969:Node 00ca7133-33de-4ce7-8111-3bafe8805969 :: false

deleteSubnodes 1.029s
2022-07-01 23:06:22 |

2022-07-01 23:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:22 | ------------------------------------

2022-07-01 23:06:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277"
}

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

2022-07-01 23:06:23 | [Mutex] waiting for: [received:nodes:6ca22b7e-6701-471c-a1f7-c08c5956c369:localhost]

2022-07-01 23:06:23 | [Mutex] received everything.

2022-07-01 23:06:23 | [Mutex] isItemNotified: received:node:6ca22b7e-6701-471c-a1f7-c08c5956c369:localhost:node-20487843-2102-4f10-807d-1da79b22c277:Node 20487843-2102-4f10-807d-1da79b22c277 :: false

2022-07-01 23:06:23 | [Mutex] waiting for: [received:nodes:d0919a7e-566f-4717-89d3-597bdb9e79d8:localhost]

2022-07-01 23:06:23 | [Mutex] received everything.

2022-07-01 23:06:23 | [Mutex] isItemNotified: received:node:d0919a7e-566f-4717-89d3-597bdb9e79d8:localhost:node-20487843-2102-4f10-807d-1da79b22c277:Node 20487843-2102-4f10-807d-1da79b22c277 :: false

publishItemsToNodes 0.052s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

2022-07-01 23:06:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "entry": "<test>item-af4249e0-e826-448a-895e-7c74842a5183</test>",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183"
}

2022-07-01 23:06:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183"
}

2022-07-01 23:06:20 | [Mutex] waiting for: [published:item:notifieditem-af4249e0-e826-448a-895e-7c74842a5183:admin@test-domain.com]

2022-07-01 23:06:20 | [Mutex] received everything.

2022-07-01 23:06:20 | [Mutex] isItemNotified: published:item:notifieditem-af4249e0-e826-448a-895e-7c74842a5183:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

2022-07-01 23:06:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183"
}

2022-07-01 23:06:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183"
}

2022-07-01 23:06:20 | [Mutex] received everything.

2022-07-01 23:06:20 | [Mutex] isItemNotified: retracted:item:notifieditem-af4249e0-e826-448a-895e-7c74842a5183:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

2022-07-01 23:06:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183"
}

2022-07-01 23:06:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "item-id": "item-af4249e0-e826-448a-895e-7c74842a5183",
    "item": [
        "<item id=\"item-af4249e0-e826-448a-895e-7c74842a5183\"><test>item-af4249e0-e826-448a-895e-7c74842a5183</test></item>"
    ]
}

2022-07-01 23:06:20 | [Mutex] notify: [retrieved:item:item-af4249e0-e826-448a-895e-7c74842a5183:payload-matches:true:localhost]

2022-07-01 23:06:20 | [Mutex] received everything.

2022-07-01 23:06:20 | [Mutex] isItemNotified: retrieved:item:item-af4249e0-e826-448a-895e-7c74842a5183:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

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

2022-07-01 23:06:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-20487843-2102-4f10-807d-1da79b22c277",
        "node-00ca7133-33de-4ce7-8111-3bafe8805969"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

2022-07-01 23:06:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20487843-2102-4f10-807d-1da79b22c277)"
}

2022-07-01 23:06:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-07-01 23:06:19 |

2022-07-01 23:06:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:19 | ------------------------------------

2022-07-01 23:06:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-01 23:06:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.078s
2022-07-01 23:06:20 |

2022-07-01 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-01 23:06:20 | ------------------------------------

2022-07-01 23:06:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20487843-2102-4f10-807d-1da79b22c277",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-01 23:06:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}