Generated by TestNG with ReportNG at 22:14 PDT on Tuesday 12 October 2021
root@785cf647a4ab / 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.103s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.153s
2021-10-12 22:29:55 |

2021-10-12 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:55 | ------------------------------------

2021-10-12 22:29:55 | [Mutex] waiting for: [configured:node:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:node-93fbbd3c-aebf-41be-bc16-1fff79d181c6]

2021-10-12 22:29:55 | [Mutex] received everything.

2021-10-12 22:29:55 | [Mutex] isItemNotified: configured:node:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:node-93fbbd3c-aebf-41be-bc16-1fff79d181c6 :: true

2021-10-12 22:29:56 | [Mutex] waiting for: [received:nodes:884f9f58-6b7c-4bea-a157-20be18d0ee14:localhost]

2021-10-12 22:29:56 | [Mutex] received everything.

2021-10-12 22:29:56 | [Mutex] isItemNotified: received:node:884f9f58-6b7c-4bea-a157-20be18d0ee14:localhost:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:Node f575367b-379b-40fc-90b3-2ee19e21b9ad :: true

2021-10-12 22:29:56 | [Mutex] waiting for: [received:nodes:613acfb0-816e-4d71-860b-b1282ca8618d:localhost]

2021-10-12 22:29:56 | [Mutex] waiting for: [received:nodes:613acfb0-816e-4d71-860b-b1282ca8618d:localhost]

2021-10-12 22:29:56 | [Mutex] received everything.

2021-10-12 22:29:56 | [Mutex] isItemNotified: received:node:613acfb0-816e-4d71-860b-b1282ca8618d:localhost:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:Node f575367b-379b-40fc-90b3-2ee19e21b9ad :: false

createNodes 1.694s
2021-10-12 22:29:52 |

2021-10-12 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:52 | ------------------------------------

2021-10-12 22:29:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "pubsub#title": "Node f575367b-379b-40fc-90b3-2ee19e21b9ad"
}

2021-10-12 22:29:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:29:54 | [Mutex] waiting for: [received:nodes:8e9a8a5d-45cd-48e0-9d69-b3c5c7d592ed:localhost]

2021-10-12 22:29:54 | [Mutex] waiting for: [received:nodes:8e9a8a5d-45cd-48e0-9d69-b3c5c7d592ed:localhost]

2021-10-12 22:29:54 | [Mutex] received everything.

2021-10-12 22:29:54 | [Mutex] isItemNotified: received:node:8e9a8a5d-45cd-48e0-9d69-b3c5c7d592ed:localhost:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:Node f575367b-379b-40fc-90b3-2ee19e21b9ad :: true

createSubnodes 1.031s
2021-10-12 22:29:54 |

2021-10-12 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:54 | ------------------------------------

2021-10-12 22:29:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-93fbbd3c-aebf-41be-bc16-1fff79d181c6",
    "pubsub#title": "Node 93fbbd3c-aebf-41be-bc16-1fff79d181c6"
}

2021-10-12 22:29:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:29:55 | [Mutex] waiting for: [received:nodes:17b27a6b-92f9-4487-a4e9-70902d901962:localhost]

2021-10-12 22:29:55 | [Mutex] received everything.

2021-10-12 22:29:55 | [Mutex] isItemNotified: received:node:17b27a6b-92f9-4487-a4e9-70902d901962:localhost:node-93fbbd3c-aebf-41be-bc16-1fff79d181c6:Node 93fbbd3c-aebf-41be-bc16-1fff79d181c6 :: true

deleteNodes 1.031s
2021-10-12 22:30:00 |

2021-10-12 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:30:00 | ------------------------------------

2021-10-12 22:30:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-93fbbd3c-aebf-41be-bc16-1fff79d181c6"
}

2021-10-12 22:30:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:30:01 | [Mutex] waiting for: [received:nodes:f61a9ab1-a2bc-4bfc-af1c-63d32b7f70a5:localhost]

2021-10-12 22:30:01 | [Mutex] received everything.

