Generated by TestNG with ReportNG at 22:52 PDT on Monday 29 August 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.714s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2022-08-29 23:06:22 |

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

2022-08-29 23:06:22 | ------------------------------------

2022-08-29 23:06:22 | [Mutex] waiting for: [configured:node:node-ee2d065d-208d-449e-8eda-e7a1861536cb:node-674172ec-6856-45c6-81a0-34efd70d9a19]

2022-08-29 23:06:22 | [Mutex] received everything.

2022-08-29 23:06:22 | [Mutex] isItemNotified: configured:node:node-ee2d065d-208d-449e-8eda-e7a1861536cb:node-674172ec-6856-45c6-81a0-34efd70d9a19 :: true

2022-08-29 23:06:23 | [Mutex] waiting for: [received:nodes:ee13c0b4-efab-41c7-a448-685231831f9e:localhost]

2022-08-29 23:06:23 | [Mutex] received everything.

2022-08-29 23:06:23 | [Mutex] isItemNotified: received:node:ee13c0b4-efab-41c7-a448-685231831f9e:localhost:node-ee2d065d-208d-449e-8eda-e7a1861536cb:Node ee2d065d-208d-449e-8eda-e7a1861536cb :: true

2022-08-29 23:06:23 | [Mutex] waiting for: [received:nodes:b0e85742-3d00-4a6c-a8a2-21225959ea72:localhost]

2022-08-29 23:06:23 | [Mutex] waiting for: [received:nodes:b0e85742-3d00-4a6c-a8a2-21225959ea72:localhost]

2022-08-29 23:06:23 | [Mutex] waiting for: [received:nodes:b0e85742-3d00-4a6c-a8a2-21225959ea72:localhost]

2022-08-29 23:06:23 | [Mutex] received everything.

2022-08-29 23:06:23 | [Mutex] isItemNotified: received:node:b0e85742-3d00-4a6c-a8a2-21225959ea72:localhost:node-ee2d065d-208d-449e-8eda-e7a1861536cb:Node ee2d065d-208d-449e-8eda-e7a1861536cb :: false

createNodes 1.608s
2022-08-29 23:06:19 |

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

2022-08-29 23:06:19 | ------------------------------------

2022-08-29 23:06:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "pubsub#title": "Node ee2d065d-208d-449e-8eda-e7a1861536cb"
}

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

2022-08-29 23:06:21 | [Mutex] waiting for: [received:nodes:70218408-251b-4bda-b077-31ee6c3de47a:localhost]

2022-08-29 23:06:21 | [Mutex] received everything.

2022-08-29 23:06:21 | [Mutex] isItemNotified: received:node:70218408-251b-4bda-b077-31ee6c3de47a:localhost:node-ee2d065d-208d-449e-8eda-e7a1861536cb:Node ee2d065d-208d-449e-8eda-e7a1861536cb :: true

createSubnodes 1.031s
2022-08-29 23:06:21 |

2022-08-29 23:06:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 23:06:21 | ------------------------------------

2022-08-29 23:06:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-674172ec-6856-45c6-81a0-34efd70d9a19",
    "pubsub#title": "Node 674172ec-6856-45c6-81a0-34efd70d9a19"
}

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

2022-08-29 23:06:22 | [Mutex] waiting for: [received:nodes:cacc0c85-999e-4d69-a736-b092a8465846:localhost]

2022-08-29 23:06:22 | [Mutex] received everything.

2022-08-29 23:06:22 | [Mutex] isItemNotified: received:node:cacc0c85-999e-4d69-a736-b092a8465846:localhost:node-674172ec-6856-45c6-81a0-34efd70d9a19:Node 674172ec-6856-45c6-81a0-34efd70d9a19 :: true

deleteNodes 1.023s
2022-08-29 23:06:27 |

2022-08-29 23:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 23:06:27 | ------------------------------------

2022-08-29 23:06:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-674172ec-6856-45c6-81a0-34efd70d9a19"
}

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

2022-08-29 23:06:28 | [Mutex] waiting for: [received:nodes:013073c3-8fa9-4e0b-8da0-81e854fa2ad2:localhost]

