Generated by TestNG with ReportNG at 21:28 PST on Sunday 16 January 2022
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 : 8.931s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2022-01-16 21:44:28 |

2022-01-16 21:44:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:28 | ------------------------------------

2022-01-16 21:44:28 | [Mutex] waiting for: [configured:node:node-e795b03b-abf4-428b-b503-fa638873f060:node-a12dd2aa-dc76-41ea-8702-38fb45674710]

2022-01-16 21:44:28 | [Mutex] received everything.

2022-01-16 21:44:28 | [Mutex] isItemNotified: configured:node:node-e795b03b-abf4-428b-b503-fa638873f060:node-a12dd2aa-dc76-41ea-8702-38fb45674710 :: true

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:ce7221f0-54f0-4b6a-9369-f55d6fa959b0:localhost]

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:ce7221f0-54f0-4b6a-9369-f55d6fa959b0:localhost]

2022-01-16 21:44:29 | [Mutex] received everything.

2022-01-16 21:44:29 | [Mutex] isItemNotified: received:node:ce7221f0-54f0-4b6a-9369-f55d6fa959b0:localhost:node-e795b03b-abf4-428b-b503-fa638873f060:Node e795b03b-abf4-428b-b503-fa638873f060 :: true

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:45e915dc-3cb6-45c3-9a3b-17ef75fcb83e:localhost]

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:45e915dc-3cb6-45c3-9a3b-17ef75fcb83e:localhost]

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:45e915dc-3cb6-45c3-9a3b-17ef75fcb83e:localhost]

2022-01-16 21:44:29 | [Mutex] waiting for: [received:nodes:45e915dc-3cb6-45c3-9a3b-17ef75fcb83e:localhost]

2022-01-16 21:44:29 | [Mutex] received everything.

2022-01-16 21:44:29 | [Mutex] isItemNotified: received:node:45e915dc-3cb6-45c3-9a3b-17ef75fcb83e:localhost:node-e795b03b-abf4-428b-b503-fa638873f060:Node e795b03b-abf4-428b-b503-fa638873f060 :: false

createNodes 1.587s
2022-01-16 21:44:25 |

2022-01-16 21:44:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:25 | ------------------------------------

2022-01-16 21:44:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "pubsub#title": "Node e795b03b-abf4-428b-b503-fa638873f060"
}

2022-01-16 21:44:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:44:27 | [Mutex] waiting for: [received:nodes:6db5c7b7-aca9-4261-bab6-b7eed0eb42b1:localhost]

2022-01-16 21:44:27 | [Mutex] received everything.

2022-01-16 21:44:27 | [Mutex] isItemNotified: received:node:6db5c7b7-aca9-4261-bab6-b7eed0eb42b1:localhost:node-e795b03b-abf4-428b-b503-fa638873f060:Node e795b03b-abf4-428b-b503-fa638873f060 :: true

createSubnodes 1.029s
2022-01-16 21:44:27 |

2022-01-16 21:44:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:27 | ------------------------------------

2022-01-16 21:44:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a12dd2aa-dc76-41ea-8702-38fb45674710",
    "pubsub#title": "Node a12dd2aa-dc76-41ea-8702-38fb45674710"
}

2022-01-16 21:44:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:44:28 | [Mutex] waiting for: [received:nodes:dece3291-ecd0-487d-aa52-baac5a41a378:localhost]

2022-01-16 21:44:28 | [Mutex] waiting for: [received:nodes:dece3291-ecd0-487d-aa52-baac5a41a378:localhost]

2022-01-16 21:44:28 | [Mutex] received everything.

2022-01-16 21:44:28 | [Mutex] isItemNotified: received:node:dece3291-ecd0-487d-aa52-baac5a41a378:localhost:node-a12dd2aa-dc76-41ea-8702-38fb45674710:Node a12dd2aa-dc76-41ea-8702-38fb45674710 :: true

deleteNodes 1.022s
2022-01-16 21:44:33 |

2022-01-16 21:44:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:33 | ------------------------------------

2022-01-16 21:44:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a12dd2aa-dc76-41ea-8702-38fb45674710"
}

