Generated by TestNG with ReportNG at 07:43 PDT on Friday 25 June 2021
root@f29ef40080b5 / 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.038s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2021-06-25 08:00:31 |

2021-06-25 08:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:31 | ------------------------------------

2021-06-25 08:00:31 | [Mutex] waiting for: [configured:node:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:node-02d3f544-6f84-42bb-8f18-606f50c29105]

2021-06-25 08:00:31 | [Mutex] received everything.

2021-06-25 08:00:31 | [Mutex] isItemNotified: configured:node:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:node-02d3f544-6f84-42bb-8f18-606f50c29105 :: true

2021-06-25 08:00:32 | [Mutex] waiting for: [received:nodes:43fa5b12-fb48-4284-bad1-4a649270eb7d:localhost]

2021-06-25 08:00:32 | [Mutex] received everything.

2021-06-25 08:00:32 | [Mutex] isItemNotified: received:node:43fa5b12-fb48-4284-bad1-4a649270eb7d:localhost:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:Node 3c1d7863-49de-491c-a084-9e2c2bf6858d :: true

2021-06-25 08:00:32 | [Mutex] waiting for: [received:nodes:349b208e-6069-4360-83c7-0d1470fa7a60:localhost]

2021-06-25 08:00:32 | [Mutex] waiting for: [received:nodes:349b208e-6069-4360-83c7-0d1470fa7a60:localhost]

2021-06-25 08:00:32 | [Mutex] waiting for: [received:nodes:349b208e-6069-4360-83c7-0d1470fa7a60:localhost]

2021-06-25 08:00:32 | [Mutex] received everything.

2021-06-25 08:00:32 | [Mutex] isItemNotified: received:node:349b208e-6069-4360-83c7-0d1470fa7a60:localhost:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:Node 3c1d7863-49de-491c-a084-9e2c2bf6858d :: false

createNodes 1.788s
2021-06-25 08:00:28 |

2021-06-25 08:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:28 | ------------------------------------

2021-06-25 08:00: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-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "pubsub#title": "Node 3c1d7863-49de-491c-a084-9e2c2bf6858d"
}

2021-06-25 08:00:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 08:00:30 | [Mutex] waiting for: [received:nodes:3907392e-43cc-42d5-9afb-6cbb1b5395da:localhost]

2021-06-25 08:00:30 | [Mutex] waiting for: [received:nodes:3907392e-43cc-42d5-9afb-6cbb1b5395da:localhost]

2021-06-25 08:00:30 | [Mutex] received everything.

2021-06-25 08:00:30 | [Mutex] isItemNotified: received:node:3907392e-43cc-42d5-9afb-6cbb1b5395da:localhost:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:Node 3c1d7863-49de-491c-a084-9e2c2bf6858d :: true

createSubnodes 1.031s
2021-06-25 08:00:30 |

2021-06-25 08:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:30 | ------------------------------------

2021-06-25 08:00: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-02d3f544-6f84-42bb-8f18-606f50c29105",
    "pubsub#title": "Node 02d3f544-6f84-42bb-8f18-606f50c29105"
}

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

2021-06-25 08:00:31 | [Mutex] waiting for: [received:nodes:b9b84a9c-02b0-497d-83cc-92501df7f597:localhost]

2021-06-25 08:00:31 | [Mutex] received everything.

2021-06-25 08:00:31 | [Mutex] isItemNotified: received:node:b9b84a9c-02b0-497d-83cc-92501df7f597:localhost:node-02d3f544-6f84-42bb-8f18-606f50c29105:Node 02d3f544-6f84-42bb-8f18-606f50c29105 :: true

deleteNodes 1.033s
2021-06-25 08:00:35 |

2021-06-25 08:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:35 | ------------------------------------

2021-06-25 08:00:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-02d3f544-6f84-42bb-8f18-606f50c29105"
}

2021-06-25 08:00:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 08:00:36 | [Mutex] waiting for: [received:nodes:9f8c8e58-8126-446a-8702-278402183d6e:localhost]

