Generated by TestNG with ReportNG at 04:22 PST on Thursday 17 February 2022
root@b2c2a8eba6e6 / 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.071s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.159s
2022-02-17 04:37:22 |

2022-02-17 04:37:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:22 | ------------------------------------

2022-02-17 04:37:22 | [Mutex] waiting for: [configured:node:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:node-4d7dbac9-b140-47a1-81b4-7a23907d42f8]

2022-02-17 04:37:22 | [Mutex] received everything.

2022-02-17 04:37:22 | [Mutex] isItemNotified: configured:node:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:node-4d7dbac9-b140-47a1-81b4-7a23907d42f8 :: true

2022-02-17 04:37:23 | [Mutex] waiting for: [received:nodes:e8642e45-aad5-4a01-854f-7d2eea18a678:localhost]

2022-02-17 04:37:23 | [Mutex] received everything.

2022-02-17 04:37:23 | [Mutex] isItemNotified: received:node:e8642e45-aad5-4a01-854f-7d2eea18a678:localhost:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:Node d3bb09f2-c40a-41c3-906f-652e84b2262f :: true

2022-02-17 04:37:23 | [Mutex] waiting for: [received:nodes:fd49596f-9aa6-49e9-9d58-e58e4036438b:localhost]

2022-02-17 04:37:23 | [Mutex] waiting for: [received:nodes:fd49596f-9aa6-49e9-9d58-e58e4036438b:localhost]

2022-02-17 04:37:23 | [Mutex] received everything.

2022-02-17 04:37:23 | [Mutex] isItemNotified: received:node:fd49596f-9aa6-49e9-9d58-e58e4036438b:localhost:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:Node d3bb09f2-c40a-41c3-906f-652e84b2262f :: false

createNodes 1.755s
2022-02-17 04:37:19 |

2022-02-17 04:37:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:19 | ------------------------------------

2022-02-17 04:37:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "pubsub#title": "Node d3bb09f2-c40a-41c3-906f-652e84b2262f"
}

2022-02-17 04:37:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:37:21 | [Mutex] waiting for: [received:nodes:0407ea2a-3852-46fd-beb7-c6974e1aca38:localhost]

2022-02-17 04:37:21 | [Mutex] waiting for: [received:nodes:0407ea2a-3852-46fd-beb7-c6974e1aca38:localhost]

2022-02-17 04:37:21 | [Mutex] waiting for: [received:nodes:0407ea2a-3852-46fd-beb7-c6974e1aca38:localhost]

2022-02-17 04:37:21 | [Mutex] received everything.

2022-02-17 04:37:21 | [Mutex] isItemNotified: received:node:0407ea2a-3852-46fd-beb7-c6974e1aca38:localhost:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:Node d3bb09f2-c40a-41c3-906f-652e84b2262f :: true

createSubnodes 1.024s
2022-02-17 04:37:21 |

2022-02-17 04:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:21 | ------------------------------------

2022-02-17 04:37:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4d7dbac9-b140-47a1-81b4-7a23907d42f8",
    "pubsub#title": "Node 4d7dbac9-b140-47a1-81b4-7a23907d42f8"
}

2022-02-17 04:37:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:37:22 | [Mutex] waiting for: [received:nodes:fb905221-5e39-4599-a02b-065734f940d2:localhost]

2022-02-17 04:37:22 | [Mutex] received everything.

2022-02-17 04:37:22 | [Mutex] isItemNotified: received:node:fb905221-5e39-4599-a02b-065734f940d2:localhost:node-4d7dbac9-b140-47a1-81b4-7a23907d42f8:Node 4d7dbac9-b140-47a1-81b4-7a23907d42f8 :: true

deleteNodes 1.020s
2022-02-17 04:37:27 |

2022-02-17 04:37:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:27 | ------------------------------------

2022-02-17 04:37:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4d7dbac9-b140-47a1-81b4-7a23907d42f8"
}

2022-02-17 04:37:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:37:28 | [Mutex] waiting for: [received:nodes:4f063313-67fb-4513-914a-76521929e27e:localhost]

2022-02-17 04:37:28 | [Mutex] waiting for: [received:nodes:4f063313-67fb-4513-914a-76521929e27e:localhost]

