Generated by TestNG with ReportNG at 21:13 PST on Monday 09 November 2020
root@eaa73862192b / 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.968s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.034s
2020-11-09 21:29:21 |

2020-11-09 21:29:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:21 | ------------------------------------

2020-11-09 21:29:21 | [Mutex] waiting for: [configured:node:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:node-e2f5310e-81c8-44f2-b688-ba09df08ed5f]

2020-11-09 21:29:21 | [Mutex] received everything.

2020-11-09 21:29:21 | [Mutex] isItemNotified: configured:node:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:node-e2f5310e-81c8-44f2-b688-ba09df08ed5f :: true

2020-11-09 21:29:22 | [Mutex] waiting for: [received:nodes:9b903670-ad93-42b1-a304-606c5ef4efe7:localhost]

2020-11-09 21:29:22 | [Mutex] received everything.

2020-11-09 21:29:22 | [Mutex] isItemNotified: received:node:9b903670-ad93-42b1-a304-606c5ef4efe7:localhost:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:Node abb9bf66-cb48-4639-bc7c-e56e199b456f :: true

2020-11-09 21:29:22 | [Mutex] waiting for: [received:nodes:cb07f7da-e6c6-4a35-b109-1096af1b3177:localhost]

2020-11-09 21:29:22 | [Mutex] received everything.

2020-11-09 21:29:22 | [Mutex] isItemNotified: received:node:cb07f7da-e6c6-4a35-b109-1096af1b3177:localhost:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:Node abb9bf66-cb48-4639-bc7c-e56e199b456f :: false

createNodes 1.796s
2020-11-09 21:29:19 |

2020-11-09 21:29:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:19 | ------------------------------------

2020-11-09 21:29:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "pubsub#title": "Node abb9bf66-cb48-4639-bc7c-e56e199b456f"
}

2020-11-09 21:29:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:20 | [Mutex] waiting for: [received:nodes:4ca8062f-2637-4a74-9827-61357df3e400:localhost]

2020-11-09 21:29:20 | [Mutex] waiting for: [received:nodes:4ca8062f-2637-4a74-9827-61357df3e400:localhost]

2020-11-09 21:29:20 | [Mutex] received everything.

2020-11-09 21:29:20 | [Mutex] isItemNotified: received:node:4ca8062f-2637-4a74-9827-61357df3e400:localhost:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:Node abb9bf66-cb48-4639-bc7c-e56e199b456f :: true

createSubnodes 1.028s
2020-11-09 21:29:20 |

2020-11-09 21:29:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:20 | ------------------------------------

2020-11-09 21:29:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e2f5310e-81c8-44f2-b688-ba09df08ed5f",
    "pubsub#title": "Node e2f5310e-81c8-44f2-b688-ba09df08ed5f"
}

2020-11-09 21:29:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:21 | [Mutex] waiting for: [received:nodes:d82c2fa1-c90f-46d2-a4aa-e2568859acc4:localhost]

2020-11-09 21:29:21 | [Mutex] received everything.

2020-11-09 21:29:21 | [Mutex] isItemNotified: received:node:d82c2fa1-c90f-46d2-a4aa-e2568859acc4:localhost:node-e2f5310e-81c8-44f2-b688-ba09df08ed5f:Node e2f5310e-81c8-44f2-b688-ba09df08ed5f :: true

deleteNodes 1.027s
2020-11-09 21:29:26 |

2020-11-09 21:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:26 | ------------------------------------

2020-11-09 21:29:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e2f5310e-81c8-44f2-b688-ba09df08ed5f"
}

2020-11-09 21:29:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:27 | [Mutex] waiting for: [received:nodes:69b76857-516c-4724-982a-f9b605536b08:localhost]

2020-11-09 21:29:27 | [Mutex] received everything.

2020-11-09 21:29:27 | [Mutex] isItemNotified: received:node:69b76857-516c-4724-982a-f9b605536b08:localhost:node-e2f5310e-81c8-44f2-b688-ba09df08ed5f:Node e2f5310e-81c8-44f2-b688-ba09df08ed5f :: false

deleteSubnodes 1.029s
2020-11-09 21:29:25 |

2020-11-09 21:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:25 | ------------------------------------

