Generated by TestNG with ReportNG at 21:19 PST on Thursday 19 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.241s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-11-19 21:34:24 |

2020-11-19 21:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:24 | ------------------------------------

2020-11-19 21:34:24 | [Mutex] waiting for: [configured:node:node-64cc54e1-18b2-48ba-a783-b02d658c9290:node-001ba8c9-e43a-43b8-aa7e-7203a92e3264]

2020-11-19 21:34:24 | [Mutex] received everything.

2020-11-19 21:34:24 | [Mutex] isItemNotified: configured:node:node-64cc54e1-18b2-48ba-a783-b02d658c9290:node-001ba8c9-e43a-43b8-aa7e-7203a92e3264 :: true

2020-11-19 21:34:25 | [Mutex] waiting for: [received:nodes:2581bbe4-b75b-4bd7-8383-7d187e29ede4:localhost]

2020-11-19 21:34:25 | [Mutex] received everything.

2020-11-19 21:34:25 | [Mutex] isItemNotified: received:node:2581bbe4-b75b-4bd7-8383-7d187e29ede4:localhost:node-64cc54e1-18b2-48ba-a783-b02d658c9290:Node 64cc54e1-18b2-48ba-a783-b02d658c9290 :: true

2020-11-19 21:34:25 | [Mutex] waiting for: [received:nodes:bbfabf7b-ac18-4e54-94b5-23ef7d0d8e6a:localhost]

2020-11-19 21:34:25 | [Mutex] received everything.

2020-11-19 21:34:25 | [Mutex] isItemNotified: received:node:bbfabf7b-ac18-4e54-94b5-23ef7d0d8e6a:localhost:node-64cc54e1-18b2-48ba-a783-b02d658c9290:Node 64cc54e1-18b2-48ba-a783-b02d658c9290 :: false

createNodes 1.749s
2020-11-19 21:34:21 |

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

2020-11-19 21:34:21 | ------------------------------------

2020-11-19 21:34:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "pubsub#title": "Node 64cc54e1-18b2-48ba-a783-b02d658c9290"
}

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

2020-11-19 21:34:23 | [Mutex] waiting for: [received:nodes:c98d406a-a4fb-4434-a52b-46fc01f68c81:localhost]

2020-11-19 21:34:23 | [Mutex] waiting for: [received:nodes:c98d406a-a4fb-4434-a52b-46fc01f68c81:localhost]

2020-11-19 21:34:23 | [Mutex] received everything.

2020-11-19 21:34:23 | [Mutex] isItemNotified: received:node:c98d406a-a4fb-4434-a52b-46fc01f68c81:localhost:node-64cc54e1-18b2-48ba-a783-b02d658c9290:Node 64cc54e1-18b2-48ba-a783-b02d658c9290 :: true

createSubnodes 1.032s
2020-11-19 21:34:23 |

2020-11-19 21:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:23 | ------------------------------------

2020-11-19 21:34:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-001ba8c9-e43a-43b8-aa7e-7203a92e3264",
    "pubsub#title": "Node 001ba8c9-e43a-43b8-aa7e-7203a92e3264"
}

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

2020-11-19 21:34:24 | [Mutex] waiting for: [received:nodes:b1c37413-f582-4483-a59d-9d87ed8f856b:localhost]

2020-11-19 21:34:24 | [Mutex] received everything.

2020-11-19 21:34:24 | [Mutex] isItemNotified: received:node:b1c37413-f582-4483-a59d-9d87ed8f856b:localhost:node-001ba8c9-e43a-43b8-aa7e-7203a92e3264:Node 001ba8c9-e43a-43b8-aa7e-7203a92e3264 :: true

deleteNodes 1.023s
2020-11-19 21:34:29 |

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

2020-11-19 21:34:29 | ------------------------------------

2020-11-19 21:34:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-001ba8c9-e43a-43b8-aa7e-7203a92e3264"
}

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

2020-11-19 21:34:30 | [Mutex] waiting for: [received:nodes:2f7077c5-d5fc-4e6a-a255-620e64fff9d9:localhost]

