Generated by TestNG with ReportNG at 22:46 PDT on Friday 15 July 2022
root@f9c07ffec79b / 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.653s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.080s
2022-07-15 23:07:55 |

2022-07-15 23:07:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:55 | ------------------------------------

2022-07-15 23:07:55 | [Mutex] waiting for: [configured:node:node-907a512b-d93d-465d-a55b-4e450192a62d:node-24e2003e-4a79-4aa5-a0ac-463de56274ce]

2022-07-15 23:07:55 | [Mutex] received everything.

2022-07-15 23:07:55 | [Mutex] isItemNotified: configured:node:node-907a512b-d93d-465d-a55b-4e450192a62d:node-24e2003e-4a79-4aa5-a0ac-463de56274ce :: true

2022-07-15 23:07:56 | [Mutex] waiting for: [received:nodes:103a739b-07da-4144-9ff8-b93a4e973ad8:localhost]

2022-07-15 23:07:56 | [Mutex] received everything.

2022-07-15 23:07:56 | [Mutex] isItemNotified: received:node:103a739b-07da-4144-9ff8-b93a4e973ad8:localhost:node-907a512b-d93d-465d-a55b-4e450192a62d:Node 907a512b-d93d-465d-a55b-4e450192a62d :: true

2022-07-15 23:07:56 | [Mutex] waiting for: [received:nodes:1fd2ec01-b2a8-401a-9202-cc3c96a74aaf:localhost]

2022-07-15 23:07:56 | [Mutex] received everything.

2022-07-15 23:07:56 | [Mutex] isItemNotified: received:node:1fd2ec01-b2a8-401a-9202-cc3c96a74aaf:localhost:node-907a512b-d93d-465d-a55b-4e450192a62d:Node 907a512b-d93d-465d-a55b-4e450192a62d :: false

createNodes 1.602s
2022-07-15 23:07:52 |

2022-07-15 23:07:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:52 | ------------------------------------

2022-07-15 23:07:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "pubsub#title": "Node 907a512b-d93d-465d-a55b-4e450192a62d"
}

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

2022-07-15 23:07:54 | [Mutex] waiting for: [received:nodes:b75982c2-b119-41cb-89c4-c9e4a5e3e2d3:localhost]

2022-07-15 23:07:54 | [Mutex] waiting for: [received:nodes:b75982c2-b119-41cb-89c4-c9e4a5e3e2d3:localhost]

2022-07-15 23:07:54 | [Mutex] received everything.

2022-07-15 23:07:54 | [Mutex] isItemNotified: received:node:b75982c2-b119-41cb-89c4-c9e4a5e3e2d3:localhost:node-907a512b-d93d-465d-a55b-4e450192a62d:Node 907a512b-d93d-465d-a55b-4e450192a62d :: true

createSubnodes 1.021s
2022-07-15 23:07:54 |

2022-07-15 23:07:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:54 | ------------------------------------

2022-07-15 23:07:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-24e2003e-4a79-4aa5-a0ac-463de56274ce",
    "pubsub#title": "Node 24e2003e-4a79-4aa5-a0ac-463de56274ce"
}

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

2022-07-15 23:07:55 | [Mutex] waiting for: [received:nodes:b5dd995e-20c4-4900-97cf-319798b63452:localhost]

2022-07-15 23:07:55 | [Mutex] received everything.

2022-07-15 23:07:55 | [Mutex] isItemNotified: received:node:b5dd995e-20c4-4900-97cf-319798b63452:localhost:node-24e2003e-4a79-4aa5-a0ac-463de56274ce:Node 24e2003e-4a79-4aa5-a0ac-463de56274ce :: true

deleteNodes 1.019s
2022-07-15 23:08:00 |

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

2022-07-15 23:08:00 | ------------------------------------

2022-07-15 23:08:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-24e2003e-4a79-4aa5-a0ac-463de56274ce"
}

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

2022-07-15 23:08:01 | [Mutex] waiting for: [received:nodes:7515a8e6-ef70-4edb-b007-e767d6470d09:localhost]

2022-07-15 23:08:01 | [Mutex] received everything.

2022-07-15 23:08:01 | [Mutex] isItemNotified: received:node:7515a8e6-ef70-4edb-b007-e767d6470d09:localhost:node-24e2003e-4a79-4aa5-a0ac-463de56274ce:Node 24e2003e-4a79-4aa5-a0ac-463de56274ce :: false

