Generated by TestNG with ReportNG at 05:51 PDT on Monday 24 October 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.730s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.079s
2022-10-24 06:13:19 |

2022-10-24 06:13:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:19 | ------------------------------------

2022-10-24 06:13:19 | [Mutex] waiting for: [configured:node:node-bf6e94b8-7713-475a-84d0-771c64553a53:node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1]

2022-10-24 06:13:19 | [Mutex] received everything.

2022-10-24 06:13:19 | [Mutex] isItemNotified: configured:node:node-bf6e94b8-7713-475a-84d0-771c64553a53:node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1 :: true

2022-10-24 06:13:20 | [Mutex] waiting for: [received:nodes:96f182ef-2788-4f08-b57c-c1ece20cf105:localhost]

2022-10-24 06:13:20 | [Mutex] received everything.

2022-10-24 06:13:20 | [Mutex] isItemNotified: received:node:96f182ef-2788-4f08-b57c-c1ece20cf105:localhost:node-bf6e94b8-7713-475a-84d0-771c64553a53:Node bf6e94b8-7713-475a-84d0-771c64553a53 :: true

2022-10-24 06:13:20 | [Mutex] waiting for: [received:nodes:deeb107c-e39f-463e-908f-a2771f2fe42d:localhost]

2022-10-24 06:13:20 | [Mutex] received everything.

2022-10-24 06:13:20 | [Mutex] isItemNotified: received:node:deeb107c-e39f-463e-908f-a2771f2fe42d:localhost:node-bf6e94b8-7713-475a-84d0-771c64553a53:Node bf6e94b8-7713-475a-84d0-771c64553a53 :: false

createNodes 1.606s
2022-10-24 06:13:17 |

2022-10-24 06:13:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:17 | ------------------------------------

2022-10-24 06:13:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "pubsub#title": "Node bf6e94b8-7713-475a-84d0-771c64553a53"
}

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

2022-10-24 06:13:18 | [Mutex] waiting for: [received:nodes:0f269652-d2dd-43b7-9cba-e712f57df9f9:localhost]

2022-10-24 06:13:18 | [Mutex] waiting for: [received:nodes:0f269652-d2dd-43b7-9cba-e712f57df9f9:localhost]

2022-10-24 06:13:18 | [Mutex] received everything.

2022-10-24 06:13:18 | [Mutex] isItemNotified: received:node:0f269652-d2dd-43b7-9cba-e712f57df9f9:localhost:node-bf6e94b8-7713-475a-84d0-771c64553a53:Node bf6e94b8-7713-475a-84d0-771c64553a53 :: true

createSubnodes 1.027s
2022-10-24 06:13:18 |

2022-10-24 06:13:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:18 | ------------------------------------

2022-10-24 06:13:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1",
    "pubsub#title": "Node ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1"
}

2022-10-24 06:13:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:13:19 | [Mutex] waiting for: [received:nodes:c620540f-323e-4bad-9c19-4186a384e012:localhost]

2022-10-24 06:13:19 | [Mutex] received everything.

2022-10-24 06:13:19 | [Mutex] isItemNotified: received:node:c620540f-323e-4bad-9c19-4186a384e012:localhost:node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1:Node ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1 :: true

deleteNodes 1.028s
2022-10-24 06:13:24 |

2022-10-24 06:13:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:24 | ------------------------------------

2022-10-24 06:13:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1"
}

2022-10-24 06:13:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:13:25 | [Mutex] waiting for: [received:nodes:0c7c86e1-108d-488b-b2c9-e64a3d7c63c2:localhost]

2022-10-24 06:13:25 | [Mutex] received everything.

2022-10-24 06:13:25 | [Mutex] isItemNotified: received:node:0c7c86e1-108d-488b-b2c9-e64a3d7c63c2:localhost:node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1:Node ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1 :: false

deleteSubnodes 1.078s
2022-10-24 06:13:23 |

2022-10-24 06:13:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:23 | ------------------------------------

2022-10-24 06:13:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53"
}

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

