Generated by TestNG with ReportNG at 22:48 PDT on Tuesday 21 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.567s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-06-21 23:02:51 |

2022-06-21 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:51 | ------------------------------------

2022-06-21 23:02:51 | [Mutex] waiting for: [configured:node:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:node-7caac748-eccb-4288-92ac-87777536dd8f]

2022-06-21 23:02:51 | [Mutex] received everything.

2022-06-21 23:02:51 | [Mutex] isItemNotified: configured:node:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:node-7caac748-eccb-4288-92ac-87777536dd8f :: true

2022-06-21 23:02:52 | [Mutex] waiting for: [received:nodes:244d5f03-1433-45c2-8f74-68ac1782c053:localhost]

2022-06-21 23:02:52 | [Mutex] received everything.

2022-06-21 23:02:52 | [Mutex] isItemNotified: received:node:244d5f03-1433-45c2-8f74-68ac1782c053:localhost:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:Node a245529a-4177-4c45-9b79-c88d1f2c40a4 :: true

2022-06-21 23:02:52 | [Mutex] waiting for: [received:nodes:cb9d157d-6afd-49ad-9ed8-c3a893c63dcd:localhost]

2022-06-21 23:02:52 | [Mutex] waiting for: [received:nodes:cb9d157d-6afd-49ad-9ed8-c3a893c63dcd:localhost]

2022-06-21 23:02:52 | [Mutex] received everything.

2022-06-21 23:02:52 | [Mutex] isItemNotified: received:node:cb9d157d-6afd-49ad-9ed8-c3a893c63dcd:localhost:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:Node a245529a-4177-4c45-9b79-c88d1f2c40a4 :: false

createNodes 1.535s
2022-06-21 23:02:48 |

2022-06-21 23:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:48 | ------------------------------------

2022-06-21 23:02: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-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "pubsub#title": "Node a245529a-4177-4c45-9b79-c88d1f2c40a4"
}

2022-06-21 23:02:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 23:02:50 | [Mutex] waiting for: [received:nodes:a468602b-42ba-4b74-870b-1fbe6e8d7c23:localhost]

2022-06-21 23:02:50 | [Mutex] waiting for: [received:nodes:a468602b-42ba-4b74-870b-1fbe6e8d7c23:localhost]

2022-06-21 23:02:50 | [Mutex] received everything.

2022-06-21 23:02:50 | [Mutex] isItemNotified: received:node:a468602b-42ba-4b74-870b-1fbe6e8d7c23:localhost:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:Node a245529a-4177-4c45-9b79-c88d1f2c40a4 :: true

createSubnodes 1.021s
2022-06-21 23:02:50 |

2022-06-21 23:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:50 | ------------------------------------

2022-06-21 23:02: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-7caac748-eccb-4288-92ac-87777536dd8f",
    "pubsub#title": "Node 7caac748-eccb-4288-92ac-87777536dd8f"
}

2022-06-21 23:02:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 23:02:51 | [Mutex] waiting for: [received:nodes:d8f69af7-5759-4221-9647-99f6ebc35837:localhost]

2022-06-21 23:02:51 | [Mutex] received everything.

2022-06-21 23:02:51 | [Mutex] isItemNotified: received:node:d8f69af7-5759-4221-9647-99f6ebc35837:localhost:node-7caac748-eccb-4288-92ac-87777536dd8f:Node 7caac748-eccb-4288-92ac-87777536dd8f :: true

deleteNodes 1.019s
2022-06-21 23:02:55 |

2022-06-21 23:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:55 | ------------------------------------

2022-06-21 23:02:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7caac748-eccb-4288-92ac-87777536dd8f"
}

2022-06-21 23:02:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 23:02:56 | [Mutex] waiting for: [received:nodes:8ccf7eb4-3fad-49a6-b19f-ff000108f08b:localhost]

2022-06-21 23:02:56 | [Mutex] received everything.