2020-11-09 21:29:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f"
}

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

2020-11-09 21:29:26 | [Mutex] waiting for: [received:nodes:0aa1bb79-c4dc-4f56-b312-2bb06f599075:localhost]

2020-11-09 21:29:26 | [Mutex] waiting for: [received:nodes:0aa1bb79-c4dc-4f56-b312-2bb06f599075:localhost]

2020-11-09 21:29:26 | [Mutex] waiting for: [received:nodes:0aa1bb79-c4dc-4f56-b312-2bb06f599075:localhost]

2020-11-09 21:29:26 | [Mutex] received everything.

2020-11-09 21:29:26 | [Mutex] isItemNotified: received:node:0aa1bb79-c4dc-4f56-b312-2bb06f599075:localhost:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:Node abb9bf66-cb48-4639-bc7c-e56e199b456f :: false

2020-11-09 21:29:26 | [Mutex] waiting for: [received:nodes:95aa873d-e065-4501-8f61-ca54e0c501d5:localhost]

2020-11-09 21:29:26 | [Mutex] received everything.

2020-11-09 21:29:26 | [Mutex] isItemNotified: received:node:95aa873d-e065-4501-8f61-ca54e0c501d5:localhost:node-abb9bf66-cb48-4639-bc7c-e56e199b456f:Node abb9bf66-cb48-4639-bc7c-e56e199b456f :: false

publishItemsToNodes 0.053s
2020-11-09 21:29:23 |

2020-11-09 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:23 | ------------------------------------

2020-11-09 21:29:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "entry": "<test>item-7e153154-1d81-47ee-8a3b-09c4c135af66</test>",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66"
}

2020-11-09 21:29:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66"
}

2020-11-09 21:29:23 | [Mutex] waiting for: [published:item:notifieditem-7e153154-1d81-47ee-8a3b-09c4c135af66:admin@test-domain.com]

2020-11-09 21:29:24 | [Mutex] received everything.

2020-11-09 21:29:24 | [Mutex] isItemNotified: published:item:notifieditem-7e153154-1d81-47ee-8a3b-09c4c135af66:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-11-09 21:29:24 |

2020-11-09 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:24 | ------------------------------------

2020-11-09 21:29:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66"
}

2020-11-09 21:29:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66"
}

2020-11-09 21:29:24 | [Mutex] received everything.

2020-11-09 21:29:24 | [Mutex] isItemNotified: retracted:item:notifieditem-7e153154-1d81-47ee-8a3b-09c4c135af66:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2020-11-09 21:29:24 |

2020-11-09 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:24 | ------------------------------------

2020-11-09 21:29:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66"
}

2020-11-09 21:29:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "item-id": "item-7e153154-1d81-47ee-8a3b-09c4c135af66",
    "item": [
        "<item id=\"item-7e153154-1d81-47ee-8a3b-09c4c135af66\"><test>item-7e153154-1d81-47ee-8a3b-09c4c135af66</test></item>"
    ]
}

2020-11-09 21:29:24 | [Mutex] notify: [retrieved:item:item-7e153154-1d81-47ee-8a3b-09c4c135af66:payload-matches:true:localhost]

2020-11-09 21:29:24 | [Mutex] received everything.

2020-11-09 21:29:24 | [Mutex] isItemNotified: retrieved:item:item-7e153154-1d81-47ee-8a3b-09c4c135af66:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-11-09 21:29:24 |

2020-11-09 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:24 | ------------------------------------

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

2020-11-09 21:29:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e2f5310e-81c8-44f2-b688-ba09df08ed5f",
        "node-abb9bf66-cb48-4639-bc7c-e56e199b456f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-09 21:29:24 |

2020-11-09 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:24 | ------------------------------------

2020-11-09 21:29:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-abb9bf66-cb48-4639-bc7c-e56e199b456f)"
}

2020-11-09 21:29:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-11-09 21:29:22 |

2020-11-09 21:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:22 | ------------------------------------

2020-11-09 21:29:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2020-11-09 21:29:24 |

2020-11-09 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:24 | ------------------------------------

2020-11-09 21:29:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-abb9bf66-cb48-4639-bc7c-e56e199b456f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-09 21:29:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}