Generated by TestNG with ReportNG at 21:13 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.137s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.141s
2020-11-11 21:29:40 |

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

2020-11-11 21:29:40 | ------------------------------------

2020-11-11 21:29:40 | [Mutex] waiting for: [configured:node:node-20021497-961b-4e3b-85d0-5c4a4d887396:node-6e22a1da-c007-4c51-b974-b7f5fefbb16d]

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

2020-11-11 21:29:40 | [Mutex] isItemNotified: configured:node:node-20021497-961b-4e3b-85d0-5c4a4d887396:node-6e22a1da-c007-4c51-b974-b7f5fefbb16d :: true

2020-11-11 21:29:41 | [Mutex] waiting for: [received:nodes:13642614-741c-4af2-b07a-4d3d7aa1dfee:localhost]

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

2020-11-11 21:29:41 | [Mutex] isItemNotified: received:node:13642614-741c-4af2-b07a-4d3d7aa1dfee:localhost:node-20021497-961b-4e3b-85d0-5c4a4d887396:Node 20021497-961b-4e3b-85d0-5c4a4d887396 :: true

2020-11-11 21:29:41 | [Mutex] waiting for: [received:nodes:fa5761c3-9488-4316-af61-11d131bc17c7:localhost]

2020-11-11 21:29:41 | [Mutex] waiting for: [received:nodes:fa5761c3-9488-4316-af61-11d131bc17c7:localhost]

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

2020-11-11 21:29:41 | [Mutex] isItemNotified: received:node:fa5761c3-9488-4316-af61-11d131bc17c7:localhost:node-20021497-961b-4e3b-85d0-5c4a4d887396:Node 20021497-961b-4e3b-85d0-5c4a4d887396 :: false

createNodes 1.628s
2020-11-11 21:29:37 |

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

2020-11-11 21:29:37 | ------------------------------------

2020-11-11 21:29:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "pubsub#title": "Node 20021497-961b-4e3b-85d0-5c4a4d887396"
}

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

2020-11-11 21:29:39 | [Mutex] waiting for: [received:nodes:ffbe843d-e0d2-44da-9486-f941a16905ea:localhost]

2020-11-11 21:29:39 | [Mutex] waiting for: [received:nodes:ffbe843d-e0d2-44da-9486-f941a16905ea:localhost]

2020-11-11 21:29:39 | [Mutex] waiting for: [received:nodes:ffbe843d-e0d2-44da-9486-f941a16905ea:localhost]

2020-11-11 21:29:39 | [Mutex] received everything.

2020-11-11 21:29:39 | [Mutex] isItemNotified: received:node:ffbe843d-e0d2-44da-9486-f941a16905ea:localhost:node-20021497-961b-4e3b-85d0-5c4a4d887396:Node 20021497-961b-4e3b-85d0-5c4a4d887396 :: true

createSubnodes 1.032s
2020-11-11 21:29:39 |

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

2020-11-11 21:29:39 | ------------------------------------

2020-11-11 21:29:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6e22a1da-c007-4c51-b974-b7f5fefbb16d",
    "pubsub#title": "Node 6e22a1da-c007-4c51-b974-b7f5fefbb16d"
}

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

2020-11-11 21:29:40 | [Mutex] waiting for: [received:nodes:90edaa62-bbc5-4687-afff-364d1b6a5ee9:localhost]

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

2020-11-11 21:29:40 | [Mutex] isItemNotified: received:node:90edaa62-bbc5-4687-afff-364d1b6a5ee9:localhost:node-6e22a1da-c007-4c51-b974-b7f5fefbb16d:Node 6e22a1da-c007-4c51-b974-b7f5fefbb16d :: true

deleteNodes 1.027s
2020-11-11 21:29:44 |

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

2020-11-11 21:29:44 | ------------------------------------

2020-11-11 21:29:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6e22a1da-c007-4c51-b974-b7f5fefbb16d"
}

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

2020-11-11 21:29:45 | [Mutex] waiting for: [received:nodes:9af01538-3624-4688-a265-fb8a3c20c248:localhost]

