Generated by TestNG with ReportNG at 21:43 PST on Friday 05 February 2021
root@87f6aca6b6f2 / 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 : 8.969s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2021-02-05 21:59:21 |

2021-02-05 21:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:21 | ------------------------------------

2021-02-05 21:59:21 | [Mutex] waiting for: [configured:node:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:node-ee4478b9-2386-49ce-9519-bcd7943dcfbb]

2021-02-05 21:59:21 | [Mutex] received everything.

2021-02-05 21:59:21 | [Mutex] isItemNotified: configured:node:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:node-ee4478b9-2386-49ce-9519-bcd7943dcfbb :: true

2021-02-05 21:59:22 | [Mutex] waiting for: [received:nodes:3894c81c-aaa2-4bfb-8300-7c6fb6b8323e:localhost]

2021-02-05 21:59:22 | [Mutex] waiting for: [received:nodes:3894c81c-aaa2-4bfb-8300-7c6fb6b8323e:localhost]

2021-02-05 21:59:22 | [Mutex] received everything.

2021-02-05 21:59:22 | [Mutex] isItemNotified: received:node:3894c81c-aaa2-4bfb-8300-7c6fb6b8323e:localhost:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:Node d6170cd3-cd39-4864-8b8b-62f5bc89d015 :: true

2021-02-05 21:59:22 | [Mutex] waiting for: [received:nodes:e7a5b83c-bf1f-4089-8fb7-f70094d89171:localhost]

2021-02-05 21:59:22 | [Mutex] waiting for: [received:nodes:e7a5b83c-bf1f-4089-8fb7-f70094d89171:localhost]

2021-02-05 21:59:22 | [Mutex] waiting for: [received:nodes:e7a5b83c-bf1f-4089-8fb7-f70094d89171:localhost]

2021-02-05 21:59:22 | [Mutex] received everything.

2021-02-05 21:59:22 | [Mutex] isItemNotified: received:node:e7a5b83c-bf1f-4089-8fb7-f70094d89171:localhost:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:Node d6170cd3-cd39-4864-8b8b-62f5bc89d015 :: false

createNodes 1.608s
2021-02-05 21:59:18 |

2021-02-05 21:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:18 | ------------------------------------

2021-02-05 21:59:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "pubsub#title": "Node d6170cd3-cd39-4864-8b8b-62f5bc89d015"
}

2021-02-05 21:59:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:59:20 | [Mutex] waiting for: [received:nodes:b3b39dff-3810-4dc2-ac49-52efb91ccf04:localhost]

2021-02-05 21:59:20 | [Mutex] waiting for: [received:nodes:b3b39dff-3810-4dc2-ac49-52efb91ccf04:localhost]

2021-02-05 21:59:20 | [Mutex] received everything.

2021-02-05 21:59:20 | [Mutex] isItemNotified: received:node:b3b39dff-3810-4dc2-ac49-52efb91ccf04:localhost:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:Node d6170cd3-cd39-4864-8b8b-62f5bc89d015 :: true

createSubnodes 1.023s
2021-02-05 21:59:20 |

2021-02-05 21:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:20 | ------------------------------------

2021-02-05 21:59:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ee4478b9-2386-49ce-9519-bcd7943dcfbb",
    "pubsub#title": "Node ee4478b9-2386-49ce-9519-bcd7943dcfbb"
}

2021-02-05 21:59:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:59:21 | [Mutex] waiting for: [received:nodes:a3e532ca-92dc-4565-9a10-e45fbc676297:localhost]

2021-02-05 21:59:21 | [Mutex] received everything.

2021-02-05 21:59:21 | [Mutex] isItemNotified: received:node:a3e532ca-92dc-4565-9a10-e45fbc676297:localhost:node-ee4478b9-2386-49ce-9519-bcd7943dcfbb:Node ee4478b9-2386-49ce-9519-bcd7943dcfbb :: true

deleteNodes 1.025s
2021-02-05 21:59:25 |

2021-02-05 21:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:25 | ------------------------------------

2021-02-05 21:59:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee4478b9-2386-49ce-9519-bcd7943dcfbb"
}

