Generated by TestNG with ReportNG at 21:43 PST on Monday 21 December 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.205s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2020-12-21 21:57:23 |

2020-12-21 21:57:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:23 | ------------------------------------

2020-12-21 21:57:23 | [Mutex] waiting for: [configured:node:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:node-e967f38a-1f46-44bd-af3f-e03b533fd6c4]

2020-12-21 21:57:23 | [Mutex] received everything.

2020-12-21 21:57:23 | [Mutex] isItemNotified: configured:node:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:node-e967f38a-1f46-44bd-af3f-e03b533fd6c4 :: true

2020-12-21 21:57:24 | [Mutex] waiting for: [received:nodes:2800ae4d-696c-462c-8009-85eb74e48378:localhost]

2020-12-21 21:57:24 | [Mutex] received everything.

2020-12-21 21:57:24 | [Mutex] isItemNotified: received:node:2800ae4d-696c-462c-8009-85eb74e48378:localhost:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:Node ea8747f2-4d74-46ab-becf-428cb476a5ad :: true

2020-12-21 21:57:24 | [Mutex] waiting for: [received:nodes:cceb9135-11a1-4f38-b624-9ed8f9f14408:localhost]

2020-12-21 21:57:24 | [Mutex] received everything.

2020-12-21 21:57:24 | [Mutex] isItemNotified: received:node:cceb9135-11a1-4f38-b624-9ed8f9f14408:localhost:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:Node ea8747f2-4d74-46ab-becf-428cb476a5ad :: false

createNodes 1.744s
2020-12-21 21:57:20 |

2020-12-21 21:57:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:20 | ------------------------------------

2020-12-21 21:57:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "pubsub#title": "Node ea8747f2-4d74-46ab-becf-428cb476a5ad"
}

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

2020-12-21 21:57:22 | [Mutex] waiting for: [received:nodes:0262edd1-fc42-4264-b275-2c2c58c7bd60:localhost]

2020-12-21 21:57:22 | [Mutex] waiting for: [received:nodes:0262edd1-fc42-4264-b275-2c2c58c7bd60:localhost]

2020-12-21 21:57:22 | [Mutex] received everything.

2020-12-21 21:57:22 | [Mutex] isItemNotified: received:node:0262edd1-fc42-4264-b275-2c2c58c7bd60:localhost:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:Node ea8747f2-4d74-46ab-becf-428cb476a5ad :: true

createSubnodes 1.025s
2020-12-21 21:57:22 |

2020-12-21 21:57:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:22 | ------------------------------------

2020-12-21 21:57:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e967f38a-1f46-44bd-af3f-e03b533fd6c4",
    "pubsub#title": "Node e967f38a-1f46-44bd-af3f-e03b533fd6c4"
}

2020-12-21 21:57:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:57:23 | [Mutex] waiting for: [received:nodes:673e9757-790d-49c0-add4-46d6847e59eb:localhost]

2020-12-21 21:57:23 | [Mutex] received everything.

2020-12-21 21:57:23 | [Mutex] isItemNotified: received:node:673e9757-790d-49c0-add4-46d6847e59eb:localhost:node-e967f38a-1f46-44bd-af3f-e03b533fd6c4:Node e967f38a-1f46-44bd-af3f-e03b533fd6c4 :: true

deleteNodes 1.020s
2020-12-21 21:57:28 |

2020-12-21 21:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:28 | ------------------------------------

2020-12-21 21:57:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e967f38a-1f46-44bd-af3f-e03b533fd6c4"
}

2020-12-21 21:57:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:57:29 | [Mutex] waiting for: [received:nodes:33b14908-cb7c-4e7f-8ce1-c291dcb4de4a:localhost]

2020-12-21 21:57:29 | [Mutex] received everything.

2020-12-21 21:57:29 | [Mutex] isItemNotified: received:node:33b14908-cb7c-4e7f-8ce1-c291dcb4de4a:localhost:node-e967f38a-1f46-44bd-af3f-e03b533fd6c4:Node e967f38a-1f46-44bd-af3f-e03b533fd6c4 :: false

deleteSubnodes 1.031s
2020-12-21 21:57:27 |

2020-12-21 21:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:27 | ------------------------------------

2020-12-21 21:57:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad"
}

