Generated by TestNG with ReportNG at 22:47 PDT on Tuesday 16 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.677s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.084s
2022-08-16 23:01:53 |

2022-08-16 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:53 | ------------------------------------

2022-08-16 23:01:53 | [Mutex] waiting for: [configured:node:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71]

2022-08-16 23:01:53 | [Mutex] received everything.

2022-08-16 23:01:53 | [Mutex] isItemNotified: configured:node:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71 :: true

2022-08-16 23:01:54 | [Mutex] waiting for: [received:nodes:5b22e7ac-7b8e-472c-888e-e763e4f07eb2:localhost]

2022-08-16 23:01:54 | [Mutex] received everything.

2022-08-16 23:01:54 | [Mutex] isItemNotified: received:node:5b22e7ac-7b8e-472c-888e-e763e4f07eb2:localhost:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8 :: true

2022-08-16 23:01:54 | [Mutex] waiting for: [received:nodes:4655684d-fd47-438b-af4a-8c6477d9a8e3:localhost]

2022-08-16 23:01:54 | [Mutex] waiting for: [received:nodes:4655684d-fd47-438b-af4a-8c6477d9a8e3:localhost]

2022-08-16 23:01:54 | [Mutex] received everything.

2022-08-16 23:01:54 | [Mutex] isItemNotified: received:node:4655684d-fd47-438b-af4a-8c6477d9a8e3:localhost:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8 :: false

createNodes 1.594s
2022-08-16 23:01:50 |

2022-08-16 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:50 | ------------------------------------

2022-08-16 23:01:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "pubsub#title": "Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8"
}

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

2022-08-16 23:01:52 | [Mutex] waiting for: [received:nodes:5ae72608-76e4-4e78-a546-2bfe5a91393f:localhost]

2022-08-16 23:01:52 | [Mutex] received everything.

2022-08-16 23:01:52 | [Mutex] isItemNotified: received:node:5ae72608-76e4-4e78-a546-2bfe5a91393f:localhost:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8 :: true

createSubnodes 1.023s
2022-08-16 23:01:52 |

2022-08-16 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:52 | ------------------------------------

2022-08-16 23:01:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71",
    "pubsub#title": "Node f4e33776-c3aa-4c88-b4a4-e40c6a04ae71"
}

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

2022-08-16 23:01:53 | [Mutex] waiting for: [received:nodes:1d08c2f9-a444-4372-87e0-2adf1857e471:localhost]

2022-08-16 23:01:53 | [Mutex] received everything.

2022-08-16 23:01:53 | [Mutex] isItemNotified: received:node:1d08c2f9-a444-4372-87e0-2adf1857e471:localhost:node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71:Node f4e33776-c3aa-4c88-b4a4-e40c6a04ae71 :: true

deleteNodes 1.018s
2022-08-16 23:01:57 |

2022-08-16 23:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:57 | ------------------------------------

2022-08-16 23:01:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71"
}

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

2022-08-16 23:01:58 | [Mutex] waiting for: [received:nodes:d1b140e2-67f6-4a3b-a15c-65045ba22c4d:localhost]

2022-08-16 23:01:58 | [Mutex] received everything.

2022-08-16 23:01:58 | [Mutex] isItemNotified: received:node:d1b140e2-67f6-4a3b-a15c-65045ba22c4d:localhost:node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71:Node f4e33776-c3aa-4c88-b4a4-e40c6a04ae71 :: false

deleteSubnodes 1.024s
2022-08-16 23:01:56 |

2022-08-16 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:56 | ------------------------------------

2022-08-16 23:01:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8"
}

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

2022-08-16 23:01:57 | [Mutex] waiting for: [received:nodes:5b529657-f07c-4c88-8735-d875e887dc64:localhost]

2022-08-16 23:01:57 | [Mutex] waiting for: [received:nodes:5b529657-f07c-4c88-8735-d875e887dc64:localhost]

2022-08-16 23:01:57 | [Mutex] waiting for: [received:nodes:5b529657-f07c-4c88-8735-d875e887dc64:localhost]

2022-08-16 23:01:57 | [Mutex] received everything.

2022-08-16 23:01:57 | [Mutex] isItemNotified: received:node:5b529657-f07c-4c88-8735-d875e887dc64:localhost:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8 :: false

2022-08-16 23:01:57 | [Mutex] waiting for: [received:nodes:21421691-c1e8-4fa8-a9d9-d2a2bd60478d:localhost]

2022-08-16 23:01:57 | [Mutex] received everything.

2022-08-16 23:01:57 | [Mutex] isItemNotified: received:node:21421691-c1e8-4fa8-a9d9-d2a2bd60478d:localhost:node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8:Node 35e36cd2-e1f4-4634-bfa6-97623e0d1ee8 :: false

publishItemsToNodes 0.050s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

2022-08-16 23:01:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "entry": "<test>item-901f67dd-47fa-4d1e-a490-aafaa6543290</test>",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290"
}

2022-08-16 23:01:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290"
}

2022-08-16 23:01:55 | [Mutex] waiting for: [published:item:notifieditem-901f67dd-47fa-4d1e-a490-aafaa6543290:admin@test-domain.com]

2022-08-16 23:01:55 | [Mutex] received everything.

2022-08-16 23:01:55 | [Mutex] isItemNotified: published:item:notifieditem-901f67dd-47fa-4d1e-a490-aafaa6543290:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

2022-08-16 23:01:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290"
}

2022-08-16 23:01:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290"
}

2022-08-16 23:01:55 | [Mutex] received everything.

2022-08-16 23:01:55 | [Mutex] isItemNotified: retracted:item:notifieditem-901f67dd-47fa-4d1e-a490-aafaa6543290:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

2022-08-16 23:01:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290"
}

2022-08-16 23:01:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "item-id": "item-901f67dd-47fa-4d1e-a490-aafaa6543290",
    "item": [
        "<item id=\"item-901f67dd-47fa-4d1e-a490-aafaa6543290\"><test>item-901f67dd-47fa-4d1e-a490-aafaa6543290</test></item>"
    ]
}

2022-08-16 23:01:55 | [Mutex] notify: [retrieved:item:item-901f67dd-47fa-4d1e-a490-aafaa6543290:payload-matches:true:localhost]

2022-08-16 23:01:55 | [Mutex] received everything.

2022-08-16 23:01:55 | [Mutex] isItemNotified: retrieved:item:item-901f67dd-47fa-4d1e-a490-aafaa6543290:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

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

2022-08-16 23:01:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f4e33776-c3aa-4c88-b4a4-e40c6a04ae71",
        "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

2022-08-16 23:01:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8)"
}

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

subscribeNodes 1.012s
2022-08-16 23:01:54 |

2022-08-16 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:54 | ------------------------------------

2022-08-16 23:01:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.143s
2022-08-16 23:01:55 |

2022-08-16 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 23:01:55 | ------------------------------------

2022-08-16 23:01:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-35e36cd2-e1f4-4634-bfa6-97623e0d1ee8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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