Generated by TestNG with ReportNG at 22:50 PDT on Thursday 30 June 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.609s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-06-30 23:11:47 |

2022-06-30 23:11:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:47 | ------------------------------------

2022-06-30 23:11:47 | [Mutex] waiting for: [configured:node:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:node-0de6b9bc-d90a-459e-be31-bab5558d1de5]

2022-06-30 23:11:47 | [Mutex] received everything.

2022-06-30 23:11:47 | [Mutex] isItemNotified: configured:node:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:node-0de6b9bc-d90a-459e-be31-bab5558d1de5 :: true

2022-06-30 23:11:48 | [Mutex] waiting for: [received:nodes:602adab2-8562-4c03-a129-6beeec500e53:localhost]

2022-06-30 23:11:48 | [Mutex] received everything.

2022-06-30 23:11:48 | [Mutex] isItemNotified: received:node:602adab2-8562-4c03-a129-6beeec500e53:localhost:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:Node 08058460-cd4f-49a5-91dc-c1c53a06fac3 :: true

2022-06-30 23:11:48 | [Mutex] waiting for: [received:nodes:a9e1bb5b-7dea-4576-8526-050b971520e1:localhost]

2022-06-30 23:11:48 | [Mutex] received everything.

2022-06-30 23:11:48 | [Mutex] isItemNotified: received:node:a9e1bb5b-7dea-4576-8526-050b971520e1:localhost:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:Node 08058460-cd4f-49a5-91dc-c1c53a06fac3 :: false

createNodes 1.527s
2022-06-30 23:11:44 |

2022-06-30 23:11:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:44 | ------------------------------------

2022-06-30 23:11:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "pubsub#title": "Node 08058460-cd4f-49a5-91dc-c1c53a06fac3"
}

2022-06-30 23:11:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 23:11:46 | [Mutex] waiting for: [received:nodes:03cfaeb8-8412-42c5-b61a-21eaa166982e:localhost]

2022-06-30 23:11:46 | [Mutex] received everything.

2022-06-30 23:11:46 | [Mutex] isItemNotified: received:node:03cfaeb8-8412-42c5-b61a-21eaa166982e:localhost:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:Node 08058460-cd4f-49a5-91dc-c1c53a06fac3 :: true

createSubnodes 1.024s
2022-06-30 23:11:46 |

2022-06-30 23:11:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:46 | ------------------------------------

2022-06-30 23:11:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0de6b9bc-d90a-459e-be31-bab5558d1de5",
    "pubsub#title": "Node 0de6b9bc-d90a-459e-be31-bab5558d1de5"
}

2022-06-30 23:11:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 23:11:47 | [Mutex] waiting for: [received:nodes:175899d6-230e-481d-b4b1-16461e189e11:localhost]

2022-06-30 23:11:47 | [Mutex] received everything.

2022-06-30 23:11:47 | [Mutex] isItemNotified: received:node:175899d6-230e-481d-b4b1-16461e189e11:localhost:node-0de6b9bc-d90a-459e-be31-bab5558d1de5:Node 0de6b9bc-d90a-459e-be31-bab5558d1de5 :: true

deleteNodes 1.017s
2022-06-30 23:11:51 |

2022-06-30 23:11:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:51 | ------------------------------------

2022-06-30 23:11:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0de6b9bc-d90a-459e-be31-bab5558d1de5"
}

2022-06-30 23:11:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 23:11:52 | [Mutex] waiting for: [received:nodes:303208eb-90f2-46a3-8186-1baf51773734:localhost]

2022-06-30 23:11:52 | [Mutex] received everything.

2022-06-30 23:11:52 | [Mutex] isItemNotified: received:node:303208eb-90f2-46a3-8186-1baf51773734:localhost:node-0de6b9bc-d90a-459e-be31-bab5558d1de5:Node 0de6b9bc-d90a-459e-be31-bab5558d1de5 :: false

deleteSubnodes 1.023s
2022-06-30 23:11:50 |

2022-06-30 23:11:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:50 | ------------------------------------

2022-06-30 23:11:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3"
}

2022-06-30 23:11:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 23:11:51 | [Mutex] waiting for: [received:nodes:d565ec4c-d313-4c98-9373-f9a4a6f4c7d5:localhost]

2022-06-30 23:11:51 | [Mutex] waiting for: [received:nodes:d565ec4c-d313-4c98-9373-f9a4a6f4c7d5:localhost]

2022-06-30 23:11:51 | [Mutex] received everything.

2022-06-30 23:11:51 | [Mutex] isItemNotified: received:node:d565ec4c-d313-4c98-9373-f9a4a6f4c7d5:localhost:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:Node 08058460-cd4f-49a5-91dc-c1c53a06fac3 :: false

2022-06-30 23:11:51 | [Mutex] waiting for: [received:nodes:923c8ee4-b0ef-45f5-b1bd-491db7ccc8b4:localhost]

2022-06-30 23:11:51 | [Mutex] received everything.

2022-06-30 23:11:51 | [Mutex] isItemNotified: received:node:923c8ee4-b0ef-45f5-b1bd-491db7ccc8b4:localhost:node-08058460-cd4f-49a5-91dc-c1c53a06fac3:Node 08058460-cd4f-49a5-91dc-c1c53a06fac3 :: false

publishItemsToNodes 0.043s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "entry": "<test>item-f292798a-058a-410c-b09d-76aff8dbdbc7</test>",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7"
}

2022-06-30 23:11:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7"
}

2022-06-30 23:11:49 | [Mutex] waiting for: [published:item:notifieditem-f292798a-058a-410c-b09d-76aff8dbdbc7:admin@test-domain.com]

2022-06-30 23:11:49 | [Mutex] received everything.

2022-06-30 23:11:49 | [Mutex] isItemNotified: published:item:notifieditem-f292798a-058a-410c-b09d-76aff8dbdbc7:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7"
}

2022-06-30 23:11:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7"
}

2022-06-30 23:11:49 | [Mutex] received everything.

2022-06-30 23:11:49 | [Mutex] isItemNotified: retracted:item:notifieditem-f292798a-058a-410c-b09d-76aff8dbdbc7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7"
}

2022-06-30 23:11:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "item-id": "item-f292798a-058a-410c-b09d-76aff8dbdbc7",
    "item": [
        "<item id=\"item-f292798a-058a-410c-b09d-76aff8dbdbc7\"><test>item-f292798a-058a-410c-b09d-76aff8dbdbc7</test></item>"
    ]
}

2022-06-30 23:11:49 | [Mutex] notify: [retrieved:item:item-f292798a-058a-410c-b09d-76aff8dbdbc7:payload-matches:true:localhost]

2022-06-30 23:11:49 | [Mutex] received everything.

2022-06-30 23:11:49 | [Mutex] isItemNotified: retrieved:item:item-f292798a-058a-410c-b09d-76aff8dbdbc7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-30 23:11:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0de6b9bc-d90a-459e-be31-bab5558d1de5",
        "test",
        "node-08058460-cd4f-49a5-91dc-c1c53a06fac3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-08058460-cd4f-49a5-91dc-c1c53a06fac3)"
}

2022-06-30 23:11:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-06-30 23:11:48 |

2022-06-30 23:11:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:48 | ------------------------------------

2022-06-30 23:11:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-30 23:11:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2022-06-30 23:11:49 |

2022-06-30 23:11:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 23:11:49 | ------------------------------------

2022-06-30 23:11:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-08058460-cd4f-49a5-91dc-c1c53a06fac3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-30 23:11:49 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}