Generated by TestNG with ReportNG at 22:45 PDT on Sunday 09 May 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.405s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.148s
2021-05-09 22:59:51 |

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

2021-05-09 22:59:51 | ------------------------------------

2021-05-09 22:59:51 | [Mutex] waiting for: [configured:node:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d]

2021-05-09 22:59:51 | [Mutex] received everything.

2021-05-09 22:59:51 | [Mutex] isItemNotified: configured:node:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d :: true

2021-05-09 22:59:52 | [Mutex] waiting for: [received:nodes:0e529218-a0ef-4d8a-89b5-3c875b6bb714:localhost]

2021-05-09 22:59:52 | [Mutex] received everything.

2021-05-09 22:59:52 | [Mutex] isItemNotified: received:node:0e529218-a0ef-4d8a-89b5-3c875b6bb714:localhost:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f :: true

2021-05-09 22:59:52 | [Mutex] waiting for: [received:nodes:90cacba1-4945-45be-a262-ff461b67aae1:localhost]

2021-05-09 22:59:52 | [Mutex] received everything.

2021-05-09 22:59:52 | [Mutex] isItemNotified: received:node:90cacba1-4945-45be-a262-ff461b67aae1:localhost:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f :: false

createNodes 1.985s
2021-05-09 22:59:48 |

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

2021-05-09 22:59:48 | ------------------------------------

2021-05-09 22:59:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "pubsub#title": "Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f"
}

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

2021-05-09 22:59:50 | [Mutex] waiting for: [received:nodes:e2a93abe-64d9-459c-b40d-f627e7e3446b:localhost]

2021-05-09 22:59:50 | [Mutex] waiting for: [received:nodes:e2a93abe-64d9-459c-b40d-f627e7e3446b:localhost]

2021-05-09 22:59:50 | [Mutex] received everything.

2021-05-09 22:59:50 | [Mutex] isItemNotified: received:node:e2a93abe-64d9-459c-b40d-f627e7e3446b:localhost:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f :: true

createSubnodes 1.035s
2021-05-09 22:59:50 |

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

2021-05-09 22:59:50 | ------------------------------------

2021-05-09 22:59:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d",
    "pubsub#title": "Node f1a7f7ed-d565-4f0b-9d79-3510f92a217d"
}

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

2021-05-09 22:59:51 | [Mutex] waiting for: [received:nodes:33a7654c-decf-47b6-926b-cb609bb4015b:localhost]

2021-05-09 22:59:51 | [Mutex] received everything.

2021-05-09 22:59:51 | [Mutex] isItemNotified: received:node:33a7654c-decf-47b6-926b-cb609bb4015b:localhost:node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d:Node f1a7f7ed-d565-4f0b-9d79-3510f92a217d :: true

deleteNodes 1.035s
2021-05-09 22:59:56 |

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

2021-05-09 22:59:56 | ------------------------------------

2021-05-09 22:59:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d"
}

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

2021-05-09 22:59:57 | [Mutex] waiting for: [received:nodes:390f8860-612c-4f7b-9844-1e01f6434468:localhost]

2021-05-09 22:59:57 | [Mutex] received everything.

2021-05-09 22:59:57 | [Mutex] isItemNotified: received:node:390f8860-612c-4f7b-9844-1e01f6434468:localhost:node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d:Node f1a7f7ed-d565-4f0b-9d79-3510f92a217d :: false

deleteSubnodes 1.032s
2021-05-09 22:59:55 |

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

2021-05-09 22:59:55 | ------------------------------------

2021-05-09 22:59:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f"
}

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

2021-05-09 22:59:56 | [Mutex] waiting for: [received:nodes:4b04adb5-e6c8-4805-bea4-ff0fbfe268af:localhost]

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

2021-05-09 22:59:56 | [Mutex] isItemNotified: received:node:4b04adb5-e6c8-4805-bea4-ff0fbfe268af:localhost:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f :: false

2021-05-09 22:59:56 | [Mutex] waiting for: [received:nodes:6158b0a1-e6c2-4e2a-884f-1ec03b7cea28:localhost]

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

2021-05-09 22:59:56 | [Mutex] isItemNotified: received:node:6158b0a1-e6c2-4e2a-884f-1ec03b7cea28:localhost:node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f:Node 386cbb6c-881f-4a2a-9b2e-ae42a34aa08f :: false

publishItemsToNodes 0.107s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

2021-05-09 22:59:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "entry": "<test>item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b</test>",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b"
}

2021-05-09 22:59:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b"
}

2021-05-09 22:59:53 | [Mutex] waiting for: [published:item:notifieditem-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b:admin@test-domain.com]

2021-05-09 22:59:53 | [Mutex] received everything.

2021-05-09 22:59:53 | [Mutex] isItemNotified: published:item:notifieditem-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b:admin@test-domain.com :: true

retractItemsFromNodes 0.098s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

2021-05-09 22:59:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b"
}

2021-05-09 22:59:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b"
}

2021-05-09 22:59:53 | [Mutex] received everything.

2021-05-09 22:59:53 | [Mutex] isItemNotified: retracted:item:notifieditem-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

2021-05-09 22:59:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b"
}

2021-05-09 22:59:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "item-id": "item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b",
    "item": [
        "<item id=\"item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b\"><test>item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b</test></item>"
    ]
}

2021-05-09 22:59:53 | [Mutex] notify: [retrieved:item:item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b:payload-matches:true:localhost]

2021-05-09 22:59:53 | [Mutex] received everything.

2021-05-09 22:59:53 | [Mutex] isItemNotified: retrieved:item:item-fc4db1e5-70b0-4cd5-9cd3-28cbce49c59b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

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

2021-05-09 22:59:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f1a7f7ed-d565-4f0b-9d79-3510f92a217d",
        "test",
        "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

2021-05-09 22:59:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f)"
}

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

subscribeNodes 1.014s
2021-05-09 22:59:52 |

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

2021-05-09 22:59:52 | ------------------------------------

2021-05-09 22:59:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.081s
2021-05-09 22:59:53 |

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

2021-05-09 22:59:53 | ------------------------------------

2021-05-09 22:59:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-386cbb6c-881f-4a2a-9b2e-ae42a34aa08f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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