Generated by TestNG with ReportNG at 21:43 PST on Friday 05 February 2021
root@43fec6d4badf / Java 11.0.8 (Ubuntu) / 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 : 9.262s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2021-02-05 22:00:32 |

2021-02-05 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:32 | ------------------------------------

2021-02-05 22:00:32 | [Mutex] waiting for: [configured:node:node-af1a491e-056d-42eb-8694-1360ef1e966f:node-5df14195-c94c-4084-9e0a-a9f6a73c4699]

2021-02-05 22:00:32 | [Mutex] received everything.

2021-02-05 22:00:32 | [Mutex] isItemNotified: configured:node:node-af1a491e-056d-42eb-8694-1360ef1e966f:node-5df14195-c94c-4084-9e0a-a9f6a73c4699 :: true

2021-02-05 22:00:33 | [Mutex] waiting for: [received:nodes:4309dcc1-aef0-4802-a979-2dcea3d10f61:localhost]

2021-02-05 22:00:33 | [Mutex] received everything.

2021-02-05 22:00:33 | [Mutex] isItemNotified: received:node:4309dcc1-aef0-4802-a979-2dcea3d10f61:localhost:node-af1a491e-056d-42eb-8694-1360ef1e966f:Node af1a491e-056d-42eb-8694-1360ef1e966f :: true

2021-02-05 22:00:33 | [Mutex] waiting for: [received:nodes:4d32d2d0-6472-4cca-8739-1c02e25ef91d:localhost]

2021-02-05 22:00:33 | [Mutex] received everything.

2021-02-05 22:00:33 | [Mutex] isItemNotified: received:node:4d32d2d0-6472-4cca-8739-1c02e25ef91d:localhost:node-af1a491e-056d-42eb-8694-1360ef1e966f:Node af1a491e-056d-42eb-8694-1360ef1e966f :: false

createNodes 1.761s
2021-02-05 22:00:29 |

2021-02-05 22:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:29 | ------------------------------------

2021-02-05 22:00:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "pubsub#title": "Node af1a491e-056d-42eb-8694-1360ef1e966f"
}

2021-02-05 22:00:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 22:00:31 | [Mutex] waiting for: [received:nodes:0c0aa355-6c14-47eb-8e31-0e13cde4c027:localhost]

2021-02-05 22:00:31 | [Mutex] received everything.

2021-02-05 22:00:31 | [Mutex] isItemNotified: received:node:0c0aa355-6c14-47eb-8e31-0e13cde4c027:localhost:node-af1a491e-056d-42eb-8694-1360ef1e966f:Node af1a491e-056d-42eb-8694-1360ef1e966f :: true

createSubnodes 1.024s
2021-02-05 22:00:31 |

2021-02-05 22:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:31 | ------------------------------------

2021-02-05 22:00:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5df14195-c94c-4084-9e0a-a9f6a73c4699",
    "pubsub#title": "Node 5df14195-c94c-4084-9e0a-a9f6a73c4699"
}

2021-02-05 22:00:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 22:00:32 | [Mutex] waiting for: [received:nodes:8cd1af45-99d2-4bd9-8cd1-c705cc7911b9:localhost]

2021-02-05 22:00:32 | [Mutex] received everything.

2021-02-05 22:00:32 | [Mutex] isItemNotified: received:node:8cd1af45-99d2-4bd9-8cd1-c705cc7911b9:localhost:node-5df14195-c94c-4084-9e0a-a9f6a73c4699:Node 5df14195-c94c-4084-9e0a-a9f6a73c4699 :: true

deleteNodes 1.020s
2021-02-05 22:00:37 |

2021-02-05 22:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:37 | ------------------------------------

2021-02-05 22:00:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5df14195-c94c-4084-9e0a-a9f6a73c4699"
}

2021-02-05 22:00:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 22:00:38 | [Mutex] waiting for: [received:nodes:fd1f4dde-99c2-403c-9845-fdff89f14f93:localhost]

2021-02-05 22:00:38 | [Mutex] received everything.

2021-02-05 22:00:38 | [Mutex] isItemNotified: received:node:fd1f4dde-99c2-403c-9845-fdff89f14f93:localhost:node-5df14195-c94c-4084-9e0a-a9f6a73c4699:Node 5df14195-c94c-4084-9e0a-a9f6a73c4699 :: false

deleteSubnodes 1.028s
2021-02-05 22:00:36 |

2021-02-05 22:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:36 | ------------------------------------

