Generated by TestNG with ReportNG at 22:15 PDT on Friday 24 March 2023
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.705s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.175s
2023-03-24 22:30:25 |

2023-03-24 22:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:25 | ------------------------------------

2023-03-24 22:30:25 | [Mutex] waiting for: [configured:node:node-3ce42877-83af-413e-9538-e91d92fad309:node-5b13b19c-281f-4e72-9fea-f93cae1e490b]

2023-03-24 22:30:25 | [Mutex] received everything.

2023-03-24 22:30:25 | [Mutex] isItemNotified: configured:node:node-3ce42877-83af-413e-9538-e91d92fad309:node-5b13b19c-281f-4e72-9fea-f93cae1e490b :: true

2023-03-24 22:30:26 | [Mutex] waiting for: [received:nodes:765bf6d4-bad3-4fac-b883-e2d64240a453:localhost]

2023-03-24 22:30:26 | [Mutex] received everything.

2023-03-24 22:30:26 | [Mutex] isItemNotified: received:node:765bf6d4-bad3-4fac-b883-e2d64240a453:localhost:node-3ce42877-83af-413e-9538-e91d92fad309:Node 3ce42877-83af-413e-9538-e91d92fad309 :: true

2023-03-24 22:30:26 | [Mutex] waiting for: [received:nodes:8fc5f168-856f-4ba7-8c4f-30dcd0b971a5:localhost]

2023-03-24 22:30:26 | [Mutex] received everything.

2023-03-24 22:30:26 | [Mutex] isItemNotified: received:node:8fc5f168-856f-4ba7-8c4f-30dcd0b971a5:localhost:node-3ce42877-83af-413e-9538-e91d92fad309:Node 3ce42877-83af-413e-9538-e91d92fad309 :: false

createNodes 1.619s
2023-03-24 22:30:22 |

2023-03-24 22:30:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:22 | ------------------------------------

2023-03-24 22:30:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "pubsub#title": "Node 3ce42877-83af-413e-9538-e91d92fad309"
}

2023-03-24 22:30:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:24 | [Mutex] waiting for: [received:nodes:db91fa31-c3a9-44d4-9d04-f8105a6efb92:localhost]

2023-03-24 22:30:24 | [Mutex] waiting for: [received:nodes:db91fa31-c3a9-44d4-9d04-f8105a6efb92:localhost]

2023-03-24 22:30:24 | [Mutex] waiting for: [received:nodes:db91fa31-c3a9-44d4-9d04-f8105a6efb92:localhost]

2023-03-24 22:30:24 | [Mutex] received everything.

2023-03-24 22:30:24 | [Mutex] isItemNotified: received:node:db91fa31-c3a9-44d4-9d04-f8105a6efb92:localhost:node-3ce42877-83af-413e-9538-e91d92fad309:Node 3ce42877-83af-413e-9538-e91d92fad309 :: true

createSubnodes 1.036s
2023-03-24 22:30:24 |

2023-03-24 22:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:24 | ------------------------------------

2023-03-24 22:30:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5b13b19c-281f-4e72-9fea-f93cae1e490b",
    "pubsub#title": "Node 5b13b19c-281f-4e72-9fea-f93cae1e490b"
}

2023-03-24 22:30:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:25 | [Mutex] waiting for: [received:nodes:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost]

2023-03-24 22:30:25 | [Mutex] waiting for: [received:nodes:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost]

2023-03-24 22:30:25 | [Mutex] waiting for: [received:nodes:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost]

2023-03-24 22:30:25 | [Mutex] waiting for: [received:nodes:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost]

2023-03-24 22:30:25 | [Mutex] waiting for: [received:nodes:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost]

2023-03-24 22:30:25 | [Mutex] received everything.

2023-03-24 22:30:25 | [Mutex] isItemNotified: received:node:d4743939-3dea-477b-9aa7-141f2cc3de8f:localhost:node-5b13b19c-281f-4e72-9fea-f93cae1e490b:Node 5b13b19c-281f-4e72-9fea-f93cae1e490b :: true

deleteNodes 1.022s
2023-03-24 22:30:30 |

2023-03-24 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:30 | ------------------------------------

2023-03-24 22:30:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5b13b19c-281f-4e72-9fea-f93cae1e490b"
}

2023-03-24 22:30:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:31 | [Mutex] waiting for: [received:nodes:70ee5984-b9ca-4317-b12e-3934aafe8d39:localhost]

2023-03-24 22:30:31 | [Mutex] waiting for: [received:nodes:70ee5984-b9ca-4317-b12e-3934aafe8d39:localhost]

