Generated by TestNG with ReportNG at 21:15 PST on Tuesday 10 January 2023
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.743s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2023-01-10 21:29:49 |

2023-01-10 21:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:49 | ------------------------------------

2023-01-10 21:29:49 | [Mutex] waiting for: [configured:node:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:node-c3bea17c-c07e-42f7-b72f-6f940d571e52]

2023-01-10 21:29:50 | [Mutex] received everything.

2023-01-10 21:29:50 | [Mutex] isItemNotified: configured:node:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:node-c3bea17c-c07e-42f7-b72f-6f940d571e52 :: true

2023-01-10 21:29:51 | [Mutex] waiting for: [received:nodes:75cbd3f0-8343-4eb4-a933-31a095ed1f72:localhost]

2023-01-10 21:29:51 | [Mutex] received everything.

2023-01-10 21:29:51 | [Mutex] isItemNotified: received:node:75cbd3f0-8343-4eb4-a933-31a095ed1f72:localhost:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0 :: true

2023-01-10 21:29:51 | [Mutex] waiting for: [received:nodes:dc1a113d-2e90-4fdc-a681-2046ddb2e4f7:localhost]

2023-01-10 21:29:51 | [Mutex] waiting for: [received:nodes:dc1a113d-2e90-4fdc-a681-2046ddb2e4f7:localhost]

2023-01-10 21:29:51 | [Mutex] waiting for: [received:nodes:dc1a113d-2e90-4fdc-a681-2046ddb2e4f7:localhost]

2023-01-10 21:29:51 | [Mutex] received everything.

2023-01-10 21:29:51 | [Mutex] isItemNotified: received:node:dc1a113d-2e90-4fdc-a681-2046ddb2e4f7:localhost:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0 :: false

createNodes 1.700s
2023-01-10 21:29:47 |

2023-01-10 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:47 | ------------------------------------

2023-01-10 21:29:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "pubsub#title": "Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0"
}

2023-01-10 21:29:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:29:48 | [Mutex] waiting for: [received:nodes:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost]

2023-01-10 21:29:48 | [Mutex] waiting for: [received:nodes:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost]

2023-01-10 21:29:48 | [Mutex] waiting for: [received:nodes:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost]

2023-01-10 21:29:48 | [Mutex] waiting for: [received:nodes:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost]

2023-01-10 21:29:48 | [Mutex] waiting for: [received:nodes:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost]

2023-01-10 21:29:48 | [Mutex] received everything.

2023-01-10 21:29:48 | [Mutex] isItemNotified: received:node:b708a227-c4be-4077-ad4d-aecf1925f5d8:localhost:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0 :: true

createSubnodes 1.022s
2023-01-10 21:29:48 |

2023-01-10 21:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:48 | ------------------------------------

2023-01-10 21:29:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c3bea17c-c07e-42f7-b72f-6f940d571e52",
    "pubsub#title": "Node c3bea17c-c07e-42f7-b72f-6f940d571e52"
}

2023-01-10 21:29:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:29:49 | [Mutex] waiting for: [received:nodes:99915ab2-afa1-4c60-b005-cfc9cb8e2874:localhost]

2023-01-10 21:29:49 | [Mutex] waiting for: [received:nodes:99915ab2-afa1-4c60-b005-cfc9cb8e2874:localhost]

2023-01-10 21:29:49 | [Mutex] waiting for: [received:nodes:99915ab2-afa1-4c60-b005-cfc9cb8e2874:localhost]

2023-01-10 21:29:49 | [Mutex] waiting for: [received:nodes:99915ab2-afa1-4c60-b005-cfc9cb8e2874:localhost]

2023-01-10 21:29:49 | [Mutex] received everything.

2023-01-10 21:29:49 | [Mutex] isItemNotified: received:node:99915ab2-afa1-4c60-b005-cfc9cb8e2874:localhost:node-c3bea17c-c07e-42f7-b72f-6f940d571e52:Node c3bea17c-c07e-42f7-b72f-6f940d571e52 :: true

deleteNodes 1.025s
2023-01-10 21:29:54 |