2021-02-05 21:59:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:59:26 | [Mutex] waiting for: [received:nodes:9b218551-90ab-4b76-9b8b-e41aca65457e:localhost]

2021-02-05 21:59:26 | [Mutex] received everything.

2021-02-05 21:59:26 | [Mutex] isItemNotified: received:node:9b218551-90ab-4b76-9b8b-e41aca65457e:localhost:node-ee4478b9-2386-49ce-9519-bcd7943dcfbb:Node ee4478b9-2386-49ce-9519-bcd7943dcfbb :: false

deleteSubnodes 1.028s
2021-02-05 21:59:24 |

2021-02-05 21:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:24 | ------------------------------------

2021-02-05 21:59:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015"
}

2021-02-05 21:59:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:59:25 | [Mutex] waiting for: [received:nodes:96f57d6f-2690-4697-9ea3-61c51fe149cd:localhost]

2021-02-05 21:59:25 | [Mutex] received everything.

2021-02-05 21:59:25 | [Mutex] isItemNotified: received:node:96f57d6f-2690-4697-9ea3-61c51fe149cd:localhost:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:Node d6170cd3-cd39-4864-8b8b-62f5bc89d015 :: false

2021-02-05 21:59:25 | [Mutex] waiting for: [received:nodes:1706ae74-54df-4d00-8cd8-233be0dd79cc:localhost]

2021-02-05 21:59:25 | [Mutex] received everything.

2021-02-05 21:59:25 | [Mutex] isItemNotified: received:node:1706ae74-54df-4d00-8cd8-233be0dd79cc:localhost:node-d6170cd3-cd39-4864-8b8b-62f5bc89d015:Node d6170cd3-cd39-4864-8b8b-62f5bc89d015 :: false

publishItemsToNodes 0.042s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "entry": "<test>item-f6d0bc4a-4084-4b63-8159-37398f63dead</test>",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead"
}

2021-02-05 21:59:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead"
}

2021-02-05 21:59:23 | [Mutex] waiting for: [published:item:notifieditem-f6d0bc4a-4084-4b63-8159-37398f63dead:admin@test-domain.com]

2021-02-05 21:59:23 | [Mutex] received everything.

2021-02-05 21:59:23 | [Mutex] isItemNotified: published:item:notifieditem-f6d0bc4a-4084-4b63-8159-37398f63dead:admin@test-domain.com :: true

retractItemsFromNodes 0.092s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead"
}

2021-02-05 21:59:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead"
}

2021-02-05 21:59:23 | [Mutex] waiting for: [retracted:item:notifieditem-f6d0bc4a-4084-4b63-8159-37398f63dead:admin@test-domain.com]

2021-02-05 21:59:23 | [Mutex] received everything.

2021-02-05 21:59:23 | [Mutex] isItemNotified: retracted:item:notifieditem-f6d0bc4a-4084-4b63-8159-37398f63dead:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead"
}

2021-02-05 21:59:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "item-id": "item-f6d0bc4a-4084-4b63-8159-37398f63dead",
    "item": [
        "<item id=\"item-f6d0bc4a-4084-4b63-8159-37398f63dead\"><test>item-f6d0bc4a-4084-4b63-8159-37398f63dead</test></item>"
    ]
}

2021-02-05 21:59:23 | [Mutex] notify: [retrieved:item:item-f6d0bc4a-4084-4b63-8159-37398f63dead:payload-matches:true:localhost]

2021-02-05 21:59:23 | [Mutex] received everything.

2021-02-05 21:59:23 | [Mutex] isItemNotified: retrieved:item:item-f6d0bc4a-4084-4b63-8159-37398f63dead:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-05 21:59:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
        "node-ee4478b9-2386-49ce-9519-bcd7943dcfbb",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d6170cd3-cd39-4864-8b8b-62f5bc89d015)"
}

2021-02-05 21:59:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-02-05 21:59:22 |

2021-02-05 21:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:22 | ------------------------------------

2021-02-05 21:59:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 21:59:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2021-02-05 21:59:23 |

2021-02-05 21:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:59:23 | ------------------------------------

2021-02-05 21:59:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d6170cd3-cd39-4864-8b8b-62f5bc89d015",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 21:59:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}