Generated by TestNG with ReportNG at 22:18 PDT on Monday 18 July 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.717s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2022-07-18 22:32:21 |

2022-07-18 22:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:21 | ------------------------------------

2022-07-18 22:32:21 | [Mutex] waiting for: [configured:node:node-c4883b26-61a6-42a2-8ea5-631355c8d737:node-0ec7021e-46ec-4521-abd4-410bfb710cb4]

2022-07-18 22:32:21 | [Mutex] received everything.

2022-07-18 22:32:21 | [Mutex] isItemNotified: configured:node:node-c4883b26-61a6-42a2-8ea5-631355c8d737:node-0ec7021e-46ec-4521-abd4-410bfb710cb4 :: true

2022-07-18 22:32:22 | [Mutex] waiting for: [received:nodes:671da91e-7c4b-46a0-bdac-9b7960b62f92:localhost]

2022-07-18 22:32:22 | [Mutex] received everything.

2022-07-18 22:32:22 | [Mutex] isItemNotified: received:node:671da91e-7c4b-46a0-bdac-9b7960b62f92:localhost:node-c4883b26-61a6-42a2-8ea5-631355c8d737:Node c4883b26-61a6-42a2-8ea5-631355c8d737 :: true

2022-07-18 22:32:22 | [Mutex] waiting for: [received:nodes:18fe4b5d-22c5-4d17-8604-2164c11598a8:localhost]

2022-07-18 22:32:22 | [Mutex] received everything.

2022-07-18 22:32:22 | [Mutex] isItemNotified: received:node:18fe4b5d-22c5-4d17-8604-2164c11598a8:localhost:node-c4883b26-61a6-42a2-8ea5-631355c8d737:Node c4883b26-61a6-42a2-8ea5-631355c8d737 :: false

createNodes 1.562s
2022-07-18 22:32:19 |

2022-07-18 22:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:19 | ------------------------------------

2022-07-18 22:32:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "pubsub#title": "Node c4883b26-61a6-42a2-8ea5-631355c8d737"
}

2022-07-18 22:32:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:20 | [Mutex] waiting for: [received:nodes:fe85d9aa-e188-44c6-835b-179c7df7d050:localhost]

2022-07-18 22:32:20 | [Mutex] received everything.

2022-07-18 22:32:20 | [Mutex] isItemNotified: received:node:fe85d9aa-e188-44c6-835b-179c7df7d050:localhost:node-c4883b26-61a6-42a2-8ea5-631355c8d737:Node c4883b26-61a6-42a2-8ea5-631355c8d737 :: true

createSubnodes 1.026s
2022-07-18 22:32:20 |

2022-07-18 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:20 | ------------------------------------

2022-07-18 22:32:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0ec7021e-46ec-4521-abd4-410bfb710cb4",
    "pubsub#title": "Node 0ec7021e-46ec-4521-abd4-410bfb710cb4"
}

2022-07-18 22:32:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:21 | [Mutex] waiting for: [received:nodes:a6a4ad29-87fe-4119-b5ab-eed9187bf5cd:localhost]

2022-07-18 22:32:21 | [Mutex] received everything.

2022-07-18 22:32:21 | [Mutex] isItemNotified: received:node:a6a4ad29-87fe-4119-b5ab-eed9187bf5cd:localhost:node-0ec7021e-46ec-4521-abd4-410bfb710cb4:Node 0ec7021e-46ec-4521-abd4-410bfb710cb4 :: true

deleteNodes 1.019s
2022-07-18 22:32:26 |

2022-07-18 22:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:26 | ------------------------------------

2022-07-18 22:32:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0ec7021e-46ec-4521-abd4-410bfb710cb4"
}

2022-07-18 22:32:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:27 | [Mutex] waiting for: [received:nodes:8156b937-74a4-4b83-a50f-e3f0ff0dc4fd:localhost]

2022-07-18 22:32:27 | [Mutex] received everything.

2022-07-18 22:32:27 | [Mutex] isItemNotified: received:node:8156b937-74a4-4b83-a50f-e3f0ff0dc4fd:localhost:node-0ec7021e-46ec-4521-abd4-410bfb710cb4:Node 0ec7021e-46ec-4521-abd4-410bfb710cb4 :: false

