Generated by TestNG with ReportNG at 02:42 PST on Thursday 03 February 2022
root@b2c2a8eba6e6 / 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.956s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-02-03 03:04:00 |

2022-02-03 03:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:00 | ------------------------------------

2022-02-03 03:04:00 | [Mutex] waiting for: [configured:node:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:node-93156fee-fc56-4528-bb21-5e06458e5229]

2022-02-03 03:04:00 | [Mutex] received everything.

2022-02-03 03:04:00 | [Mutex] isItemNotified: configured:node:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:node-93156fee-fc56-4528-bb21-5e06458e5229 :: true

2022-02-03 03:04:01 | [Mutex] waiting for: [received:nodes:c71dfa7f-3c50-49f1-a76d-f42836bbf883:localhost]

2022-02-03 03:04:01 | [Mutex] waiting for: [received:nodes:c71dfa7f-3c50-49f1-a76d-f42836bbf883:localhost]

2022-02-03 03:04:01 | [Mutex] received everything.

2022-02-03 03:04:01 | [Mutex] isItemNotified: received:node:c71dfa7f-3c50-49f1-a76d-f42836bbf883:localhost:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96 :: true

2022-02-03 03:04:01 | [Mutex] waiting for: [received:nodes:10e3dae9-b016-4ff0-95fa-e33df1580f66:localhost]

2022-02-03 03:04:01 | [Mutex] received everything.

2022-02-03 03:04:01 | [Mutex] isItemNotified: received:node:10e3dae9-b016-4ff0-95fa-e33df1580f66:localhost:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96 :: false

createNodes 1.616s
2022-02-03 03:03:57 |

2022-02-03 03:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:03:57 | ------------------------------------

2022-02-03 03:03:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "pubsub#title": "Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96"
}

2022-02-03 03:03:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 03:03:59 | [Mutex] waiting for: [received:nodes:85d88cd3-5465-4547-92ce-07e5acd4fae4:localhost]

2022-02-03 03:03:59 | [Mutex] received everything.

2022-02-03 03:03:59 | [Mutex] isItemNotified: received:node:85d88cd3-5465-4547-92ce-07e5acd4fae4:localhost:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96 :: true

createSubnodes 1.038s
2022-02-03 03:03:59 |

2022-02-03 03:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:03:59 | ------------------------------------

2022-02-03 03:03:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-93156fee-fc56-4528-bb21-5e06458e5229",
    "pubsub#title": "Node 93156fee-fc56-4528-bb21-5e06458e5229"
}

2022-02-03 03:03:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 03:04:00 | [Mutex] waiting for: [received:nodes:fe09a61d-a5c2-45a7-9299-fe6942a69009:localhost]

2022-02-03 03:04:00 | [Mutex] waiting for: [received:nodes:fe09a61d-a5c2-45a7-9299-fe6942a69009:localhost]

2022-02-03 03:04:00 | [Mutex] received everything.

2022-02-03 03:04:00 | [Mutex] isItemNotified: received:node:fe09a61d-a5c2-45a7-9299-fe6942a69009:localhost:node-93156fee-fc56-4528-bb21-5e06458e5229:Node 93156fee-fc56-4528-bb21-5e06458e5229 :: true

deleteNodes 1.027s
2022-02-03 03:04:04 |

2022-02-03 03:04:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:04 | ------------------------------------

2022-02-03 03:04:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-93156fee-fc56-4528-bb21-5e06458e5229"
}

2022-02-03 03:04:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 03:04:05 | [Mutex] waiting for: [received:nodes:bb3da39a-1f5e-42b4-87fe-1ca885a9293b:localhost]

2022-02-03 03:04:05 | [Mutex] received everything.

2022-02-03 03:04:05 | [Mutex] isItemNotified: received:node:bb3da39a-1f5e-42b4-87fe-1ca885a9293b:localhost:node-93156fee-fc56-4528-bb21-5e06458e5229:Node 93156fee-fc56-4528-bb21-5e06458e5229 :: false

deleteSubnodes 1.030s
2022-02-03 03:04:03 |

2022-02-03 03:04:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:03 | ------------------------------------

2022-02-03 03:04:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96"
}

2022-02-03 03:04:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 03:04:04 | [Mutex] waiting for: [received:nodes:9e5382c9-108f-4b18-8fea-fc236750aef4:localhost]

2022-02-03 03:04:04 | [Mutex] received everything.

2022-02-03 03:04:04 | [Mutex] isItemNotified: received:node:9e5382c9-108f-4b18-8fea-fc236750aef4:localhost:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96 :: false

2022-02-03 03:04:04 | [Mutex] waiting for: [received:nodes:507d0bae-f227-4eb7-9d79-1d6006f70db9:localhost]

2022-02-03 03:04:04 | [Mutex] received everything.

2022-02-03 03:04:04 | [Mutex] isItemNotified: received:node:507d0bae-f227-4eb7-9d79-1d6006f70db9:localhost:node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96:Node 88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96 :: false

publishItemsToNodes 0.058s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "entry": "<test>item-608a477e-e1aa-4a68-9573-b2cea1d450be</test>",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be"
}

2022-02-03 03:04:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be"
}

2022-02-03 03:04:02 | [Mutex] waiting for: [published:item:notifieditem-608a477e-e1aa-4a68-9573-b2cea1d450be:admin@test-domain.com]

2022-02-03 03:04:02 | [Mutex] received everything.

2022-02-03 03:04:02 | [Mutex] isItemNotified: published:item:notifieditem-608a477e-e1aa-4a68-9573-b2cea1d450be:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be"
}

2022-02-03 03:04:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be"
}

2022-02-03 03:04:02 | [Mutex] waiting for: [retracted:item:notifieditem-608a477e-e1aa-4a68-9573-b2cea1d450be:admin@test-domain.com]

2022-02-03 03:04:02 | [Mutex] received everything.

2022-02-03 03:04:02 | [Mutex] isItemNotified: retracted:item:notifieditem-608a477e-e1aa-4a68-9573-b2cea1d450be:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be"
}

2022-02-03 03:04:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "item-id": "item-608a477e-e1aa-4a68-9573-b2cea1d450be",
    "item": [
        "<item id=\"item-608a477e-e1aa-4a68-9573-b2cea1d450be\"><test>item-608a477e-e1aa-4a68-9573-b2cea1d450be</test></item>"
    ]
}

2022-02-03 03:04:02 | [Mutex] notify: [retrieved:item:item-608a477e-e1aa-4a68-9573-b2cea1d450be:payload-matches:true:localhost]

2022-02-03 03:04:02 | [Mutex] received everything.

2022-02-03 03:04:02 | [Mutex] isItemNotified: retrieved:item:item-608a477e-e1aa-4a68-9573-b2cea1d450be:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-03 03:04:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-93156fee-fc56-4528-bb21-5e06458e5229",
        "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96)"
}

2022-02-03 03:04:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2022-02-03 03:04:01 |

2022-02-03 03:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:01 | ------------------------------------

2022-02-03 03:04:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 03:04:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.070s
2022-02-03 03:04:02 |

2022-02-03 03:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 03:04:02 | ------------------------------------

2022-02-03 03:04:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-88ffd1d5-8c1f-4d05-80f7-ff9ee1caec96",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 03:04:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}