Generated by TestNG with ReportNG at 21:14 PST on Monday 27 February 2023
root@7c41cec37518 / 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.513s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-02-27 21:29:10 |

2023-02-27 21:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:10 | ------------------------------------

2023-02-27 21:29:10 | [Mutex] waiting for: [configured:node:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:node-737c5641-8ea8-4cb7-9606-a4785b988509]

2023-02-27 21:29:10 | [Mutex] received everything.

2023-02-27 21:29:10 | [Mutex] isItemNotified: configured:node:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:node-737c5641-8ea8-4cb7-9606-a4785b988509 :: true

2023-02-27 21:29:11 | [Mutex] waiting for: [received:nodes:5439c7f1-377f-4e9d-aa6c-73fe5d6b60b6:localhost]

2023-02-27 21:29:11 | [Mutex] received everything.

2023-02-27 21:29:11 | [Mutex] isItemNotified: received:node:5439c7f1-377f-4e9d-aa6c-73fe5d6b60b6:localhost:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41 :: true

2023-02-27 21:29:11 | [Mutex] waiting for: [received:nodes:6e58fd0f-4748-438b-95bf-288a07e0c492:localhost]

2023-02-27 21:29:11 | [Mutex] waiting for: [received:nodes:6e58fd0f-4748-438b-95bf-288a07e0c492:localhost]

2023-02-27 21:29:11 | [Mutex] waiting for: [received:nodes:6e58fd0f-4748-438b-95bf-288a07e0c492:localhost]

2023-02-27 21:29:11 | [Mutex] waiting for: [received:nodes:6e58fd0f-4748-438b-95bf-288a07e0c492:localhost]

2023-02-27 21:29:11 | [Mutex] received everything.

2023-02-27 21:29:11 | [Mutex] isItemNotified: received:node:6e58fd0f-4748-438b-95bf-288a07e0c492:localhost:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41 :: false

createNodes 1.542s
2023-02-27 21:29:07 |

2023-02-27 21:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:07 | ------------------------------------

2023-02-27 21:29:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "pubsub#title": "Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41"
}

2023-02-27 21:29:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:29:09 | [Mutex] waiting for: [received:nodes:62082d4f-186c-47fb-b618-e07c63631803:localhost]

2023-02-27 21:29:09 | [Mutex] waiting for: [received:nodes:62082d4f-186c-47fb-b618-e07c63631803:localhost]

2023-02-27 21:29:09 | [Mutex] waiting for: [received:nodes:62082d4f-186c-47fb-b618-e07c63631803:localhost]

2023-02-27 21:29:09 | [Mutex] received everything.

2023-02-27 21:29:09 | [Mutex] isItemNotified: received:node:62082d4f-186c-47fb-b618-e07c63631803:localhost:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41 :: true

createSubnodes 1.021s
2023-02-27 21:29:09 |

2023-02-27 21:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:09 | ------------------------------------

2023-02-27 21:29:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-737c5641-8ea8-4cb7-9606-a4785b988509",
    "pubsub#title": "Node 737c5641-8ea8-4cb7-9606-a4785b988509"
}

2023-02-27 21:29:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:29:10 | [Mutex] waiting for: [received:nodes:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost]

2023-02-27 21:29:10 | [Mutex] waiting for: [received:nodes:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost]

2023-02-27 21:29:10 | [Mutex] waiting for: [received:nodes:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost]

2023-02-27 21:29:10 | [Mutex] waiting for: [received:nodes:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost]

2023-02-27 21:29:10 | [Mutex] waiting for: [received:nodes:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost]

2023-02-27 21:29:10 | [Mutex] received everything.

2023-02-27 21:29:10 | [Mutex] isItemNotified: received:node:3c129470-23f8-4dc0-833b-aa900eb34e73:localhost:node-737c5641-8ea8-4cb7-9606-a4785b988509:Node 737c5641-8ea8-4cb7-9606-a4785b988509 :: true

deleteNodes 1.016s
2023-02-27 21:29:14 |

2023-02-27 21:29:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:14 | ------------------------------------

2023-02-27 21:29:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-737c5641-8ea8-4cb7-9606-a4785b988509"
}

