Generated by TestNG with ReportNG at 22:46 PDT on Sunday 03 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.863s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-07-03 23:00:32 |

2022-07-03 23:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:32 | ------------------------------------

2022-07-03 23:00:32 | [Mutex] waiting for: [configured:node:node-ea54ea99-47e4-4a01-a221-25109b270d09:node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a]

2022-07-03 23:00:32 | [Mutex] received everything.

2022-07-03 23:00:32 | [Mutex] isItemNotified: configured:node:node-ea54ea99-47e4-4a01-a221-25109b270d09:node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a :: true

2022-07-03 23:00:33 | [Mutex] waiting for: [received:nodes:91a9f462-a61c-498e-886b-3feb8d4cd0c6:localhost]

2022-07-03 23:00:33 | [Mutex] received everything.

2022-07-03 23:00:33 | [Mutex] isItemNotified: received:node:91a9f462-a61c-498e-886b-3feb8d4cd0c6:localhost:node-ea54ea99-47e4-4a01-a221-25109b270d09:Node ea54ea99-47e4-4a01-a221-25109b270d09 :: true

2022-07-03 23:00:33 | [Mutex] waiting for: [received:nodes:b2a084bc-08c2-48ed-9288-dbd306ef4dd1:localhost]

2022-07-03 23:00:33 | [Mutex] received everything.

2022-07-03 23:00:33 | [Mutex] isItemNotified: received:node:b2a084bc-08c2-48ed-9288-dbd306ef4dd1:localhost:node-ea54ea99-47e4-4a01-a221-25109b270d09:Node ea54ea99-47e4-4a01-a221-25109b270d09 :: false

createNodes 1.673s
2022-07-03 23:00:29 |

2022-07-03 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:29 | ------------------------------------

2022-07-03 23:00:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "pubsub#title": "Node ea54ea99-47e4-4a01-a221-25109b270d09"
}

2022-07-03 23:00:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:00:31 | [Mutex] waiting for: [received:nodes:9b09a4f8-7c49-4891-91b7-87dd4c1129f1:localhost]

2022-07-03 23:00:31 | [Mutex] received everything.

2022-07-03 23:00:31 | [Mutex] isItemNotified: received:node:9b09a4f8-7c49-4891-91b7-87dd4c1129f1:localhost:node-ea54ea99-47e4-4a01-a221-25109b270d09:Node ea54ea99-47e4-4a01-a221-25109b270d09 :: true

createSubnodes 1.023s
2022-07-03 23:00:31 |

2022-07-03 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:31 | ------------------------------------

2022-07-03 23:00:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a",
    "pubsub#title": "Node ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a"
}

2022-07-03 23:00:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:00:32 | [Mutex] waiting for: [received:nodes:11bd9602-e585-4ec0-b98b-d538afe6b5d3:localhost]

2022-07-03 23:00:32 | [Mutex] received everything.

2022-07-03 23:00:32 | [Mutex] isItemNotified: received:node:11bd9602-e585-4ec0-b98b-d538afe6b5d3:localhost:node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a:Node ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a :: true

deleteNodes 1.021s
2022-07-03 23:00:37 |

2022-07-03 23:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:37 | ------------------------------------

2022-07-03 23:00:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a"
}

2022-07-03 23:00:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:00:38 | [Mutex] waiting for: [received:nodes:cbf5d0f0-918c-4f81-ae98-276fda52ab30:localhost]

2022-07-03 23:00:38 | [Mutex] waiting for: [received:nodes:cbf5d0f0-918c-4f81-ae98-276fda52ab30:localhost]

2022-07-03 23:00:38 | [Mutex] waiting for: [received:nodes:cbf5d0f0-918c-4f81-ae98-276fda52ab30:localhost]

2022-07-03 23:00:38 | [Mutex] waiting for: [received:nodes:cbf5d0f0-918c-4f81-ae98-276fda52ab30:localhost]

2022-07-03 23:00:38 | [Mutex] received everything.

2022-07-03 23:00:38 | [Mutex] isItemNotified: received:node:cbf5d0f0-918c-4f81-ae98-276fda52ab30:localhost:node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a:Node ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a :: false

