Generated by TestNG with ReportNG at 22:26 PDT on Tuesday 05 October 2021
root@b2c2a8eba6e6 / 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.031s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.173s
2021-10-05 22:42:31 |

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

2021-10-05 22:42:31 | ------------------------------------

2021-10-05 22:42:31 | [Mutex] waiting for: [configured:node:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:node-b863f60f-bb3c-4090-97fb-e142df9c2ec6]

2021-10-05 22:42:31 | [Mutex] received everything.

2021-10-05 22:42:31 | [Mutex] isItemNotified: configured:node:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:node-b863f60f-bb3c-4090-97fb-e142df9c2ec6 :: true

2021-10-05 22:42:32 | [Mutex] waiting for: [received:nodes:8f9cbc63-5a20-476c-b838-b83bd94d208e:localhost]

2021-10-05 22:42:32 | [Mutex] received everything.

2021-10-05 22:42:32 | [Mutex] isItemNotified: received:node:8f9cbc63-5a20-476c-b838-b83bd94d208e:localhost:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:Node 32b54f73-9034-4291-b0f3-09dd9a9e0782 :: true

2021-10-05 22:42:32 | [Mutex] waiting for: [received:nodes:27872f4c-16c5-41fd-9392-65b220558b54:localhost]

2021-10-05 22:42:32 | [Mutex] received everything.

2021-10-05 22:42:32 | [Mutex] isItemNotified: received:node:27872f4c-16c5-41fd-9392-65b220558b54:localhost:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:Node 32b54f73-9034-4291-b0f3-09dd9a9e0782 :: false

createNodes 1.685s
2021-10-05 22:42:28 |

2021-10-05 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-05 22:42:28 | ------------------------------------

2021-10-05 22:42:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "pubsub#title": "Node 32b54f73-9034-4291-b0f3-09dd9a9e0782"
}

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

2021-10-05 22:42:30 | [Mutex] waiting for: [received:nodes:5af63960-bd6f-4d55-b664-053ec536e468:localhost]

2021-10-05 22:42:30 | [Mutex] received everything.

2021-10-05 22:42:30 | [Mutex] isItemNotified: received:node:5af63960-bd6f-4d55-b664-053ec536e468:localhost:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:Node 32b54f73-9034-4291-b0f3-09dd9a9e0782 :: true

createSubnodes 1.039s
2021-10-05 22:42:30 |

2021-10-05 22:42:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-05 22:42:30 | ------------------------------------

2021-10-05 22:42:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b863f60f-bb3c-4090-97fb-e142df9c2ec6",
    "pubsub#title": "Node b863f60f-bb3c-4090-97fb-e142df9c2ec6"
}

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

2021-10-05 22:42:31 | [Mutex] waiting for: [received:nodes:4a933139-48d0-4401-866c-6b64057f5aa4:localhost]

2021-10-05 22:42:31 | [Mutex] received everything.

2021-10-05 22:42:31 | [Mutex] isItemNotified: received:node:4a933139-48d0-4401-866c-6b64057f5aa4:localhost:node-b863f60f-bb3c-4090-97fb-e142df9c2ec6:Node b863f60f-bb3c-4090-97fb-e142df9c2ec6 :: true

deleteNodes 1.027s
2021-10-05 22:42:36 |

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

2021-10-05 22:42:36 | ------------------------------------

2021-10-05 22:42:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b863f60f-bb3c-4090-97fb-e142df9c2ec6"
}

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

2021-10-05 22:42:37 | [Mutex] waiting for: [received:nodes:5a1b75a8-d6e9-4607-935d-8239a5f0410b:localhost]

2021-10-05 22:42:37 | [Mutex] received everything.

2021-10-05 22:42:37 | [Mutex] isItemNotified: received:node:5a1b75a8-d6e9-4607-935d-8239a5f0410b:localhost:node-b863f60f-bb3c-4090-97fb-e142df9c2ec6:Node b863f60f-bb3c-4090-97fb-e142df9c2ec6 :: false

deleteSubnodes 1.033s
2021-10-05 22:42:35 |

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

2021-10-05 22:42:35 | ------------------------------------

2021-10-05 22:42:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782"
}

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

