Generated by TestNG with ReportNG at 22:47 PDT on Saturday 18 March 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.547s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-03-18 23:01:43 |

2023-03-18 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:43 | ------------------------------------

2023-03-18 23:01:43 | [Mutex] waiting for: [configured:node:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8]

2023-03-18 23:01:43 | [Mutex] received everything.

2023-03-18 23:01:43 | [Mutex] isItemNotified: configured:node:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8 :: true

2023-03-18 23:01:44 | [Mutex] waiting for: [received:nodes:025d1d28-da5a-4506-a7ac-bd1f0ab138cc:localhost]

2023-03-18 23:01:44 | [Mutex] received everything.

2023-03-18 23:01:44 | [Mutex] isItemNotified: received:node:025d1d28-da5a-4506-a7ac-bd1f0ab138cc:localhost:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73 :: true

2023-03-18 23:01:44 | [Mutex] waiting for: [received:nodes:aefad196-5c60-4abc-825b-577ac73b2b8f:localhost]

2023-03-18 23:01:44 | [Mutex] waiting for: [received:nodes:aefad196-5c60-4abc-825b-577ac73b2b8f:localhost]

2023-03-18 23:01:44 | [Mutex] waiting for: [received:nodes:aefad196-5c60-4abc-825b-577ac73b2b8f:localhost]

2023-03-18 23:01:44 | [Mutex] received everything.

2023-03-18 23:01:44 | [Mutex] isItemNotified: received:node:aefad196-5c60-4abc-825b-577ac73b2b8f:localhost:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73 :: false

createNodes 1.573s
2023-03-18 23:01:41 |

2023-03-18 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:41 | ------------------------------------

2023-03-18 23:01:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "pubsub#title": "Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73"
}

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

2023-03-18 23:01:42 | [Mutex] waiting for: [received:nodes:d0b1b4c7-8f7b-4dbd-9de9-e28c25cc78a3:localhost]

2023-03-18 23:01:42 | [Mutex] waiting for: [received:nodes:d0b1b4c7-8f7b-4dbd-9de9-e28c25cc78a3:localhost]

2023-03-18 23:01:42 | [Mutex] waiting for: [received:nodes:d0b1b4c7-8f7b-4dbd-9de9-e28c25cc78a3:localhost]

2023-03-18 23:01:42 | [Mutex] waiting for: [received:nodes:d0b1b4c7-8f7b-4dbd-9de9-e28c25cc78a3:localhost]

2023-03-18 23:01:42 | [Mutex] received everything.

2023-03-18 23:01:42 | [Mutex] isItemNotified: received:node:d0b1b4c7-8f7b-4dbd-9de9-e28c25cc78a3:localhost:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73 :: true

createSubnodes 1.019s
2023-03-18 23:01:42 |

2023-03-18 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:42 | ------------------------------------

2023-03-18 23:01:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8",
    "pubsub#title": "Node 513998d3-f3a3-4ecb-aa9c-433fb2f519d8"
}

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

2023-03-18 23:01:43 | [Mutex] waiting for: [received:nodes:380c607b-0ddc-4d1f-b474-0e072a287bd1:localhost]

2023-03-18 23:01:43 | [Mutex] waiting for: [received:nodes:380c607b-0ddc-4d1f-b474-0e072a287bd1:localhost]

2023-03-18 23:01:43 | [Mutex] waiting for: [received:nodes:380c607b-0ddc-4d1f-b474-0e072a287bd1:localhost]

2023-03-18 23:01:43 | [Mutex] waiting for: [received:nodes:380c607b-0ddc-4d1f-b474-0e072a287bd1:localhost]

2023-03-18 23:01:43 | [Mutex] received everything.

2023-03-18 23:01:43 | [Mutex] isItemNotified: received:node:380c607b-0ddc-4d1f-b474-0e072a287bd1:localhost:node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8:Node 513998d3-f3a3-4ecb-aa9c-433fb2f519d8 :: true

deleteNodes 1.020s
2023-03-18 23:01:48 |

2023-03-18 23:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:48 | ------------------------------------

2023-03-18 23:01:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8"
}

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

2023-03-18 23:01:49 | [Mutex] waiting for: [received:nodes:8aa6933d-a99e-40d7-8774-b3624d3f89ac:localhost]

2023-03-18 23:01:49 | [Mutex] waiting for: [received:nodes:8aa6933d-a99e-40d7-8774-b3624d3f89ac:localhost]

2023-03-18 23:01:49 | [Mutex] waiting for: [received:nodes:8aa6933d-a99e-40d7-8774-b3624d3f89ac:localhost]

2023-03-18 23:01:49 | [Mutex] received everything.

