Generated by TestNG with ReportNG at 21:42 PST on Monday 21 December 2020
root@87f6aca6b6f2 / 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 : 8.940s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.080s
2020-12-21 21:59:19 |

2020-12-21 21:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:19 | ------------------------------------

2020-12-21 21:59:19 | [Mutex] waiting for: [configured:node:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:node-4a8be09b-0caf-4426-86ee-3825c6d618f7]

2020-12-21 21:59:19 | [Mutex] received everything.

2020-12-21 21:59:19 | [Mutex] isItemNotified: configured:node:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:node-4a8be09b-0caf-4426-86ee-3825c6d618f7 :: true

2020-12-21 21:59:20 | [Mutex] waiting for: [received:nodes:ce2ada09-522c-4ea8-947f-235266cf9304:localhost]

2020-12-21 21:59:20 | [Mutex] received everything.

2020-12-21 21:59:20 | [Mutex] isItemNotified: received:node:ce2ada09-522c-4ea8-947f-235266cf9304:localhost:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:Node 57220318-afe7-4ac8-9b3e-a0155bd9798c :: true

2020-12-21 21:59:20 | [Mutex] waiting for: [received:nodes:ced919c3-2836-4447-b21f-2161742a2b3e:localhost]

2020-12-21 21:59:20 | [Mutex] waiting for: [received:nodes:ced919c3-2836-4447-b21f-2161742a2b3e:localhost]

2020-12-21 21:59:20 | [Mutex] received everything.

2020-12-21 21:59:20 | [Mutex] isItemNotified: received:node:ced919c3-2836-4447-b21f-2161742a2b3e:localhost:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:Node 57220318-afe7-4ac8-9b3e-a0155bd9798c :: false

createNodes 1.635s
2020-12-21 21:59:17 |

2020-12-21 21:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:17 | ------------------------------------

2020-12-21 21:59:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "pubsub#title": "Node 57220318-afe7-4ac8-9b3e-a0155bd9798c"
}

2020-12-21 21:59:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:59:18 | [Mutex] waiting for: [received:nodes:d7f96627-8419-4cdb-868e-7a435b5bab3f:localhost]

2020-12-21 21:59:18 | [Mutex] received everything.

2020-12-21 21:59:18 | [Mutex] isItemNotified: received:node:d7f96627-8419-4cdb-868e-7a435b5bab3f:localhost:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:Node 57220318-afe7-4ac8-9b3e-a0155bd9798c :: true

createSubnodes 1.023s
2020-12-21 21:59:18 |

2020-12-21 21:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:18 | ------------------------------------

2020-12-21 21:59:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4a8be09b-0caf-4426-86ee-3825c6d618f7",
    "pubsub#title": "Node 4a8be09b-0caf-4426-86ee-3825c6d618f7"
}

2020-12-21 21:59:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:59:19 | [Mutex] waiting for: [received:nodes:a7d97f4b-a03a-44bb-a748-8e963fd11d8a:localhost]

2020-12-21 21:59:19 | [Mutex] received everything.

2020-12-21 21:59:19 | [Mutex] isItemNotified: received:node:a7d97f4b-a03a-44bb-a748-8e963fd11d8a:localhost:node-4a8be09b-0caf-4426-86ee-3825c6d618f7:Node 4a8be09b-0caf-4426-86ee-3825c6d618f7 :: true

deleteNodes 1.017s
2020-12-21 21:59:24 |

2020-12-21 21:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:24 | ------------------------------------

2020-12-21 21:59:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4a8be09b-0caf-4426-86ee-3825c6d618f7"
}

2020-12-21 21:59:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:59:25 | [Mutex] waiting for: [received:nodes:4df38694-032c-439f-b602-bcebaefea396:localhost]

2020-12-21 21:59:25 | [Mutex] received everything.

2020-12-21 21:59:25 | [Mutex] isItemNotified: received:node:4df38694-032c-439f-b602-bcebaefea396:localhost:node-4a8be09b-0caf-4426-86ee-3825c6d618f7:Node 4a8be09b-0caf-4426-86ee-3825c6d618f7 :: false