deleteSubnodes 1.026s
2022-07-03 23:00:36 |

2022-07-03 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:36 | ------------------------------------

2022-07-03 23:00:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09"
}

2022-07-03 23:00:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-03 23:00:37 | [Mutex] waiting for: [received:nodes:dc051baf-3173-45b8-947e-5e7dea02f7ed:localhost]

2022-07-03 23:00:37 | [Mutex] received everything.

2022-07-03 23:00:37 | [Mutex] isItemNotified: received:node:dc051baf-3173-45b8-947e-5e7dea02f7ed:localhost:node-ea54ea99-47e4-4a01-a221-25109b270d09:Node ea54ea99-47e4-4a01-a221-25109b270d09 :: false

2022-07-03 23:00:37 | [Mutex] waiting for: [received:nodes:2b669e02-526f-4b71-aa08-f2a5b5b6eb10:localhost]

2022-07-03 23:00:37 | [Mutex] received everything.

2022-07-03 23:00:37 | [Mutex] isItemNotified: received:node:2b669e02-526f-4b71-aa08-f2a5b5b6eb10:localhost:node-ea54ea99-47e4-4a01-a221-25109b270d09:Node ea54ea99-47e4-4a01-a221-25109b270d09 :: false

publishItemsToNodes 0.023s
2022-07-03 23:00:34 |

2022-07-03 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:34 | ------------------------------------

2022-07-03 23:00:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "entry": "<test>item-d9a8d69c-2ca2-4783-a904-be9e284792d2</test>",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2"
}

2022-07-03 23:00:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2"
}

2022-07-03 23:00:34 | [Mutex] waiting for: [published:item:notifieditem-d9a8d69c-2ca2-4783-a904-be9e284792d2:admin@test-domain.com]

2022-07-03 23:00:34 | [Mutex] received everything.

2022-07-03 23:00:34 | [Mutex] isItemNotified: published:item:notifieditem-d9a8d69c-2ca2-4783-a904-be9e284792d2:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-07-03 23:00:35 |

2022-07-03 23:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:35 | ------------------------------------

2022-07-03 23:00:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2"
}

2022-07-03 23:00:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2"
}

2022-07-03 23:00:35 | [Mutex] received everything.

2022-07-03 23:00:35 | [Mutex] isItemNotified: retracted:item:notifieditem-d9a8d69c-2ca2-4783-a904-be9e284792d2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2022-07-03 23:00:34 |

2022-07-03 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:34 | ------------------------------------

2022-07-03 23:00:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2"
}

2022-07-03 23:00:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "item-id": "item-d9a8d69c-2ca2-4783-a904-be9e284792d2",
    "item": [
        "<item id=\"item-d9a8d69c-2ca2-4783-a904-be9e284792d2\"><test>item-d9a8d69c-2ca2-4783-a904-be9e284792d2</test></item>"
    ]
}

2022-07-03 23:00:34 | [Mutex] notify: [retrieved:item:item-d9a8d69c-2ca2-4783-a904-be9e284792d2:payload-matches:true:localhost]

2022-07-03 23:00:34 | [Mutex] received everything.

2022-07-03 23:00:34 | [Mutex] isItemNotified: retrieved:item:item-d9a8d69c-2ca2-4783-a904-be9e284792d2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-03 23:00:34 |

2022-07-03 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:34 | ------------------------------------

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

2022-07-03 23:00:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ba7513b0-7d0a-4f5b-a30e-dc0a67a54f8a",
        "test",
        "node-ea54ea99-47e4-4a01-a221-25109b270d09"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-03 23:00:34 |

2022-07-03 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:34 | ------------------------------------

2022-07-03 23:00:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ea54ea99-47e4-4a01-a221-25109b270d09)"
}

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

subscribeNodes 1.011s
2022-07-03 23:00:33 |

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

2022-07-03 23:00:33 | ------------------------------------

2022-07-03 23:00:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.082s
2022-07-03 23:00:35 |

2022-07-03 23:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-03 23:00:35 | ------------------------------------

2022-07-03 23:00:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ea54ea99-47e4-4a01-a221-25109b270d09",
    "jids": [
        "admin@test-domain.com"
    ]
}

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