2023-03-18 23:01:49 | [Mutex] isItemNotified: received:node:8aa6933d-a99e-40d7-8774-b3624d3f89ac:localhost:node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8:Node 513998d3-f3a3-4ecb-aa9c-433fb2f519d8 :: false

deleteSubnodes 1.021s
2023-03-18 23:01:47 |

2023-03-18 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:47 | ------------------------------------

2023-03-18 23:01:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73"
}

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

2023-03-18 23:01:48 | [Mutex] waiting for: [received:nodes:8fa8add6-8bfa-4bcb-9344-7d6e63f1a693:localhost]

2023-03-18 23:01:48 | [Mutex] waiting for: [received:nodes:8fa8add6-8bfa-4bcb-9344-7d6e63f1a693:localhost]

2023-03-18 23:01:48 | [Mutex] waiting for: [received:nodes:8fa8add6-8bfa-4bcb-9344-7d6e63f1a693:localhost]

2023-03-18 23:01:48 | [Mutex] waiting for: [received:nodes:8fa8add6-8bfa-4bcb-9344-7d6e63f1a693:localhost]

2023-03-18 23:01:48 | [Mutex] received everything.

2023-03-18 23:01:48 | [Mutex] isItemNotified: received:node:8fa8add6-8bfa-4bcb-9344-7d6e63f1a693:localhost:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73 :: false

2023-03-18 23:01:48 | [Mutex] waiting for: [received:nodes:54887c75-ec73-4e90-8ce6-6fc520ccdf4a:localhost]

2023-03-18 23:01:48 | [Mutex] received everything.

2023-03-18 23:01:48 | [Mutex] isItemNotified: received:node:54887c75-ec73-4e90-8ce6-6fc520ccdf4a:localhost:node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73:Node a94bd11c-9b2e-465d-b6d3-495a1ddb7f73 :: false

publishItemsToNodes 0.042s
2023-03-18 23:01:45 |

2023-03-18 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:45 | ------------------------------------

2023-03-18 23:01:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "entry": "<test>item-c8f81432-d9d0-4a63-93b0-17696f77d2dd</test>",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd"
}

2023-03-18 23:01:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd"
}

2023-03-18 23:01:45 | [Mutex] waiting for: [published:item:notifieditem-c8f81432-d9d0-4a63-93b0-17696f77d2dd:admin@test-domain.com]

2023-03-18 23:01:45 | [Mutex] received everything.

2023-03-18 23:01:45 | [Mutex] isItemNotified: published:item:notifieditem-c8f81432-d9d0-4a63-93b0-17696f77d2dd:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-03-18 23:01:45 |

2023-03-18 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:45 | ------------------------------------

2023-03-18 23:01:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd"
}

2023-03-18 23:01:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd"
}

2023-03-18 23:01:46 | [Mutex] received everything.

2023-03-18 23:01:46 | [Mutex] isItemNotified: retracted:item:notifieditem-c8f81432-d9d0-4a63-93b0-17696f77d2dd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2023-03-18 23:01:45 |

2023-03-18 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:45 | ------------------------------------

2023-03-18 23:01:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd"
}

2023-03-18 23:01:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "item-id": "item-c8f81432-d9d0-4a63-93b0-17696f77d2dd",
    "item": [
        "<item id=\"item-c8f81432-d9d0-4a63-93b0-17696f77d2dd\"><test>item-c8f81432-d9d0-4a63-93b0-17696f77d2dd</test></item>"
    ]
}

2023-03-18 23:01:45 | [Mutex] notify: [retrieved:item:item-c8f81432-d9d0-4a63-93b0-17696f77d2dd:payload-matches:true:localhost]

2023-03-18 23:01:45 | [Mutex] received everything.

2023-03-18 23:01:45 | [Mutex] isItemNotified: retrieved:item:item-c8f81432-d9d0-4a63-93b0-17696f77d2dd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-03-18 23:01:45 |

2023-03-18 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:45 | ------------------------------------

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

2023-03-18 23:01:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
        "test",
        "node-513998d3-f3a3-4ecb-aa9c-433fb2f519d8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-18 23:01:45 |

2023-03-18 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:45 | ------------------------------------

2023-03-18 23:01:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73)"
}

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

subscribeNodes 1.009s
2023-03-18 23:01:44 |

2023-03-18 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:44 | ------------------------------------

2023-03-18 23:01:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.068s
2023-03-18 23:01:46 |

2023-03-18 23:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 23:01:46 | ------------------------------------

2023-03-18 23:01:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a94bd11c-9b2e-465d-b6d3-495a1ddb7f73",
    "jids": [
        "admin@test-domain.com"
    ]
}

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