Generated by TestNG with ReportNG at 23:36 PDT on Monday 28 September 2020
root@c4d4cd81149d / 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.142s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-09-28 23:54:42 |

2020-09-28 23:54:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:42 | ------------------------------------

2020-09-28 23:54:42 | [Mutex] waiting for: [configured:node:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:node-1f8bcc5b-0631-4a15-9348-980375d02680]

2020-09-28 23:54:42 | [Mutex] received everything.

2020-09-28 23:54:42 | [Mutex] isItemNotified: configured:node:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:node-1f8bcc5b-0631-4a15-9348-980375d02680 :: true

2020-09-28 23:54:43 | [Mutex] waiting for: [received:nodes:e0a955c2-e914-405e-98d3-15cda8e6d214:localhost]

2020-09-28 23:54:43 | [Mutex] received everything.

2020-09-28 23:54:43 | [Mutex] isItemNotified: received:node:e0a955c2-e914-405e-98d3-15cda8e6d214:localhost:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:Node a1410f18-b49b-4822-8bd8-9486d5ab5601 :: true

2020-09-28 23:54:43 | [Mutex] waiting for: [received:nodes:aa7f5e14-08c9-4fc3-b37b-4f42e8a4fb64:localhost]

2020-09-28 23:54:43 | [Mutex] waiting for: [received:nodes:aa7f5e14-08c9-4fc3-b37b-4f42e8a4fb64:localhost]

2020-09-28 23:54:43 | [Mutex] waiting for: [received:nodes:aa7f5e14-08c9-4fc3-b37b-4f42e8a4fb64:localhost]

2020-09-28 23:54:43 | [Mutex] received everything.

2020-09-28 23:54:43 | [Mutex] isItemNotified: received:node:aa7f5e14-08c9-4fc3-b37b-4f42e8a4fb64:localhost:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:Node a1410f18-b49b-4822-8bd8-9486d5ab5601 :: false

createNodes 1.761s
2020-09-28 23:54:39 |

2020-09-28 23:54:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:39 | ------------------------------------

2020-09-28 23:54:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "pubsub#title": "Node a1410f18-b49b-4822-8bd8-9486d5ab5601"
}

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

2020-09-28 23:54:41 | [Mutex] waiting for: [received:nodes:7e54f70a-1aa4-407b-91e7-5f96aa059ca0:localhost]

2020-09-28 23:54:41 | [Mutex] received everything.

2020-09-28 23:54:41 | [Mutex] isItemNotified: received:node:7e54f70a-1aa4-407b-91e7-5f96aa059ca0:localhost:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:Node a1410f18-b49b-4822-8bd8-9486d5ab5601 :: true

createSubnodes 1.023s
2020-09-28 23:54:41 |

2020-09-28 23:54:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:41 | ------------------------------------

2020-09-28 23:54:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1f8bcc5b-0631-4a15-9348-980375d02680",
    "pubsub#title": "Node 1f8bcc5b-0631-4a15-9348-980375d02680"
}

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

2020-09-28 23:54:42 | [Mutex] waiting for: [received:nodes:1af37024-eb63-4380-b9fe-93ee6c7b3564:localhost]

2020-09-28 23:54:42 | [Mutex] received everything.

2020-09-28 23:54:42 | [Mutex] isItemNotified: received:node:1af37024-eb63-4380-b9fe-93ee6c7b3564:localhost:node-1f8bcc5b-0631-4a15-9348-980375d02680:Node 1f8bcc5b-0631-4a15-9348-980375d02680 :: true

deleteNodes 1.030s
2020-09-28 23:54:47 |

2020-09-28 23:54:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:47 | ------------------------------------

2020-09-28 23:54:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1f8bcc5b-0631-4a15-9348-980375d02680"
}

2020-09-28 23:54:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 23:54:48 | [Mutex] waiting for: [received:nodes:fe5f311c-fa3f-4084-8363-3b7baf232d3b:localhost]

2020-09-28 23:54:48 | [Mutex] waiting for: [received:nodes:fe5f311c-fa3f-4084-8363-3b7baf232d3b:localhost]

2020-09-28 23:54:48 | [Mutex] received everything.

2020-09-28 23:54:48 | [Mutex] isItemNotified: received:node:fe5f311c-fa3f-4084-8363-3b7baf232d3b:localhost:node-1f8bcc5b-0631-4a15-9348-980375d02680:Node 1f8bcc5b-0631-4a15-9348-980375d02680 :: false

