Generated by TestNG with ReportNG at 22:53 PDT on Thursday 13 October 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.707s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-10-13 23:08:33 |

2022-10-13 23:08:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:33 | ------------------------------------

2022-10-13 23:08:33 | [Mutex] waiting for: [configured:node:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae]

2022-10-13 23:08:33 | [Mutex] received everything.

2022-10-13 23:08:33 | [Mutex] isItemNotified: configured:node:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae :: true

2022-10-13 23:08:34 | [Mutex] waiting for: [received:nodes:9469860a-b3d1-4e05-87b3-31937704dc7f:localhost]

2022-10-13 23:08:34 | [Mutex] received everything.

2022-10-13 23:08:34 | [Mutex] isItemNotified: received:node:9469860a-b3d1-4e05-87b3-31937704dc7f:localhost:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:Node 4a622068-8b59-414c-b020-98f8bd2ecfc0 :: true

2022-10-13 23:08:34 | [Mutex] waiting for: [received:nodes:221d3238-adec-497f-bf76-3430bc9bbff1:localhost]

2022-10-13 23:08:34 | [Mutex] received everything.

2022-10-13 23:08:34 | [Mutex] isItemNotified: received:node:221d3238-adec-497f-bf76-3430bc9bbff1:localhost:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:Node 4a622068-8b59-414c-b020-98f8bd2ecfc0 :: false

createNodes 1.570s
2022-10-13 23:08:30 |

2022-10-13 23:08:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:30 | ------------------------------------

2022-10-13 23:08:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "pubsub#title": "Node 4a622068-8b59-414c-b020-98f8bd2ecfc0"
}

2022-10-13 23:08:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 23:08:32 | [Mutex] waiting for: [received:nodes:90cf7b9a-9f5d-4cb1-9b6f-6256ea0486ce:localhost]

2022-10-13 23:08:32 | [Mutex] waiting for: [received:nodes:90cf7b9a-9f5d-4cb1-9b6f-6256ea0486ce:localhost]

2022-10-13 23:08:32 | [Mutex] received everything.

2022-10-13 23:08:32 | [Mutex] isItemNotified: received:node:90cf7b9a-9f5d-4cb1-9b6f-6256ea0486ce:localhost:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:Node 4a622068-8b59-414c-b020-98f8bd2ecfc0 :: true

createSubnodes 1.026s
2022-10-13 23:08:32 |

2022-10-13 23:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:32 | ------------------------------------

2022-10-13 23:08:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae",
    "pubsub#title": "Node 0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae"
}

2022-10-13 23:08:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 23:08:33 | [Mutex] waiting for: [received:nodes:eb4ac636-ba9a-431f-a059-79e7254a2564:localhost]

2022-10-13 23:08:33 | [Mutex] waiting for: [received:nodes:eb4ac636-ba9a-431f-a059-79e7254a2564:localhost]

2022-10-13 23:08:33 | [Mutex] received everything.

2022-10-13 23:08:33 | [Mutex] isItemNotified: received:node:eb4ac636-ba9a-431f-a059-79e7254a2564:localhost:node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae:Node 0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae :: true

deleteNodes 1.022s
2022-10-13 23:08:38 |

2022-10-13 23:08:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:38 | ------------------------------------

2022-10-13 23:08:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae"
}

2022-10-13 23:08:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 23:08:39 | [Mutex] waiting for: [received:nodes:c6208cfc-854c-424b-94f1-d4bce682b575:localhost]

2022-10-13 23:08:39 | [Mutex] received everything.

2022-10-13 23:08:39 | [Mutex] isItemNotified: received:node:c6208cfc-854c-424b-94f1-d4bce682b575:localhost:node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae:Node 0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae :: false

deleteSubnodes 1.026s
2022-10-13 23:08:37 |

2022-10-13 23:08:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:37 | ------------------------------------

2022-10-13 23:08:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0"
}

2022-10-13 23:08:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 23:08:38 | [Mutex] waiting for: [received:nodes:14df0d16-55ba-4acc-981d-360898d44c2d:localhost]

2022-10-13 23:08:38 | [Mutex] received everything.

2022-10-13 23:08:38 | [Mutex] isItemNotified: received:node:14df0d16-55ba-4acc-981d-360898d44c2d:localhost:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:Node 4a622068-8b59-414c-b020-98f8bd2ecfc0 :: false

2022-10-13 23:08:38 | [Mutex] waiting for: [received:nodes:88163ca0-b96b-4fd9-9a17-f07b3aa89d59:localhost]

2022-10-13 23:08:38 | [Mutex] received everything.

2022-10-13 23:08:38 | [Mutex] isItemNotified: received:node:88163ca0-b96b-4fd9-9a17-f07b3aa89d59:localhost:node-4a622068-8b59-414c-b020-98f8bd2ecfc0:Node 4a622068-8b59-414c-b020-98f8bd2ecfc0 :: false

publishItemsToNodes 0.049s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "entry": "<test>item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f</test>",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f"
}

2022-10-13 23:08:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f"
}

2022-10-13 23:08:35 | [Mutex] received everything.

2022-10-13 23:08:35 | [Mutex] isItemNotified: published:item:notifieditem-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f"
}

2022-10-13 23:08:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f"
}

2022-10-13 23:08:35 | [Mutex] received everything.

2022-10-13 23:08:35 | [Mutex] isItemNotified: retracted:item:notifieditem-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f"
}

2022-10-13 23:08:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "item-id": "item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f",
    "item": [
        "<item id=\"item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f\"><test>item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f</test></item>"
    ]
}

2022-10-13 23:08:35 | [Mutex] notify: [retrieved:item:item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f:payload-matches:true:localhost]

2022-10-13 23:08:35 | [Mutex] received everything.

2022-10-13 23:08:35 | [Mutex] isItemNotified: retrieved:item:item-779bfea8-b5f6-4abf-ae8a-70c0bad2aa4f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-13 23:08:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
        "test",
        "node-0f4f7a78-5aa8-4ab1-8ee3-e1fc77b1f4ae"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4a622068-8b59-414c-b020-98f8bd2ecfc0)"
}

2022-10-13 23:08:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-10-13 23:08:34 |

2022-10-13 23:08:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:34 | ------------------------------------

2022-10-13 23:08:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-13 23:08:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-10-13 23:08:35 |

2022-10-13 23:08:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 23:08:35 | ------------------------------------

2022-10-13 23:08:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4a622068-8b59-414c-b020-98f8bd2ecfc0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-13 23:08:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}