Generated by TestNG with ReportNG at 22:30 PDT on Monday 29 May 2023
root@8f5c98824654 / Java 17.0.6 (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.627s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2023-05-29 22:45:26 |

2023-05-29 22:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:26 | ------------------------------------

2023-05-29 22:45:26 | [Mutex] waiting for: [configured:node:node-12982679-694e-4765-bc1f-b0a98402b99e:node-6ff45071-ccc6-48b8-8acd-fa2900741f69]

2023-05-29 22:45:26 | [Mutex] received everything.

2023-05-29 22:45:26 | [Mutex] isItemNotified: configured:node:node-12982679-694e-4765-bc1f-b0a98402b99e:node-6ff45071-ccc6-48b8-8acd-fa2900741f69 :: true

2023-05-29 22:45:27 | [Mutex] waiting for: [received:nodes:c49eface-05a2-45b2-a269-913013ec989e:localhost]

2023-05-29 22:45:27 | [Mutex] received everything.

2023-05-29 22:45:27 | [Mutex] isItemNotified: received:node:c49eface-05a2-45b2-a269-913013ec989e:localhost:node-12982679-694e-4765-bc1f-b0a98402b99e:Node 12982679-694e-4765-bc1f-b0a98402b99e :: true

2023-05-29 22:45:27 | [Mutex] waiting for: [received:nodes:cb4cdd24-677a-4442-a222-c04025d3561c:localhost]

2023-05-29 22:45:27 | [Mutex] waiting for: [received:nodes:cb4cdd24-677a-4442-a222-c04025d3561c:localhost]

2023-05-29 22:45:27 | [Mutex] waiting for: [received:nodes:cb4cdd24-677a-4442-a222-c04025d3561c:localhost]

2023-05-29 22:45:27 | [Mutex] received everything.

2023-05-29 22:45:27 | [Mutex] isItemNotified: received:node:cb4cdd24-677a-4442-a222-c04025d3561c:localhost:node-12982679-694e-4765-bc1f-b0a98402b99e:Node 12982679-694e-4765-bc1f-b0a98402b99e :: false

createNodes 1.615s
2023-05-29 22:45:23 |

2023-05-29 22:45:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:23 | ------------------------------------

2023-05-29 22:45:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "pubsub#title": "Node 12982679-694e-4765-bc1f-b0a98402b99e"
}

2023-05-29 22:45:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:45:25 | [Mutex] waiting for: [received:nodes:32bcadc4-0eaa-453c-9396-5c096dcfc1d3:localhost]

2023-05-29 22:45:25 | [Mutex] waiting for: [received:nodes:32bcadc4-0eaa-453c-9396-5c096dcfc1d3:localhost]

2023-05-29 22:45:25 | [Mutex] received everything.

2023-05-29 22:45:25 | [Mutex] isItemNotified: received:node:32bcadc4-0eaa-453c-9396-5c096dcfc1d3:localhost:node-12982679-694e-4765-bc1f-b0a98402b99e:Node 12982679-694e-4765-bc1f-b0a98402b99e :: true

createSubnodes 1.037s
2023-05-29 22:45:25 |

2023-05-29 22:45:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:25 | ------------------------------------

2023-05-29 22:45:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6ff45071-ccc6-48b8-8acd-fa2900741f69",
    "pubsub#title": "Node 6ff45071-ccc6-48b8-8acd-fa2900741f69"
}

2023-05-29 22:45:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:45:26 | [Mutex] waiting for: [received:nodes:645c048a-9649-413e-b400-8180f80525d1:localhost]

2023-05-29 22:45:26 | [Mutex] waiting for: [received:nodes:645c048a-9649-413e-b400-8180f80525d1:localhost]

2023-05-29 22:45:26 | [Mutex] waiting for: [received:nodes:645c048a-9649-413e-b400-8180f80525d1:localhost]

2023-05-29 22:45:26 | [Mutex] waiting for: [received:nodes:645c048a-9649-413e-b400-8180f80525d1:localhost]

2023-05-29 22:45:26 | [Mutex] received everything.

2023-05-29 22:45:26 | [Mutex] isItemNotified: received:node:645c048a-9649-413e-b400-8180f80525d1:localhost:node-6ff45071-ccc6-48b8-8acd-fa2900741f69:Node 6ff45071-ccc6-48b8-8acd-fa2900741f69 :: true

deleteNodes 1.024s
2023-05-29 22:45:30 |

2023-05-29 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:30 | ------------------------------------

2023-05-29 22:45:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6ff45071-ccc6-48b8-8acd-fa2900741f69"
}

