Generated by TestNG with ReportNG at 22:23 PDT on Sunday 22 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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 : 8.678s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2022-05-22 22:39:14 |

2022-05-22 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:14 | ------------------------------------

2022-05-22 22:39:14 | [Mutex] waiting for: [configured:node:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:node-caad8e17-60f4-435a-a72d-69021d841b71]

2022-05-22 22:39:14 | [Mutex] received everything.

2022-05-22 22:39:14 | [Mutex] isItemNotified: configured:node:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:node-caad8e17-60f4-435a-a72d-69021d841b71 :: true

2022-05-22 22:39:15 | [Mutex] waiting for: [received:nodes:df42c4d7-445e-4726-bfb4-232e68beef5a:localhost]

2022-05-22 22:39:15 | [Mutex] received everything.

2022-05-22 22:39:15 | [Mutex] isItemNotified: received:node:df42c4d7-445e-4726-bfb4-232e68beef5a:localhost:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87 :: true

2022-05-22 22:39:15 | [Mutex] waiting for: [received:nodes:3c85e078-020c-40ae-803f-84ca3a1380c4:localhost]

2022-05-22 22:39:15 | [Mutex] received everything.

2022-05-22 22:39:15 | [Mutex] isItemNotified: received:node:3c85e078-020c-40ae-803f-84ca3a1380c4:localhost:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87 :: false

createNodes 1.579s
2022-05-22 22:39:11 |

2022-05-22 22:39:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:11 | ------------------------------------

2022-05-22 22:39:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "pubsub#title": "Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87"
}

2022-05-22 22:39:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-22 22:39:13 | [Mutex] waiting for: [received:nodes:c31efd6d-8ffd-4b06-b633-60f83289d005:localhost]

2022-05-22 22:39:13 | [Mutex] received everything.

2022-05-22 22:39:13 | [Mutex] isItemNotified: received:node:c31efd6d-8ffd-4b06-b633-60f83289d005:localhost:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87 :: true

createSubnodes 1.024s
2022-05-22 22:39:13 |

2022-05-22 22:39:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:13 | ------------------------------------

2022-05-22 22:39:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-caad8e17-60f4-435a-a72d-69021d841b71",
    "pubsub#title": "Node caad8e17-60f4-435a-a72d-69021d841b71"
}

2022-05-22 22:39:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-22 22:39:14 | [Mutex] waiting for: [received:nodes:663a9314-bf7a-4517-a069-e64736160c8a:localhost]

2022-05-22 22:39:14 | [Mutex] waiting for: [received:nodes:663a9314-bf7a-4517-a069-e64736160c8a:localhost]

2022-05-22 22:39:14 | [Mutex] received everything.

2022-05-22 22:39:14 | [Mutex] isItemNotified: received:node:663a9314-bf7a-4517-a069-e64736160c8a:localhost:node-caad8e17-60f4-435a-a72d-69021d841b71:Node caad8e17-60f4-435a-a72d-69021d841b71 :: true

deleteNodes 1.021s
2022-05-22 22:39:18 |

2022-05-22 22:39:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:18 | ------------------------------------

2022-05-22 22:39:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-caad8e17-60f4-435a-a72d-69021d841b71"
}

2022-05-22 22:39:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-22 22:39:19 | [Mutex] waiting for: [received:nodes:72ec8bd2-cc80-4914-9e26-6e3e50e66246:localhost]

2022-05-22 22:39:19 | [Mutex] waiting for: [received:nodes:72ec8bd2-cc80-4914-9e26-6e3e50e66246:localhost]

2022-05-22 22:39:19 | [Mutex] received everything.

2022-05-22 22:39:19 | [Mutex] isItemNotified: received:node:72ec8bd2-cc80-4914-9e26-6e3e50e66246:localhost:node-caad8e17-60f4-435a-a72d-69021d841b71:Node caad8e17-60f4-435a-a72d-69021d841b71 :: false

deleteSubnodes 1.028s
2022-05-22 22:39:17 |

2022-05-22 22:39:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:17 | ------------------------------------

2022-05-22 22:39:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87"
}

2022-05-22 22:39:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-22 22:39:18 | [Mutex] waiting for: [received:nodes:5356b52f-24ad-419d-80f7-6a95b2d9f766:localhost]

2022-05-22 22:39:18 | [Mutex] received everything.

2022-05-22 22:39:18 | [Mutex] isItemNotified: received:node:5356b52f-24ad-419d-80f7-6a95b2d9f766:localhost:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87 :: false

2022-05-22 22:39:18 | [Mutex] waiting for: [received:nodes:bb6acde2-51f7-4c34-8182-ac9d9fac4ec0:localhost]

2022-05-22 22:39:18 | [Mutex] received everything.

2022-05-22 22:39:18 | [Mutex] isItemNotified: received:node:bb6acde2-51f7-4c34-8182-ac9d9fac4ec0:localhost:node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87:Node f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87 :: false

publishItemsToNodes 0.024s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "entry": "<test>item-62419a55-9cdb-4e4c-8827-0961e45cde57</test>",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57"
}

2022-05-22 22:39:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57"
}

2022-05-22 22:39:16 | [Mutex] waiting for: [published:item:notifieditem-62419a55-9cdb-4e4c-8827-0961e45cde57:admin@test-domain.com]

2022-05-22 22:39:16 | [Mutex] received everything.

2022-05-22 22:39:16 | [Mutex] isItemNotified: published:item:notifieditem-62419a55-9cdb-4e4c-8827-0961e45cde57:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57"
}

2022-05-22 22:39:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57"
}

2022-05-22 22:39:16 | [Mutex] received everything.

2022-05-22 22:39:16 | [Mutex] isItemNotified: retracted:item:notifieditem-62419a55-9cdb-4e4c-8827-0961e45cde57:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57"
}

2022-05-22 22:39:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "item-id": "item-62419a55-9cdb-4e4c-8827-0961e45cde57",
    "item": [
        "<item id=\"item-62419a55-9cdb-4e4c-8827-0961e45cde57\"><test>item-62419a55-9cdb-4e4c-8827-0961e45cde57</test></item>"
    ]
}

2022-05-22 22:39:16 | [Mutex] notify: [retrieved:item:item-62419a55-9cdb-4e4c-8827-0961e45cde57:payload-matches:true:localhost]

2022-05-22 22:39:16 | [Mutex] received everything.

2022-05-22 22:39:16 | [Mutex] isItemNotified: retrieved:item:item-62419a55-9cdb-4e4c-8827-0961e45cde57:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-22 22:39:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-caad8e17-60f4-435a-a72d-69021d841b71",
        "test",
        "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87)"
}

2022-05-22 22:39:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-05-22 22:39:15 |

2022-05-22 22:39:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:15 | ------------------------------------

2022-05-22 22:39:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-22 22:39:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-05-22 22:39:16 |

2022-05-22 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-22 22:39:16 | ------------------------------------

2022-05-22 22:39:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f2cbfd3e-bcc3-40f9-9229-68e8c3a26e87",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-22 22:39:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}