Generated by TestNG with ReportNG at 22:47 PDT on Sunday 09 May 2021
root@b2c2a8eba6e6 / 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.094s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-05-09 23:03:38 |

2021-05-09 23:03:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:38 | ------------------------------------

2021-05-09 23:03:38 | [Mutex] waiting for: [configured:node:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:node-5a7f16cc-daec-48c4-8a54-e52578026bcf]

2021-05-09 23:03:38 | [Mutex] received everything.

2021-05-09 23:03:38 | [Mutex] isItemNotified: configured:node:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:node-5a7f16cc-daec-48c4-8a54-e52578026bcf :: true

2021-05-09 23:03:39 | [Mutex] waiting for: [received:nodes:16ee4452-f00e-4eab-95a3-366d0f6d8faf:localhost]

2021-05-09 23:03:39 | [Mutex] received everything.

2021-05-09 23:03:39 | [Mutex] isItemNotified: received:node:16ee4452-f00e-4eab-95a3-366d0f6d8faf:localhost:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885 :: true

2021-05-09 23:03:39 | [Mutex] waiting for: [received:nodes:2a782681-d8e4-4722-940c-157df02caf13:localhost]

2021-05-09 23:03:39 | [Mutex] received everything.

2021-05-09 23:03:39 | [Mutex] isItemNotified: received:node:2a782681-d8e4-4722-940c-157df02caf13:localhost:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885 :: false

createNodes 1.678s
2021-05-09 23:03:35 |

2021-05-09 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:35 | ------------------------------------

2021-05-09 23:03:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "pubsub#title": "Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885"
}

2021-05-09 23:03:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 23:03:37 | [Mutex] waiting for: [received:nodes:38dba033-be27-4d5a-ac0e-d9b5dba9535d:localhost]

2021-05-09 23:03:37 | [Mutex] waiting for: [received:nodes:38dba033-be27-4d5a-ac0e-d9b5dba9535d:localhost]

2021-05-09 23:03:37 | [Mutex] received everything.

2021-05-09 23:03:37 | [Mutex] isItemNotified: received:node:38dba033-be27-4d5a-ac0e-d9b5dba9535d:localhost:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885 :: true

createSubnodes 1.026s
2021-05-09 23:03:37 |

2021-05-09 23:03:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:37 | ------------------------------------

2021-05-09 23:03:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5a7f16cc-daec-48c4-8a54-e52578026bcf",
    "pubsub#title": "Node 5a7f16cc-daec-48c4-8a54-e52578026bcf"
}

2021-05-09 23:03:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 23:03:38 | [Mutex] waiting for: [received:nodes:3dbf651d-7b87-47a9-a6c7-e5192bec08f0:localhost]

2021-05-09 23:03:38 | [Mutex] received everything.

2021-05-09 23:03:38 | [Mutex] isItemNotified: received:node:3dbf651d-7b87-47a9-a6c7-e5192bec08f0:localhost:node-5a7f16cc-daec-48c4-8a54-e52578026bcf:Node 5a7f16cc-daec-48c4-8a54-e52578026bcf :: true

deleteNodes 1.022s
2021-05-09 23:03:42 |

2021-05-09 23:03:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:42 | ------------------------------------

2021-05-09 23:03:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5a7f16cc-daec-48c4-8a54-e52578026bcf"
}

2021-05-09 23:03:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 23:03:43 | [Mutex] waiting for: [received:nodes:39c5d820-e137-4e71-8d35-ff1e517694b2:localhost]

2021-05-09 23:03:43 | [Mutex] received everything.

2021-05-09 23:03:43 | [Mutex] isItemNotified: received:node:39c5d820-e137-4e71-8d35-ff1e517694b2:localhost:node-5a7f16cc-daec-48c4-8a54-e52578026bcf:Node 5a7f16cc-daec-48c4-8a54-e52578026bcf :: false

deleteSubnodes 1.034s
2021-05-09 23:03:41 |

2021-05-09 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:41 | ------------------------------------

2021-05-09 23:03:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885"
}

2021-05-09 23:03:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 23:03:42 | [Mutex] waiting for: [received:nodes:03c60ce1-00a0-4d59-81c4-8c695a7ffc63:localhost]

2021-05-09 23:03:42 | [Mutex] waiting for: [received:nodes:03c60ce1-00a0-4d59-81c4-8c695a7ffc63:localhost]

2021-05-09 23:03:42 | [Mutex] received everything.

2021-05-09 23:03:42 | [Mutex] isItemNotified: received:node:03c60ce1-00a0-4d59-81c4-8c695a7ffc63:localhost:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885 :: false

2021-05-09 23:03:42 | [Mutex] waiting for: [received:nodes:11837f55-e118-49a4-a03e-91c50d086240:localhost]

2021-05-09 23:03:42 | [Mutex] received everything.

2021-05-09 23:03:42 | [Mutex] isItemNotified: received:node:11837f55-e118-49a4-a03e-91c50d086240:localhost:node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885:Node a4f0821f-0e3d-4c9c-8409-2f0ceca32885 :: false

publishItemsToNodes 0.053s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "entry": "<test>item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4</test>",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4"
}

2021-05-09 23:03:40 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4"
}

2021-05-09 23:03:40 | [Mutex] waiting for: [published:item:notifieditem-aafdffcc-cc80-4a66-99b1-131a82cdc2d4:admin@test-domain.com]

2021-05-09 23:03:40 | [Mutex] received everything.

2021-05-09 23:03:40 | [Mutex] isItemNotified: published:item:notifieditem-aafdffcc-cc80-4a66-99b1-131a82cdc2d4:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4"
}

2021-05-09 23:03:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4"
}

2021-05-09 23:03:40 | [Mutex] received everything.

2021-05-09 23:03:40 | [Mutex] isItemNotified: retracted:item:notifieditem-aafdffcc-cc80-4a66-99b1-131a82cdc2d4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4"
}

2021-05-09 23:03:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "item-id": "item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4",
    "item": [
        "<item id=\"item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4\"><test>item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4</test></item>"
    ]
}

2021-05-09 23:03:40 | [Mutex] notify: [retrieved:item:item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4:payload-matches:true:localhost]

2021-05-09 23:03:40 | [Mutex] received everything.

2021-05-09 23:03:40 | [Mutex] isItemNotified: retrieved:item:item-aafdffcc-cc80-4a66-99b1-131a82cdc2d4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.111s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-09 23:03:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5a7f16cc-daec-48c4-8a54-e52578026bcf",
        "test",
        "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885)"
}

2021-05-09 23:03:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-05-09 23:03:39 |

2021-05-09 23:03:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:39 | ------------------------------------

2021-05-09 23:03:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-09 23:03:39 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2021-05-09 23:03:40 |

2021-05-09 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 23:03:40 | ------------------------------------

2021-05-09 23:03:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a4f0821f-0e3d-4c9c-8409-2f0ceca32885",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-09 23:03:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}