Generated by TestNG with ReportNG at 22:32 PDT on Thursday 27 August 2020
root@d2d0cb51d011 / 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.028s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2020-08-27 22:48:46 |

2020-08-27 22:48:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:46 | ------------------------------------

2020-08-27 22:48:46 | [Mutex] waiting for: [configured:node:node-12545727-02df-4107-bc40-fdf77b32a823:node-fdb14c7e-7286-454d-b2ea-b1c25278746a]

2020-08-27 22:48:46 | [Mutex] received everything.

2020-08-27 22:48:46 | [Mutex] isItemNotified: configured:node:node-12545727-02df-4107-bc40-fdf77b32a823:node-fdb14c7e-7286-454d-b2ea-b1c25278746a :: true

2020-08-27 22:48:47 | [Mutex] waiting for: [received:nodes:32bcde1c-d0e4-47fe-a202-97fd7c25d739:localhost]

2020-08-27 22:48:47 | [Mutex] received everything.

2020-08-27 22:48:47 | [Mutex] isItemNotified: received:node:32bcde1c-d0e4-47fe-a202-97fd7c25d739:localhost:node-12545727-02df-4107-bc40-fdf77b32a823:Node 12545727-02df-4107-bc40-fdf77b32a823 :: true

2020-08-27 22:48:47 | [Mutex] waiting for: [received:nodes:04db3fe9-3b3e-4f13-af04-382efc44c287:localhost]

2020-08-27 22:48:47 | [Mutex] received everything.

2020-08-27 22:48:47 | [Mutex] isItemNotified: received:node:04db3fe9-3b3e-4f13-af04-382efc44c287:localhost:node-12545727-02df-4107-bc40-fdf77b32a823:Node 12545727-02df-4107-bc40-fdf77b32a823 :: false

createNodes 1.646s
2020-08-27 22:48:43 |

2020-08-27 22:48:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:43 | ------------------------------------

2020-08-27 22:48:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "pubsub#title": "Node 12545727-02df-4107-bc40-fdf77b32a823"
}

2020-08-27 22:48:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 22:48:45 | [Mutex] waiting for: [received:nodes:dbfe14dc-62d7-49da-b1fb-df228e48785e:localhost]

2020-08-27 22:48:45 | [Mutex] waiting for: [received:nodes:dbfe14dc-62d7-49da-b1fb-df228e48785e:localhost]

2020-08-27 22:48:45 | [Mutex] received everything.

2020-08-27 22:48:45 | [Mutex] isItemNotified: received:node:dbfe14dc-62d7-49da-b1fb-df228e48785e:localhost:node-12545727-02df-4107-bc40-fdf77b32a823:Node 12545727-02df-4107-bc40-fdf77b32a823 :: true

createSubnodes 1.026s
2020-08-27 22:48:45 |

2020-08-27 22:48:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:45 | ------------------------------------

2020-08-27 22:48:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fdb14c7e-7286-454d-b2ea-b1c25278746a",
    "pubsub#title": "Node fdb14c7e-7286-454d-b2ea-b1c25278746a"
}

2020-08-27 22:48:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 22:48:46 | [Mutex] waiting for: [received:nodes:689107a3-d738-4bb6-91dd-ec1447799e13:localhost]

2020-08-27 22:48:46 | [Mutex] received everything.

2020-08-27 22:48:46 | [Mutex] isItemNotified: received:node:689107a3-d738-4bb6-91dd-ec1447799e13:localhost:node-fdb14c7e-7286-454d-b2ea-b1c25278746a:Node fdb14c7e-7286-454d-b2ea-b1c25278746a :: true

deleteNodes 1.020s
2020-08-27 22:48:50 |

2020-08-27 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:50 | ------------------------------------

2020-08-27 22:48:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fdb14c7e-7286-454d-b2ea-b1c25278746a"
}

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

2020-08-27 22:48:51 | [Mutex] waiting for: [received:nodes:35b7dcea-cb91-49c0-b433-5a936b66d5f8:localhost]

2020-08-27 22:48:51 | [Mutex] received everything.