2021-10-12 22:30:01 | [Mutex] isItemNotified: received:node:f61a9ab1-a2bc-4bfc-af1c-63d32b7f70a5:localhost:node-93fbbd3c-aebf-41be-bc16-1fff79d181c6:Node 93fbbd3c-aebf-41be-bc16-1fff79d181c6 :: false

deleteSubnodes 1.030s
2021-10-12 22:29:59 |

2021-10-12 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:59 | ------------------------------------

2021-10-12 22:29:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad"
}

2021-10-12 22:29:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-12 22:30:00 | [Mutex] waiting for: [received:nodes:650b2dc4-967b-498f-b869-4194bd87900d:localhost]

2021-10-12 22:30:00 | [Mutex] waiting for: [received:nodes:650b2dc4-967b-498f-b869-4194bd87900d:localhost]

2021-10-12 22:30:00 | [Mutex] received everything.

2021-10-12 22:30:00 | [Mutex] isItemNotified: received:node:650b2dc4-967b-498f-b869-4194bd87900d:localhost:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:Node f575367b-379b-40fc-90b3-2ee19e21b9ad :: false

2021-10-12 22:30:00 | [Mutex] waiting for: [received:nodes:f54e789f-d38e-48ad-9bcc-35a916084c53:localhost]

2021-10-12 22:30:00 | [Mutex] received everything.

2021-10-12 22:30:00 | [Mutex] isItemNotified: received:node:f54e789f-d38e-48ad-9bcc-35a916084c53:localhost:node-f575367b-379b-40fc-90b3-2ee19e21b9ad:Node f575367b-379b-40fc-90b3-2ee19e21b9ad :: false

publishItemsToNodes 0.050s
2021-10-12 22:29:57 |

2021-10-12 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:57 | ------------------------------------

2021-10-12 22:29:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "entry": "<test>item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c</test>",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c"
}

2021-10-12 22:29:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c"
}

2021-10-12 22:29:57 | [Mutex] waiting for: [published:item:notifieditem-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:admin@test-domain.com]

2021-10-12 22:29:57 | [Mutex] received everything.

2021-10-12 22:29:57 | [Mutex] isItemNotified: published:item:notifieditem-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:admin@test-domain.com :: true

retractItemsFromNodes 0.127s
2021-10-12 22:29:58 |

2021-10-12 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:58 | ------------------------------------

2021-10-12 22:29:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c"
}

2021-10-12 22:29:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c"
}

2021-10-12 22:29:58 | [Mutex] waiting for: [retracted:item:notifieditem-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:admin@test-domain.com]

2021-10-12 22:29:58 | [Mutex] received everything.

2021-10-12 22:29:58 | [Mutex] isItemNotified: retracted:item:notifieditem-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2021-10-12 22:29:57 |

2021-10-12 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:57 | ------------------------------------

2021-10-12 22:29:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c"
}

2021-10-12 22:29:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "item-id": "item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c",
    "item": [
        "<item id=\"item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c\"><test>item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c</test></item>"
    ]
}

2021-10-12 22:29:57 | [Mutex] notify: [retrieved:item:item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:payload-matches:true:localhost]

2021-10-12 22:29:57 | [Mutex] received everything.

2021-10-12 22:29:57 | [Mutex] isItemNotified: retrieved:item:item-5f20c8f9-271a-4d13-9fe0-be17ca7a705c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-12 22:29:57 |

2021-10-12 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:57 | ------------------------------------

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

2021-10-12 22:29:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
        "node-93fbbd3c-aebf-41be-bc16-1fff79d181c6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-12 22:29:57 |

2021-10-12 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:57 | ------------------------------------

2021-10-12 22:29:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f575367b-379b-40fc-90b3-2ee19e21b9ad)"
}

2021-10-12 22:29:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2021-10-12 22:29:56 |

2021-10-12 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:56 | ------------------------------------

2021-10-12 22:29:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-12 22:29:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.013s
2021-10-12 22:29:58 |

2021-10-12 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-12 22:29:58 | ------------------------------------

2021-10-12 22:29:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f575367b-379b-40fc-90b3-2ee19e21b9ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-12 22:29:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}