Generated by TestNG with ReportNG at 22:46 PDT on Thursday 04 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.554s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2023-05-04 23:01:24 |

2023-05-04 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:24 | ------------------------------------

2023-05-04 23:01:24 | [Mutex] waiting for: [configured:node:node-3d931697-57df-4c94-89b2-25b99dfd47a9:node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8]

2023-05-04 23:01:24 | [Mutex] received everything.

2023-05-04 23:01:24 | [Mutex] isItemNotified: configured:node:node-3d931697-57df-4c94-89b2-25b99dfd47a9:node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8 :: true

2023-05-04 23:01:25 | [Mutex] waiting for: [received:nodes:fccdd66e-9b5d-48f3-88cf-668747a16efe:localhost]

2023-05-04 23:01:25 | [Mutex] received everything.

2023-05-04 23:01:25 | [Mutex] isItemNotified: received:node:fccdd66e-9b5d-48f3-88cf-668747a16efe:localhost:node-3d931697-57df-4c94-89b2-25b99dfd47a9:Node 3d931697-57df-4c94-89b2-25b99dfd47a9 :: true

2023-05-04 23:01:25 | [Mutex] waiting for: [received:nodes:8da8ca8a-2294-441e-ba7f-df60511820bf:localhost]

2023-05-04 23:01:25 | [Mutex] waiting for: [received:nodes:8da8ca8a-2294-441e-ba7f-df60511820bf:localhost]

2023-05-04 23:01:25 | [Mutex] waiting for: [received:nodes:8da8ca8a-2294-441e-ba7f-df60511820bf:localhost]

2023-05-04 23:01:25 | [Mutex] waiting for: [received:nodes:8da8ca8a-2294-441e-ba7f-df60511820bf:localhost]

2023-05-04 23:01:25 | [Mutex] received everything.

2023-05-04 23:01:25 | [Mutex] isItemNotified: received:node:8da8ca8a-2294-441e-ba7f-df60511820bf:localhost:node-3d931697-57df-4c94-89b2-25b99dfd47a9:Node 3d931697-57df-4c94-89b2-25b99dfd47a9 :: false

createNodes 1.612s
2023-05-04 23:01:21 |

2023-05-04 23:01:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:21 | ------------------------------------

2023-05-04 23:01:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "pubsub#title": "Node 3d931697-57df-4c94-89b2-25b99dfd47a9"
}

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

2023-05-04 23:01:23 | [Mutex] waiting for: [received:nodes:54405e10-07a7-400c-b8f4-783a04191e08:localhost]

2023-05-04 23:01:23 | [Mutex] waiting for: [received:nodes:54405e10-07a7-400c-b8f4-783a04191e08:localhost]

2023-05-04 23:01:23 | [Mutex] waiting for: [received:nodes:54405e10-07a7-400c-b8f4-783a04191e08:localhost]

2023-05-04 23:01:23 | [Mutex] waiting for: [received:nodes:54405e10-07a7-400c-b8f4-783a04191e08:localhost]

2023-05-04 23:01:23 | [Mutex] received everything.

2023-05-04 23:01:23 | [Mutex] isItemNotified: received:node:54405e10-07a7-400c-b8f4-783a04191e08:localhost:node-3d931697-57df-4c94-89b2-25b99dfd47a9:Node 3d931697-57df-4c94-89b2-25b99dfd47a9 :: true

createSubnodes 1.021s
2023-05-04 23:01:23 |

2023-05-04 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:23 | ------------------------------------

2023-05-04 23:01:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8",
    "pubsub#title": "Node 43ba5d8b-4380-4a9c-8f17-c3c0510550f8"
}

2023-05-04 23:01:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 23:01:24 | [Mutex] waiting for: [received:nodes:460dddeb-9985-42b7-8c1b-ba725964bdc4:localhost]

2023-05-04 23:01:24 | [Mutex] waiting for: [received:nodes:460dddeb-9985-42b7-8c1b-ba725964bdc4:localhost]

2023-05-04 23:01:24 | [Mutex] waiting for: [received:nodes:460dddeb-9985-42b7-8c1b-ba725964bdc4:localhost]

2023-05-04 23:01:24 | [Mutex] waiting for: [received:nodes:460dddeb-9985-42b7-8c1b-ba725964bdc4:localhost]

2023-05-04 23:01:24 | [Mutex] received everything.

2023-05-04 23:01:24 | [Mutex] isItemNotified: received:node:460dddeb-9985-42b7-8c1b-ba725964bdc4:localhost:node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8:Node 43ba5d8b-4380-4a9c-8f17-c3c0510550f8 :: true