2021-02-05 22:00:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f"
}

2021-02-05 22:00:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 22:00:37 | [Mutex] waiting for: [received:nodes:9ec40c0e-e424-44cb-bba3-dab3604c3ce1:localhost]

2021-02-05 22:00:37 | [Mutex] waiting for: [received:nodes:9ec40c0e-e424-44cb-bba3-dab3604c3ce1:localhost]

2021-02-05 22:00:37 | [Mutex] received everything.

2021-02-05 22:00:37 | [Mutex] isItemNotified: received:node:9ec40c0e-e424-44cb-bba3-dab3604c3ce1:localhost:node-af1a491e-056d-42eb-8694-1360ef1e966f:Node af1a491e-056d-42eb-8694-1360ef1e966f :: false

2021-02-05 22:00:37 | [Mutex] waiting for: [received:nodes:f9b48055-823e-46ab-89d5-48def984d63d:localhost]

2021-02-05 22:00:37 | [Mutex] received everything.

2021-02-05 22:00:37 | [Mutex] isItemNotified: received:node:f9b48055-823e-46ab-89d5-48def984d63d:localhost:node-af1a491e-056d-42eb-8694-1360ef1e966f:Node af1a491e-056d-42eb-8694-1360ef1e966f :: false

publishItemsToNodes 0.029s
2021-02-05 22:00:34 |

2021-02-05 22:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:34 | ------------------------------------

2021-02-05 22:00:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "entry": "<test>item-8555fbf6-302f-4a9c-a80c-d89c4db081fb</test>",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb"
}

2021-02-05 22:00:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb"
}

2021-02-05 22:00:34 | [Mutex] waiting for: [published:item:notifieditem-8555fbf6-302f-4a9c-a80c-d89c4db081fb:admin@test-domain.com]

2021-02-05 22:00:34 | [Mutex] received everything.

2021-02-05 22:00:34 | [Mutex] isItemNotified: published:item:notifieditem-8555fbf6-302f-4a9c-a80c-d89c4db081fb:admin@test-domain.com :: true

retractItemsFromNodes 0.134s
2021-02-05 22:00:35 |

2021-02-05 22:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:35 | ------------------------------------

2021-02-05 22:00:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb"
}

2021-02-05 22:00:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb"
}

2021-02-05 22:00:35 | [Mutex] waiting for: [retracted:item:notifieditem-8555fbf6-302f-4a9c-a80c-d89c4db081fb:admin@test-domain.com]

2021-02-05 22:00:35 | [Mutex] received everything.

2021-02-05 22:00:35 | [Mutex] isItemNotified: retracted:item:notifieditem-8555fbf6-302f-4a9c-a80c-d89c4db081fb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.173s
2021-02-05 22:00:34 |

2021-02-05 22:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:34 | ------------------------------------

2021-02-05 22:00:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb"
}

2021-02-05 22:00:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "item-id": "item-8555fbf6-302f-4a9c-a80c-d89c4db081fb",
    "item": [
        "<item id=\"item-8555fbf6-302f-4a9c-a80c-d89c4db081fb\"><test>item-8555fbf6-302f-4a9c-a80c-d89c4db081fb</test></item>"
    ]
}

2021-02-05 22:00:35 | [Mutex] notify: [retrieved:item:item-8555fbf6-302f-4a9c-a80c-d89c4db081fb:payload-matches:true:localhost]

2021-02-05 22:00:35 | [Mutex] received everything.

2021-02-05 22:00:35 | [Mutex] isItemNotified: retrieved:item:item-8555fbf6-302f-4a9c-a80c-d89c4db081fb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-05 22:00:35 |

2021-02-05 22:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:35 | ------------------------------------

2021-02-05 22:00:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-05 22:00:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5df14195-c94c-4084-9e0a-a9f6a73c4699",
        "node-af1a491e-056d-42eb-8694-1360ef1e966f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-02-05 22:00:35 |

2021-02-05 22:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:35 | ------------------------------------

2021-02-05 22:00:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-af1a491e-056d-42eb-8694-1360ef1e966f)"
}

2021-02-05 22:00:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-02-05 22:00:33 |

2021-02-05 22:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:33 | ------------------------------------

2021-02-05 22:00:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 22:00:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.015s
2021-02-05 22:00:35 |

2021-02-05 22:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 22:00:35 | ------------------------------------

2021-02-05 22:00:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-af1a491e-056d-42eb-8694-1360ef1e966f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 22:00:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}