2021-06-25 08:00:36 | [Mutex] received everything.

2021-06-25 08:00:36 | [Mutex] isItemNotified: received:node:9f8c8e58-8126-446a-8702-278402183d6e:localhost:node-02d3f544-6f84-42bb-8f18-606f50c29105:Node 02d3f544-6f84-42bb-8f18-606f50c29105 :: false

deleteSubnodes 1.027s
2021-06-25 08:00:34 |

2021-06-25 08:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:34 | ------------------------------------

2021-06-25 08:00:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d"
}

2021-06-25 08:00:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 08:00:35 | [Mutex] waiting for: [received:nodes:f836fa95-edcb-4b9b-86ea-98c3b7a063e3:localhost]

2021-06-25 08:00:35 | [Mutex] received everything.

2021-06-25 08:00:35 | [Mutex] isItemNotified: received:node:f836fa95-edcb-4b9b-86ea-98c3b7a063e3:localhost:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:Node 3c1d7863-49de-491c-a084-9e2c2bf6858d :: false

2021-06-25 08:00:35 | [Mutex] waiting for: [received:nodes:a632f20c-ddb8-44e2-9d6d-d2548523174e:localhost]

2021-06-25 08:00:35 | [Mutex] received everything.

2021-06-25 08:00:35 | [Mutex] isItemNotified: received:node:a632f20c-ddb8-44e2-9d6d-d2548523174e:localhost:node-3c1d7863-49de-491c-a084-9e2c2bf6858d:Node 3c1d7863-49de-491c-a084-9e2c2bf6858d :: false

publishItemsToNodes 0.092s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

2021-06-25 08:00:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "entry": "<test>item-25df60ca-5251-4c93-aaf4-f922beae0659</test>",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659"
}

2021-06-25 08:00:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659"
}

2021-06-25 08:00:33 | [Mutex] waiting for: [published:item:notifieditem-25df60ca-5251-4c93-aaf4-f922beae0659:admin@test-domain.com]

2021-06-25 08:00:33 | [Mutex] received everything.

2021-06-25 08:00:33 | [Mutex] isItemNotified: published:item:notifieditem-25df60ca-5251-4c93-aaf4-f922beae0659:admin@test-domain.com :: true

retractItemsFromNodes 0.082s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

2021-06-25 08:00:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659"
}

2021-06-25 08:00:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659"
}

2021-06-25 08:00:33 | [Mutex] received everything.

2021-06-25 08:00:33 | [Mutex] isItemNotified: retracted:item:notifieditem-25df60ca-5251-4c93-aaf4-f922beae0659:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

2021-06-25 08:00:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659"
}

2021-06-25 08:00:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "item-id": "item-25df60ca-5251-4c93-aaf4-f922beae0659",
    "item": [
        "<item id=\"item-25df60ca-5251-4c93-aaf4-f922beae0659\"><test>item-25df60ca-5251-4c93-aaf4-f922beae0659</test></item>"
    ]
}

2021-06-25 08:00:33 | [Mutex] notify: [retrieved:item:item-25df60ca-5251-4c93-aaf4-f922beae0659:payload-matches:true:localhost]

2021-06-25 08:00:33 | [Mutex] received everything.

2021-06-25 08:00:33 | [Mutex] isItemNotified: retrieved:item:item-25df60ca-5251-4c93-aaf4-f922beae0659:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

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

2021-06-25 08:00:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-02d3f544-6f84-42bb-8f18-606f50c29105",
        "test",
        "node-3c1d7863-49de-491c-a084-9e2c2bf6858d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

2021-06-25 08:00:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3c1d7863-49de-491c-a084-9e2c2bf6858d)"
}

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

subscribeNodes 1.012s
2021-06-25 08:00:32 |

2021-06-25 08:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:32 | ------------------------------------

2021-06-25 08:00:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-25 08:00:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2021-06-25 08:00:33 |

2021-06-25 08:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 08:00:33 | ------------------------------------

2021-06-25 08:00:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3c1d7863-49de-491c-a084-9e2c2bf6858d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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