Generated by TestNG with ReportNG at 22:18 PDT on Sunday 24 July 2022
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.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.078s
2022-07-24 22:33:21 |

2022-07-24 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:21 | ------------------------------------

2022-07-24 22:33:21 | [Mutex] waiting for: [configured:node:node-33ab7291-51ab-40cd-88f6-58146dc62533:node-f9d88863-0709-4b40-aae5-078a511c4275]

2022-07-24 22:33:21 | [Mutex] received everything.

2022-07-24 22:33:21 | [Mutex] isItemNotified: configured:node:node-33ab7291-51ab-40cd-88f6-58146dc62533:node-f9d88863-0709-4b40-aae5-078a511c4275 :: true

2022-07-24 22:33:22 | [Mutex] waiting for: [received:nodes:5e3135c7-beb3-4131-b16e-b78d419b5f39:localhost]

2022-07-24 22:33:22 | [Mutex] received everything.

2022-07-24 22:33:22 | [Mutex] isItemNotified: received:node:5e3135c7-beb3-4131-b16e-b78d419b5f39:localhost:node-33ab7291-51ab-40cd-88f6-58146dc62533:Node 33ab7291-51ab-40cd-88f6-58146dc62533 :: true

2022-07-24 22:33:22 | [Mutex] waiting for: [received:nodes:53438f2b-a5f7-49f2-add3-a4189a17e7b8:localhost]

2022-07-24 22:33:22 | [Mutex] received everything.

2022-07-24 22:33:22 | [Mutex] isItemNotified: received:node:53438f2b-a5f7-49f2-add3-a4189a17e7b8:localhost:node-33ab7291-51ab-40cd-88f6-58146dc62533:Node 33ab7291-51ab-40cd-88f6-58146dc62533 :: false

createNodes 1.605s
2022-07-24 22:33:18 |

2022-07-24 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:18 | ------------------------------------

2022-07-24 22:33:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "pubsub#title": "Node 33ab7291-51ab-40cd-88f6-58146dc62533"
}

2022-07-24 22:33:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:33:20 | [Mutex] waiting for: [received:nodes:63fe03b6-0540-4611-8cfd-73501913d5f0:localhost]

2022-07-24 22:33:20 | [Mutex] waiting for: [received:nodes:63fe03b6-0540-4611-8cfd-73501913d5f0:localhost]

2022-07-24 22:33:20 | [Mutex] received everything.

2022-07-24 22:33:20 | [Mutex] isItemNotified: received:node:63fe03b6-0540-4611-8cfd-73501913d5f0:localhost:node-33ab7291-51ab-40cd-88f6-58146dc62533:Node 33ab7291-51ab-40cd-88f6-58146dc62533 :: true

createSubnodes 1.022s
2022-07-24 22:33:20 |

2022-07-24 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:20 | ------------------------------------

2022-07-24 22:33:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f9d88863-0709-4b40-aae5-078a511c4275",
    "pubsub#title": "Node f9d88863-0709-4b40-aae5-078a511c4275"
}

2022-07-24 22:33:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:33:21 | [Mutex] waiting for: [received:nodes:253cc024-b816-4bf7-8b95-1edd36c53ffd:localhost]

2022-07-24 22:33:21 | [Mutex] received everything.

2022-07-24 22:33:21 | [Mutex] isItemNotified: received:node:253cc024-b816-4bf7-8b95-1edd36c53ffd:localhost:node-f9d88863-0709-4b40-aae5-078a511c4275:Node f9d88863-0709-4b40-aae5-078a511c4275 :: true

deleteNodes 1.025s
2022-07-24 22:33:25 |

2022-07-24 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:25 | ------------------------------------

2022-07-24 22:33:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f9d88863-0709-4b40-aae5-078a511c4275"
}

2022-07-24 22:33:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:33:26 | [Mutex] waiting for: [received:nodes:271eb387-7f32-48a0-ba29-dd54bb629a2c:localhost]

2022-07-24 22:33:26 | [Mutex] waiting for: [received:nodes:271eb387-7f32-48a0-ba29-dd54bb629a2c:localhost]

2022-07-24 22:33:26 | [Mutex] received everything.

2022-07-24 22:33:26 | [Mutex] isItemNotified: received:node:271eb387-7f32-48a0-ba29-dd54bb629a2c:localhost:node-f9d88863-0709-4b40-aae5-078a511c4275:Node f9d88863-0709-4b40-aae5-078a511c4275 :: false

deleteSubnodes 1.025s
2022-07-24 22:33:24 |

2022-07-24 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:24 | ------------------------------------

2022-07-24 22:33:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533"
}

2022-07-24 22:33:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:33:25 | [Mutex] waiting for: [received:nodes:12587dd9-c9c8-4644-a529-f6609e8d135f:localhost]

2022-07-24 22:33:25 | [Mutex] received everything.

2022-07-24 22:33:25 | [Mutex] isItemNotified: received:node:12587dd9-c9c8-4644-a529-f6609e8d135f:localhost:node-33ab7291-51ab-40cd-88f6-58146dc62533:Node 33ab7291-51ab-40cd-88f6-58146dc62533 :: false

2022-07-24 22:33:25 | [Mutex] waiting for: [received:nodes:2f8a20b8-6fb7-4e96-b644-4d65b6351f9a:localhost]

2022-07-24 22:33:25 | [Mutex] received everything.

2022-07-24 22:33:25 | [Mutex] isItemNotified: received:node:2f8a20b8-6fb7-4e96-b644-4d65b6351f9a:localhost:node-33ab7291-51ab-40cd-88f6-58146dc62533:Node 33ab7291-51ab-40cd-88f6-58146dc62533 :: false

publishItemsToNodes 0.081s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "entry": "<test>item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f</test>",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f"
}

2022-07-24 22:33:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f"
}

2022-07-24 22:33:23 | [Mutex] waiting for: [published:item:notifieditem-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:admin@test-domain.com]

2022-07-24 22:33:23 | [Mutex] received everything.

2022-07-24 22:33:23 | [Mutex] isItemNotified: published:item:notifieditem-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f"
}

2022-07-24 22:33:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f"
}

2022-07-24 22:33:23 | [Mutex] waiting for: [retracted:item:notifieditem-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:admin@test-domain.com]

2022-07-24 22:33:23 | [Mutex] received everything.

2022-07-24 22:33:23 | [Mutex] isItemNotified: retracted:item:notifieditem-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f"
}

2022-07-24 22:33:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "item-id": "item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f",
    "item": [
        "<item id=\"item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f\"><test>item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f</test></item>"
    ]
}

2022-07-24 22:33:23 | [Mutex] notify: [retrieved:item:item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:payload-matches:true:localhost]

2022-07-24 22:33:23 | [Mutex] received everything.

2022-07-24 22:33:23 | [Mutex] isItemNotified: retrieved:item:item-8c0a9cf0-3a9b-4145-8be9-a8754f412b3f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-24 22:33:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f9d88863-0709-4b40-aae5-078a511c4275",
        "test",
        "node-33ab7291-51ab-40cd-88f6-58146dc62533"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-33ab7291-51ab-40cd-88f6-58146dc62533)"
}

2022-07-24 22:33:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-24 22:33:22 |

2022-07-24 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:22 | ------------------------------------

2022-07-24 22:33:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-24 22:33:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-07-24 22:33:23 |

2022-07-24 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:33:23 | ------------------------------------

2022-07-24 22:33:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-33ab7291-51ab-40cd-88f6-58146dc62533",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-24 22:33:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}