Generated by TestNG with ReportNG at 21:19 PST on Monday 21 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.025s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2022-02-21 21:35:37 |

2022-02-21 21:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:37 | ------------------------------------

2022-02-21 21:35:37 | [Mutex] waiting for: [configured:node:node-efd5ce0f-9753-4948-916a-1cb22a814696:node-ab0be11b-bfde-4091-9536-33fea48791f3]

2022-02-21 21:35:38 | [Mutex] received everything.

2022-02-21 21:35:38 | [Mutex] isItemNotified: configured:node:node-efd5ce0f-9753-4948-916a-1cb22a814696:node-ab0be11b-bfde-4091-9536-33fea48791f3 :: true

2022-02-21 21:35:39 | [Mutex] waiting for: [received:nodes:432a8963-8906-4c9f-a8d7-1363caee8a87:localhost]

2022-02-21 21:35:39 | [Mutex] received everything.

2022-02-21 21:35:39 | [Mutex] isItemNotified: received:node:432a8963-8906-4c9f-a8d7-1363caee8a87:localhost:node-efd5ce0f-9753-4948-916a-1cb22a814696:Node efd5ce0f-9753-4948-916a-1cb22a814696 :: true

2022-02-21 21:35:39 | [Mutex] waiting for: [received:nodes:5160537c-4bb9-4bcc-8cd8-571afdf4b2c4:localhost]

2022-02-21 21:35:39 | [Mutex] received everything.

2022-02-21 21:35:39 | [Mutex] isItemNotified: received:node:5160537c-4bb9-4bcc-8cd8-571afdf4b2c4:localhost:node-efd5ce0f-9753-4948-916a-1cb22a814696:Node efd5ce0f-9753-4948-916a-1cb22a814696 :: false

createNodes 1.651s
2022-02-21 21:35:35 |

2022-02-21 21:35:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:35 | ------------------------------------

2022-02-21 21:35:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "pubsub#title": "Node efd5ce0f-9753-4948-916a-1cb22a814696"
}

2022-02-21 21:35:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 21:35:36 | [Mutex] waiting for: [received:nodes:a9c11e91-d9f4-4965-a7d3-6c14a88e400d:localhost]

2022-02-21 21:35:36 | [Mutex] received everything.

2022-02-21 21:35:36 | [Mutex] isItemNotified: received:node:a9c11e91-d9f4-4965-a7d3-6c14a88e400d:localhost:node-efd5ce0f-9753-4948-916a-1cb22a814696:Node efd5ce0f-9753-4948-916a-1cb22a814696 :: true

createSubnodes 1.024s
2022-02-21 21:35:36 |

2022-02-21 21:35:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:36 | ------------------------------------

2022-02-21 21:35:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ab0be11b-bfde-4091-9536-33fea48791f3",
    "pubsub#title": "Node ab0be11b-bfde-4091-9536-33fea48791f3"
}

2022-02-21 21:35:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 21:35:37 | [Mutex] waiting for: [received:nodes:2532ed6e-a93f-4e7b-bb07-d2bf5adec342:localhost]

2022-02-21 21:35:37 | [Mutex] received everything.

2022-02-21 21:35:37 | [Mutex] isItemNotified: received:node:2532ed6e-a93f-4e7b-bb07-d2bf5adec342:localhost:node-ab0be11b-bfde-4091-9536-33fea48791f3:Node ab0be11b-bfde-4091-9536-33fea48791f3 :: true

deleteNodes 1.017s
2022-02-21 21:35:42 |

2022-02-21 21:35:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:42 | ------------------------------------

2022-02-21 21:35:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ab0be11b-bfde-4091-9536-33fea48791f3"
}

2022-02-21 21:35:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 21:35:43 | [Mutex] waiting for: [received:nodes:93f3e888-9d17-4cc3-89c5-99c57a52af3d:localhost]

2022-02-21 21:35:43 | [Mutex] waiting for: [received:nodes:93f3e888-9d17-4cc3-89c5-99c57a52af3d:localhost]

2022-02-21 21:35:43 | [Mutex] received everything.

2022-02-21 21:35:43 | [Mutex] isItemNotified: received:node:93f3e888-9d17-4cc3-89c5-99c57a52af3d:localhost:node-ab0be11b-bfde-4091-9536-33fea48791f3:Node ab0be11b-bfde-4091-9536-33fea48791f3 :: false

deleteSubnodes 1.026s
2022-02-21 21:35:41 |

2022-02-21 21:35:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:41 | ------------------------------------

2022-02-21 21:35:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696"
}

2022-02-21 21:35:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 21:35:42 | [Mutex] waiting for: [received:nodes:8f7ec16b-6577-4c91-aa73-a1b031e925d2:localhost]

2022-02-21 21:35:42 | [Mutex] received everything.

2022-02-21 21:35:42 | [Mutex] isItemNotified: received:node:8f7ec16b-6577-4c91-aa73-a1b031e925d2:localhost:node-efd5ce0f-9753-4948-916a-1cb22a814696:Node efd5ce0f-9753-4948-916a-1cb22a814696 :: false

2022-02-21 21:35:42 | [Mutex] waiting for: [received:nodes:da70e5b2-4a00-495c-9c91-d3d7c25af35c:localhost]

2022-02-21 21:35:42 | [Mutex] received everything.

2022-02-21 21:35:42 | [Mutex] isItemNotified: received:node:da70e5b2-4a00-495c-9c91-d3d7c25af35c:localhost:node-efd5ce0f-9753-4948-916a-1cb22a814696:Node efd5ce0f-9753-4948-916a-1cb22a814696 :: false

publishItemsToNodes 0.065s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "entry": "<test>item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f</test>",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f"
}

2022-02-21 21:35:40 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f"
}

2022-02-21 21:35:40 | [Mutex] waiting for: [published:item:notifieditem-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:admin@test-domain.com]

2022-02-21 21:35:40 | [Mutex] received everything.

2022-02-21 21:35:40 | [Mutex] isItemNotified: published:item:notifieditem-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:admin@test-domain.com :: true

retractItemsFromNodes 0.117s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f"
}

2022-02-21 21:35:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f"
}

2022-02-21 21:35:40 | [Mutex] waiting for: [retracted:item:notifieditem-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:admin@test-domain.com]

2022-02-21 21:35:40 | [Mutex] received everything.

2022-02-21 21:35:40 | [Mutex] isItemNotified: retracted:item:notifieditem-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.030s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f"
}

2022-02-21 21:35:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "item-id": "item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f",
    "item": [
        "<item id=\"item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f\"><test>item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f</test></item>"
    ]
}

2022-02-21 21:35:40 | [Mutex] notify: [retrieved:item:item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:payload-matches:true:localhost]

2022-02-21 21:35:40 | [Mutex] received everything.

2022-02-21 21:35:40 | [Mutex] isItemNotified: retrieved:item:item-ce5a1e38-f7ac-4019-add0-ca0f0ef9cc7f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.076s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-21 21:35:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ab0be11b-bfde-4091-9536-33fea48791f3",
        "test",
        "node-efd5ce0f-9753-4948-916a-1cb22a814696"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-efd5ce0f-9753-4948-916a-1cb22a814696)"
}

2022-02-21 21:35:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-21 21:35:39 |

2022-02-21 21:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:39 | ------------------------------------

2022-02-21 21:35:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-21 21:35:39 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-02-21 21:35:40 |

2022-02-21 21:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 21:35:40 | ------------------------------------

2022-02-21 21:35:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-efd5ce0f-9753-4948-916a-1cb22a814696",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-21 21:35:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}