Generated by TestNG with ReportNG at 22:41 PDT on Tuesday 05 October 2021
root@f29ef40080b5 / 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.109s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.152s
2021-10-05 22:56:50 |

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

2021-10-05 22:56:50 | ------------------------------------

2021-10-05 22:56:50 | [Mutex] waiting for: [configured:node:node-76554e03-1dd6-4425-a60e-95f8960732b8:node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34]

2021-10-05 22:56:50 | [Mutex] received everything.

2021-10-05 22:56:50 | [Mutex] isItemNotified: configured:node:node-76554e03-1dd6-4425-a60e-95f8960732b8:node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34 :: true

2021-10-05 22:56:51 | [Mutex] waiting for: [received:nodes:88341e09-917e-46c2-8ff2-a32421de2b45:localhost]

2021-10-05 22:56:51 | [Mutex] received everything.

2021-10-05 22:56:51 | [Mutex] isItemNotified: received:node:88341e09-917e-46c2-8ff2-a32421de2b45:localhost:node-76554e03-1dd6-4425-a60e-95f8960732b8:Node 76554e03-1dd6-4425-a60e-95f8960732b8 :: true

2021-10-05 22:56:52 | [Mutex] waiting for: [received:nodes:964e8d88-b61b-4cf5-be25-0fb8203b424c:localhost]

2021-10-05 22:56:52 | [Mutex] received everything.

2021-10-05 22:56:52 | [Mutex] isItemNotified: received:node:964e8d88-b61b-4cf5-be25-0fb8203b424c:localhost:node-76554e03-1dd6-4425-a60e-95f8960732b8:Node 76554e03-1dd6-4425-a60e-95f8960732b8 :: false

createNodes 1.619s
2021-10-05 22:56:48 |

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

2021-10-05 22:56:48 | ------------------------------------

2021-10-05 22:56:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "pubsub#title": "Node 76554e03-1dd6-4425-a60e-95f8960732b8"
}

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

2021-10-05 22:56:49 | [Mutex] waiting for: [received:nodes:bd57ed3a-ac52-41a9-b272-bc5a38bed3bc:localhost]

2021-10-05 22:56:49 | [Mutex] received everything.

2021-10-05 22:56:49 | [Mutex] isItemNotified: received:node:bd57ed3a-ac52-41a9-b272-bc5a38bed3bc:localhost:node-76554e03-1dd6-4425-a60e-95f8960732b8:Node 76554e03-1dd6-4425-a60e-95f8960732b8 :: true

createSubnodes 1.038s
2021-10-05 22:56:49 |

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

2021-10-05 22:56:49 | ------------------------------------

2021-10-05 22:56:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34",
    "pubsub#title": "Node dca7df0a-ca2a-4d5c-be89-eac9e83f9d34"
}

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

2021-10-05 22:56:50 | [Mutex] waiting for: [received:nodes:ccdaa4ae-9901-4484-93ea-6dc7f83bca1e:localhost]

2021-10-05 22:56:50 | [Mutex] received everything.

2021-10-05 22:56:50 | [Mutex] isItemNotified: received:node:ccdaa4ae-9901-4484-93ea-6dc7f83bca1e:localhost:node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34:Node dca7df0a-ca2a-4d5c-be89-eac9e83f9d34 :: true

deleteNodes 1.020s
2021-10-05 22:56:55 |

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

2021-10-05 22:56:55 | ------------------------------------

2021-10-05 22:56:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34"
}

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

2021-10-05 22:56:56 | [Mutex] waiting for: [received:nodes:d515324c-9ff9-486c-bbed-41f18c7bbc09:localhost]

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

2021-10-05 22:56:56 | [Mutex] isItemNotified: received:node:d515324c-9ff9-486c-bbed-41f18c7bbc09:localhost:node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34:Node dca7df0a-ca2a-4d5c-be89-eac9e83f9d34 :: false

deleteSubnodes 1.026s
2021-10-05 22:56:54 |

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

2021-10-05 22:56:54 | ------------------------------------

2021-10-05 22:56:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8"
}

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

2021-10-05 22:56:55 | [Mutex] waiting for: [received:nodes:fabb4e18-c542-4c1f-92a3-7ac5a74b0fe8:localhost]

2021-10-05 22:56:55 | [Mutex] waiting for: [received:nodes:fabb4e18-c542-4c1f-92a3-7ac5a74b0fe8:localhost]

2021-10-05 22:56:55 | [Mutex] received everything.

2021-10-05 22:56:55 | [Mutex] isItemNotified: received:node:fabb4e18-c542-4c1f-92a3-7ac5a74b0fe8:localhost:node-76554e03-1dd6-4425-a60e-95f8960732b8:Node 76554e03-1dd6-4425-a60e-95f8960732b8 :: false

2021-10-05 22:56:55 | [Mutex] waiting for: [received:nodes:2a9e1880-a553-4aa6-bc0f-67b412045441:localhost]

2021-10-05 22:56:55 | [Mutex] received everything.

2021-10-05 22:56:55 | [Mutex] isItemNotified: received:node:2a9e1880-a553-4aa6-bc0f-67b412045441:localhost:node-76554e03-1dd6-4425-a60e-95f8960732b8:Node 76554e03-1dd6-4425-a60e-95f8960732b8 :: false

publishItemsToNodes 0.082s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

2021-10-05 22:56:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "entry": "<test>item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80</test>",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80"
}

2021-10-05 22:56:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80"
}

2021-10-05 22:56:53 | [Mutex] waiting for: [published:item:notifieditem-a39a1543-ab24-4bcf-8e9e-7fbcab313d80:admin@test-domain.com]

2021-10-05 22:56:53 | [Mutex] received everything.

2021-10-05 22:56:53 | [Mutex] isItemNotified: published:item:notifieditem-a39a1543-ab24-4bcf-8e9e-7fbcab313d80:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

2021-10-05 22:56:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80"
}

2021-10-05 22:56:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80"
}

2021-10-05 22:56:53 | [Mutex] received everything.

2021-10-05 22:56:53 | [Mutex] isItemNotified: retracted:item:notifieditem-a39a1543-ab24-4bcf-8e9e-7fbcab313d80:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

2021-10-05 22:56:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80"
}

2021-10-05 22:56:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "item-id": "item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80",
    "item": [
        "<item id=\"item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80\"><test>item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80</test></item>"
    ]
}

2021-10-05 22:56:53 | [Mutex] notify: [retrieved:item:item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80:payload-matches:true:localhost]

2021-10-05 22:56:53 | [Mutex] received everything.

2021-10-05 22:56:53 | [Mutex] isItemNotified: retrieved:item:item-a39a1543-ab24-4bcf-8e9e-7fbcab313d80:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

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

2021-10-05 22:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-76554e03-1dd6-4425-a60e-95f8960732b8",
        "node-dca7df0a-ca2a-4d5c-be89-eac9e83f9d34"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

2021-10-05 22:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-76554e03-1dd6-4425-a60e-95f8960732b8)"
}

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

subscribeNodes 1.015s
2021-10-05 22:56:52 |

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

2021-10-05 22:56:52 | ------------------------------------

2021-10-05 22:56:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.103s
2021-10-05 22:56:53 |

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

2021-10-05 22:56:53 | ------------------------------------

2021-10-05 22:56:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-76554e03-1dd6-4425-a60e-95f8960732b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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