Generated by TestNG with ReportNG at 21:42 PST on Wednesday 11 November 2020
root@43fec6d4badf / 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.108s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2020-11-11 21:58:41 |

2020-11-11 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:41 | ------------------------------------

2020-11-11 21:58:41 | [Mutex] waiting for: [configured:node:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:node-a65498aa-bc24-4a5c-acad-02c6790587be]

2020-11-11 21:58:41 | [Mutex] received everything.

2020-11-11 21:58:41 | [Mutex] isItemNotified: configured:node:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:node-a65498aa-bc24-4a5c-acad-02c6790587be :: true

2020-11-11 21:58:42 | [Mutex] waiting for: [received:nodes:c85d5ee9-c647-4d69-a75a-cbf17976a622:localhost]

2020-11-11 21:58:42 | [Mutex] received everything.

2020-11-11 21:58:42 | [Mutex] isItemNotified: received:node:c85d5ee9-c647-4d69-a75a-cbf17976a622:localhost:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f :: true

2020-11-11 21:58:42 | [Mutex] waiting for: [received:nodes:ed17e322-552e-4028-9e24-2e102ffa8f77:localhost]

2020-11-11 21:58:42 | [Mutex] received everything.

2020-11-11 21:58:42 | [Mutex] isItemNotified: received:node:ed17e322-552e-4028-9e24-2e102ffa8f77:localhost:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f :: false

createNodes 1.741s
2020-11-11 21:58:38 |

2020-11-11 21:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:38 | ------------------------------------

2020-11-11 21:58:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "pubsub#title": "Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f"
}

2020-11-11 21:58:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-11 21:58:40 | [Mutex] waiting for: [received:nodes:7e2ec9a2-5de1-41f9-b9f3-ca537b5234d8:localhost]

2020-11-11 21:58:40 | [Mutex] waiting for: [received:nodes:7e2ec9a2-5de1-41f9-b9f3-ca537b5234d8:localhost]

2020-11-11 21:58:40 | [Mutex] received everything.

2020-11-11 21:58:40 | [Mutex] isItemNotified: received:node:7e2ec9a2-5de1-41f9-b9f3-ca537b5234d8:localhost:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f :: true

createSubnodes 1.023s
2020-11-11 21:58:40 |

2020-11-11 21:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:40 | ------------------------------------

2020-11-11 21:58:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a65498aa-bc24-4a5c-acad-02c6790587be",
    "pubsub#title": "Node a65498aa-bc24-4a5c-acad-02c6790587be"
}

2020-11-11 21:58:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-11 21:58:41 | [Mutex] waiting for: [received:nodes:e490394a-b05b-41ca-b479-3ed8247191e6:localhost]

2020-11-11 21:58:41 | [Mutex] received everything.

2020-11-11 21:58:41 | [Mutex] isItemNotified: received:node:e490394a-b05b-41ca-b479-3ed8247191e6:localhost:node-a65498aa-bc24-4a5c-acad-02c6790587be:Node a65498aa-bc24-4a5c-acad-02c6790587be :: true

deleteNodes 1.020s
2020-11-11 21:58:46 |

2020-11-11 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:46 | ------------------------------------

2020-11-11 21:58:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a65498aa-bc24-4a5c-acad-02c6790587be"
}

2020-11-11 21:58:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-11 21:58:47 | [Mutex] waiting for: [received:nodes:767374ae-6c02-4e75-aafb-4f17009e3934:localhost]

2020-11-11 21:58:47 | [Mutex] received everything.

2020-11-11 21:58:47 | [Mutex] isItemNotified: received:node:767374ae-6c02-4e75-aafb-4f17009e3934:localhost:node-a65498aa-bc24-4a5c-acad-02c6790587be:Node a65498aa-bc24-4a5c-acad-02c6790587be :: false

deleteSubnodes 1.027s
2020-11-11 21:58:45 |

2020-11-11 21:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:45 | ------------------------------------