deleteSubnodes 1.025s
2022-07-18 22:32:25 |

2022-07-18 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:25 | ------------------------------------

2022-07-18 22:32:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737"
}

2022-07-18 22:32:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:26 | [Mutex] waiting for: [received:nodes:2c866e0a-44e9-4e7c-a54d-221402bab213:localhost]

2022-07-18 22:32:26 | [Mutex] waiting for: [received:nodes:2c866e0a-44e9-4e7c-a54d-221402bab213:localhost]

2022-07-18 22:32:26 | [Mutex] received everything.

2022-07-18 22:32:26 | [Mutex] isItemNotified: received:node:2c866e0a-44e9-4e7c-a54d-221402bab213:localhost:node-c4883b26-61a6-42a2-8ea5-631355c8d737:Node c4883b26-61a6-42a2-8ea5-631355c8d737 :: false

2022-07-18 22:32:26 | [Mutex] waiting for: [received:nodes:ea7b0059-93ce-4212-bd03-d8a0e20a7080:localhost]

2022-07-18 22:32:26 | [Mutex] received everything.

2022-07-18 22:32:26 | [Mutex] isItemNotified: received:node:ea7b0059-93ce-4212-bd03-d8a0e20a7080:localhost:node-c4883b26-61a6-42a2-8ea5-631355c8d737:Node c4883b26-61a6-42a2-8ea5-631355c8d737 :: false

publishItemsToNodes 0.038s
2022-07-18 22:32:23 |

2022-07-18 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:23 | ------------------------------------

2022-07-18 22:32:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "entry": "<test>item-c54ed10d-a90a-4965-ba17-02a8f5759341</test>",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341"
}

2022-07-18 22:32:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341"
}

2022-07-18 22:32:23 | [Mutex] waiting for: [published:item:notifieditem-c54ed10d-a90a-4965-ba17-02a8f5759341:admin@test-domain.com]

2022-07-18 22:32:23 | [Mutex] received everything.

2022-07-18 22:32:23 | [Mutex] isItemNotified: published:item:notifieditem-c54ed10d-a90a-4965-ba17-02a8f5759341:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-07-18 22:32:24 |

2022-07-18 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:24 | ------------------------------------

2022-07-18 22:32:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341"
}

2022-07-18 22:32:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341"
}

2022-07-18 22:32:24 | [Mutex] received everything.

2022-07-18 22:32:24 | [Mutex] isItemNotified: retracted:item:notifieditem-c54ed10d-a90a-4965-ba17-02a8f5759341:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-07-18 22:32:23 |

2022-07-18 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:23 | ------------------------------------

2022-07-18 22:32:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341"
}

2022-07-18 22:32:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "item-id": "item-c54ed10d-a90a-4965-ba17-02a8f5759341",
    "item": [
        "<item id=\"item-c54ed10d-a90a-4965-ba17-02a8f5759341\"><test>item-c54ed10d-a90a-4965-ba17-02a8f5759341</test></item>"
    ]
}

2022-07-18 22:32:23 | [Mutex] notify: [retrieved:item:item-c54ed10d-a90a-4965-ba17-02a8f5759341:payload-matches:true:localhost]

2022-07-18 22:32:23 | [Mutex] received everything.

2022-07-18 22:32:23 | [Mutex] isItemNotified: retrieved:item:item-c54ed10d-a90a-4965-ba17-02a8f5759341:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-18 22:32:23 |

2022-07-18 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:23 | ------------------------------------

2022-07-18 22:32:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-18 22:32:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
        "node-0ec7021e-46ec-4521-abd4-410bfb710cb4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-18 22:32:23 |

2022-07-18 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:23 | ------------------------------------

2022-07-18 22:32:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c4883b26-61a6-42a2-8ea5-631355c8d737)"
}

2022-07-18 22:32:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 22:32:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-07-18 22:32:24 |

2022-07-18 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:24 | ------------------------------------

2022-07-18 22:32:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c4883b26-61a6-42a2-8ea5-631355c8d737",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 22:32:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}