Generated by TestNG with ReportNG at 19:51 PDT on Tuesday 25 August 2020
root@9adf47d9b258 / 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.329s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-08-25 20:07:18 |

2020-08-25 20:07:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:18 | ------------------------------------

2020-08-25 20:07:18 | [Mutex] waiting for: [configured:node:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49]

2020-08-25 20:07:18 | [Mutex] received everything.

2020-08-25 20:07:18 | [Mutex] isItemNotified: configured:node:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49 :: true

2020-08-25 20:07:19 | [Mutex] waiting for: [received:nodes:8f3400fd-b459-4fcc-b5e5-faf577343017:localhost]

2020-08-25 20:07:19 | [Mutex] received everything.

2020-08-25 20:07:19 | [Mutex] isItemNotified: received:node:8f3400fd-b459-4fcc-b5e5-faf577343017:localhost:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:Node 3d42262c-cb39-4368-a62f-1cdc3a39969b :: true

2020-08-25 20:07:19 | [Mutex] waiting for: [received:nodes:b8223feb-cb83-4222-9427-5e0c664a6307:localhost]

2020-08-25 20:07:19 | [Mutex] waiting for: [received:nodes:b8223feb-cb83-4222-9427-5e0c664a6307:localhost]

2020-08-25 20:07:19 | [Mutex] received everything.

2020-08-25 20:07:19 | [Mutex] isItemNotified: received:node:b8223feb-cb83-4222-9427-5e0c664a6307:localhost:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:Node 3d42262c-cb39-4368-a62f-1cdc3a39969b :: false

createNodes 1.830s
2020-08-25 20:07:15 |

2020-08-25 20:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:15 | ------------------------------------

2020-08-25 20:07:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "pubsub#title": "Node 3d42262c-cb39-4368-a62f-1cdc3a39969b"
}

2020-08-25 20:07:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:07:17 | [Mutex] waiting for: [received:nodes:c9b0b290-7c57-4d13-818e-abfe0da5dd42:localhost]

2020-08-25 20:07:17 | [Mutex] received everything.

2020-08-25 20:07:17 | [Mutex] isItemNotified: received:node:c9b0b290-7c57-4d13-818e-abfe0da5dd42:localhost:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:Node 3d42262c-cb39-4368-a62f-1cdc3a39969b :: true

createSubnodes 1.024s
2020-08-25 20:07:17 |

2020-08-25 20:07:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:17 | ------------------------------------

2020-08-25 20:07:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49",
    "pubsub#title": "Node 725f8cbe-dd82-4e4d-b4b2-b540b9e36b49"
}

2020-08-25 20:07:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:07:18 | [Mutex] waiting for: [received:nodes:157b8351-744a-4924-88da-ee1d96e3f91b:localhost]

2020-08-25 20:07:18 | [Mutex] waiting for: [received:nodes:157b8351-744a-4924-88da-ee1d96e3f91b:localhost]

2020-08-25 20:07:18 | [Mutex] received everything.

2020-08-25 20:07:18 | [Mutex] isItemNotified: received:node:157b8351-744a-4924-88da-ee1d96e3f91b:localhost:node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49:Node 725f8cbe-dd82-4e4d-b4b2-b540b9e36b49 :: true

deleteNodes 1.020s
2020-08-25 20:07:22 |

2020-08-25 20:07:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:22 | ------------------------------------

2020-08-25 20:07:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49"
}

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

2020-08-25 20:07:23 | [Mutex] waiting for: [received:nodes:232ab1de-3cd0-49a1-9d00-74e09eb0ef60:localhost]

2020-08-25 20:07:23 | [Mutex] received everything.

2020-08-25 20:07:23 | [Mutex] isItemNotified: received:node:232ab1de-3cd0-49a1-9d00-74e09eb0ef60:localhost:node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49:Node 725f8cbe-dd82-4e4d-b4b2-b540b9e36b49 :: false

deleteSubnodes 1.028s
2020-08-25 20:07:21 |

2020-08-25 20:07:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:21 | ------------------------------------

2020-08-25 20:07:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b"
}

2020-08-25 20:07:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:07:22 | [Mutex] waiting for: [received:nodes:c211f365-fa9a-45a5-ad0c-caf583febc3f:localhost]

2020-08-25 20:07:22 | [Mutex] received everything.

2020-08-25 20:07:22 | [Mutex] isItemNotified: received:node:c211f365-fa9a-45a5-ad0c-caf583febc3f:localhost:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:Node 3d42262c-cb39-4368-a62f-1cdc3a39969b :: false

2020-08-25 20:07:22 | [Mutex] waiting for: [received:nodes:cedf53fc-02be-4844-a9c7-90891abb56f8:localhost]

2020-08-25 20:07:22 | [Mutex] received everything.

2020-08-25 20:07:22 | [Mutex] isItemNotified: received:node:cedf53fc-02be-4844-a9c7-90891abb56f8:localhost:node-3d42262c-cb39-4368-a62f-1cdc3a39969b:Node 3d42262c-cb39-4368-a62f-1cdc3a39969b :: false

publishItemsToNodes 0.035s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "entry": "<test>item-13cf3d74-f5df-403c-acdd-fe501a5785bd</test>",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd"
}

2020-08-25 20:07:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd"
}

2020-08-25 20:07:20 | [Mutex] waiting for: [published:item:notifieditem-13cf3d74-f5df-403c-acdd-fe501a5785bd:admin@test-domain.com]

2020-08-25 20:07:20 | [Mutex] received everything.

2020-08-25 20:07:20 | [Mutex] isItemNotified: published:item:notifieditem-13cf3d74-f5df-403c-acdd-fe501a5785bd:admin@test-domain.com :: true

retractItemsFromNodes 0.111s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd"
}

2020-08-25 20:07:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd"
}

2020-08-25 20:07:20 | [Mutex] received everything.

2020-08-25 20:07:20 | [Mutex] isItemNotified: retracted:item:notifieditem-13cf3d74-f5df-403c-acdd-fe501a5785bd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd"
}

2020-08-25 20:07:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "item-id": "item-13cf3d74-f5df-403c-acdd-fe501a5785bd",
    "item": [
        "<item id=\"item-13cf3d74-f5df-403c-acdd-fe501a5785bd\"><test>item-13cf3d74-f5df-403c-acdd-fe501a5785bd</test></item>"
    ]
}

2020-08-25 20:07:20 | [Mutex] notify: [retrieved:item:item-13cf3d74-f5df-403c-acdd-fe501a5785bd:payload-matches:true:localhost]

2020-08-25 20:07:20 | [Mutex] received everything.

2020-08-25 20:07:20 | [Mutex] isItemNotified: retrieved:item:item-13cf3d74-f5df-403c-acdd-fe501a5785bd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-25 20:07:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
        "test",
        "node-725f8cbe-dd82-4e4d-b4b2-b540b9e36b49"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3d42262c-cb39-4368-a62f-1cdc3a39969b)"
}

2020-08-25 20:07:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-08-25 20:07:19 |

2020-08-25 20:07:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:19 | ------------------------------------

2020-08-25 20:07:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 20:07:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2020-08-25 20:07:20 |

2020-08-25 20:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:07:20 | ------------------------------------

2020-08-25 20:07:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3d42262c-cb39-4368-a62f-1cdc3a39969b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 20:07:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}