Generated by TestNG with ReportNG at 22:43 PDT on Wednesday 02 September 2020
root@c80c20a9b477 / 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.118s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-09-02 22:59:25 |

2020-09-02 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:25 | ------------------------------------

2020-09-02 22:59:25 | [Mutex] waiting for: [configured:node:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:node-359643bc-98cf-47d3-a10b-b05be2fee0fa]

2020-09-02 22:59:26 | [Mutex] received everything.

2020-09-02 22:59:26 | [Mutex] isItemNotified: configured:node:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:node-359643bc-98cf-47d3-a10b-b05be2fee0fa :: true

2020-09-02 22:59:27 | [Mutex] waiting for: [received:nodes:435ee93b-c720-422f-963e-20ff12ac240b:localhost]

2020-09-02 22:59:27 | [Mutex] waiting for: [received:nodes:435ee93b-c720-422f-963e-20ff12ac240b:localhost]

2020-09-02 22:59:27 | [Mutex] received everything.

2020-09-02 22:59:27 | [Mutex] isItemNotified: received:node:435ee93b-c720-422f-963e-20ff12ac240b:localhost:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2 :: true

2020-09-02 22:59:27 | [Mutex] waiting for: [received:nodes:8e1c9c35-edb5-4d70-bdb6-ca27787446fb:localhost]

2020-09-02 22:59:27 | [Mutex] received everything.

2020-09-02 22:59:27 | [Mutex] isItemNotified: received:node:8e1c9c35-edb5-4d70-bdb6-ca27787446fb:localhost:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2 :: false

createNodes 1.759s
2020-09-02 22:59:23 |

2020-09-02 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:23 | ------------------------------------

2020-09-02 22:59:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "pubsub#title": "Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2"
}

2020-09-02 22:59:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 22:59:24 | [Mutex] waiting for: [received:nodes:8cd8bbe0-6efa-4af1-a593-9389ac4a8511:localhost]

2020-09-02 22:59:24 | [Mutex] received everything.

2020-09-02 22:59:24 | [Mutex] isItemNotified: received:node:8cd8bbe0-6efa-4af1-a593-9389ac4a8511:localhost:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2 :: true

createSubnodes 1.027s
2020-09-02 22:59:24 |

2020-09-02 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:24 | ------------------------------------

2020-09-02 22:59:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-359643bc-98cf-47d3-a10b-b05be2fee0fa",
    "pubsub#title": "Node 359643bc-98cf-47d3-a10b-b05be2fee0fa"
}

2020-09-02 22:59:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 22:59:25 | [Mutex] waiting for: [received:nodes:08d36fe9-5ec0-42f4-a38d-5689186974df:localhost]

2020-09-02 22:59:25 | [Mutex] received everything.

2020-09-02 22:59:25 | [Mutex] isItemNotified: received:node:08d36fe9-5ec0-42f4-a38d-5689186974df:localhost:node-359643bc-98cf-47d3-a10b-b05be2fee0fa:Node 359643bc-98cf-47d3-a10b-b05be2fee0fa :: true

deleteNodes 1.027s
2020-09-02 22:59:30 |

2020-09-02 22:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:30 | ------------------------------------

2020-09-02 22:59:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-359643bc-98cf-47d3-a10b-b05be2fee0fa"
}

2020-09-02 22:59:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 22:59:31 | [Mutex] waiting for: [received:nodes:c2e140e5-1ee0-4fa7-81f2-fed254314f75:localhost]

2020-09-02 22:59:31 | [Mutex] received everything.

2020-09-02 22:59:31 | [Mutex] isItemNotified: received:node:c2e140e5-1ee0-4fa7-81f2-fed254314f75:localhost:node-359643bc-98cf-47d3-a10b-b05be2fee0fa:Node 359643bc-98cf-47d3-a10b-b05be2fee0fa :: false

deleteSubnodes 1.032s
2020-09-02 22:59:29 |

2020-09-02 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:29 | ------------------------------------

2020-09-02 22:59:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2"
}

2020-09-02 22:59:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 22:59:30 | [Mutex] waiting for: [received:nodes:8c5fb42b-823a-4985-bc0c-9a127c27d486:localhost]

2020-09-02 22:59:30 | [Mutex] waiting for: [received:nodes:8c5fb42b-823a-4985-bc0c-9a127c27d486:localhost]

2020-09-02 22:59:30 | [Mutex] waiting for: [received:nodes:8c5fb42b-823a-4985-bc0c-9a127c27d486:localhost]

2020-09-02 22:59:30 | [Mutex] received everything.

2020-09-02 22:59:30 | [Mutex] isItemNotified: received:node:8c5fb42b-823a-4985-bc0c-9a127c27d486:localhost:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2 :: false

2020-09-02 22:59:30 | [Mutex] waiting for: [received:nodes:a7189e2f-5073-4793-a154-736973a4c0db:localhost]

2020-09-02 22:59:30 | [Mutex] received everything.

2020-09-02 22:59:30 | [Mutex] isItemNotified: received:node:a7189e2f-5073-4793-a154-736973a4c0db:localhost:node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2:Node 5d4a3a82-ba6e-448f-b987-99ec015ab7b2 :: false

publishItemsToNodes 0.048s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

2020-09-02 22:59:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "entry": "<test>item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8</test>",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8"
}

2020-09-02 22:59:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8"
}

2020-09-02 22:59:28 | [Mutex] waiting for: [published:item:notifieditem-87fb0663-7f76-4f3b-b669-ea4aaa1085d8:admin@test-domain.com]

2020-09-02 22:59:28 | [Mutex] received everything.

2020-09-02 22:59:28 | [Mutex] isItemNotified: published:item:notifieditem-87fb0663-7f76-4f3b-b669-ea4aaa1085d8:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

2020-09-02 22:59:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8"
}

2020-09-02 22:59:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8"
}

2020-09-02 22:59:28 | [Mutex] received everything.

2020-09-02 22:59:28 | [Mutex] isItemNotified: retracted:item:notifieditem-87fb0663-7f76-4f3b-b669-ea4aaa1085d8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

2020-09-02 22:59:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8"
}

2020-09-02 22:59:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "item-id": "item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8",
    "item": [
        "<item id=\"item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8\"><test>item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8</test></item>"
    ]
}

2020-09-02 22:59:28 | [Mutex] notify: [retrieved:item:item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8:payload-matches:true:localhost]

2020-09-02 22:59:28 | [Mutex] received everything.

2020-09-02 22:59:28 | [Mutex] isItemNotified: retrieved:item:item-87fb0663-7f76-4f3b-b669-ea4aaa1085d8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

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

2020-09-02 22:59:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-359643bc-98cf-47d3-a10b-b05be2fee0fa",
        "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

2020-09-02 22:59:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2)"
}

2020-09-02 22:59:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2020-09-02 22:59:27 |

2020-09-02 22:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:27 | ------------------------------------

2020-09-02 22:59:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.076s
2020-09-02 22:59:28 |

2020-09-02 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 22:59:28 | ------------------------------------

2020-09-02 22:59:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5d4a3a82-ba6e-448f-b987-99ec015ab7b2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-02 22:59:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}