Generated by TestNG with ReportNG at 03:54 PST on Thursday 17 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 : 9.112s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-02-17 04:09:31 |

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

2022-02-17 04:09:31 | ------------------------------------

2022-02-17 04:09:31 | [Mutex] waiting for: [configured:node:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1]

2022-02-17 04:09:31 | [Mutex] received everything.

2022-02-17 04:09:31 | [Mutex] isItemNotified: configured:node:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1 :: true

2022-02-17 04:09:32 | [Mutex] waiting for: [received:nodes:4729c6d8-6843-4917-a621-f4616dcc7976:localhost]

2022-02-17 04:09:32 | [Mutex] received everything.

2022-02-17 04:09:32 | [Mutex] isItemNotified: received:node:4729c6d8-6843-4917-a621-f4616dcc7976:localhost:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:Node d7a35d9a-f959-474e-8c54-5616653dd2ee :: true

2022-02-17 04:09:32 | [Mutex] waiting for: [received:nodes:68832e27-9032-4c6e-9e5c-17f14dfb0791:localhost]

2022-02-17 04:09:32 | [Mutex] waiting for: [received:nodes:68832e27-9032-4c6e-9e5c-17f14dfb0791:localhost]

2022-02-17 04:09:32 | [Mutex] received everything.

2022-02-17 04:09:32 | [Mutex] isItemNotified: received:node:68832e27-9032-4c6e-9e5c-17f14dfb0791:localhost:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:Node d7a35d9a-f959-474e-8c54-5616653dd2ee :: false

createNodes 1.707s
2022-02-17 04:09:28 |

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

2022-02-17 04:09:28 | ------------------------------------

2022-02-17 04:09:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "pubsub#title": "Node d7a35d9a-f959-474e-8c54-5616653dd2ee"
}

2022-02-17 04:09:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:09:30 | [Mutex] waiting for: [received:nodes:884f4e7d-e58d-4604-9baa-0f95d7ccd0e4:localhost]

2022-02-17 04:09:30 | [Mutex] waiting for: [received:nodes:884f4e7d-e58d-4604-9baa-0f95d7ccd0e4:localhost]

2022-02-17 04:09:30 | [Mutex] received everything.

2022-02-17 04:09:30 | [Mutex] isItemNotified: received:node:884f4e7d-e58d-4604-9baa-0f95d7ccd0e4:localhost:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:Node d7a35d9a-f959-474e-8c54-5616653dd2ee :: true

createSubnodes 1.028s
2022-02-17 04:09:30 |

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

2022-02-17 04:09:30 | ------------------------------------

2022-02-17 04:09:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1",
    "pubsub#title": "Node b57126a0-b74b-43d5-b9e3-f12e27b5d2e1"
}

2022-02-17 04:09:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:09:31 | [Mutex] waiting for: [received:nodes:0e6ebf09-9e26-4edd-9ce4-3f7aa5bebd8f:localhost]

2022-02-17 04:09:31 | [Mutex] received everything.

2022-02-17 04:09:31 | [Mutex] isItemNotified: received:node:0e6ebf09-9e26-4edd-9ce4-3f7aa5bebd8f:localhost:node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1:Node b57126a0-b74b-43d5-b9e3-f12e27b5d2e1 :: true

deleteNodes 1.018s
2022-02-17 04:09:35 |

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

2022-02-17 04:09:35 | ------------------------------------

2022-02-17 04:09:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1"
}

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

2022-02-17 04:09:36 | [Mutex] waiting for: [received:nodes:81751bab-c2ca-44e6-9795-afde9e2949cb:localhost]

2022-02-17 04:09:36 | [Mutex] received everything.

2022-02-17 04:09:36 | [Mutex] isItemNotified: received:node:81751bab-c2ca-44e6-9795-afde9e2949cb:localhost:node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1:Node b57126a0-b74b-43d5-b9e3-f12e27b5d2e1 :: false

deleteSubnodes 1.033s
2022-02-17 04:09:34 |

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

2022-02-17 04:09:34 | ------------------------------------

2022-02-17 04:09:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee"
}

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

2022-02-17 04:09:35 | [Mutex] waiting for: [received:nodes:34dea68c-3e60-4905-8df3-1608d8308a3d:localhost]

2022-02-17 04:09:35 | [Mutex] received everything.

2022-02-17 04:09:35 | [Mutex] isItemNotified: received:node:34dea68c-3e60-4905-8df3-1608d8308a3d:localhost:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:Node d7a35d9a-f959-474e-8c54-5616653dd2ee :: false

2022-02-17 04:09:35 | [Mutex] waiting for: [received:nodes:a906e8c8-f981-46ea-9937-4c3665b49c60:localhost]

2022-02-17 04:09:35 | [Mutex] received everything.

2022-02-17 04:09:35 | [Mutex] isItemNotified: received:node:a906e8c8-f981-46ea-9937-4c3665b49c60:localhost:node-d7a35d9a-f959-474e-8c54-5616653dd2ee:Node d7a35d9a-f959-474e-8c54-5616653dd2ee :: false

publishItemsToNodes 0.062s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

2022-02-17 04:09:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "entry": "<test>item-ef34a06c-2b0c-492b-9824-5ff615e1f169</test>",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169"
}

2022-02-17 04:09:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169"
}

2022-02-17 04:09:33 | [Mutex] waiting for: [published:item:notifieditem-ef34a06c-2b0c-492b-9824-5ff615e1f169:admin@test-domain.com]

2022-02-17 04:09:33 | [Mutex] received everything.

2022-02-17 04:09:33 | [Mutex] isItemNotified: published:item:notifieditem-ef34a06c-2b0c-492b-9824-5ff615e1f169:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

2022-02-17 04:09:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169"
}

2022-02-17 04:09:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169"
}

2022-02-17 04:09:33 | [Mutex] waiting for: [retracted:item:notifieditem-ef34a06c-2b0c-492b-9824-5ff615e1f169:admin@test-domain.com]

2022-02-17 04:09:33 | [Mutex] received everything.

2022-02-17 04:09:33 | [Mutex] isItemNotified: retracted:item:notifieditem-ef34a06c-2b0c-492b-9824-5ff615e1f169:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

2022-02-17 04:09:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169"
}

2022-02-17 04:09:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "item-id": "item-ef34a06c-2b0c-492b-9824-5ff615e1f169",
    "item": [
        "<item id=\"item-ef34a06c-2b0c-492b-9824-5ff615e1f169\"><test>item-ef34a06c-2b0c-492b-9824-5ff615e1f169</test></item>"
    ]
}

2022-02-17 04:09:33 | [Mutex] notify: [retrieved:item:item-ef34a06c-2b0c-492b-9824-5ff615e1f169:payload-matches:true:localhost]

2022-02-17 04:09:33 | [Mutex] received everything.

2022-02-17 04:09:33 | [Mutex] isItemNotified: retrieved:item:item-ef34a06c-2b0c-492b-9824-5ff615e1f169:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

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

2022-02-17 04:09:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
        "test",
        "node-b57126a0-b74b-43d5-b9e3-f12e27b5d2e1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

2022-02-17 04:09:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d7a35d9a-f959-474e-8c54-5616653dd2ee)"
}

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

subscribeNodes 1.017s
2022-02-17 04:09:32 |

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

2022-02-17 04:09:32 | ------------------------------------

2022-02-17 04:09:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.084s
2022-02-17 04:09:33 |

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

2022-02-17 04:09:33 | ------------------------------------

2022-02-17 04:09:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d7a35d9a-f959-474e-8c54-5616653dd2ee",
    "jids": [
        "admin@test-domain.com"
    ]
}

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