2023-02-27 21:29:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:29:16 | [Mutex] waiting for: [received:nodes:14aa7cfa-cf23-498e-9a3a-adfa38c83978:localhost]

2023-02-27 21:29:16 | [Mutex] waiting for: [received:nodes:14aa7cfa-cf23-498e-9a3a-adfa38c83978:localhost]

2023-02-27 21:29:16 | [Mutex] waiting for: [received:nodes:14aa7cfa-cf23-498e-9a3a-adfa38c83978:localhost]

2023-02-27 21:29:16 | [Mutex] received everything.

2023-02-27 21:29:16 | [Mutex] isItemNotified: received:node:14aa7cfa-cf23-498e-9a3a-adfa38c83978:localhost:node-737c5641-8ea8-4cb7-9606-a4785b988509:Node 737c5641-8ea8-4cb7-9606-a4785b988509 :: false

deleteSubnodes 1.023s
2023-02-27 21:29:13 |

2023-02-27 21:29:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:13 | ------------------------------------

2023-02-27 21:29:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41"
}

2023-02-27 21:29:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:29:14 | [Mutex] waiting for: [received:nodes:217006cf-abcf-4207-b856-79453ec297da:localhost]

2023-02-27 21:29:14 | [Mutex] waiting for: [received:nodes:217006cf-abcf-4207-b856-79453ec297da:localhost]

2023-02-27 21:29:14 | [Mutex] received everything.

2023-02-27 21:29:14 | [Mutex] isItemNotified: received:node:217006cf-abcf-4207-b856-79453ec297da:localhost:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41 :: false

2023-02-27 21:29:14 | [Mutex] waiting for: [received:nodes:00c677f9-87a1-4549-b254-e57ee152f3a1:localhost]

2023-02-27 21:29:14 | [Mutex] received everything.

2023-02-27 21:29:14 | [Mutex] isItemNotified: received:node:00c677f9-87a1-4549-b254-e57ee152f3a1:localhost:node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41:Node 41a49d39-4de5-49f2-afe3-cd8eaabb3b41 :: false

publishItemsToNodes 0.042s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "entry": "<test>item-61da6b46-e258-436d-8107-d36716741388</test>",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388"
}

2023-02-27 21:29:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388"
}

2023-02-27 21:29:12 | [Mutex] waiting for: [published:item:notifieditem-61da6b46-e258-436d-8107-d36716741388:admin@test-domain.com]

2023-02-27 21:29:12 | [Mutex] received everything.

2023-02-27 21:29:12 | [Mutex] isItemNotified: published:item:notifieditem-61da6b46-e258-436d-8107-d36716741388:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388"
}

2023-02-27 21:29:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388"
}

2023-02-27 21:29:12 | [Mutex] received everything.

2023-02-27 21:29:12 | [Mutex] isItemNotified: retracted:item:notifieditem-61da6b46-e258-436d-8107-d36716741388:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388"
}

2023-02-27 21:29:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "item-id": "item-61da6b46-e258-436d-8107-d36716741388",
    "item": [
        "<item id=\"item-61da6b46-e258-436d-8107-d36716741388\"><test>item-61da6b46-e258-436d-8107-d36716741388</test></item>"
    ]
}

2023-02-27 21:29:12 | [Mutex] notify: [retrieved:item:item-61da6b46-e258-436d-8107-d36716741388:payload-matches:true:localhost]

2023-02-27 21:29:12 | [Mutex] received everything.

2023-02-27 21:29:12 | [Mutex] isItemNotified: retrieved:item:item-61da6b46-e258-436d-8107-d36716741388:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-27 21:29:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-737c5641-8ea8-4cb7-9606-a4785b988509",
        "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41)"
}

2023-02-27 21:29:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-27 21:29:11 |

2023-02-27 21:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:11 | ------------------------------------

2023-02-27 21:29:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-27 21:29:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2023-02-27 21:29:12 |

2023-02-27 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:29:12 | ------------------------------------

2023-02-27 21:29:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-41a49d39-4de5-49f2-afe3-cd8eaabb3b41",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-27 21:29:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}