Generated by TestNG with ReportNG at 22:28 PDT on Friday 25 September 2020
root@a0242a034c6f / 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.280s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.090s
2020-09-25 22:43:37 |

2020-09-25 22:43:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:37 | ------------------------------------

2020-09-25 22:43:37 | [Mutex] waiting for: [configured:node:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:node-80aee3da-beb3-43dc-8cac-79501255588e]

2020-09-25 22:43:37 | [Mutex] received everything.

2020-09-25 22:43:37 | [Mutex] isItemNotified: configured:node:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:node-80aee3da-beb3-43dc-8cac-79501255588e :: true

2020-09-25 22:43:38 | [Mutex] waiting for: [received:nodes:a3b9b521-ef14-48e6-8211-c5e827db886d:localhost]

2020-09-25 22:43:38 | [Mutex] received everything.

2020-09-25 22:43:38 | [Mutex] isItemNotified: received:node:a3b9b521-ef14-48e6-8211-c5e827db886d:localhost:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7 :: true

2020-09-25 22:43:38 | [Mutex] waiting for: [received:nodes:ad5d192f-ef2a-4f79-aa7c-6487fc9fbb7f:localhost]

2020-09-25 22:43:38 | [Mutex] waiting for: [received:nodes:ad5d192f-ef2a-4f79-aa7c-6487fc9fbb7f:localhost]

2020-09-25 22:43:38 | [Mutex] received everything.

2020-09-25 22:43:38 | [Mutex] isItemNotified: received:node:ad5d192f-ef2a-4f79-aa7c-6487fc9fbb7f:localhost:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7 :: false

createNodes 1.896s
2020-09-25 22:43:34 |

2020-09-25 22:43:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:34 | ------------------------------------

2020-09-25 22:43:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "pubsub#title": "Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7"
}

2020-09-25 22:43:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:43:36 | [Mutex] waiting for: [received:nodes:39ce5f24-45aa-4d89-a14a-ffd7572b884f:localhost]

2020-09-25 22:43:36 | [Mutex] received everything.

2020-09-25 22:43:36 | [Mutex] isItemNotified: received:node:39ce5f24-45aa-4d89-a14a-ffd7572b884f:localhost:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7 :: true

createSubnodes 1.039s
2020-09-25 22:43:36 |

2020-09-25 22:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:36 | ------------------------------------

2020-09-25 22:43:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-80aee3da-beb3-43dc-8cac-79501255588e",
    "pubsub#title": "Node 80aee3da-beb3-43dc-8cac-79501255588e"
}

2020-09-25 22:43:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:43:37 | [Mutex] waiting for: [received:nodes:39904716-48c9-40f7-97b3-ab99949eeedb:localhost]

2020-09-25 22:43:37 | [Mutex] received everything.

2020-09-25 22:43:37 | [Mutex] isItemNotified: received:node:39904716-48c9-40f7-97b3-ab99949eeedb:localhost:node-80aee3da-beb3-43dc-8cac-79501255588e:Node 80aee3da-beb3-43dc-8cac-79501255588e :: true

deleteNodes 1.030s
2020-09-25 22:43:42 |

2020-09-25 22:43:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:42 | ------------------------------------

2020-09-25 22:43:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-80aee3da-beb3-43dc-8cac-79501255588e"
}

2020-09-25 22:43:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:43:43 | [Mutex] waiting for: [received:nodes:5cebcb8f-e9f1-4ab0-ba12-8d78ade3d59f:localhost]

2020-09-25 22:43:43 | [Mutex] waiting for: [received:nodes:5cebcb8f-e9f1-4ab0-ba12-8d78ade3d59f:localhost]

2020-09-25 22:43:43 | [Mutex] received everything.

2020-09-25 22:43:43 | [Mutex] isItemNotified: received:node:5cebcb8f-e9f1-4ab0-ba12-8d78ade3d59f:localhost:node-80aee3da-beb3-43dc-8cac-79501255588e:Node 80aee3da-beb3-43dc-8cac-79501255588e :: false