2022-08-29 23:06:28 | [Mutex] waiting for: [received:nodes:013073c3-8fa9-4e0b-8da0-81e854fa2ad2:localhost]

2022-08-29 23:06:28 | [Mutex] received everything.

2022-08-29 23:06:28 | [Mutex] isItemNotified: received:node:013073c3-8fa9-4e0b-8da0-81e854fa2ad2:localhost:node-674172ec-6856-45c6-81a0-34efd70d9a19:Node 674172ec-6856-45c6-81a0-34efd70d9a19 :: false

deleteSubnodes 1.068s
2022-08-29 23:06:25 |

2022-08-29 23:06:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-29 23:06:25 | ------------------------------------

2022-08-29 23:06:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb"
}

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

2022-08-29 23:06:26 | [Mutex] waiting for: [received:nodes:ed812544-2078-41ac-a468-91b5e6e614d8:localhost]

2022-08-29 23:06:27 | [Mutex] waiting for: [received:nodes:ed812544-2078-41ac-a468-91b5e6e614d8:localhost]

2022-08-29 23:06:27 | [Mutex] received everything.

2022-08-29 23:06:27 | [Mutex] isItemNotified: received:node:ed812544-2078-41ac-a468-91b5e6e614d8:localhost:node-ee2d065d-208d-449e-8eda-e7a1861536cb:Node ee2d065d-208d-449e-8eda-e7a1861536cb :: false

2022-08-29 23:06:27 | [Mutex] waiting for: [received:nodes:cfdff317-ea03-4a4b-83bf-e05982ee3b07:localhost]

2022-08-29 23:06:27 | [Mutex] received everything.

2022-08-29 23:06:27 | [Mutex] isItemNotified: received:node:cfdff317-ea03-4a4b-83bf-e05982ee3b07:localhost:node-ee2d065d-208d-449e-8eda-e7a1861536cb:Node ee2d065d-208d-449e-8eda-e7a1861536cb :: false

publishItemsToNodes 0.048s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

2022-08-29 23:06:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "entry": "<test>item-8b265688-3172-45a2-bc62-51527dabf094</test>",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094"
}

2022-08-29 23:06:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094"
}

2022-08-29 23:06:24 | [Mutex] waiting for: [published:item:notifieditem-8b265688-3172-45a2-bc62-51527dabf094:admin@test-domain.com]

2022-08-29 23:06:24 | [Mutex] received everything.

2022-08-29 23:06:24 | [Mutex] isItemNotified: published:item:notifieditem-8b265688-3172-45a2-bc62-51527dabf094:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

2022-08-29 23:06:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094"
}

2022-08-29 23:06:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094"
}

2022-08-29 23:06:24 | [Mutex] received everything.

2022-08-29 23:06:24 | [Mutex] isItemNotified: retracted:item:notifieditem-8b265688-3172-45a2-bc62-51527dabf094:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

2022-08-29 23:06:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094"
}

2022-08-29 23:06:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "item-id": "item-8b265688-3172-45a2-bc62-51527dabf094",
    "item": [
        "<item id=\"item-8b265688-3172-45a2-bc62-51527dabf094\"><test>item-8b265688-3172-45a2-bc62-51527dabf094</test></item>"
    ]
}

2022-08-29 23:06:24 | [Mutex] notify: [retrieved:item:item-8b265688-3172-45a2-bc62-51527dabf094:payload-matches:true:localhost]

2022-08-29 23:06:24 | [Mutex] received everything.

2022-08-29 23:06:24 | [Mutex] isItemNotified: retrieved:item:item-8b265688-3172-45a2-bc62-51527dabf094:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

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

2022-08-29 23:06:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-674172ec-6856-45c6-81a0-34efd70d9a19",
        "node-ee2d065d-208d-449e-8eda-e7a1861536cb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

2022-08-29 23:06:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ee2d065d-208d-449e-8eda-e7a1861536cb)"
}

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

subscribeNodes 1.009s
2022-08-29 23:06:23 |

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

2022-08-29 23:06:23 | ------------------------------------

2022-08-29 23:06:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-08-29 23:06:24 |

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

2022-08-29 23:06:24 | ------------------------------------

2022-08-29 23:06:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ee2d065d-208d-449e-8eda-e7a1861536cb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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