2020-11-19 21:34:30 | [Mutex] waiting for: [received:nodes:2f7077c5-d5fc-4e6a-a255-620e64fff9d9:localhost]

2020-11-19 21:34:30 | [Mutex] received everything.

2020-11-19 21:34:30 | [Mutex] isItemNotified: received:node:2f7077c5-d5fc-4e6a-a255-620e64fff9d9:localhost:node-001ba8c9-e43a-43b8-aa7e-7203a92e3264:Node 001ba8c9-e43a-43b8-aa7e-7203a92e3264 :: false

deleteSubnodes 1.031s
2020-11-19 21:34:28 |

2020-11-19 21:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:28 | ------------------------------------

2020-11-19 21:34:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290"
}

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

2020-11-19 21:34:29 | [Mutex] waiting for: [received:nodes:2f13901a-a6f4-4b5b-8749-447af7be78cf:localhost]

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

2020-11-19 21:34:29 | [Mutex] isItemNotified: received:node:2f13901a-a6f4-4b5b-8749-447af7be78cf:localhost:node-64cc54e1-18b2-48ba-a783-b02d658c9290:Node 64cc54e1-18b2-48ba-a783-b02d658c9290 :: false

2020-11-19 21:34:29 | [Mutex] waiting for: [received:nodes:ed4e2278-e033-4337-9ae6-28f3c9e925f5:localhost]

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

2020-11-19 21:34:29 | [Mutex] isItemNotified: received:node:ed4e2278-e033-4337-9ae6-28f3c9e925f5:localhost:node-64cc54e1-18b2-48ba-a783-b02d658c9290:Node 64cc54e1-18b2-48ba-a783-b02d658c9290 :: false

publishItemsToNodes 0.055s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

2020-11-19 21:34:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "entry": "<test>item-32772732-0131-40e8-b6ae-70998f99173e</test>",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e"
}

2020-11-19 21:34:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e"
}

2020-11-19 21:34:26 | [Mutex] received everything.

2020-11-19 21:34:26 | [Mutex] isItemNotified: published:item:notifieditem-32772732-0131-40e8-b6ae-70998f99173e:admin@test-domain.com :: true

retractItemsFromNodes 0.085s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

2020-11-19 21:34:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e"
}

2020-11-19 21:34:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e"
}

2020-11-19 21:34:26 | [Mutex] received everything.

2020-11-19 21:34:26 | [Mutex] isItemNotified: retracted:item:notifieditem-32772732-0131-40e8-b6ae-70998f99173e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.092s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

2020-11-19 21:34:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e"
}

2020-11-19 21:34:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "item-id": "item-32772732-0131-40e8-b6ae-70998f99173e",
    "item": [
        "<item id=\"item-32772732-0131-40e8-b6ae-70998f99173e\"><test>item-32772732-0131-40e8-b6ae-70998f99173e</test></item>"
    ]
}

2020-11-19 21:34:26 | [Mutex] notify: [retrieved:item:item-32772732-0131-40e8-b6ae-70998f99173e:payload-matches:true:localhost]

2020-11-19 21:34:26 | [Mutex] received everything.

2020-11-19 21:34:26 | [Mutex] isItemNotified: retrieved:item:item-32772732-0131-40e8-b6ae-70998f99173e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

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

2020-11-19 21:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
        "test",
        "node-001ba8c9-e43a-43b8-aa7e-7203a92e3264"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

2020-11-19 21:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-64cc54e1-18b2-48ba-a783-b02d658c9290)"
}

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

subscribeNodes 1.013s
2020-11-19 21:34:25 |

2020-11-19 21:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:25 | ------------------------------------

2020-11-19 21:34:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.078s
2020-11-19 21:34:26 |

2020-11-19 21:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 21:34:26 | ------------------------------------

2020-11-19 21:34:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-64cc54e1-18b2-48ba-a783-b02d658c9290",
    "jids": [
        "admin@test-domain.com"
    ]
}

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