2020-12-21 21:57:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:57:28 | [Mutex] waiting for: [received:nodes:405bf159-8531-484f-98d2-1a507ab089c4:localhost]

2020-12-21 21:57:28 | [Mutex] waiting for: [received:nodes:405bf159-8531-484f-98d2-1a507ab089c4:localhost]

2020-12-21 21:57:28 | [Mutex] received everything.

2020-12-21 21:57:28 | [Mutex] isItemNotified: received:node:405bf159-8531-484f-98d2-1a507ab089c4:localhost:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:Node ea8747f2-4d74-46ab-becf-428cb476a5ad :: false

2020-12-21 21:57:28 | [Mutex] waiting for: [received:nodes:509e1797-b6a8-4d2c-97a7-92d0f51192f0:localhost]

2020-12-21 21:57:28 | [Mutex] received everything.

2020-12-21 21:57:28 | [Mutex] isItemNotified: received:node:509e1797-b6a8-4d2c-97a7-92d0f51192f0:localhost:node-ea8747f2-4d74-46ab-becf-428cb476a5ad:Node ea8747f2-4d74-46ab-becf-428cb476a5ad :: false

publishItemsToNodes 0.048s
2020-12-21 21:57:25 |

2020-12-21 21:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:25 | ------------------------------------

2020-12-21 21:57:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "entry": "<test>item-c2b9d3d2-45cb-4063-8873-eedf68a507eb</test>",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb"
}

2020-12-21 21:57:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb"
}

2020-12-21 21:57:25 | [Mutex] waiting for: [published:item:notifieditem-c2b9d3d2-45cb-4063-8873-eedf68a507eb:admin@test-domain.com]

2020-12-21 21:57:25 | [Mutex] received everything.

2020-12-21 21:57:25 | [Mutex] isItemNotified: published:item:notifieditem-c2b9d3d2-45cb-4063-8873-eedf68a507eb:admin@test-domain.com :: true

retractItemsFromNodes 0.124s
2020-12-21 21:57:25 |

2020-12-21 21:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:25 | ------------------------------------

2020-12-21 21:57:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb"
}

2020-12-21 21:57:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb"
}

2020-12-21 21:57:26 | [Mutex] waiting for: [retracted:item:notifieditem-c2b9d3d2-45cb-4063-8873-eedf68a507eb:admin@test-domain.com]

2020-12-21 21:57:26 | [Mutex] received everything.

2020-12-21 21:57:26 | [Mutex] isItemNotified: retracted:item:notifieditem-c2b9d3d2-45cb-4063-8873-eedf68a507eb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2020-12-21 21:57:25 |

2020-12-21 21:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:25 | ------------------------------------

2020-12-21 21:57:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb"
}

2020-12-21 21:57:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "item-id": "item-c2b9d3d2-45cb-4063-8873-eedf68a507eb",
    "item": [
        "<item id=\"item-c2b9d3d2-45cb-4063-8873-eedf68a507eb\"><test>item-c2b9d3d2-45cb-4063-8873-eedf68a507eb</test></item>"
    ]
}

2020-12-21 21:57:25 | [Mutex] notify: [retrieved:item:item-c2b9d3d2-45cb-4063-8873-eedf68a507eb:payload-matches:true:localhost]

2020-12-21 21:57:25 | [Mutex] received everything.

2020-12-21 21:57:25 | [Mutex] isItemNotified: retrieved:item:item-c2b9d3d2-45cb-4063-8873-eedf68a507eb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.071s
2020-12-21 21:57:25 |

2020-12-21 21:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:25 | ------------------------------------

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

2020-12-21 21:57:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e967f38a-1f46-44bd-af3f-e03b533fd6c4",
        "test",
        "node-ea8747f2-4d74-46ab-becf-428cb476a5ad"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-21 21:57:25 |

2020-12-21 21:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:25 | ------------------------------------

2020-12-21 21:57:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ea8747f2-4d74-46ab-becf-428cb476a5ad)"
}

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

subscribeNodes 1.011s
2020-12-21 21:57:24 |

2020-12-21 21:57:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:24 | ------------------------------------

2020-12-21 21:57:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:57:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-12-21 21:57:26 |

2020-12-21 21:57:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:57:26 | ------------------------------------

2020-12-21 21:57:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ea8747f2-4d74-46ab-becf-428cb476a5ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:57:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}