Generated by TestNG with ReportNG at 23:01 PDT on Tuesday 20 October 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.244s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.135s
2020-10-20 23:19:34 |

2020-10-20 23:19:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:34 | ------------------------------------

2020-10-20 23:19:34 | [Mutex] waiting for: [configured:node:node-8307a310-9c00-400d-babf-bfb2b3f43dec:node-f404a48b-a4b2-4435-a1d7-0d37f46ada12]

2020-10-20 23:19:34 | [Mutex] received everything.

2020-10-20 23:19:34 | [Mutex] isItemNotified: configured:node:node-8307a310-9c00-400d-babf-bfb2b3f43dec:node-f404a48b-a4b2-4435-a1d7-0d37f46ada12 :: true

2020-10-20 23:19:35 | [Mutex] waiting for: [received:nodes:86bc0e5f-0dff-4ea5-9bbe-9012bb20c46f:localhost]

2020-10-20 23:19:35 | [Mutex] waiting for: [received:nodes:86bc0e5f-0dff-4ea5-9bbe-9012bb20c46f:localhost]

2020-10-20 23:19:35 | [Mutex] received everything.

2020-10-20 23:19:35 | [Mutex] isItemNotified: received:node:86bc0e5f-0dff-4ea5-9bbe-9012bb20c46f:localhost:node-8307a310-9c00-400d-babf-bfb2b3f43dec:Node 8307a310-9c00-400d-babf-bfb2b3f43dec :: true

2020-10-20 23:19:35 | [Mutex] waiting for: [received:nodes:5ae2811a-d093-4c49-91e5-7f6466cc68bb:localhost]

2020-10-20 23:19:35 | [Mutex] received everything.

2020-10-20 23:19:35 | [Mutex] isItemNotified: received:node:5ae2811a-d093-4c49-91e5-7f6466cc68bb:localhost:node-8307a310-9c00-400d-babf-bfb2b3f43dec:Node 8307a310-9c00-400d-babf-bfb2b3f43dec :: false

createNodes 1.771s
2020-10-20 23:19:31 |

2020-10-20 23:19:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:31 | ------------------------------------

2020-10-20 23:19:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "pubsub#title": "Node 8307a310-9c00-400d-babf-bfb2b3f43dec"
}

2020-10-20 23:19:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:19:33 | [Mutex] waiting for: [received:nodes:a12ad19e-7fb0-4663-a140-ae6a6e91b4d1:localhost]

2020-10-20 23:19:33 | [Mutex] received everything.

2020-10-20 23:19:33 | [Mutex] isItemNotified: received:node:a12ad19e-7fb0-4663-a140-ae6a6e91b4d1:localhost:node-8307a310-9c00-400d-babf-bfb2b3f43dec:Node 8307a310-9c00-400d-babf-bfb2b3f43dec :: true

createSubnodes 1.032s
2020-10-20 23:19:33 |

2020-10-20 23:19:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:33 | ------------------------------------

2020-10-20 23:19:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f404a48b-a4b2-4435-a1d7-0d37f46ada12",
    "pubsub#title": "Node f404a48b-a4b2-4435-a1d7-0d37f46ada12"
}

2020-10-20 23:19:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:19:34 | [Mutex] waiting for: [received:nodes:e9b66213-ffd1-46fb-9347-b6ddb96a2345:localhost]

2020-10-20 23:19:34 | [Mutex] received everything.

2020-10-20 23:19:34 | [Mutex] isItemNotified: received:node:e9b66213-ffd1-46fb-9347-b6ddb96a2345:localhost:node-f404a48b-a4b2-4435-a1d7-0d37f46ada12:Node f404a48b-a4b2-4435-a1d7-0d37f46ada12 :: true

deleteNodes 1.028s
2020-10-20 23:19:39 |

2020-10-20 23:19:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:39 | ------------------------------------

2020-10-20 23:19:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f404a48b-a4b2-4435-a1d7-0d37f46ada12"
}

2020-10-20 23:19:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:19:40 | [Mutex] waiting for: [received:nodes:74e428d9-4233-4588-9283-b480d3b763b5:localhost]

2020-10-20 23:19:40 | [Mutex] received everything.

2020-10-20 23:19:40 | [Mutex] isItemNotified: received:node:74e428d9-4233-4588-9283-b480d3b763b5:localhost:node-f404a48b-a4b2-4435-a1d7-0d37f46ada12:Node f404a48b-a4b2-4435-a1d7-0d37f46ada12 :: false

