Generated by TestNG with ReportNG at 08:28 PST on Thursday 23 December 2021
root@785cf647a4ab / 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.146s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2021-12-23 08:43:51 |

2021-12-23 08:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:51 | ------------------------------------

2021-12-23 08:43:51 | [Mutex] waiting for: [configured:node:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:node-eab97143-562a-4894-bdbf-0971499466fe]

2021-12-23 08:43:51 | [Mutex] received everything.

2021-12-23 08:43:51 | [Mutex] isItemNotified: configured:node:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:node-eab97143-562a-4894-bdbf-0971499466fe :: true

2021-12-23 08:43:52 | [Mutex] waiting for: [received:nodes:91f5de17-0476-4bfa-8750-1052b7a61252:localhost]

2021-12-23 08:43:52 | [Mutex] waiting for: [received:nodes:91f5de17-0476-4bfa-8750-1052b7a61252:localhost]

2021-12-23 08:43:52 | [Mutex] received everything.

2021-12-23 08:43:52 | [Mutex] isItemNotified: received:node:91f5de17-0476-4bfa-8750-1052b7a61252:localhost:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51 :: true

2021-12-23 08:43:52 | [Mutex] waiting for: [received:nodes:224152da-f13d-4104-b557-28b38c067974:localhost]

2021-12-23 08:43:52 | [Mutex] waiting for: [received:nodes:224152da-f13d-4104-b557-28b38c067974:localhost]

2021-12-23 08:43:52 | [Mutex] received everything.

2021-12-23 08:43:52 | [Mutex] isItemNotified: received:node:224152da-f13d-4104-b557-28b38c067974:localhost:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51 :: false

createNodes 1.527s
2021-12-23 08:43:49 |

2021-12-23 08:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:49 | ------------------------------------

2021-12-23 08:43:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "pubsub#title": "Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51"
}

2021-12-23 08:43:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-23 08:43:50 | [Mutex] waiting for: [received:nodes:a1f7abdb-e041-4b0d-bdda-e740e0013f44:localhost]

2021-12-23 08:43:50 | [Mutex] waiting for: [received:nodes:a1f7abdb-e041-4b0d-bdda-e740e0013f44:localhost]

2021-12-23 08:43:50 | [Mutex] received everything.

2021-12-23 08:43:50 | [Mutex] isItemNotified: received:node:a1f7abdb-e041-4b0d-bdda-e740e0013f44:localhost:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51 :: true

createSubnodes 1.027s
2021-12-23 08:43:50 |

2021-12-23 08:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:50 | ------------------------------------

2021-12-23 08:43:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eab97143-562a-4894-bdbf-0971499466fe",
    "pubsub#title": "Node eab97143-562a-4894-bdbf-0971499466fe"
}

2021-12-23 08:43:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-23 08:43:51 | [Mutex] waiting for: [received:nodes:740db297-7f11-45eb-80ba-859eee7b550b:localhost]

2021-12-23 08:43:51 | [Mutex] received everything.

2021-12-23 08:43:51 | [Mutex] isItemNotified: received:node:740db297-7f11-45eb-80ba-859eee7b550b:localhost:node-eab97143-562a-4894-bdbf-0971499466fe:Node eab97143-562a-4894-bdbf-0971499466fe :: true

deleteNodes 1.027s
2021-12-23 08:43:56 |

2021-12-23 08:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:56 | ------------------------------------

2021-12-23 08:43:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eab97143-562a-4894-bdbf-0971499466fe"
}

2021-12-23 08:43:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-23 08:43:57 | [Mutex] waiting for: [received:nodes:51d92e36-8c25-4e4f-914a-661a1a13b790:localhost]

2021-12-23 08:43:57 | [Mutex] received everything.

2021-12-23 08:43:57 | [Mutex] isItemNotified: received:node:51d92e36-8c25-4e4f-914a-661a1a13b790:localhost:node-eab97143-562a-4894-bdbf-0971499466fe:Node eab97143-562a-4894-bdbf-0971499466fe :: false

deleteSubnodes 1.032s
2021-12-23 08:43:55 |

2021-12-23 08:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:55 | ------------------------------------

2021-12-23 08:43:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51"
}

2021-12-23 08:43:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-23 08:43:56 | [Mutex] waiting for: [received:nodes:8f24182f-409d-45b9-a408-af491b38bd78:localhost]

2021-12-23 08:43:56 | [Mutex] received everything.

2021-12-23 08:43:56 | [Mutex] isItemNotified: received:node:8f24182f-409d-45b9-a408-af491b38bd78:localhost:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51 :: false

2021-12-23 08:43:56 | [Mutex] waiting for: [received:nodes:2daab941-02c9-4e95-a013-b0023ae3d00d:localhost]

2021-12-23 08:43:56 | [Mutex] received everything.

2021-12-23 08:43:56 | [Mutex] isItemNotified: received:node:2daab941-02c9-4e95-a013-b0023ae3d00d:localhost:node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51:Node ddbe80bf-15f9-447b-9e4a-9cad35b0ad51 :: false

publishItemsToNodes 0.053s
2021-12-23 08:43:53 |

2021-12-23 08:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:53 | ------------------------------------

2021-12-23 08:43:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "entry": "<test>item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a</test>",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a"
}

2021-12-23 08:43:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a"
}

2021-12-23 08:43:53 | [Mutex] waiting for: [published:item:notifieditem-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a:admin@test-domain.com]

2021-12-23 08:43:53 | [Mutex] received everything.

2021-12-23 08:43:53 | [Mutex] isItemNotified: published:item:notifieditem-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-12-23 08:43:54 |

2021-12-23 08:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:54 | ------------------------------------

2021-12-23 08:43:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a"
}

2021-12-23 08:43:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a"
}

2021-12-23 08:43:54 | [Mutex] received everything.

2021-12-23 08:43:54 | [Mutex] isItemNotified: retracted:item:notifieditem-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.097s
2021-12-23 08:43:53 |

2021-12-23 08:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:53 | ------------------------------------

2021-12-23 08:43:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a"
}

2021-12-23 08:43:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "item-id": "item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a",
    "item": [
        "<item id=\"item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a\"><test>item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a</test></item>"
    ]
}

2021-12-23 08:43:53 | [Mutex] notify: [retrieved:item:item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a:payload-matches:true:localhost]

2021-12-23 08:43:53 | [Mutex] received everything.

2021-12-23 08:43:53 | [Mutex] isItemNotified: retrieved:item:item-2283b617-9e9a-45ef-aaa5-0dc39d02bd4a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-12-23 08:43:53 |

2021-12-23 08:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:53 | ------------------------------------

2021-12-23 08:43:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-23 08:43:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-eab97143-562a-4894-bdbf-0971499466fe",
        "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-12-23 08:43:54 |

2021-12-23 08:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:54 | ------------------------------------

2021-12-23 08:43:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51)"
}

2021-12-23 08:43:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-12-23 08:43:52 |

2021-12-23 08:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:52 | ------------------------------------

2021-12-23 08:43:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-23 08:43:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2021-12-23 08:43:54 |

2021-12-23 08:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-23 08:43:54 | ------------------------------------

2021-12-23 08:43:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ddbe80bf-15f9-447b-9e4a-9cad35b0ad51",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-23 08:43:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}