deleteSubnodes 1.034s
2020-09-25 22:43:41 |

2020-09-25 22:43:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:41 | ------------------------------------

2020-09-25 22:43:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7"
}

2020-09-25 22:43:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:43:42 | [Mutex] waiting for: [received:nodes:47c22c8c-0630-47d9-9fa6-11395c31dcab:localhost]

2020-09-25 22:43:42 | [Mutex] received everything.

2020-09-25 22:43:42 | [Mutex] isItemNotified: received:node:47c22c8c-0630-47d9-9fa6-11395c31dcab:localhost:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7 :: false

2020-09-25 22:43:42 | [Mutex] waiting for: [received:nodes:c0ab2451-14a2-4dc2-a141-160713197799:localhost]

2020-09-25 22:43:42 | [Mutex] received everything.

2020-09-25 22:43:42 | [Mutex] isItemNotified: received:node:c0ab2451-14a2-4dc2-a141-160713197799:localhost:node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7:Node a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7 :: false

publishItemsToNodes 0.031s
2020-09-25 22:43:39 |

2020-09-25 22:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:39 | ------------------------------------

2020-09-25 22:43:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "entry": "<test>item-cda71842-3275-4f5e-a99c-4b55e7cf9e50</test>",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50"
}

2020-09-25 22:43:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50"
}

2020-09-25 22:43:39 | [Mutex] waiting for: [published:item:notifieditem-cda71842-3275-4f5e-a99c-4b55e7cf9e50:admin@test-domain.com]

2020-09-25 22:43:39 | [Mutex] received everything.

2020-09-25 22:43:39 | [Mutex] isItemNotified: published:item:notifieditem-cda71842-3275-4f5e-a99c-4b55e7cf9e50:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-25 22:43:40 |

2020-09-25 22:43:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:40 | ------------------------------------

2020-09-25 22:43:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50"
}

2020-09-25 22:43:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50"
}

2020-09-25 22:43:40 | [Mutex] received everything.

2020-09-25 22:43:40 | [Mutex] isItemNotified: retracted:item:notifieditem-cda71842-3275-4f5e-a99c-4b55e7cf9e50:admin@test-domain.com :: true

retrieveItemsFromNodes 0.106s
2020-09-25 22:43:39 |

2020-09-25 22:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:39 | ------------------------------------

2020-09-25 22:43:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50"
}

2020-09-25 22:43:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "item-id": "item-cda71842-3275-4f5e-a99c-4b55e7cf9e50",
    "item": [
        "<item id=\"item-cda71842-3275-4f5e-a99c-4b55e7cf9e50\"><test>item-cda71842-3275-4f5e-a99c-4b55e7cf9e50</test></item>"
    ]
}

2020-09-25 22:43:40 | [Mutex] notify: [retrieved:item:item-cda71842-3275-4f5e-a99c-4b55e7cf9e50:payload-matches:true:localhost]

2020-09-25 22:43:40 | [Mutex] received everything.

2020-09-25 22:43:40 | [Mutex] isItemNotified: retrieved:item:item-cda71842-3275-4f5e-a99c-4b55e7cf9e50:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-25 22:43:40 |

2020-09-25 22:43:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:40 | ------------------------------------

2020-09-25 22:43:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-25 22:43:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
        "node-80aee3da-beb3-43dc-8cac-79501255588e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-09-25 22:43:40 |

2020-09-25 22:43:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:40 | ------------------------------------

2020-09-25 22:43:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7)"
}

2020-09-25 22:43:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.020s
2020-09-25 22:43:38 |

2020-09-25 22:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:38 | ------------------------------------

2020-09-25 22:43:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 22:43:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-09-25 22:43:40 |

2020-09-25 22:43:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:43:40 | ------------------------------------

2020-09-25 22:43:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a01ef83f-8d14-45d7-8a1e-3bf8b2d38bc7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 22:43:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}