2020-08-27 22:48:51 | [Mutex] isItemNotified: received:node:35b7dcea-cb91-49c0-b433-5a936b66d5f8:localhost:node-fdb14c7e-7286-454d-b2ea-b1c25278746a:Node fdb14c7e-7286-454d-b2ea-b1c25278746a :: false

deleteSubnodes 1.033s
2020-08-27 22:48:49 |

2020-08-27 22:48:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:49 | ------------------------------------

2020-08-27 22:48:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823"
}

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

2020-08-27 22:48:50 | [Mutex] waiting for: [received:nodes:a8d0fc89-9cc1-4d04-9fed-ddf8f7b9b7b3:localhost]

2020-08-27 22:48:50 | [Mutex] received everything.

2020-08-27 22:48:50 | [Mutex] isItemNotified: received:node:a8d0fc89-9cc1-4d04-9fed-ddf8f7b9b7b3:localhost:node-12545727-02df-4107-bc40-fdf77b32a823:Node 12545727-02df-4107-bc40-fdf77b32a823 :: false

2020-08-27 22:48:50 | [Mutex] waiting for: [received:nodes:0c34f7b5-443c-4a0e-b46c-6621c9cf7ac9:localhost]

2020-08-27 22:48:50 | [Mutex] received everything.

2020-08-27 22:48:50 | [Mutex] isItemNotified: received:node:0c34f7b5-443c-4a0e-b46c-6621c9cf7ac9:localhost:node-12545727-02df-4107-bc40-fdf77b32a823:Node 12545727-02df-4107-bc40-fdf77b32a823 :: false

publishItemsToNodes 0.040s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

2020-08-27 22:48:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "entry": "<test>item-7c2b788b-ed43-4202-9659-8a61705f4628</test>",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628"
}

2020-08-27 22:48:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628"
}

2020-08-27 22:48:48 | [Mutex] waiting for: [published:item:notifieditem-7c2b788b-ed43-4202-9659-8a61705f4628:admin@test-domain.com]

2020-08-27 22:48:48 | [Mutex] received everything.

2020-08-27 22:48:48 | [Mutex] isItemNotified: published:item:notifieditem-7c2b788b-ed43-4202-9659-8a61705f4628:admin@test-domain.com :: true

retractItemsFromNodes 0.128s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

2020-08-27 22:48:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628"
}

2020-08-27 22:48:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628"
}

2020-08-27 22:48:48 | [Mutex] received everything.

2020-08-27 22:48:48 | [Mutex] isItemNotified: retracted:item:notifieditem-7c2b788b-ed43-4202-9659-8a61705f4628:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

2020-08-27 22:48:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628"
}

2020-08-27 22:48:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "item-id": "item-7c2b788b-ed43-4202-9659-8a61705f4628",
    "item": [
        "<item id=\"item-7c2b788b-ed43-4202-9659-8a61705f4628\"><test>item-7c2b788b-ed43-4202-9659-8a61705f4628</test></item>"
    ]
}

2020-08-27 22:48:48 | [Mutex] notify: [retrieved:item:item-7c2b788b-ed43-4202-9659-8a61705f4628:payload-matches:true:localhost]

2020-08-27 22:48:48 | [Mutex] received everything.

2020-08-27 22:48:48 | [Mutex] isItemNotified: retrieved:item:item-7c2b788b-ed43-4202-9659-8a61705f4628:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

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

2020-08-27 22:48:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fdb14c7e-7286-454d-b2ea-b1c25278746a",
        "test",
        "node-12545727-02df-4107-bc40-fdf77b32a823"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

2020-08-27 22:48:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-12545727-02df-4107-bc40-fdf77b32a823)"
}

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

subscribeNodes 1.009s
2020-08-27 22:48:47 |

2020-08-27 22:48:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:47 | ------------------------------------

2020-08-27 22:48:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 22:48:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-08-27 22:48:48 |

2020-08-27 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:48 | ------------------------------------

2020-08-27 22:48:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-12545727-02df-4107-bc40-fdf77b32a823",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 22:48:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}