2023-03-24 22:30:31 | [Mutex] waiting for: [received:nodes:70ee5984-b9ca-4317-b12e-3934aafe8d39:localhost]

2023-03-24 22:30:31 | [Mutex] received everything.

2023-03-24 22:30:31 | [Mutex] isItemNotified: received:node:70ee5984-b9ca-4317-b12e-3934aafe8d39:localhost:node-5b13b19c-281f-4e72-9fea-f93cae1e490b:Node 5b13b19c-281f-4e72-9fea-f93cae1e490b :: false

deleteSubnodes 1.029s
2023-03-24 22:30:29 |

2023-03-24 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:29 | ------------------------------------

2023-03-24 22:30:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309"
}

2023-03-24 22:30:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:a928cdf6-d5cc-4b6b-9c10-229a3a216850:localhost]

2023-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:a928cdf6-d5cc-4b6b-9c10-229a3a216850:localhost]

2023-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:a928cdf6-d5cc-4b6b-9c10-229a3a216850:localhost]

2023-03-24 22:30:30 | [Mutex] received everything.

2023-03-24 22:30:30 | [Mutex] isItemNotified: received:node:a928cdf6-d5cc-4b6b-9c10-229a3a216850:localhost:node-3ce42877-83af-413e-9538-e91d92fad309:Node 3ce42877-83af-413e-9538-e91d92fad309 :: false

2023-03-24 22:30:30 | [Mutex] waiting for: [received:nodes:1cbf1947-89de-4387-b7b8-7ec1242b8718:localhost]

2023-03-24 22:30:30 | [Mutex] received everything.

2023-03-24 22:30:30 | [Mutex] isItemNotified: received:node:1cbf1947-89de-4387-b7b8-7ec1242b8718:localhost:node-3ce42877-83af-413e-9538-e91d92fad309:Node 3ce42877-83af-413e-9538-e91d92fad309 :: false

publishItemsToNodes 0.037s
2023-03-24 22:30:27 |

2023-03-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:27 | ------------------------------------

2023-03-24 22:30:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "entry": "<test>item-ec86506d-c18b-4be9-88f0-46596a7ff74e</test>",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e"
}

2023-03-24 22:30:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e"
}

2023-03-24 22:30:27 | [Mutex] waiting for: [published:item:notifieditem-ec86506d-c18b-4be9-88f0-46596a7ff74e:admin@test-domain.com]

2023-03-24 22:30:27 | [Mutex] received everything.

2023-03-24 22:30:27 | [Mutex] isItemNotified: published:item:notifieditem-ec86506d-c18b-4be9-88f0-46596a7ff74e:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-03-24 22:30:27 |

2023-03-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:27 | ------------------------------------

2023-03-24 22:30:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e"
}

2023-03-24 22:30:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e"
}

2023-03-24 22:30:28 | [Mutex] received everything.

2023-03-24 22:30:28 | [Mutex] isItemNotified: retracted:item:notifieditem-ec86506d-c18b-4be9-88f0-46596a7ff74e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.093s
2023-03-24 22:30:27 |

2023-03-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:27 | ------------------------------------

2023-03-24 22:30:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e"
}

2023-03-24 22:30:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "item-id": "item-ec86506d-c18b-4be9-88f0-46596a7ff74e",
    "item": [
        "<item id=\"item-ec86506d-c18b-4be9-88f0-46596a7ff74e\"><test>item-ec86506d-c18b-4be9-88f0-46596a7ff74e</test></item>"
    ]
}

2023-03-24 22:30:27 | [Mutex] notify: [retrieved:item:item-ec86506d-c18b-4be9-88f0-46596a7ff74e:payload-matches:true:localhost]

2023-03-24 22:30:27 | [Mutex] received everything.

2023-03-24 22:30:27 | [Mutex] isItemNotified: retrieved:item:item-ec86506d-c18b-4be9-88f0-46596a7ff74e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-24 22:30:27 |

2023-03-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:27 | ------------------------------------

2023-03-24 22:30:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-24 22:30:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5b13b19c-281f-4e72-9fea-f93cae1e490b",
        "node-3ce42877-83af-413e-9538-e91d92fad309"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-24 22:30:27 |

2023-03-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:27 | ------------------------------------

2023-03-24 22:30:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ce42877-83af-413e-9538-e91d92fad309)"
}

2023-03-24 22:30:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2023-03-24 22:30:26 |

2023-03-24 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:26 | ------------------------------------

2023-03-24 22:30:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-24 22:30:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-03-24 22:30:28 |

2023-03-24 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:28 | ------------------------------------

2023-03-24 22:30:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ce42877-83af-413e-9538-e91d92fad309",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-24 22:30:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}