Generated by TestNG with ReportNG at 15:18 PST on Friday 24 February 2023
root@7c41cec37518 / 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.611s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2023-02-24 15:32:12 |

2023-02-24 15:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:12 | ------------------------------------

2023-02-24 15:32:12 | [Mutex] waiting for: [configured:node:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a]

2023-02-24 15:32:12 | [Mutex] received everything.

2023-02-24 15:32:12 | [Mutex] isItemNotified: configured:node:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a :: true

2023-02-24 15:32:13 | [Mutex] waiting for: [received:nodes:57364a0a-7009-490c-ba96-87a085f04607:localhost]

2023-02-24 15:32:13 | [Mutex] received everything.

2023-02-24 15:32:13 | [Mutex] isItemNotified: received:node:57364a0a-7009-490c-ba96-87a085f04607:localhost:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:Node 0b5a3648-a375-490e-b57d-9fc3496c9d71 :: true

2023-02-24 15:32:13 | [Mutex] waiting for: [received:nodes:5dcf688f-80a5-4bef-a032-dba398ef1ebf:localhost]

2023-02-24 15:32:13 | [Mutex] waiting for: [received:nodes:5dcf688f-80a5-4bef-a032-dba398ef1ebf:localhost]

2023-02-24 15:32:13 | [Mutex] waiting for: [received:nodes:5dcf688f-80a5-4bef-a032-dba398ef1ebf:localhost]

2023-02-24 15:32:13 | [Mutex] waiting for: [received:nodes:5dcf688f-80a5-4bef-a032-dba398ef1ebf:localhost]

2023-02-24 15:32:13 | [Mutex] received everything.

2023-02-24 15:32:13 | [Mutex] isItemNotified: received:node:5dcf688f-80a5-4bef-a032-dba398ef1ebf:localhost:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:Node 0b5a3648-a375-490e-b57d-9fc3496c9d71 :: false

createNodes 1.639s
2023-02-24 15:32:09 |

2023-02-24 15:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:09 | ------------------------------------

2023-02-24 15:32:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "pubsub#title": "Node 0b5a3648-a375-490e-b57d-9fc3496c9d71"
}

2023-02-24 15:32:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:11 | [Mutex] waiting for: [received:nodes:76b1740c-ead7-402f-9a6b-00a692d96a00:localhost]

2023-02-24 15:32:11 | [Mutex] waiting for: [received:nodes:76b1740c-ead7-402f-9a6b-00a692d96a00:localhost]

2023-02-24 15:32:11 | [Mutex] waiting for: [received:nodes:76b1740c-ead7-402f-9a6b-00a692d96a00:localhost]

2023-02-24 15:32:11 | [Mutex] waiting for: [received:nodes:76b1740c-ead7-402f-9a6b-00a692d96a00:localhost]

2023-02-24 15:32:11 | [Mutex] received everything.

2023-02-24 15:32:11 | [Mutex] isItemNotified: received:node:76b1740c-ead7-402f-9a6b-00a692d96a00:localhost:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:Node 0b5a3648-a375-490e-b57d-9fc3496c9d71 :: true

createSubnodes 1.020s
2023-02-24 15:32:11 |

2023-02-24 15:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:11 | ------------------------------------

2023-02-24 15:32:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a",
    "pubsub#title": "Node c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a"
}

2023-02-24 15:32:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:12 | [Mutex] waiting for: [received:nodes:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost]

2023-02-24 15:32:12 | [Mutex] waiting for: [received:nodes:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost]

2023-02-24 15:32:12 | [Mutex] waiting for: [received:nodes:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost]

2023-02-24 15:32:12 | [Mutex] waiting for: [received:nodes:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost]

2023-02-24 15:32:12 | [Mutex] waiting for: [received:nodes:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost]

2023-02-24 15:32:12 | [Mutex] received everything.

2023-02-24 15:32:12 | [Mutex] isItemNotified: received:node:8e4e0e28-2494-40fa-bb0f-d79a13ccd20b:localhost:node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a:Node c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a :: true