2022-10-24 06:13:24 | [Mutex] waiting for: [received:nodes:cbfc28c9-9d7f-475d-a8b6-b7759e2fd03e:localhost]

2022-10-24 06:13:24 | [Mutex] waiting for: [received:nodes:cbfc28c9-9d7f-475d-a8b6-b7759e2fd03e:localhost]

2022-10-24 06:13:24 | [Mutex] received everything.

2022-10-24 06:13:24 | [Mutex] isItemNotified: received:node:cbfc28c9-9d7f-475d-a8b6-b7759e2fd03e:localhost:node-bf6e94b8-7713-475a-84d0-771c64553a53:Node bf6e94b8-7713-475a-84d0-771c64553a53 :: false

2022-10-24 06:13:24 | [Mutex] waiting for: [received:nodes:d5da85f0-01ae-4724-8ee6-6cae7c3d93e6:localhost]

2022-10-24 06:13:24 | [Mutex] received everything.

2022-10-24 06:13:24 | [Mutex] isItemNotified: received:node:d5da85f0-01ae-4724-8ee6-6cae7c3d93e6:localhost:node-bf6e94b8-7713-475a-84d0-771c64553a53:Node bf6e94b8-7713-475a-84d0-771c64553a53 :: false

publishItemsToNodes 0.065s
2022-10-24 06:13:21 |

2022-10-24 06:13:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:21 | ------------------------------------

2022-10-24 06:13:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "entry": "<test>item-5d721651-85ec-42fa-9b34-ba9cfa015176</test>",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176"
}

2022-10-24 06:13:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176"
}

2022-10-24 06:13:21 | [Mutex] waiting for: [published:item:notifieditem-5d721651-85ec-42fa-9b34-ba9cfa015176:admin@test-domain.com]

2022-10-24 06:13:22 | [Mutex] received everything.

2022-10-24 06:13:22 | [Mutex] isItemNotified: published:item:notifieditem-5d721651-85ec-42fa-9b34-ba9cfa015176:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-10-24 06:13:22 |

2022-10-24 06:13:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:22 | ------------------------------------

2022-10-24 06:13:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176"
}

2022-10-24 06:13:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176"
}

2022-10-24 06:13:22 | [Mutex] received everything.

2022-10-24 06:13:22 | [Mutex] isItemNotified: retracted:item:notifieditem-5d721651-85ec-42fa-9b34-ba9cfa015176:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2022-10-24 06:13:22 |

2022-10-24 06:13:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:22 | ------------------------------------

2022-10-24 06:13:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176"
}

2022-10-24 06:13:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "item-id": "item-5d721651-85ec-42fa-9b34-ba9cfa015176",
    "item": [
        "<item id=\"item-5d721651-85ec-42fa-9b34-ba9cfa015176\"><test>item-5d721651-85ec-42fa-9b34-ba9cfa015176</test></item>"
    ]
}

2022-10-24 06:13:22 | [Mutex] notify: [retrieved:item:item-5d721651-85ec-42fa-9b34-ba9cfa015176:payload-matches:true:localhost]

2022-10-24 06:13:22 | [Mutex] received everything.

2022-10-24 06:13:22 | [Mutex] isItemNotified: retrieved:item:item-5d721651-85ec-42fa-9b34-ba9cfa015176:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-24 06:13:22 |

2022-10-24 06:13:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:22 | ------------------------------------

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

2022-10-24 06:13:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bf6e94b8-7713-475a-84d0-771c64553a53",
        "node-ce3f5bf0-f62f-48ad-bd78-32fa4939d2c1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-24 06:13:22 |

2022-10-24 06:13:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:22 | ------------------------------------

2022-10-24 06:13:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bf6e94b8-7713-475a-84d0-771c64553a53)"
}

2022-10-24 06:13:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-10-24 06:13:20 |

2022-10-24 06:13:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:20 | ------------------------------------

2022-10-24 06:13:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-24 06:13:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-10-24 06:13:22 |

2022-10-24 06:13:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:13:22 | ------------------------------------

2022-10-24 06:13:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bf6e94b8-7713-475a-84d0-771c64553a53",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-24 06:13:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}