deleteSubnodes 1.038s
2020-10-20 23:19:38 |

2020-10-20 23:19:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:38 | ------------------------------------

2020-10-20 23:19:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec"
}

2020-10-20 23:19:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:19:39 | [Mutex] waiting for: [received:nodes:07a3ecd8-9ecb-425e-b7fc-23028073b738:localhost]

2020-10-20 23:19:39 | [Mutex] waiting for: [received:nodes:07a3ecd8-9ecb-425e-b7fc-23028073b738:localhost]

2020-10-20 23:19:39 | [Mutex] received everything.

2020-10-20 23:19:39 | [Mutex] isItemNotified: received:node:07a3ecd8-9ecb-425e-b7fc-23028073b738:localhost:node-8307a310-9c00-400d-babf-bfb2b3f43dec:Node 8307a310-9c00-400d-babf-bfb2b3f43dec :: false

2020-10-20 23:19:39 | [Mutex] waiting for: [received:nodes:6193cfb1-4e70-486b-93cc-4c2f65a472b2:localhost]

2020-10-20 23:19:39 | [Mutex] received everything.

2020-10-20 23:19:39 | [Mutex] isItemNotified: received:node:6193cfb1-4e70-486b-93cc-4c2f65a472b2:localhost:node-8307a310-9c00-400d-babf-bfb2b3f43dec:Node 8307a310-9c00-400d-babf-bfb2b3f43dec :: false

publishItemsToNodes 0.063s
2020-10-20 23:19:36 |

2020-10-20 23:19:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:36 | ------------------------------------

2020-10-20 23:19:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "entry": "<test>item-0f066681-1908-4c9d-9b48-c35c752f7ab9</test>",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9"
}

2020-10-20 23:19:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9"
}

2020-10-20 23:19:36 | [Mutex] waiting for: [published:item:notifieditem-0f066681-1908-4c9d-9b48-c35c752f7ab9:admin@test-domain.com]

2020-10-20 23:19:36 | [Mutex] received everything.

2020-10-20 23:19:36 | [Mutex] isItemNotified: published:item:notifieditem-0f066681-1908-4c9d-9b48-c35c752f7ab9:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-10-20 23:19:37 |

2020-10-20 23:19:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:37 | ------------------------------------

2020-10-20 23:19:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9"
}

2020-10-20 23:19:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9"
}

2020-10-20 23:19:37 | [Mutex] received everything.

2020-10-20 23:19:37 | [Mutex] isItemNotified: retracted:item:notifieditem-0f066681-1908-4c9d-9b48-c35c752f7ab9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2020-10-20 23:19:36 |

2020-10-20 23:19:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:36 | ------------------------------------

2020-10-20 23:19:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9"
}

2020-10-20 23:19:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "item-id": "item-0f066681-1908-4c9d-9b48-c35c752f7ab9",
    "item": [
        "<item id=\"item-0f066681-1908-4c9d-9b48-c35c752f7ab9\"><test>item-0f066681-1908-4c9d-9b48-c35c752f7ab9</test></item>"
    ]
}

2020-10-20 23:19:37 | [Mutex] notify: [retrieved:item:item-0f066681-1908-4c9d-9b48-c35c752f7ab9:payload-matches:true:localhost]

2020-10-20 23:19:37 | [Mutex] received everything.

2020-10-20 23:19:37 | [Mutex] isItemNotified: retrieved:item:item-0f066681-1908-4c9d-9b48-c35c752f7ab9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-10-20 23:19:37 |

2020-10-20 23:19:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:37 | ------------------------------------

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

2020-10-20 23:19:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
        "test",
        "node-f404a48b-a4b2-4435-a1d7-0d37f46ada12"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-20 23:19:37 |

2020-10-20 23:19:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:37 | ------------------------------------

2020-10-20 23:19:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8307a310-9c00-400d-babf-bfb2b3f43dec)"
}

2020-10-20 23:19:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-10-20 23:19:35 |

2020-10-20 23:19:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:35 | ------------------------------------

2020-10-20 23:19:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.108s
2020-10-20 23:19:37 |

2020-10-20 23:19:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:19:37 | ------------------------------------

2020-10-20 23:19:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8307a310-9c00-400d-babf-bfb2b3f43dec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-20 23:19:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}