deleteSubnodes 1.027s
2020-09-28 23:54:46 |

2020-09-28 23:54:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:46 | ------------------------------------

2020-09-28 23:54:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601"
}

2020-09-28 23:54:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 23:54:47 | [Mutex] waiting for: [received:nodes:5d796cf3-44a6-4590-af81-1fe9179a47bc:localhost]

2020-09-28 23:54:47 | [Mutex] waiting for: [received:nodes:5d796cf3-44a6-4590-af81-1fe9179a47bc:localhost]

2020-09-28 23:54:47 | [Mutex] waiting for: [received:nodes:5d796cf3-44a6-4590-af81-1fe9179a47bc:localhost]

2020-09-28 23:54:47 | [Mutex] waiting for: [received:nodes:5d796cf3-44a6-4590-af81-1fe9179a47bc:localhost]

2020-09-28 23:54:47 | [Mutex] received everything.

2020-09-28 23:54:47 | [Mutex] isItemNotified: received:node:5d796cf3-44a6-4590-af81-1fe9179a47bc:localhost:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:Node a1410f18-b49b-4822-8bd8-9486d5ab5601 :: false

2020-09-28 23:54:47 | [Mutex] waiting for: [received:nodes:49b3a411-7150-464f-84ad-f010814c0c03:localhost]

2020-09-28 23:54:47 | [Mutex] received everything.

2020-09-28 23:54:47 | [Mutex] isItemNotified: received:node:49b3a411-7150-464f-84ad-f010814c0c03:localhost:node-a1410f18-b49b-4822-8bd8-9486d5ab5601:Node a1410f18-b49b-4822-8bd8-9486d5ab5601 :: false

publishItemsToNodes 0.031s
2020-09-28 23:54:44 |

2020-09-28 23:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:44 | ------------------------------------

2020-09-28 23:54:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "entry": "<test>item-fe4e0482-85d4-43db-bdb3-dce77b5e578e</test>",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e"
}

2020-09-28 23:54:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e"
}

2020-09-28 23:54:44 | [Mutex] received everything.

2020-09-28 23:54:44 | [Mutex] isItemNotified: published:item:notifieditem-fe4e0482-85d4-43db-bdb3-dce77b5e578e:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-28 23:54:44 |

2020-09-28 23:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:44 | ------------------------------------

2020-09-28 23:54:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e"
}

2020-09-28 23:54:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e"
}

2020-09-28 23:54:45 | [Mutex] received everything.

2020-09-28 23:54:45 | [Mutex] isItemNotified: retracted:item:notifieditem-fe4e0482-85d4-43db-bdb3-dce77b5e578e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2020-09-28 23:54:44 |

2020-09-28 23:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:44 | ------------------------------------

2020-09-28 23:54:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e"
}

2020-09-28 23:54:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "item-id": "item-fe4e0482-85d4-43db-bdb3-dce77b5e578e",
    "item": [
        "<item id=\"item-fe4e0482-85d4-43db-bdb3-dce77b5e578e\"><test>item-fe4e0482-85d4-43db-bdb3-dce77b5e578e</test></item>"
    ]
}

2020-09-28 23:54:44 | [Mutex] notify: [retrieved:item:item-fe4e0482-85d4-43db-bdb3-dce77b5e578e:payload-matches:true:localhost]

2020-09-28 23:54:44 | [Mutex] received everything.

2020-09-28 23:54:44 | [Mutex] isItemNotified: retrieved:item:item-fe4e0482-85d4-43db-bdb3-dce77b5e578e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-28 23:54:44 |

2020-09-28 23:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:44 | ------------------------------------

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

2020-09-28 23:54:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
        "node-1f8bcc5b-0631-4a15-9348-980375d02680"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-28 23:54:44 |

2020-09-28 23:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:44 | ------------------------------------

2020-09-28 23:54:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a1410f18-b49b-4822-8bd8-9486d5ab5601)"
}

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

subscribeNodes 1.010s
2020-09-28 23:54:43 |

2020-09-28 23:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:43 | ------------------------------------

2020-09-28 23:54:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-28 23:54:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-28 23:54:45 |

2020-09-28 23:54:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 23:54:45 | ------------------------------------

2020-09-28 23:54:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a1410f18-b49b-4822-8bd8-9486d5ab5601",
    "jids": [
        "admin@test-domain.com"
    ]
}

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