Generated by TestNG with ReportNG at 21:14 PST on Thursday 18 February 2021
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 : 9.195s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-02-18 21:31:32 |

2021-02-18 21:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:32 | ------------------------------------

2021-02-18 21:31:32 | [Mutex] waiting for: [configured:node:node-0de6b17a-dc72-473a-b559-4821c55187c6:node-0859856a-9412-4a62-a7fe-4809fe0367dd]

2021-02-18 21:31:32 | [Mutex] received everything.

2021-02-18 21:31:32 | [Mutex] isItemNotified: configured:node:node-0de6b17a-dc72-473a-b559-4821c55187c6:node-0859856a-9412-4a62-a7fe-4809fe0367dd :: true

2021-02-18 21:31:33 | [Mutex] waiting for: [received:nodes:b9329922-09bf-43a7-805d-8a186528b991:localhost]

2021-02-18 21:31:33 | [Mutex] received everything.

2021-02-18 21:31:33 | [Mutex] isItemNotified: received:node:b9329922-09bf-43a7-805d-8a186528b991:localhost:node-0de6b17a-dc72-473a-b559-4821c55187c6:Node 0de6b17a-dc72-473a-b559-4821c55187c6 :: true

2021-02-18 21:31:33 | [Mutex] waiting for: [received:nodes:01f9dd3f-1453-471d-8383-271696a678c8:localhost]

2021-02-18 21:31:33 | [Mutex] received everything.

2021-02-18 21:31:33 | [Mutex] isItemNotified: received:node:01f9dd3f-1453-471d-8383-271696a678c8:localhost:node-0de6b17a-dc72-473a-b559-4821c55187c6:Node 0de6b17a-dc72-473a-b559-4821c55187c6 :: false

createNodes 1.724s
2021-02-18 21:31:29 |

2021-02-18 21:31:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:29 | ------------------------------------

2021-02-18 21:31:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "pubsub#title": "Node 0de6b17a-dc72-473a-b559-4821c55187c6"
}

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

2021-02-18 21:31:31 | [Mutex] waiting for: [received:nodes:7122d09b-189e-4252-af68-c6bc81ce6051:localhost]

2021-02-18 21:31:31 | [Mutex] received everything.

2021-02-18 21:31:31 | [Mutex] isItemNotified: received:node:7122d09b-189e-4252-af68-c6bc81ce6051:localhost:node-0de6b17a-dc72-473a-b559-4821c55187c6:Node 0de6b17a-dc72-473a-b559-4821c55187c6 :: true

createSubnodes 1.032s
2021-02-18 21:31:31 |

2021-02-18 21:31:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:31 | ------------------------------------

2021-02-18 21:31:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0859856a-9412-4a62-a7fe-4809fe0367dd",
    "pubsub#title": "Node 0859856a-9412-4a62-a7fe-4809fe0367dd"
}

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

2021-02-18 21:31:32 | [Mutex] waiting for: [received:nodes:df12cf72-af79-4555-9914-fe14b4339aa9:localhost]

2021-02-18 21:31:32 | [Mutex] received everything.

2021-02-18 21:31:32 | [Mutex] isItemNotified: received:node:df12cf72-af79-4555-9914-fe14b4339aa9:localhost:node-0859856a-9412-4a62-a7fe-4809fe0367dd:Node 0859856a-9412-4a62-a7fe-4809fe0367dd :: true

deleteNodes 1.028s
2021-02-18 21:31:37 |

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

2021-02-18 21:31:37 | ------------------------------------

2021-02-18 21:31:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0859856a-9412-4a62-a7fe-4809fe0367dd"
}

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

2021-02-18 21:31:38 | [Mutex] waiting for: [received:nodes:1f1ecf6f-fda3-4e7f-800a-cbe03c325d06:localhost]

2021-02-18 21:31:38 | [Mutex] waiting for: [received:nodes:1f1ecf6f-fda3-4e7f-800a-cbe03c325d06:localhost]

2021-02-18 21:31:38 | [Mutex] received everything.