2022-06-21 23:02:56 | [Mutex] isItemNotified: received:node:8ccf7eb4-3fad-49a6-b19f-ff000108f08b:localhost:node-7caac748-eccb-4288-92ac-87777536dd8f:Node 7caac748-eccb-4288-92ac-87777536dd8f :: false

deleteSubnodes 1.028s
2022-06-21 23:02:54 |

2022-06-21 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:54 | ------------------------------------

2022-06-21 23:02:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4"
}

2022-06-21 23:02:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 23:02:55 | [Mutex] waiting for: [received:nodes:0ea42e90-daa4-423e-b9e1-e161cb9ed4f8:localhost]

2022-06-21 23:02:55 | [Mutex] received everything.

2022-06-21 23:02:55 | [Mutex] isItemNotified: received:node:0ea42e90-daa4-423e-b9e1-e161cb9ed4f8:localhost:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:Node a245529a-4177-4c45-9b79-c88d1f2c40a4 :: false

2022-06-21 23:02:55 | [Mutex] waiting for: [received:nodes:ed3099d9-e48c-499e-ace9-803cadf3e427:localhost]

2022-06-21 23:02:55 | [Mutex] received everything.

2022-06-21 23:02:55 | [Mutex] isItemNotified: received:node:ed3099d9-e48c-499e-ace9-803cadf3e427:localhost:node-a245529a-4177-4c45-9b79-c88d1f2c40a4:Node a245529a-4177-4c45-9b79-c88d1f2c40a4 :: false

publishItemsToNodes 0.053s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

2022-06-21 23:02:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "entry": "<test>item-c89057db-95ac-4c3d-b29e-f215b6e9498c</test>",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c"
}

2022-06-21 23:02:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c"
}

2022-06-21 23:02:53 | [Mutex] waiting for: [published:item:notifieditem-c89057db-95ac-4c3d-b29e-f215b6e9498c:admin@test-domain.com]

2022-06-21 23:02:53 | [Mutex] received everything.

2022-06-21 23:02:53 | [Mutex] isItemNotified: published:item:notifieditem-c89057db-95ac-4c3d-b29e-f215b6e9498c:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

2022-06-21 23:02:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c"
}

2022-06-21 23:02:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c"
}

2022-06-21 23:02:53 | [Mutex] received everything.

2022-06-21 23:02:53 | [Mutex] isItemNotified: retracted:item:notifieditem-c89057db-95ac-4c3d-b29e-f215b6e9498c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

2022-06-21 23:02:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c"
}

2022-06-21 23:02:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "item-id": "item-c89057db-95ac-4c3d-b29e-f215b6e9498c",
    "item": [
        "<item id=\"item-c89057db-95ac-4c3d-b29e-f215b6e9498c\"><test>item-c89057db-95ac-4c3d-b29e-f215b6e9498c</test></item>"
    ]
}

2022-06-21 23:02:53 | [Mutex] notify: [retrieved:item:item-c89057db-95ac-4c3d-b29e-f215b6e9498c:payload-matches:true:localhost]

2022-06-21 23:02:53 | [Mutex] received everything.

2022-06-21 23:02:53 | [Mutex] isItemNotified: retrieved:item:item-c89057db-95ac-4c3d-b29e-f215b6e9498c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.062s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

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

2022-06-21 23:02:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
        "node-7caac748-eccb-4288-92ac-87777536dd8f",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

2022-06-21 23:02:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a245529a-4177-4c45-9b79-c88d1f2c40a4)"
}

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

subscribeNodes 1.010s
2022-06-21 23:02:52 |

2022-06-21 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:52 | ------------------------------------

2022-06-21 23:02:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 23:02:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.047s
2022-06-21 23:02:53 |

2022-06-21 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 23:02:53 | ------------------------------------

2022-06-21 23:02:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a245529a-4177-4c45-9b79-c88d1f2c40a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 23:02:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}