2022-01-16 21:44:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:44:34 | [Mutex] waiting for: [received:nodes:26b48d16-319a-4b7a-affc-b541e41a127c:localhost]

2022-01-16 21:44:34 | [Mutex] received everything.

2022-01-16 21:44:34 | [Mutex] isItemNotified: received:node:26b48d16-319a-4b7a-affc-b541e41a127c:localhost:node-a12dd2aa-dc76-41ea-8702-38fb45674710:Node a12dd2aa-dc76-41ea-8702-38fb45674710 :: false

deleteSubnodes 1.027s
2022-01-16 21:44:32 |

2022-01-16 21:44:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:32 | ------------------------------------

2022-01-16 21:44:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060"
}

2022-01-16 21:44:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:44:33 | [Mutex] waiting for: [received:nodes:09012b21-0680-45fd-9467-9b5a57d4c4b7:localhost]

2022-01-16 21:44:33 | [Mutex] waiting for: [received:nodes:09012b21-0680-45fd-9467-9b5a57d4c4b7:localhost]

2022-01-16 21:44:33 | [Mutex] received everything.

2022-01-16 21:44:33 | [Mutex] isItemNotified: received:node:09012b21-0680-45fd-9467-9b5a57d4c4b7:localhost:node-e795b03b-abf4-428b-b503-fa638873f060:Node e795b03b-abf4-428b-b503-fa638873f060 :: false

2022-01-16 21:44:33 | [Mutex] waiting for: [received:nodes:ba6fc653-747b-4987-9ae4-2a087391c01e:localhost]

2022-01-16 21:44:33 | [Mutex] received everything.

2022-01-16 21:44:33 | [Mutex] isItemNotified: received:node:ba6fc653-747b-4987-9ae4-2a087391c01e:localhost:node-e795b03b-abf4-428b-b503-fa638873f060:Node e795b03b-abf4-428b-b503-fa638873f060 :: false

publishItemsToNodes 0.034s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "entry": "<test>item-7420c7fa-8acb-4c1c-8274-41246eec5bc1</test>",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1"
}

2022-01-16 21:44:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1"
}

2022-01-16 21:44:30 | [Mutex] waiting for: [published:item:notifieditem-7420c7fa-8acb-4c1c-8274-41246eec5bc1:admin@test-domain.com]

2022-01-16 21:44:30 | [Mutex] received everything.

2022-01-16 21:44:30 | [Mutex] isItemNotified: published:item:notifieditem-7420c7fa-8acb-4c1c-8274-41246eec5bc1:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1"
}

2022-01-16 21:44:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1"
}

2022-01-16 21:44:30 | [Mutex] received everything.

2022-01-16 21:44:30 | [Mutex] isItemNotified: retracted:item:notifieditem-7420c7fa-8acb-4c1c-8274-41246eec5bc1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1"
}

2022-01-16 21:44:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "item-id": "item-7420c7fa-8acb-4c1c-8274-41246eec5bc1",
    "item": [
        "<item id=\"item-7420c7fa-8acb-4c1c-8274-41246eec5bc1\"><test>item-7420c7fa-8acb-4c1c-8274-41246eec5bc1</test></item>"
    ]
}

2022-01-16 21:44:30 | [Mutex] notify: [retrieved:item:item-7420c7fa-8acb-4c1c-8274-41246eec5bc1:payload-matches:true:localhost]

2022-01-16 21:44:30 | [Mutex] received everything.

2022-01-16 21:44:30 | [Mutex] isItemNotified: retrieved:item:item-7420c7fa-8acb-4c1c-8274-41246eec5bc1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-01-16 21:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a12dd2aa-dc76-41ea-8702-38fb45674710",
        "node-e795b03b-abf4-428b-b503-fa638873f060"
    ]
}

retrieveUserSubscriptionsWithRegex 0.156s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e795b03b-abf4-428b-b503-fa638873f060)"
}

2022-01-16 21:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-01-16 21:44:29 |

2022-01-16 21:44:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:29 | ------------------------------------

2022-01-16 21:44:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-16 21:44:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-01-16 21:44:30 |

2022-01-16 21:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:44:30 | ------------------------------------

2022-01-16 21:44:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e795b03b-abf4-428b-b503-fa638873f060",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-16 21:44:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}