Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 22 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.595s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-06-22 22:49:49 |

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

2022-06-22 22:49:49 | ------------------------------------

2022-06-22 22:49:49 | [Mutex] waiting for: [configured:node:node-458c081d-e29f-43ec-94ac-98126d6ca805:node-3093d8fe-c735-4381-92df-6d2f2494c407]

2022-06-22 22:49:49 | [Mutex] received everything.

2022-06-22 22:49:49 | [Mutex] isItemNotified: configured:node:node-458c081d-e29f-43ec-94ac-98126d6ca805:node-3093d8fe-c735-4381-92df-6d2f2494c407 :: true

2022-06-22 22:49:50 | [Mutex] waiting for: [received:nodes:aa972dcb-5093-4067-8812-b686bea4dae2:localhost]

2022-06-22 22:49:50 | [Mutex] received everything.

2022-06-22 22:49:50 | [Mutex] isItemNotified: received:node:aa972dcb-5093-4067-8812-b686bea4dae2:localhost:node-458c081d-e29f-43ec-94ac-98126d6ca805:Node 458c081d-e29f-43ec-94ac-98126d6ca805 :: true

2022-06-22 22:49:50 | [Mutex] waiting for: [received:nodes:dbbed62a-708c-4fc0-b8b2-e69bfd8747c3:localhost]

2022-06-22 22:49:50 | [Mutex] received everything.

2022-06-22 22:49:50 | [Mutex] isItemNotified: received:node:dbbed62a-708c-4fc0-b8b2-e69bfd8747c3:localhost:node-458c081d-e29f-43ec-94ac-98126d6ca805:Node 458c081d-e29f-43ec-94ac-98126d6ca805 :: false

createNodes 1.569s
2022-06-22 22:49:46 |

2022-06-22 22:49:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:46 | ------------------------------------

2022-06-22 22:49:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "pubsub#title": "Node 458c081d-e29f-43ec-94ac-98126d6ca805"
}

2022-06-22 22:49:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-22 22:49:48 | [Mutex] waiting for: [received:nodes:a64a4603-1539-4b97-a862-c05bfb93e415:localhost]

2022-06-22 22:49:48 | [Mutex] received everything.

2022-06-22 22:49:48 | [Mutex] isItemNotified: received:node:a64a4603-1539-4b97-a862-c05bfb93e415:localhost:node-458c081d-e29f-43ec-94ac-98126d6ca805:Node 458c081d-e29f-43ec-94ac-98126d6ca805 :: true

createSubnodes 1.035s
2022-06-22 22:49:48 |

2022-06-22 22:49:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:48 | ------------------------------------

2022-06-22 22:49:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3093d8fe-c735-4381-92df-6d2f2494c407",
    "pubsub#title": "Node 3093d8fe-c735-4381-92df-6d2f2494c407"
}

2022-06-22 22:49:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-22 22:49:49 | [Mutex] waiting for: [received:nodes:ae699946-2602-4607-8398-f453f671055c:localhost]

2022-06-22 22:49:49 | [Mutex] waiting for: [received:nodes:ae699946-2602-4607-8398-f453f671055c:localhost]

2022-06-22 22:49:49 | [Mutex] received everything.

2022-06-22 22:49:49 | [Mutex] isItemNotified: received:node:ae699946-2602-4607-8398-f453f671055c:localhost:node-3093d8fe-c735-4381-92df-6d2f2494c407:Node 3093d8fe-c735-4381-92df-6d2f2494c407 :: true

deleteNodes 1.028s
2022-06-22 22:49:53 |

2022-06-22 22:49:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:53 | ------------------------------------

2022-06-22 22:49:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3093d8fe-c735-4381-92df-6d2f2494c407"
}

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

2022-06-22 22:49:54 | [Mutex] waiting for: [received:nodes:c8dca7d0-6da2-485d-afad-b687eae2fabb:localhost]

2022-06-22 22:49:54 | [Mutex] received everything.

2022-06-22 22:49:54 | [Mutex] isItemNotified: received:node:c8dca7d0-6da2-485d-afad-b687eae2fabb:localhost:node-3093d8fe-c735-4381-92df-6d2f2494c407:Node 3093d8fe-c735-4381-92df-6d2f2494c407 :: false

deleteSubnodes 1.023s
2022-06-22 22:49:52 |

2022-06-22 22:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:52 | ------------------------------------

2022-06-22 22:49:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805"
}

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

2022-06-22 22:49:53 | [Mutex] waiting for: [received:nodes:74bce2b2-6a70-47a6-b06d-8b428eafdb6b:localhost]

2022-06-22 22:49:53 | [Mutex] received everything.

2022-06-22 22:49:53 | [Mutex] isItemNotified: received:node:74bce2b2-6a70-47a6-b06d-8b428eafdb6b:localhost:node-458c081d-e29f-43ec-94ac-98126d6ca805:Node 458c081d-e29f-43ec-94ac-98126d6ca805 :: false

2022-06-22 22:49:53 | [Mutex] waiting for: [received:nodes:dda0559b-09ea-45b6-ac5b-ac3ecdc81760:localhost]

2022-06-22 22:49:53 | [Mutex] received everything.

2022-06-22 22:49:53 | [Mutex] isItemNotified: received:node:dda0559b-09ea-45b6-ac5b-ac3ecdc81760:localhost:node-458c081d-e29f-43ec-94ac-98126d6ca805:Node 458c081d-e29f-43ec-94ac-98126d6ca805 :: false

publishItemsToNodes 0.056s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

2022-06-22 22:49:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "entry": "<test>item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b</test>",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b"
}

2022-06-22 22:49:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b"
}

2022-06-22 22:49:51 | [Mutex] waiting for: [published:item:notifieditem-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b:admin@test-domain.com]

2022-06-22 22:49:51 | [Mutex] received everything.

2022-06-22 22:49:51 | [Mutex] isItemNotified: published:item:notifieditem-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

2022-06-22 22:49:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b"
}

2022-06-22 22:49:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b"
}

2022-06-22 22:49:51 | [Mutex] received everything.

2022-06-22 22:49:51 | [Mutex] isItemNotified: retracted:item:notifieditem-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

2022-06-22 22:49:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b"
}

2022-06-22 22:49:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "item-id": "item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b",
    "item": [
        "<item id=\"item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b\"><test>item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b</test></item>"
    ]
}

2022-06-22 22:49:51 | [Mutex] notify: [retrieved:item:item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b:payload-matches:true:localhost]

2022-06-22 22:49:51 | [Mutex] received everything.

2022-06-22 22:49:51 | [Mutex] isItemNotified: retrieved:item:item-4ee78dd6-cba9-4c9b-aaf5-8485bf1d969b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

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

2022-06-22 22:49:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-458c081d-e29f-43ec-94ac-98126d6ca805",
        "node-3093d8fe-c735-4381-92df-6d2f2494c407"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

2022-06-22 22:49:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-458c081d-e29f-43ec-94ac-98126d6ca805)"
}

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

subscribeNodes 1.009s
2022-06-22 22:49:50 |

2022-06-22 22:49:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:50 | ------------------------------------

2022-06-22 22:49:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-22 22:49:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-06-22 22:49:51 |

2022-06-22 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:49:51 | ------------------------------------

2022-06-22 22:49:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-458c081d-e29f-43ec-94ac-98126d6ca805",
    "jids": [
        "admin@test-domain.com"
    ]
}

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