2022-02-17 04:37:28 | [Mutex] received everything.

2022-02-17 04:37:28 | [Mutex] isItemNotified: received:node:4f063313-67fb-4513-914a-76521929e27e:localhost:node-4d7dbac9-b140-47a1-81b4-7a23907d42f8:Node 4d7dbac9-b140-47a1-81b4-7a23907d42f8 :: false

deleteSubnodes 1.029s
2022-02-17 04:37:26 |

2022-02-17 04:37:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:26 | ------------------------------------

2022-02-17 04:37:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f"
}

2022-02-17 04:37:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:37:27 | [Mutex] waiting for: [received:nodes:8a34ab7d-7faf-4783-801d-fe9cfc0c35de:localhost]

2022-02-17 04:37:27 | [Mutex] received everything.

2022-02-17 04:37:27 | [Mutex] isItemNotified: received:node:8a34ab7d-7faf-4783-801d-fe9cfc0c35de:localhost:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:Node d3bb09f2-c40a-41c3-906f-652e84b2262f :: false

2022-02-17 04:37:27 | [Mutex] waiting for: [received:nodes:9926848b-dbc3-4192-bdaf-57e280c840ff:localhost]

2022-02-17 04:37:27 | [Mutex] received everything.

2022-02-17 04:37:27 | [Mutex] isItemNotified: received:node:9926848b-dbc3-4192-bdaf-57e280c840ff:localhost:node-d3bb09f2-c40a-41c3-906f-652e84b2262f:Node d3bb09f2-c40a-41c3-906f-652e84b2262f :: false

publishItemsToNodes 0.047s
2022-02-17 04:37:24 |

2022-02-17 04:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:24 | ------------------------------------

2022-02-17 04:37:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "entry": "<test>item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1</test>",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1"
}

2022-02-17 04:37:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1"
}

2022-02-17 04:37:24 | [Mutex] waiting for: [published:item:notifieditem-78eaeddf-7846-4cd9-ac48-f078f26d6fa1:admin@test-domain.com]

2022-02-17 04:37:24 | [Mutex] received everything.

2022-02-17 04:37:24 | [Mutex] isItemNotified: published:item:notifieditem-78eaeddf-7846-4cd9-ac48-f078f26d6fa1:admin@test-domain.com :: true

retractItemsFromNodes 0.123s
2022-02-17 04:37:25 |

2022-02-17 04:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:25 | ------------------------------------

2022-02-17 04:37:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1"
}

2022-02-17 04:37:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1"
}

2022-02-17 04:37:25 | [Mutex] received everything.

2022-02-17 04:37:25 | [Mutex] isItemNotified: retracted:item:notifieditem-78eaeddf-7846-4cd9-ac48-f078f26d6fa1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2022-02-17 04:37:24 |

2022-02-17 04:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:24 | ------------------------------------

2022-02-17 04:37:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1"
}

2022-02-17 04:37:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "item-id": "item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1",
    "item": [
        "<item id=\"item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1\"><test>item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1</test></item>"
    ]
}

2022-02-17 04:37:24 | [Mutex] notify: [retrieved:item:item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1:payload-matches:true:localhost]

2022-02-17 04:37:24 | [Mutex] received everything.

2022-02-17 04:37:24 | [Mutex] isItemNotified: retrieved:item:item-78eaeddf-7846-4cd9-ac48-f078f26d6fa1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-02-17 04:37:24 |

2022-02-17 04:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:24 | ------------------------------------

2022-02-17 04:37:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-17 04:37:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4d7dbac9-b140-47a1-81b4-7a23907d42f8",
        "node-d3bb09f2-c40a-41c3-906f-652e84b2262f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-02-17 04:37:24 |

2022-02-17 04:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:24 | ------------------------------------

2022-02-17 04:37:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d3bb09f2-c40a-41c3-906f-652e84b2262f)"
}

2022-02-17 04:37:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-02-17 04:37:23 |

2022-02-17 04:37:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:23 | ------------------------------------

2022-02-17 04:37:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:37:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-02-17 04:37:25 |

2022-02-17 04:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:37:25 | ------------------------------------

2022-02-17 04:37:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d3bb09f2-c40a-41c3-906f-652e84b2262f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:37:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}