Generated by TestNG with ReportNG at 22:19 PDT on Saturday 13 August 2022
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.715s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-08-13 22:33:23 |

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

2022-08-13 22:33:23 | ------------------------------------

2022-08-13 22:33:23 | [Mutex] waiting for: [configured:node:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7]

2022-08-13 22:33:23 | [Mutex] received everything.

2022-08-13 22:33:23 | [Mutex] isItemNotified: configured:node:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7 :: true

2022-08-13 22:33:24 | [Mutex] waiting for: [received:nodes:8d1ef857-0f5a-4277-ad62-017a56857f75:localhost]

2022-08-13 22:33:24 | [Mutex] received everything.

2022-08-13 22:33:24 | [Mutex] isItemNotified: received:node:8d1ef857-0f5a-4277-ad62-017a56857f75:localhost:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:Node c2930d3d-15b8-4ef1-980a-245626faa2b6 :: true

2022-08-13 22:33:24 | [Mutex] waiting for: [received:nodes:6790ce62-bfcf-461c-b545-48b0d4b645e4:localhost]

2022-08-13 22:33:24 | [Mutex] waiting for: [received:nodes:6790ce62-bfcf-461c-b545-48b0d4b645e4:localhost]

2022-08-13 22:33:24 | [Mutex] received everything.

2022-08-13 22:33:24 | [Mutex] isItemNotified: received:node:6790ce62-bfcf-461c-b545-48b0d4b645e4:localhost:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:Node c2930d3d-15b8-4ef1-980a-245626faa2b6 :: false

createNodes 1.661s
2022-08-13 22:33:20 |

2022-08-13 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:20 | ------------------------------------

2022-08-13 22:33: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-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "pubsub#title": "Node c2930d3d-15b8-4ef1-980a-245626faa2b6"
}

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

2022-08-13 22:33:22 | [Mutex] waiting for: [received:nodes:463b54e0-fe75-44ec-b8d9-3e6891bb60ea:localhost]

2022-08-13 22:33:22 | [Mutex] received everything.

2022-08-13 22:33:22 | [Mutex] isItemNotified: received:node:463b54e0-fe75-44ec-b8d9-3e6891bb60ea:localhost:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:Node c2930d3d-15b8-4ef1-980a-245626faa2b6 :: true

createSubnodes 1.025s
2022-08-13 22:33:22 |

2022-08-13 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:22 | ------------------------------------

2022-08-13 22:33:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7",
    "pubsub#title": "Node 9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7"
}

2022-08-13 22:33:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-13 22:33:23 | [Mutex] waiting for: [received:nodes:d095378e-a210-4c7c-ae0b-358b121ecba6:localhost]

2022-08-13 22:33:23 | [Mutex] received everything.

2022-08-13 22:33:23 | [Mutex] isItemNotified: received:node:d095378e-a210-4c7c-ae0b-358b121ecba6:localhost:node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7:Node 9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7 :: true

deleteNodes 1.020s
2022-08-13 22:33:27 |

2022-08-13 22:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:27 | ------------------------------------

2022-08-13 22:33:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7"
}

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

2022-08-13 22:33:28 | [Mutex] waiting for: [received:nodes:ed0a9a39-c68e-489a-b15c-94dd23ab2755:localhost]

2022-08-13 22:33:28 | [Mutex] waiting for: [received:nodes:ed0a9a39-c68e-489a-b15c-94dd23ab2755:localhost]

2022-08-13 22:33:28 | [Mutex] received everything.

2022-08-13 22:33:28 | [Mutex] isItemNotified: received:node:ed0a9a39-c68e-489a-b15c-94dd23ab2755:localhost:node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7:Node 9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7 :: false

deleteSubnodes 1.027s
2022-08-13 22:33:26 |

2022-08-13 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:26 | ------------------------------------

2022-08-13 22:33:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6"
}

2022-08-13 22:33:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-13 22:33:27 | [Mutex] waiting for: [received:nodes:25f78fb7-6687-4913-a7a1-072614cd5c10:localhost]

2022-08-13 22:33:27 | [Mutex] waiting for: [received:nodes:25f78fb7-6687-4913-a7a1-072614cd5c10:localhost]

2022-08-13 22:33:27 | [Mutex] received everything.

2022-08-13 22:33:27 | [Mutex] isItemNotified: received:node:25f78fb7-6687-4913-a7a1-072614cd5c10:localhost:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:Node c2930d3d-15b8-4ef1-980a-245626faa2b6 :: false

2022-08-13 22:33:27 | [Mutex] waiting for: [received:nodes:cf335ce8-16d1-45e1-bcb1-954063cb8072:localhost]

2022-08-13 22:33:27 | [Mutex] received everything.

2022-08-13 22:33:27 | [Mutex] isItemNotified: received:node:cf335ce8-16d1-45e1-bcb1-954063cb8072:localhost:node-c2930d3d-15b8-4ef1-980a-245626faa2b6:Node c2930d3d-15b8-4ef1-980a-245626faa2b6 :: false

publishItemsToNodes 0.058s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

2022-08-13 22:33:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "entry": "<test>item-102aa878-814f-4472-a748-d78d6fe534c6</test>",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6"
}

2022-08-13 22:33:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6"
}

2022-08-13 22:33:25 | [Mutex] waiting for: [published:item:notifieditem-102aa878-814f-4472-a748-d78d6fe534c6:admin@test-domain.com]

2022-08-13 22:33:25 | [Mutex] received everything.

2022-08-13 22:33:25 | [Mutex] isItemNotified: published:item:notifieditem-102aa878-814f-4472-a748-d78d6fe534c6:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

2022-08-13 22:33:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6"
}

2022-08-13 22:33:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6"
}

2022-08-13 22:33:25 | [Mutex] received everything.

2022-08-13 22:33:25 | [Mutex] isItemNotified: retracted:item:notifieditem-102aa878-814f-4472-a748-d78d6fe534c6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

2022-08-13 22:33:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6"
}

2022-08-13 22:33:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "item-id": "item-102aa878-814f-4472-a748-d78d6fe534c6",
    "item": [
        "<item id=\"item-102aa878-814f-4472-a748-d78d6fe534c6\"><test>item-102aa878-814f-4472-a748-d78d6fe534c6</test></item>"
    ]
}

2022-08-13 22:33:25 | [Mutex] notify: [retrieved:item:item-102aa878-814f-4472-a748-d78d6fe534c6:payload-matches:true:localhost]

2022-08-13 22:33:25 | [Mutex] received everything.

2022-08-13 22:33:25 | [Mutex] isItemNotified: retrieved:item:item-102aa878-814f-4472-a748-d78d6fe534c6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

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

2022-08-13 22:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9312dbbe-9e81-45d3-8b6d-846ea5ee1ed7",
        "test",
        "node-c2930d3d-15b8-4ef1-980a-245626faa2b6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

2022-08-13 22:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c2930d3d-15b8-4ef1-980a-245626faa2b6)"
}

2022-08-13 22:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-08-13 22:33:24 |

2022-08-13 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:24 | ------------------------------------

2022-08-13 22:33:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-13 22:33:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.095s
2022-08-13 22:33:25 |

2022-08-13 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-13 22:33:25 | ------------------------------------

2022-08-13 22:33:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c2930d3d-15b8-4ef1-980a-245626faa2b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-13 22:33:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}