2023-05-29 22:45:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:45:31 | [Mutex] waiting for: [received:nodes:a74f43bc-43ea-4563-9359-2bbcbf78e0bb:localhost]

2023-05-29 22:45:31 | [Mutex] waiting for: [received:nodes:a74f43bc-43ea-4563-9359-2bbcbf78e0bb:localhost]

2023-05-29 22:45:31 | [Mutex] waiting for: [received:nodes:a74f43bc-43ea-4563-9359-2bbcbf78e0bb:localhost]

2023-05-29 22:45:31 | [Mutex] received everything.

2023-05-29 22:45:31 | [Mutex] isItemNotified: received:node:a74f43bc-43ea-4563-9359-2bbcbf78e0bb:localhost:node-6ff45071-ccc6-48b8-8acd-fa2900741f69:Node 6ff45071-ccc6-48b8-8acd-fa2900741f69 :: false

deleteSubnodes 1.028s
2023-05-29 22:45:29 |

2023-05-29 22:45:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:29 | ------------------------------------

2023-05-29 22:45:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e"
}

2023-05-29 22:45:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:45:30 | [Mutex] waiting for: [received:nodes:a974d899-e6aa-4d29-8b1d-b8bcbcdf62c4:localhost]

2023-05-29 22:45:30 | [Mutex] waiting for: [received:nodes:a974d899-e6aa-4d29-8b1d-b8bcbcdf62c4:localhost]

2023-05-29 22:45:30 | [Mutex] received everything.

2023-05-29 22:45:30 | [Mutex] isItemNotified: received:node:a974d899-e6aa-4d29-8b1d-b8bcbcdf62c4:localhost:node-12982679-694e-4765-bc1f-b0a98402b99e:Node 12982679-694e-4765-bc1f-b0a98402b99e :: false

2023-05-29 22:45:30 | [Mutex] waiting for: [received:nodes:655d85f2-70b6-4e1f-b310-30d13564427e:localhost]

2023-05-29 22:45:30 | [Mutex] received everything.

2023-05-29 22:45:30 | [Mutex] isItemNotified: received:node:655d85f2-70b6-4e1f-b310-30d13564427e:localhost:node-12982679-694e-4765-bc1f-b0a98402b99e:Node 12982679-694e-4765-bc1f-b0a98402b99e :: false

publishItemsToNodes 0.047s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

2023-05-29 22:45:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "entry": "<test>item-59fbf0e3-83f9-4d43-815b-fa698c3a7298</test>",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298"
}

2023-05-29 22:45:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298"
}

2023-05-29 22:45:28 | [Mutex] waiting for: [published:item:notifieditem-59fbf0e3-83f9-4d43-815b-fa698c3a7298:admin@test-domain.com]

2023-05-29 22:45:28 | [Mutex] received everything.

2023-05-29 22:45:28 | [Mutex] isItemNotified: published:item:notifieditem-59fbf0e3-83f9-4d43-815b-fa698c3a7298:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

2023-05-29 22:45:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298"
}

2023-05-29 22:45:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298"
}

2023-05-29 22:45:28 | [Mutex] received everything.

2023-05-29 22:45:28 | [Mutex] isItemNotified: retracted:item:notifieditem-59fbf0e3-83f9-4d43-815b-fa698c3a7298:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

2023-05-29 22:45:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298"
}

2023-05-29 22:45:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "item-id": "item-59fbf0e3-83f9-4d43-815b-fa698c3a7298",
    "item": [
        "<item id=\"item-59fbf0e3-83f9-4d43-815b-fa698c3a7298\"><test>item-59fbf0e3-83f9-4d43-815b-fa698c3a7298</test></item>"
    ]
}

2023-05-29 22:45:28 | [Mutex] notify: [retrieved:item:item-59fbf0e3-83f9-4d43-815b-fa698c3a7298:payload-matches:true:localhost]

2023-05-29 22:45:28 | [Mutex] received everything.

2023-05-29 22:45:28 | [Mutex] isItemNotified: retrieved:item:item-59fbf0e3-83f9-4d43-815b-fa698c3a7298:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

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

2023-05-29 22:45:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-12982679-694e-4765-bc1f-b0a98402b99e",
        "node-6ff45071-ccc6-48b8-8acd-fa2900741f69"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

2023-05-29 22:45:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-12982679-694e-4765-bc1f-b0a98402b99e)"
}

2023-05-29 22:45:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-05-29 22:45:27 |

2023-05-29 22:45:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:27 | ------------------------------------

2023-05-29 22:45:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 22:45:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-05-29 22:45:28 |

2023-05-29 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:45:28 | ------------------------------------

2023-05-29 22:45:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-12982679-694e-4765-bc1f-b0a98402b99e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 22:45:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}