2020-11-11 21:29:45 | [Mutex] waiting for: [received:nodes:9af01538-3624-4688-a265-fb8a3c20c248:localhost]

2020-11-11 21:29:45 | [Mutex] received everything.

2020-11-11 21:29:45 | [Mutex] isItemNotified: received:node:9af01538-3624-4688-a265-fb8a3c20c248:localhost:node-6e22a1da-c007-4c51-b974-b7f5fefbb16d:Node 6e22a1da-c007-4c51-b974-b7f5fefbb16d :: false

deleteSubnodes 1.031s
2020-11-11 21:29:43 |

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

2020-11-11 21:29:43 | ------------------------------------

2020-11-11 21:29:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396"
}

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

2020-11-11 21:29:44 | [Mutex] waiting for: [received:nodes:d483dacd-1656-4685-99cc-0e8a6831bb4d:localhost]

2020-11-11 21:29:44 | [Mutex] waiting for: [received:nodes:d483dacd-1656-4685-99cc-0e8a6831bb4d:localhost]

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

2020-11-11 21:29:44 | [Mutex] isItemNotified: received:node:d483dacd-1656-4685-99cc-0e8a6831bb4d:localhost:node-20021497-961b-4e3b-85d0-5c4a4d887396:Node 20021497-961b-4e3b-85d0-5c4a4d887396 :: false

2020-11-11 21:29:44 | [Mutex] waiting for: [received:nodes:30c4952f-82bf-4bc2-9fb4-6c1c839d0eda:localhost]

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

2020-11-11 21:29:44 | [Mutex] isItemNotified: received:node:30c4952f-82bf-4bc2-9fb4-6c1c839d0eda:localhost:node-20021497-961b-4e3b-85d0-5c4a4d887396:Node 20021497-961b-4e3b-85d0-5c4a4d887396 :: false

publishItemsToNodes 0.066s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

2020-11-11 21:29:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "entry": "<test>item-1696aaa7-691f-46de-8a1d-834d0e161f55</test>",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55"
}

2020-11-11 21:29:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55"
}

2020-11-11 21:29:42 | [Mutex] waiting for: [published:item:notifieditem-1696aaa7-691f-46de-8a1d-834d0e161f55:admin@test-domain.com]

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

2020-11-11 21:29:42 | [Mutex] isItemNotified: published:item:notifieditem-1696aaa7-691f-46de-8a1d-834d0e161f55:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

2020-11-11 21:29:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55"
}

2020-11-11 21:29:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55"
}

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

2020-11-11 21:29:42 | [Mutex] isItemNotified: retracted:item:notifieditem-1696aaa7-691f-46de-8a1d-834d0e161f55:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

2020-11-11 21:29:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55"
}

2020-11-11 21:29:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "item-id": "item-1696aaa7-691f-46de-8a1d-834d0e161f55",
    "item": [
        "<item id=\"item-1696aaa7-691f-46de-8a1d-834d0e161f55\"><test>item-1696aaa7-691f-46de-8a1d-834d0e161f55</test></item>"
    ]
}

2020-11-11 21:29:42 | [Mutex] notify: [retrieved:item:item-1696aaa7-691f-46de-8a1d-834d0e161f55:payload-matches:true:localhost]

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

2020-11-11 21:29:42 | [Mutex] isItemNotified: retrieved:item:item-1696aaa7-691f-46de-8a1d-834d0e161f55:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

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

2020-11-11 21:29:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6e22a1da-c007-4c51-b974-b7f5fefbb16d",
        "test",
        "node-20021497-961b-4e3b-85d0-5c4a4d887396"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

2020-11-11 21:29:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20021497-961b-4e3b-85d0-5c4a4d887396)"
}

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

subscribeNodes 1.013s
2020-11-11 21:29:41 |

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

2020-11-11 21:29:41 | ------------------------------------

2020-11-11 21:29:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.103s
2020-11-11 21:29:42 |

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

2020-11-11 21:29:42 | ------------------------------------

2020-11-11 21:29:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20021497-961b-4e3b-85d0-5c4a4d887396",
    "jids": [
        "admin@test-domain.com"
    ]
}

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