Generated by TestNG with ReportNG at 20:20 PDT on Tuesday 25 August 2020
root@9adf47d9b258 / 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.250s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.132s
2020-08-25 20:36:10 |

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

2020-08-25 20:36:10 | ------------------------------------

2020-08-25 20:36:10 | [Mutex] waiting for: [configured:node:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:node-ba305115-631b-4f61-8b7d-8f6a533789d7]

2020-08-25 20:36:10 | [Mutex] received everything.

2020-08-25 20:36:10 | [Mutex] isItemNotified: configured:node:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:node-ba305115-631b-4f61-8b7d-8f6a533789d7 :: true

2020-08-25 20:36:11 | [Mutex] waiting for: [received:nodes:0996c127-da13-4bcb-9e8e-b4fd30162747:localhost]

2020-08-25 20:36:11 | [Mutex] received everything.

2020-08-25 20:36:11 | [Mutex] isItemNotified: received:node:0996c127-da13-4bcb-9e8e-b4fd30162747:localhost:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:Node 91497fdc-0f6f-467b-851a-c93fc233e3d7 :: true

2020-08-25 20:36:11 | [Mutex] waiting for: [received:nodes:feed81de-7de5-4266-81e6-f518c39eaa81:localhost]

2020-08-25 20:36:11 | [Mutex] received everything.

2020-08-25 20:36:11 | [Mutex] isItemNotified: received:node:feed81de-7de5-4266-81e6-f518c39eaa81:localhost:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:Node 91497fdc-0f6f-467b-851a-c93fc233e3d7 :: false

createNodes 1.715s
2020-08-25 20:36:07 |

2020-08-25 20:36:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:07 | ------------------------------------

2020-08-25 20:36:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "pubsub#title": "Node 91497fdc-0f6f-467b-851a-c93fc233e3d7"
}

2020-08-25 20:36:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:36:09 | [Mutex] waiting for: [received:nodes:9f565552-abc1-4d21-99ad-ccd7bd5a3c58:localhost]

2020-08-25 20:36:09 | [Mutex] received everything.

2020-08-25 20:36:09 | [Mutex] isItemNotified: received:node:9f565552-abc1-4d21-99ad-ccd7bd5a3c58:localhost:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:Node 91497fdc-0f6f-467b-851a-c93fc233e3d7 :: true

createSubnodes 1.028s
2020-08-25 20:36:09 |

2020-08-25 20:36:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:09 | ------------------------------------

2020-08-25 20:36:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ba305115-631b-4f61-8b7d-8f6a533789d7",
    "pubsub#title": "Node ba305115-631b-4f61-8b7d-8f6a533789d7"
}

2020-08-25 20:36:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:36:10 | [Mutex] waiting for: [received:nodes:7601844d-84d7-4247-8e57-93d6471d044c:localhost]

2020-08-25 20:36:10 | [Mutex] received everything.

2020-08-25 20:36:10 | [Mutex] isItemNotified: received:node:7601844d-84d7-4247-8e57-93d6471d044c:localhost:node-ba305115-631b-4f61-8b7d-8f6a533789d7:Node ba305115-631b-4f61-8b7d-8f6a533789d7 :: true

deleteNodes 1.028s
2020-08-25 20:36:15 |

2020-08-25 20:36:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:15 | ------------------------------------

2020-08-25 20:36:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ba305115-631b-4f61-8b7d-8f6a533789d7"
}

2020-08-25 20:36:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:36:16 | [Mutex] waiting for: [received:nodes:5ea0ff3b-67f8-4aae-aebd-fcff3befdc5f:localhost]

2020-08-25 20:36:16 | [Mutex] received everything.

2020-08-25 20:36:16 | [Mutex] isItemNotified: received:node:5ea0ff3b-67f8-4aae-aebd-fcff3befdc5f:localhost:node-ba305115-631b-4f61-8b7d-8f6a533789d7:Node ba305115-631b-4f61-8b7d-8f6a533789d7 :: false

