Generated by TestNG with ReportNG at 21:15 PST on Monday 04 January 2021
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 : 9.003s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2021-01-04 21:31:40 |

2021-01-04 21:31:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:40 | ------------------------------------

2021-01-04 21:31:40 | [Mutex] waiting for: [configured:node:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:node-804912d4-666e-44f6-86f8-436c31a83465]

2021-01-04 21:31:40 | [Mutex] received everything.

2021-01-04 21:31:40 | [Mutex] isItemNotified: configured:node:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:node-804912d4-666e-44f6-86f8-436c31a83465 :: true

2021-01-04 21:31:41 | [Mutex] waiting for: [received:nodes:6a37c881-c51e-45a4-a0e0-462324b62fa9:localhost]

2021-01-04 21:31:41 | [Mutex] received everything.

2021-01-04 21:31:41 | [Mutex] isItemNotified: received:node:6a37c881-c51e-45a4-a0e0-462324b62fa9:localhost:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:Node 5c8fc0fa-edb9-47b6-865a-2727467cf356 :: true

2021-01-04 21:31:41 | [Mutex] waiting for: [received:nodes:6775f42c-02ac-4b75-9bb9-0501d7b6fcea:localhost]

2021-01-04 21:31:41 | [Mutex] received everything.

2021-01-04 21:31:41 | [Mutex] isItemNotified: received:node:6775f42c-02ac-4b75-9bb9-0501d7b6fcea:localhost:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:Node 5c8fc0fa-edb9-47b6-865a-2727467cf356 :: false

createNodes 1.740s
2021-01-04 21:31:37 |

2021-01-04 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:37 | ------------------------------------

2021-01-04 21:31:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "pubsub#title": "Node 5c8fc0fa-edb9-47b6-865a-2727467cf356"
}

2021-01-04 21:31:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:39 | [Mutex] waiting for: [received:nodes:7f6217e5-7c62-4804-add0-6af096d38174:localhost]

2021-01-04 21:31:39 | [Mutex] received everything.

2021-01-04 21:31:39 | [Mutex] isItemNotified: received:node:7f6217e5-7c62-4804-add0-6af096d38174:localhost:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:Node 5c8fc0fa-edb9-47b6-865a-2727467cf356 :: true

createSubnodes 1.021s
2021-01-04 21:31:39 |

2021-01-04 21:31:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:39 | ------------------------------------

2021-01-04 21:31:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-804912d4-666e-44f6-86f8-436c31a83465",
    "pubsub#title": "Node 804912d4-666e-44f6-86f8-436c31a83465"
}

2021-01-04 21:31:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:40 | [Mutex] waiting for: [received:nodes:0be94035-c656-4e78-b3c1-c1b0a0978fa1:localhost]

2021-01-04 21:31:40 | [Mutex] received everything.

2021-01-04 21:31:40 | [Mutex] isItemNotified: received:node:0be94035-c656-4e78-b3c1-c1b0a0978fa1:localhost:node-804912d4-666e-44f6-86f8-436c31a83465:Node 804912d4-666e-44f6-86f8-436c31a83465 :: true

deleteNodes 1.018s
2021-01-04 21:31:44 |

2021-01-04 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:44 | ------------------------------------

2021-01-04 21:31:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-804912d4-666e-44f6-86f8-436c31a83465"
}

2021-01-04 21:31:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:45 | [Mutex] waiting for: [received:nodes:4a158717-0c54-489d-9ddb-77dba29f70c2:localhost]

2021-01-04 21:31:45 | [Mutex] received everything.

2021-01-04 21:31:45 | [Mutex] isItemNotified: received:node:4a158717-0c54-489d-9ddb-77dba29f70c2:localhost:node-804912d4-666e-44f6-86f8-436c31a83465:Node 804912d4-666e-44f6-86f8-436c31a83465 :: false

deleteSubnodes 1.023s
2021-01-04 21:31:43 |

2021-01-04 21:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:43 | ------------------------------------

2021-01-04 21:31:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356"
}

2021-01-04 21:31:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:44 | [Mutex] waiting for: [received:nodes:52322506-6625-4402-8f29-c79823c8edf0:localhost]

2021-01-04 21:31:44 | [Mutex] received everything.

2021-01-04 21:31:44 | [Mutex] isItemNotified: received:node:52322506-6625-4402-8f29-c79823c8edf0:localhost:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:Node 5c8fc0fa-edb9-47b6-865a-2727467cf356 :: false

2021-01-04 21:31:44 | [Mutex] waiting for: [received:nodes:40f0dbf4-9db1-4545-a24a-1eabaa4314b6:localhost]

2021-01-04 21:31:44 | [Mutex] received everything.

2021-01-04 21:31:44 | [Mutex] isItemNotified: received:node:40f0dbf4-9db1-4545-a24a-1eabaa4314b6:localhost:node-5c8fc0fa-edb9-47b6-865a-2727467cf356:Node 5c8fc0fa-edb9-47b6-865a-2727467cf356 :: false

publishItemsToNodes 0.051s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "entry": "<test>item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f</test>",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f"
}

2021-01-04 21:31:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f"
}

2021-01-04 21:31:42 | [Mutex] waiting for: [published:item:notifieditem-63ecfd01-f6b5-40d3-a0aa-e69b722f910f:admin@test-domain.com]

2021-01-04 21:31:42 | [Mutex] received everything.

2021-01-04 21:31:42 | [Mutex] isItemNotified: published:item:notifieditem-63ecfd01-f6b5-40d3-a0aa-e69b722f910f:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f"
}

2021-01-04 21:31:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f"
}

2021-01-04 21:31:42 | [Mutex] received everything.

2021-01-04 21:31:42 | [Mutex] isItemNotified: retracted:item:notifieditem-63ecfd01-f6b5-40d3-a0aa-e69b722f910f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.040s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f"
}

2021-01-04 21:31:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "item-id": "item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f",
    "item": [
        "<item id=\"item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f\"><test>item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f</test></item>"
    ]
}

2021-01-04 21:31:42 | [Mutex] notify: [retrieved:item:item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f:payload-matches:true:localhost]

2021-01-04 21:31:42 | [Mutex] received everything.

2021-01-04 21:31:42 | [Mutex] isItemNotified: retrieved:item:item-63ecfd01-f6b5-40d3-a0aa-e69b722f910f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.073s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-04 21:31:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-804912d4-666e-44f6-86f8-436c31a83465",
        "node-5c8fc0fa-edb9-47b6-865a-2727467cf356"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5c8fc0fa-edb9-47b6-865a-2727467cf356)"
}

2021-01-04 21:31:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2021-01-04 21:31:41 |

2021-01-04 21:31:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:41 | ------------------------------------

2021-01-04 21:31:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-04 21:31:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2021-01-04 21:31:42 |

2021-01-04 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:42 | ------------------------------------

2021-01-04 21:31:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5c8fc0fa-edb9-47b6-865a-2727467cf356",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-04 21:31:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}