deleteSubnodes 1.023s
2020-12-21 21:59:23 |

2020-12-21 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:23 | ------------------------------------

2020-12-21 21:59:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c"
}

2020-12-21 21:59:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:59:24 | [Mutex] waiting for: [received:nodes:69bb469d-9cef-4aac-be13-a2e6d91b4610:localhost]

2020-12-21 21:59:24 | [Mutex] received everything.

2020-12-21 21:59:24 | [Mutex] isItemNotified: received:node:69bb469d-9cef-4aac-be13-a2e6d91b4610:localhost:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:Node 57220318-afe7-4ac8-9b3e-a0155bd9798c :: false

2020-12-21 21:59:24 | [Mutex] waiting for: [received:nodes:fc574a66-14c3-4f78-8e12-0bf3cd04af8c:localhost]

2020-12-21 21:59:24 | [Mutex] received everything.

2020-12-21 21:59:24 | [Mutex] isItemNotified: received:node:fc574a66-14c3-4f78-8e12-0bf3cd04af8c:localhost:node-57220318-afe7-4ac8-9b3e-a0155bd9798c:Node 57220318-afe7-4ac8-9b3e-a0155bd9798c :: false

publishItemsToNodes 0.043s
2020-12-21 21:59:21 |

2020-12-21 21:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:21 | ------------------------------------

2020-12-21 21:59:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "entry": "<test>item-ddd22b33-875b-4b8d-97c6-9c993416e9b9</test>",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9"
}

2020-12-21 21:59:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9"
}

2020-12-21 21:59:21 | [Mutex] waiting for: [published:item:notifieditem-ddd22b33-875b-4b8d-97c6-9c993416e9b9:admin@test-domain.com]

2020-12-21 21:59:22 | [Mutex] received everything.

2020-12-21 21:59:22 | [Mutex] isItemNotified: published:item:notifieditem-ddd22b33-875b-4b8d-97c6-9c993416e9b9:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-12-21 21:59:22 |

2020-12-21 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:22 | ------------------------------------

2020-12-21 21:59:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9"
}

2020-12-21 21:59:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9"
}

2020-12-21 21:59:22 | [Mutex] received everything.

2020-12-21 21:59:22 | [Mutex] isItemNotified: retracted:item:notifieditem-ddd22b33-875b-4b8d-97c6-9c993416e9b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2020-12-21 21:59:22 |

2020-12-21 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:22 | ------------------------------------

2020-12-21 21:59:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9"
}

2020-12-21 21:59:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "item-id": "item-ddd22b33-875b-4b8d-97c6-9c993416e9b9",
    "item": [
        "<item id=\"item-ddd22b33-875b-4b8d-97c6-9c993416e9b9\"><test>item-ddd22b33-875b-4b8d-97c6-9c993416e9b9</test></item>"
    ]
}

2020-12-21 21:59:22 | [Mutex] notify: [retrieved:item:item-ddd22b33-875b-4b8d-97c6-9c993416e9b9:payload-matches:true:localhost]

2020-12-21 21:59:22 | [Mutex] received everything.

2020-12-21 21:59:22 | [Mutex] isItemNotified: retrieved:item:item-ddd22b33-875b-4b8d-97c6-9c993416e9b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-12-21 21:59:22 |

2020-12-21 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:22 | ------------------------------------

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

2020-12-21 21:59:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4a8be09b-0caf-4426-86ee-3825c6d618f7",
        "test",
        "node-57220318-afe7-4ac8-9b3e-a0155bd9798c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-21 21:59:22 |

2020-12-21 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:22 | ------------------------------------

2020-12-21 21:59:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-57220318-afe7-4ac8-9b3e-a0155bd9798c)"
}

2020-12-21 21:59:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-12-21 21:59:20 |

2020-12-21 21:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:20 | ------------------------------------

2020-12-21 21:59:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:59:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2020-12-21 21:59:22 |

2020-12-21 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:59:22 | ------------------------------------

2020-12-21 21:59:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-57220318-afe7-4ac8-9b3e-a0155bd9798c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:59:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}