deleteSubnodes 1.032s
2020-08-25 20:36:14 |

2020-08-25 20:36:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:14 | ------------------------------------

2020-08-25 20:36:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7"
}

2020-08-25 20:36:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 20:36:15 | [Mutex] waiting for: [received:nodes:37e226ab-f5d0-4dd1-90ee-3b18783516b0:localhost]

2020-08-25 20:36:15 | [Mutex] received everything.

2020-08-25 20:36:15 | [Mutex] isItemNotified: received:node:37e226ab-f5d0-4dd1-90ee-3b18783516b0:localhost:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:Node 91497fdc-0f6f-467b-851a-c93fc233e3d7 :: false

2020-08-25 20:36:15 | [Mutex] waiting for: [received:nodes:69b80741-0078-4de5-b686-f6f4173d4035:localhost]

2020-08-25 20:36:15 | [Mutex] received everything.

2020-08-25 20:36:15 | [Mutex] isItemNotified: received:node:69b80741-0078-4de5-b686-f6f4173d4035:localhost:node-91497fdc-0f6f-467b-851a-c93fc233e3d7:Node 91497fdc-0f6f-467b-851a-c93fc233e3d7 :: false

publishItemsToNodes 0.066s
2020-08-25 20:36:12 |

2020-08-25 20:36:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:12 | ------------------------------------

2020-08-25 20:36:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "entry": "<test>item-11977f78-542e-4c77-b596-362fa68b4daf</test>",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf"
}

2020-08-25 20:36:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf"
}

2020-08-25 20:36:12 | [Mutex] waiting for: [published:item:notifieditem-11977f78-542e-4c77-b596-362fa68b4daf:admin@test-domain.com]

2020-08-25 20:36:12 | [Mutex] received everything.

2020-08-25 20:36:12 | [Mutex] isItemNotified: published:item:notifieditem-11977f78-542e-4c77-b596-362fa68b4daf:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-08-25 20:36:13 |

2020-08-25 20:36:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:13 | ------------------------------------

2020-08-25 20:36:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf"
}

2020-08-25 20:36:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf"
}

2020-08-25 20:36:13 | [Mutex] received everything.

2020-08-25 20:36:13 | [Mutex] isItemNotified: retracted:item:notifieditem-11977f78-542e-4c77-b596-362fa68b4daf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2020-08-25 20:36:12 |

2020-08-25 20:36:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:12 | ------------------------------------

2020-08-25 20:36:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf"
}

2020-08-25 20:36:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "item-id": "item-11977f78-542e-4c77-b596-362fa68b4daf",
    "item": [
        "<item id=\"item-11977f78-542e-4c77-b596-362fa68b4daf\"><test>item-11977f78-542e-4c77-b596-362fa68b4daf</test></item>"
    ]
}

2020-08-25 20:36:12 | [Mutex] notify: [retrieved:item:item-11977f78-542e-4c77-b596-362fa68b4daf:payload-matches:true:localhost]

2020-08-25 20:36:12 | [Mutex] received everything.

2020-08-25 20:36:12 | [Mutex] isItemNotified: retrieved:item:item-11977f78-542e-4c77-b596-362fa68b4daf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-08-25 20:36:12 |

2020-08-25 20:36:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:12 | ------------------------------------

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

2020-08-25 20:36:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
        "test",
        "node-ba305115-631b-4f61-8b7d-8f6a533789d7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-25 20:36:12 |

2020-08-25 20:36:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:12 | ------------------------------------

2020-08-25 20:36:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-91497fdc-0f6f-467b-851a-c93fc233e3d7)"
}

2020-08-25 20:36:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-08-25 20:36:11 |

2020-08-25 20:36:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:11 | ------------------------------------

2020-08-25 20:36:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 20:36:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-08-25 20:36:13 |

2020-08-25 20:36:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 20:36:13 | ------------------------------------

2020-08-25 20:36:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-91497fdc-0f6f-467b-851a-c93fc233e3d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 20:36:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}