2020-11-11 21:58:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f"
}

2020-11-11 21:58:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-11 21:58:46 | [Mutex] waiting for: [received:nodes:205fcdd5-220f-49c6-a47d-8a2c5918042b:localhost]

2020-11-11 21:58:46 | [Mutex] waiting for: [received:nodes:205fcdd5-220f-49c6-a47d-8a2c5918042b:localhost]

2020-11-11 21:58:46 | [Mutex] received everything.

2020-11-11 21:58:46 | [Mutex] isItemNotified: received:node:205fcdd5-220f-49c6-a47d-8a2c5918042b:localhost:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f :: false

2020-11-11 21:58:46 | [Mutex] waiting for: [received:nodes:282ced2c-f340-4e90-84b5-f69c9c3579e2:localhost]

2020-11-11 21:58:46 | [Mutex] received everything.

2020-11-11 21:58:46 | [Mutex] isItemNotified: received:node:282ced2c-f340-4e90-84b5-f69c9c3579e2:localhost:node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f:Node bb52c7c7-85ac-4496-80a2-4cd56d09bd8f :: false

publishItemsToNodes 0.049s
2020-11-11 21:58:43 |

2020-11-11 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:43 | ------------------------------------

2020-11-11 21:58:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "entry": "<test>item-ca02fe2b-d33e-4295-8bd7-5044c4278a10</test>",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10"
}

2020-11-11 21:58:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10"
}

2020-11-11 21:58:43 | [Mutex] waiting for: [published:item:notifieditem-ca02fe2b-d33e-4295-8bd7-5044c4278a10:admin@test-domain.com]

2020-11-11 21:58:43 | [Mutex] received everything.

2020-11-11 21:58:43 | [Mutex] isItemNotified: published:item:notifieditem-ca02fe2b-d33e-4295-8bd7-5044c4278a10:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-11-11 21:58:43 |

2020-11-11 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:43 | ------------------------------------

2020-11-11 21:58:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10"
}

2020-11-11 21:58:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10"
}

2020-11-11 21:58:44 | [Mutex] received everything.

2020-11-11 21:58:44 | [Mutex] isItemNotified: retracted:item:notifieditem-ca02fe2b-d33e-4295-8bd7-5044c4278a10:admin@test-domain.com :: true

retrieveItemsFromNodes 0.107s
2020-11-11 21:58:43 |

2020-11-11 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:43 | ------------------------------------

2020-11-11 21:58:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10"
}

2020-11-11 21:58:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "item-id": "item-ca02fe2b-d33e-4295-8bd7-5044c4278a10",
    "item": [
        "<item id=\"item-ca02fe2b-d33e-4295-8bd7-5044c4278a10\"><test>item-ca02fe2b-d33e-4295-8bd7-5044c4278a10</test></item>"
    ]
}

2020-11-11 21:58:43 | [Mutex] notify: [retrieved:item:item-ca02fe2b-d33e-4295-8bd7-5044c4278a10:payload-matches:true:localhost]

2020-11-11 21:58:43 | [Mutex] received everything.

2020-11-11 21:58:43 | [Mutex] isItemNotified: retrieved:item:item-ca02fe2b-d33e-4295-8bd7-5044c4278a10:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-11-11 21:58:43 |

2020-11-11 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:43 | ------------------------------------

2020-11-11 21:58:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-11 21:58:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a65498aa-bc24-4a5c-acad-02c6790587be",
        "test",
        "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-11 21:58:43 |

2020-11-11 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:43 | ------------------------------------

2020-11-11 21:58:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f)"
}

2020-11-11 21:58:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-11-11 21:58:42 |

2020-11-11 21:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:42 | ------------------------------------

2020-11-11 21:58:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-11 21:58:42 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-11-11 21:58:44 |

2020-11-11 21:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-11 21:58:44 | ------------------------------------

2020-11-11 21:58:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bb52c7c7-85ac-4496-80a2-4cd56d09bd8f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-11 21:58:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}