2021-02-18 21:31:38 | [Mutex] isItemNotified: received:node:1f1ecf6f-fda3-4e7f-800a-cbe03c325d06:localhost:node-0859856a-9412-4a62-a7fe-4809fe0367dd:Node 0859856a-9412-4a62-a7fe-4809fe0367dd :: false

deleteSubnodes 1.030s
2021-02-18 21:31:36 |

2021-02-18 21:31:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:36 | ------------------------------------

2021-02-18 21:31:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6"
}

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

2021-02-18 21:31:37 | [Mutex] waiting for: [received:nodes:a3843a13-0ffe-4ccb-a6ac-e0318a4ebd46:localhost]

2021-02-18 21:31:37 | [Mutex] received everything.

2021-02-18 21:31:37 | [Mutex] isItemNotified: received:node:a3843a13-0ffe-4ccb-a6ac-e0318a4ebd46:localhost:node-0de6b17a-dc72-473a-b559-4821c55187c6:Node 0de6b17a-dc72-473a-b559-4821c55187c6 :: false

2021-02-18 21:31:37 | [Mutex] waiting for: [received:nodes:8e24a1a9-7a9b-4590-b0ba-d7f5e25dc622:localhost]

2021-02-18 21:31:37 | [Mutex] received everything.

2021-02-18 21:31:37 | [Mutex] isItemNotified: received:node:8e24a1a9-7a9b-4590-b0ba-d7f5e25dc622:localhost:node-0de6b17a-dc72-473a-b559-4821c55187c6:Node 0de6b17a-dc72-473a-b559-4821c55187c6 :: false

publishItemsToNodes 0.045s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

2021-02-18 21:31:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "entry": "<test>item-98a3d50a-2923-4090-abe0-c6edd728a989</test>",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989"
}

2021-02-18 21:31:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989"
}

2021-02-18 21:31:34 | [Mutex] waiting for: [published:item:notifieditem-98a3d50a-2923-4090-abe0-c6edd728a989:admin@test-domain.com]

2021-02-18 21:31:34 | [Mutex] received everything.

2021-02-18 21:31:34 | [Mutex] isItemNotified: published:item:notifieditem-98a3d50a-2923-4090-abe0-c6edd728a989:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

2021-02-18 21:31:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989"
}

2021-02-18 21:31:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989"
}

2021-02-18 21:31:35 | [Mutex] waiting for: [retracted:item:notifieditem-98a3d50a-2923-4090-abe0-c6edd728a989:admin@test-domain.com]

2021-02-18 21:31:35 | [Mutex] received everything.

2021-02-18 21:31:35 | [Mutex] isItemNotified: retracted:item:notifieditem-98a3d50a-2923-4090-abe0-c6edd728a989:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

2021-02-18 21:31:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989"
}

2021-02-18 21:31:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "item-id": "item-98a3d50a-2923-4090-abe0-c6edd728a989",
    "item": [
        "<item id=\"item-98a3d50a-2923-4090-abe0-c6edd728a989\"><test>item-98a3d50a-2923-4090-abe0-c6edd728a989</test></item>"
    ]
}

2021-02-18 21:31:34 | [Mutex] notify: [retrieved:item:item-98a3d50a-2923-4090-abe0-c6edd728a989:payload-matches:true:localhost]

2021-02-18 21:31:34 | [Mutex] received everything.

2021-02-18 21:31:34 | [Mutex] isItemNotified: retrieved:item:item-98a3d50a-2923-4090-abe0-c6edd728a989:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

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

2021-02-18 21:31:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0de6b17a-dc72-473a-b559-4821c55187c6",
        "node-0859856a-9412-4a62-a7fe-4809fe0367dd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

2021-02-18 21:31:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0de6b17a-dc72-473a-b559-4821c55187c6)"
}

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

subscribeNodes 1.014s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.099s
2021-02-18 21:31:35 |

2021-02-18 21:31:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:35 | ------------------------------------

2021-02-18 21:31:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0de6b17a-dc72-473a-b559-4821c55187c6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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