deleteNodes 1.024s
2023-05-04 23:01:28 |

2023-05-04 23:01:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:28 | ------------------------------------

2023-05-04 23:01:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8"
}

2023-05-04 23:01:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 23:01:29 | [Mutex] waiting for: [received:nodes:de414cc5-5a8e-4447-82a2-75a3a5315223:localhost]

2023-05-04 23:01:29 | [Mutex] waiting for: [received:nodes:de414cc5-5a8e-4447-82a2-75a3a5315223:localhost]

2023-05-04 23:01:29 | [Mutex] waiting for: [received:nodes:de414cc5-5a8e-4447-82a2-75a3a5315223:localhost]

2023-05-04 23:01:29 | [Mutex] received everything.

2023-05-04 23:01:29 | [Mutex] isItemNotified: received:node:de414cc5-5a8e-4447-82a2-75a3a5315223:localhost:node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8:Node 43ba5d8b-4380-4a9c-8f17-c3c0510550f8 :: false

deleteSubnodes 1.022s
2023-05-04 23:01:27 |

2023-05-04 23:01:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:27 | ------------------------------------

2023-05-04 23:01:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9"
}

2023-05-04 23:01:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 23:01:28 | [Mutex] waiting for: [received:nodes:83192ad2-a969-4e57-97ff-881086490b7c:localhost]

2023-05-04 23:01:28 | [Mutex] waiting for: [received:nodes:83192ad2-a969-4e57-97ff-881086490b7c:localhost]

2023-05-04 23:01:28 | [Mutex] waiting for: [received:nodes:83192ad2-a969-4e57-97ff-881086490b7c:localhost]

2023-05-04 23:01:28 | [Mutex] received everything.

2023-05-04 23:01:28 | [Mutex] isItemNotified: received:node:83192ad2-a969-4e57-97ff-881086490b7c:localhost:node-3d931697-57df-4c94-89b2-25b99dfd47a9:Node 3d931697-57df-4c94-89b2-25b99dfd47a9 :: false

2023-05-04 23:01:28 | [Mutex] waiting for: [received:nodes:96bed420-0e2b-4e8c-8851-33a071f85912:localhost]

2023-05-04 23:01:28 | [Mutex] received everything.

2023-05-04 23:01:28 | [Mutex] isItemNotified: received:node:96bed420-0e2b-4e8c-8851-33a071f85912:localhost:node-3d931697-57df-4c94-89b2-25b99dfd47a9:Node 3d931697-57df-4c94-89b2-25b99dfd47a9 :: false

publishItemsToNodes 0.082s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "entry": "<test>item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef</test>",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef"
}

2023-05-04 23:01:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef"
}

2023-05-04 23:01:26 | [Mutex] waiting for: [published:item:notifieditem-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef:admin@test-domain.com]

2023-05-04 23:01:26 | [Mutex] received everything.

2023-05-04 23:01:26 | [Mutex] isItemNotified: published:item:notifieditem-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef"
}

2023-05-04 23:01:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef"
}

2023-05-04 23:01:26 | [Mutex] received everything.

2023-05-04 23:01:26 | [Mutex] isItemNotified: retracted:item:notifieditem-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef"
}

2023-05-04 23:01:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "item-id": "item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef",
    "item": [
        "<item id=\"item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef\"><test>item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef</test></item>"
    ]
}

2023-05-04 23:01:26 | [Mutex] notify: [retrieved:item:item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef:payload-matches:true:localhost]

2023-05-04 23:01:26 | [Mutex] received everything.

2023-05-04 23:01:26 | [Mutex] isItemNotified: retrieved:item:item-23bebe0e-8ce8-4a20-ade1-a2c4a98925ef:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-04 23:01:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-43ba5d8b-4380-4a9c-8f17-c3c0510550f8",
        "node-3d931697-57df-4c94-89b2-25b99dfd47a9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3d931697-57df-4c94-89b2-25b99dfd47a9)"
}

2023-05-04 23:01:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2023-05-04 23:01:25 |

2023-05-04 23:01:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:25 | ------------------------------------

2023-05-04 23:01:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-04 23:01:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2023-05-04 23:01:26 |

2023-05-04 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 23:01:26 | ------------------------------------

2023-05-04 23:01:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3d931697-57df-4c94-89b2-25b99dfd47a9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-04 23:01:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}