2023-01-10 21:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:54 | ------------------------------------

2023-01-10 21:29:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c3bea17c-c07e-42f7-b72f-6f940d571e52"
}

2023-01-10 21:29:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:29:55 | [Mutex] waiting for: [received:nodes:afe44bba-c465-4dc3-b561-67e8bc59530b:localhost]

2023-01-10 21:29:55 | [Mutex] waiting for: [received:nodes:afe44bba-c465-4dc3-b561-67e8bc59530b:localhost]

2023-01-10 21:29:55 | [Mutex] waiting for: [received:nodes:afe44bba-c465-4dc3-b561-67e8bc59530b:localhost]

2023-01-10 21:29:55 | [Mutex] received everything.

2023-01-10 21:29:55 | [Mutex] isItemNotified: received:node:afe44bba-c465-4dc3-b561-67e8bc59530b:localhost:node-c3bea17c-c07e-42f7-b72f-6f940d571e52:Node c3bea17c-c07e-42f7-b72f-6f940d571e52 :: false

deleteSubnodes 1.023s
2023-01-10 21:29:53 |

2023-01-10 21:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:53 | ------------------------------------

2023-01-10 21:29:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0"
}

2023-01-10 21:29:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:29:54 | [Mutex] waiting for: [received:nodes:239cec80-efd8-46ee-af39-193db7a4613b:localhost]

2023-01-10 21:29:54 | [Mutex] waiting for: [received:nodes:239cec80-efd8-46ee-af39-193db7a4613b:localhost]

2023-01-10 21:29:54 | [Mutex] waiting for: [received:nodes:239cec80-efd8-46ee-af39-193db7a4613b:localhost]

2023-01-10 21:29:54 | [Mutex] received everything.

2023-01-10 21:29:54 | [Mutex] isItemNotified: received:node:239cec80-efd8-46ee-af39-193db7a4613b:localhost:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0 :: false

2023-01-10 21:29:54 | [Mutex] waiting for: [received:nodes:c360599a-a7b8-43a2-a2d0-fe5e3815edb6:localhost]

2023-01-10 21:29:54 | [Mutex] received everything.

2023-01-10 21:29:54 | [Mutex] isItemNotified: received:node:c360599a-a7b8-43a2-a2d0-fe5e3815edb6:localhost:node-7f0101f6-1ff3-468b-b912-17e9502e6ed0:Node 7f0101f6-1ff3-468b-b912-17e9502e6ed0 :: false

publishItemsToNodes 0.040s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "entry": "<test>item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef</test>",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef"
}

2023-01-10 21:29:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef"
}

2023-01-10 21:29:52 | [Mutex] received everything.

2023-01-10 21:29:52 | [Mutex] isItemNotified: published:item:notifieditem-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef"
}

2023-01-10 21:29:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef"
}

2023-01-10 21:29:52 | [Mutex] received everything.

2023-01-10 21:29:52 | [Mutex] isItemNotified: retracted:item:notifieditem-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef"
}

2023-01-10 21:29:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "item-id": "item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef",
    "item": [
        "<item id=\"item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef\"><test>item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef</test></item>"
    ]
}

2023-01-10 21:29:52 | [Mutex] notify: [retrieved:item:item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef:payload-matches:true:localhost]

2023-01-10 21:29:52 | [Mutex] received everything.

2023-01-10 21:29:52 | [Mutex] isItemNotified: retrieved:item:item-7a22abcf-6abe-44a8-bdcf-ba0cedeec6ef:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-01-10 21:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
        "test",
        "node-c3bea17c-c07e-42f7-b72f-6f940d571e52"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7f0101f6-1ff3-468b-b912-17e9502e6ed0)"
}

2023-01-10 21:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-01-10 21:29:51 |

2023-01-10 21:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:51 | ------------------------------------

2023-01-10 21:29:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 21:29:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-01-10 21:29:52 |

2023-01-10 21:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:29:52 | ------------------------------------

2023-01-10 21:29:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7f0101f6-1ff3-468b-b912-17e9502e6ed0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 21:29:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}