deleteSubnodes 1.037s
2022-07-15 23:07:59 |

2022-07-15 23:07:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:59 | ------------------------------------

2022-07-15 23:07:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d"
}

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

2022-07-15 23:08:00 | [Mutex] waiting for: [received:nodes:fe195f93-4558-4e00-b7c3-3a54f543daaf:localhost]

2022-07-15 23:08:00 | [Mutex] waiting for: [received:nodes:fe195f93-4558-4e00-b7c3-3a54f543daaf:localhost]

2022-07-15 23:08:00 | [Mutex] waiting for: [received:nodes:fe195f93-4558-4e00-b7c3-3a54f543daaf:localhost]

2022-07-15 23:08:00 | [Mutex] waiting for: [received:nodes:fe195f93-4558-4e00-b7c3-3a54f543daaf:localhost]

2022-07-15 23:08:00 | [Mutex] received everything.

2022-07-15 23:08:00 | [Mutex] isItemNotified: received:node:fe195f93-4558-4e00-b7c3-3a54f543daaf:localhost:node-907a512b-d93d-465d-a55b-4e450192a62d:Node 907a512b-d93d-465d-a55b-4e450192a62d :: false

2022-07-15 23:08:00 | [Mutex] waiting for: [received:nodes:0cc08f8f-2aad-498a-ba99-d948c4418968:localhost]

2022-07-15 23:08:00 | [Mutex] received everything.

2022-07-15 23:08:00 | [Mutex] isItemNotified: received:node:0cc08f8f-2aad-498a-ba99-d948c4418968:localhost:node-907a512b-d93d-465d-a55b-4e450192a62d:Node 907a512b-d93d-465d-a55b-4e450192a62d :: false

publishItemsToNodes 0.044s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

2022-07-15 23:07:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "entry": "<test>item-a9d7c174-7625-4a47-bc84-6d7e23837d6d</test>",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d"
}

2022-07-15 23:07:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d"
}

2022-07-15 23:07:57 | [Mutex] waiting for: [published:item:notifieditem-a9d7c174-7625-4a47-bc84-6d7e23837d6d:admin@test-domain.com]

2022-07-15 23:07:57 | [Mutex] received everything.

2022-07-15 23:07:57 | [Mutex] isItemNotified: published:item:notifieditem-a9d7c174-7625-4a47-bc84-6d7e23837d6d:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

2022-07-15 23:07:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d"
}

2022-07-15 23:07:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d"
}

2022-07-15 23:07:57 | [Mutex] received everything.

2022-07-15 23:07:57 | [Mutex] isItemNotified: retracted:item:notifieditem-a9d7c174-7625-4a47-bc84-6d7e23837d6d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

2022-07-15 23:07:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d"
}

2022-07-15 23:07:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "item-id": "item-a9d7c174-7625-4a47-bc84-6d7e23837d6d",
    "item": [
        "<item id=\"item-a9d7c174-7625-4a47-bc84-6d7e23837d6d\"><test>item-a9d7c174-7625-4a47-bc84-6d7e23837d6d</test></item>"
    ]
}

2022-07-15 23:07:57 | [Mutex] notify: [retrieved:item:item-a9d7c174-7625-4a47-bc84-6d7e23837d6d:payload-matches:true:localhost]

2022-07-15 23:07:57 | [Mutex] received everything.

2022-07-15 23:07:57 | [Mutex] isItemNotified: retrieved:item:item-a9d7c174-7625-4a47-bc84-6d7e23837d6d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

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

2022-07-15 23:07:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-24e2003e-4a79-4aa5-a0ac-463de56274ce",
        "node-907a512b-d93d-465d-a55b-4e450192a62d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

2022-07-15 23:07:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-907a512b-d93d-465d-a55b-4e450192a62d)"
}

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

subscribeNodes 1.015s
2022-07-15 23:07:56 |

2022-07-15 23:07:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:56 | ------------------------------------

2022-07-15 23:07:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.065s
2022-07-15 23:07:57 |

2022-07-15 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:07:57 | ------------------------------------

2022-07-15 23:07:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-907a512b-d93d-465d-a55b-4e450192a62d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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