deleteNodes 1.017s
2023-02-24 15:32:16 |

2023-02-24 15:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:16 | ------------------------------------

2023-02-24 15:32:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a"
}

2023-02-24 15:32:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:17 | [Mutex] waiting for: [received:nodes:1d22f282-52f7-4db2-8638-c3e303f16625:localhost]

2023-02-24 15:32:17 | [Mutex] waiting for: [received:nodes:1d22f282-52f7-4db2-8638-c3e303f16625:localhost]

2023-02-24 15:32:17 | [Mutex] waiting for: [received:nodes:1d22f282-52f7-4db2-8638-c3e303f16625:localhost]

2023-02-24 15:32:17 | [Mutex] received everything.

2023-02-24 15:32:17 | [Mutex] isItemNotified: received:node:1d22f282-52f7-4db2-8638-c3e303f16625:localhost:node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a:Node c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a :: false

deleteSubnodes 1.028s
2023-02-24 15:32:15 |

2023-02-24 15:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:15 | ------------------------------------

2023-02-24 15:32:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71"
}

2023-02-24 15:32:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:32:16 | [Mutex] waiting for: [received:nodes:c296c01f-06db-4a1a-801d-27234cc922b5:localhost]

2023-02-24 15:32:16 | [Mutex] waiting for: [received:nodes:c296c01f-06db-4a1a-801d-27234cc922b5:localhost]

2023-02-24 15:32:16 | [Mutex] received everything.

2023-02-24 15:32:16 | [Mutex] isItemNotified: received:node:c296c01f-06db-4a1a-801d-27234cc922b5:localhost:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:Node 0b5a3648-a375-490e-b57d-9fc3496c9d71 :: false

2023-02-24 15:32:16 | [Mutex] waiting for: [received:nodes:626c51dc-30f9-4d66-8de1-7082e96bb210:localhost]

2023-02-24 15:32:16 | [Mutex] received everything.

2023-02-24 15:32:16 | [Mutex] isItemNotified: received:node:626c51dc-30f9-4d66-8de1-7082e96bb210:localhost:node-0b5a3648-a375-490e-b57d-9fc3496c9d71:Node 0b5a3648-a375-490e-b57d-9fc3496c9d71 :: false

publishItemsToNodes 0.043s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "entry": "<test>item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2</test>",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2"
}

2023-02-24 15:32:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2"
}

2023-02-24 15:32:14 | [Mutex] waiting for: [published:item:notifieditem-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2:admin@test-domain.com]

2023-02-24 15:32:14 | [Mutex] received everything.

2023-02-24 15:32:14 | [Mutex] isItemNotified: published:item:notifieditem-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2"
}

2023-02-24 15:32:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2"
}

2023-02-24 15:32:14 | [Mutex] received everything.

2023-02-24 15:32:14 | [Mutex] isItemNotified: retracted:item:notifieditem-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2"
}

2023-02-24 15:32:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "item-id": "item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2",
    "item": [
        "<item id=\"item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2\"><test>item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2</test></item>"
    ]
}

2023-02-24 15:32:14 | [Mutex] notify: [retrieved:item:item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2:payload-matches:true:localhost]

2023-02-24 15:32:14 | [Mutex] received everything.

2023-02-24 15:32:14 | [Mutex] isItemNotified: retrieved:item:item-0f87fd05-9a11-4ace-8315-e00d8dbdcaf2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-24 15:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c7c8508b-3c91-41ed-b8f5-cab30ca6ba1a",
        "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0b5a3648-a375-490e-b57d-9fc3496c9d71)"
}

2023-02-24 15:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-02-24 15:32:13 |

2023-02-24 15:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:13 | ------------------------------------

2023-02-24 15:32:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:32:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-02-24 15:32:14 |

2023-02-24 15:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:32:14 | ------------------------------------

2023-02-24 15:32:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0b5a3648-a375-490e-b57d-9fc3496c9d71",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:32:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}