Generated by TestNG with ReportNG at 22:49 PDT on Sunday 03 July 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.648s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-07-03 23:03:42 |

2022-07-03 23:03:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:42 | ------------------------------------

2022-07-03 23:03:42 | [Mutex] waiting for: [configured:node:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2]

2022-07-03 23:03:42 | [Mutex] received everything.

2022-07-03 23:03:42 | [Mutex] isItemNotified: configured:node:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2 :: true

2022-07-03 23:03:43 | [Mutex] waiting for: [received:nodes:c3801b8b-5b25-457a-8153-4b39604326b3:localhost]

2022-07-03 23:03:43 | [Mutex] received everything.

2022-07-03 23:03:43 | [Mutex] isItemNotified: received:node:c3801b8b-5b25-457a-8153-4b39604326b3:localhost:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:Node 84ac86c3-10b5-4859-aee3-1ca97f65069c :: true

2022-07-03 23:03:43 | [Mutex] waiting for: [received:nodes:28ee5f74-3c78-4c40-ba6a-eb1643400423:localhost]

2022-07-03 23:03:43 | [Mutex] received everything.

2022-07-03 23:03:43 | [Mutex] isItemNotified: received:node:28ee5f74-3c78-4c40-ba6a-eb1643400423:localhost:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:Node 84ac86c3-10b5-4859-aee3-1ca97f65069c :: false

createNodes 1.679s
2022-07-03 23:03:39 |

2022-07-03 23:03:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:39 | ------------------------------------

2022-07-03 23:03:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "pubsub#title": "Node 84ac86c3-10b5-4859-aee3-1ca97f65069c"
}

2022-07-03 23:03:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:03:41 | [Mutex] waiting for: [received:nodes:43560b62-48a7-4410-83c1-530fa2702b8e:localhost]

2022-07-03 23:03:41 | [Mutex] waiting for: [received:nodes:43560b62-48a7-4410-83c1-530fa2702b8e:localhost]

2022-07-03 23:03:41 | [Mutex] received everything.

2022-07-03 23:03:41 | [Mutex] isItemNotified: received:node:43560b62-48a7-4410-83c1-530fa2702b8e:localhost:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:Node 84ac86c3-10b5-4859-aee3-1ca97f65069c :: true

createSubnodes 1.024s
2022-07-03 23:03:41 |

2022-07-03 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:41 | ------------------------------------

2022-07-03 23:03:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2",
    "pubsub#title": "Node 3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2"
}

2022-07-03 23:03:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:03:42 | [Mutex] waiting for: [received:nodes:70ae9f56-2418-4ae0-b86c-b7adb0f1dc2e:localhost]

2022-07-03 23:03:42 | [Mutex] received everything.

2022-07-03 23:03:42 | [Mutex] isItemNotified: received:node:70ae9f56-2418-4ae0-b86c-b7adb0f1dc2e:localhost:node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2:Node 3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2 :: true

deleteNodes 1.016s
2022-07-03 23:03:47 |

2022-07-03 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:47 | ------------------------------------

2022-07-03 23:03:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2"
}

2022-07-03 23:03:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:03:48 | [Mutex] waiting for: [received:nodes:3b9920fc-9044-4fb9-b5e2-70877e597538:localhost]

2022-07-03 23:03:48 | [Mutex] received everything.

2022-07-03 23:03:48 | [Mutex] isItemNotified: received:node:3b9920fc-9044-4fb9-b5e2-70877e597538:localhost:node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2:Node 3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2 :: false

deleteSubnodes 1.025s
2022-07-03 23:03:46 |

2022-07-03 23:03:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:46 | ------------------------------------

2022-07-03 23:03:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c"
}

2022-07-03 23:03:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:03:47 | [Mutex] waiting for: [received:nodes:a78af8d6-771a-4d3e-9a39-49e850112dec:localhost]

2022-07-03 23:03:47 | [Mutex] waiting for: [received:nodes:a78af8d6-771a-4d3e-9a39-49e850112dec:localhost]

2022-07-03 23:03:47 | [Mutex] received everything.

2022-07-03 23:03:47 | [Mutex] isItemNotified: received:node:a78af8d6-771a-4d3e-9a39-49e850112dec:localhost:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:Node 84ac86c3-10b5-4859-aee3-1ca97f65069c :: false

2022-07-03 23:03:47 | [Mutex] waiting for: [received:nodes:be54e1d5-610d-43e4-8a1a-223d1940e065:localhost]

2022-07-03 23:03:47 | [Mutex] received everything.

2022-07-03 23:03:47 | [Mutex] isItemNotified: received:node:be54e1d5-610d-43e4-8a1a-223d1940e065:localhost:node-84ac86c3-10b5-4859-aee3-1ca97f65069c:Node 84ac86c3-10b5-4859-aee3-1ca97f65069c :: false

publishItemsToNodes 0.083s
2022-07-03 23:03:44 |

2022-07-03 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:44 | ------------------------------------

2022-07-03 23:03:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "entry": "<test>item-a28c5955-141f-4a79-88ab-c7db61c0d682</test>",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682"
}

2022-07-03 23:03:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682"
}

2022-07-03 23:03:44 | [Mutex] waiting for: [published:item:notifieditem-a28c5955-141f-4a79-88ab-c7db61c0d682:admin@test-domain.com]

2022-07-03 23:03:44 | [Mutex] received everything.

2022-07-03 23:03:44 | [Mutex] isItemNotified: published:item:notifieditem-a28c5955-141f-4a79-88ab-c7db61c0d682:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-07-03 23:03:44 |

2022-07-03 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:44 | ------------------------------------

2022-07-03 23:03:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682"
}

2022-07-03 23:03:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682"
}

2022-07-03 23:03:45 | [Mutex] received everything.

2022-07-03 23:03:45 | [Mutex] isItemNotified: retracted:item:notifieditem-a28c5955-141f-4a79-88ab-c7db61c0d682:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2022-07-03 23:03:44 |

2022-07-03 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:44 | ------------------------------------

2022-07-03 23:03:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682"
}

2022-07-03 23:03:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "item-id": "item-a28c5955-141f-4a79-88ab-c7db61c0d682",
    "item": [
        "<item id=\"item-a28c5955-141f-4a79-88ab-c7db61c0d682\"><test>item-a28c5955-141f-4a79-88ab-c7db61c0d682</test></item>"
    ]
}

2022-07-03 23:03:44 | [Mutex] notify: [retrieved:item:item-a28c5955-141f-4a79-88ab-c7db61c0d682:payload-matches:true:localhost]

2022-07-03 23:03:44 | [Mutex] received everything.

2022-07-03 23:03:44 | [Mutex] isItemNotified: retrieved:item:item-a28c5955-141f-4a79-88ab-c7db61c0d682:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.045s
2022-07-03 23:03:44 |

2022-07-03 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:44 | ------------------------------------

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

2022-07-03 23:03:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3efc3905-986d-4cf5-a3a9-a8ce2b6cbfa2",
        "node-84ac86c3-10b5-4859-aee3-1ca97f65069c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-03 23:03:44 |

2022-07-03 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:44 | ------------------------------------

2022-07-03 23:03:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-84ac86c3-10b5-4859-aee3-1ca97f65069c)"
}

2022-07-03 23:03:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2022-07-03 23:03:43 |

2022-07-03 23:03:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:43 | ------------------------------------

2022-07-03 23:03:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-03 23:03:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2022-07-03 23:03:45 |

2022-07-03 23:03:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:03:45 | ------------------------------------

2022-07-03 23:03:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-84ac86c3-10b5-4859-aee3-1ca97f65069c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-03 23:03:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}