2021-10-05 22:42:36 | [Mutex] waiting for: [received:nodes:0be6d38f-a87b-463f-af15-cf3832b12909:localhost]

2021-10-05 22:42:36 | [Mutex] waiting for: [received:nodes:0be6d38f-a87b-463f-af15-cf3832b12909:localhost]

2021-10-05 22:42:36 | [Mutex] waiting for: [received:nodes:0be6d38f-a87b-463f-af15-cf3832b12909:localhost]

2021-10-05 22:42:36 | [Mutex] received everything.

2021-10-05 22:42:36 | [Mutex] isItemNotified: received:node:0be6d38f-a87b-463f-af15-cf3832b12909:localhost:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:Node 32b54f73-9034-4291-b0f3-09dd9a9e0782 :: false

2021-10-05 22:42:36 | [Mutex] waiting for: [received:nodes:94c9fced-c56f-4cc0-b117-83c9570f0b48:localhost]

2021-10-05 22:42:36 | [Mutex] received everything.

2021-10-05 22:42:36 | [Mutex] isItemNotified: received:node:94c9fced-c56f-4cc0-b117-83c9570f0b48:localhost:node-32b54f73-9034-4291-b0f3-09dd9a9e0782:Node 32b54f73-9034-4291-b0f3-09dd9a9e0782 :: false

publishItemsToNodes 0.044s
2021-10-05 22:42:33 |

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

2021-10-05 22:42:33 | ------------------------------------

2021-10-05 22:42:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "entry": "<test>item-1f829c45-f526-4103-93ae-cf24c7b95930</test>",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930"
}

2021-10-05 22:42:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930"
}

2021-10-05 22:42:33 | [Mutex] waiting for: [published:item:notifieditem-1f829c45-f526-4103-93ae-cf24c7b95930:admin@test-domain.com]

2021-10-05 22:42:33 | [Mutex] received everything.

2021-10-05 22:42:33 | [Mutex] isItemNotified: published:item:notifieditem-1f829c45-f526-4103-93ae-cf24c7b95930:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-10-05 22:42:33 |

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

2021-10-05 22:42:33 | ------------------------------------

2021-10-05 22:42:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930"
}

2021-10-05 22:42:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930"
}

2021-10-05 22:42:34 | [Mutex] received everything.

2021-10-05 22:42:34 | [Mutex] isItemNotified: retracted:item:notifieditem-1f829c45-f526-4103-93ae-cf24c7b95930:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2021-10-05 22:42:33 |

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

2021-10-05 22:42:33 | ------------------------------------

2021-10-05 22:42:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930"
}

2021-10-05 22:42:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "item-id": "item-1f829c45-f526-4103-93ae-cf24c7b95930",
    "item": [
        "<item id=\"item-1f829c45-f526-4103-93ae-cf24c7b95930\"><test>item-1f829c45-f526-4103-93ae-cf24c7b95930</test></item>"
    ]
}

2021-10-05 22:42:33 | [Mutex] notify: [retrieved:item:item-1f829c45-f526-4103-93ae-cf24c7b95930:payload-matches:true:localhost]

2021-10-05 22:42:33 | [Mutex] received everything.

2021-10-05 22:42:33 | [Mutex] isItemNotified: retrieved:item:item-1f829c45-f526-4103-93ae-cf24c7b95930:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-10-05 22:42:33 |

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

2021-10-05 22:42:33 | ------------------------------------

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

2021-10-05 22:42:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
        "node-b863f60f-bb3c-4090-97fb-e142df9c2ec6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-05 22:42:33 |

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

2021-10-05 22:42:33 | ------------------------------------

2021-10-05 22:42:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-32b54f73-9034-4291-b0f3-09dd9a9e0782)"
}

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

subscribeNodes 1.014s
2021-10-05 22:42:32 |

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

2021-10-05 22:42:32 | ------------------------------------

2021-10-05 22:42:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2021-10-05 22:42:34 |

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

2021-10-05 22:42:34 | ------------------------------------

2021-10-05 22:42:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-32b54f73-9034-4291-b0f3-09dd9a9e0782",
    "jids": [
        "admin@test-domain.com"
    ]
}

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