Generated by TestNG with ReportNG at 04:13 PDT on Tuesday 25 October 2022
root@f9c07ffec79b / 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.762s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.171s
2022-10-25 04:33:53 |

2022-10-25 04:33:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:53 | ------------------------------------

2022-10-25 04:33:53 | [Mutex] waiting for: [configured:node:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9]

2022-10-25 04:33:53 | [Mutex] received everything.

2022-10-25 04:33:53 | [Mutex] isItemNotified: configured:node:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9 :: true

2022-10-25 04:33:54 | [Mutex] waiting for: [received:nodes:561b82d9-0bb1-43a0-aed9-c45212640c56:localhost]

2022-10-25 04:33:54 | [Mutex] received everything.

2022-10-25 04:33:54 | [Mutex] isItemNotified: received:node:561b82d9-0bb1-43a0-aed9-c45212640c56:localhost:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d :: true

2022-10-25 04:33:54 | [Mutex] waiting for: [received:nodes:3af77c54-90f4-4453-a6a9-86533451a0c6:localhost]

2022-10-25 04:33:54 | [Mutex] waiting for: [received:nodes:3af77c54-90f4-4453-a6a9-86533451a0c6:localhost]

2022-10-25 04:33:54 | [Mutex] waiting for: [received:nodes:3af77c54-90f4-4453-a6a9-86533451a0c6:localhost]

2022-10-25 04:33:54 | [Mutex] received everything.

2022-10-25 04:33:54 | [Mutex] isItemNotified: received:node:3af77c54-90f4-4453-a6a9-86533451a0c6:localhost:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d :: false

createNodes 1.640s
2022-10-25 04:33:51 |

2022-10-25 04:33:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:51 | ------------------------------------

2022-10-25 04:33:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "pubsub#title": "Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d"
}

2022-10-25 04:33:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:33:52 | [Mutex] waiting for: [received:nodes:47377ccd-0c81-450b-9ea7-93bb1d05e7f0:localhost]

2022-10-25 04:33:52 | [Mutex] received everything.

2022-10-25 04:33:52 | [Mutex] isItemNotified: received:node:47377ccd-0c81-450b-9ea7-93bb1d05e7f0:localhost:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d :: true

createSubnodes 1.022s
2022-10-25 04:33:52 |

2022-10-25 04:33:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:52 | ------------------------------------

2022-10-25 04:33:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9",
    "pubsub#title": "Node b8d8ed93-469c-49dd-90dd-b61e34fbf5c9"
}

2022-10-25 04:33:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:33:53 | [Mutex] waiting for: [received:nodes:76650c36-1b2b-4ec2-b886-5e506a001c12:localhost]

2022-10-25 04:33:53 | [Mutex] waiting for: [received:nodes:76650c36-1b2b-4ec2-b886-5e506a001c12:localhost]

2022-10-25 04:33:53 | [Mutex] received everything.

2022-10-25 04:33:53 | [Mutex] isItemNotified: received:node:76650c36-1b2b-4ec2-b886-5e506a001c12:localhost:node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9:Node b8d8ed93-469c-49dd-90dd-b61e34fbf5c9 :: true

deleteNodes 1.021s
2022-10-25 04:33:58 |

2022-10-25 04:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:58 | ------------------------------------

2022-10-25 04:33:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9"
}

2022-10-25 04:33:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:33:59 | [Mutex] waiting for: [received:nodes:12b4577a-e059-439a-9c4d-b1aff713cdea:localhost]

2022-10-25 04:33:59 | [Mutex] received everything.

2022-10-25 04:33:59 | [Mutex] isItemNotified: received:node:12b4577a-e059-439a-9c4d-b1aff713cdea:localhost:node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9:Node b8d8ed93-469c-49dd-90dd-b61e34fbf5c9 :: false

deleteSubnodes 1.028s
2022-10-25 04:33:57 |

2022-10-25 04:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:57 | ------------------------------------

2022-10-25 04:33:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d"
}

2022-10-25 04:33:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:33:58 | [Mutex] waiting for: [received:nodes:dff9c05d-c5dd-4015-8f71-b4ff68d4767c:localhost]

2022-10-25 04:33:58 | [Mutex] received everything.

2022-10-25 04:33:58 | [Mutex] isItemNotified: received:node:dff9c05d-c5dd-4015-8f71-b4ff68d4767c:localhost:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d :: false

2022-10-25 04:33:58 | [Mutex] waiting for: [received:nodes:5756f169-b658-4ed3-8fe8-35ef37fa84c5:localhost]

2022-10-25 04:33:58 | [Mutex] received everything.

2022-10-25 04:33:58 | [Mutex] isItemNotified: received:node:5756f169-b658-4ed3-8fe8-35ef37fa84c5:localhost:node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d:Node 7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d :: false

publishItemsToNodes 0.048s
2022-10-25 04:33:55 |

2022-10-25 04:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:55 | ------------------------------------

2022-10-25 04:33:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "entry": "<test>item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1</test>",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1"
}

2022-10-25 04:33:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1"
}

2022-10-25 04:33:55 | [Mutex] waiting for: [published:item:notifieditem-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1:admin@test-domain.com]

2022-10-25 04:33:55 | [Mutex] received everything.

2022-10-25 04:33:55 | [Mutex] isItemNotified: published:item:notifieditem-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-10-25 04:33:56 |

2022-10-25 04:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:56 | ------------------------------------

2022-10-25 04:33:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1"
}

2022-10-25 04:33:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1"
}

2022-10-25 04:33:56 | [Mutex] received everything.

2022-10-25 04:33:56 | [Mutex] isItemNotified: retracted:item:notifieditem-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-10-25 04:33:55 |

2022-10-25 04:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:55 | ------------------------------------

2022-10-25 04:33:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1"
}

2022-10-25 04:33:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "item-id": "item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1",
    "item": [
        "<item id=\"item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1\"><test>item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1</test></item>"
    ]
}

2022-10-25 04:33:56 | [Mutex] notify: [retrieved:item:item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1:payload-matches:true:localhost]

2022-10-25 04:33:56 | [Mutex] received everything.

2022-10-25 04:33:56 | [Mutex] isItemNotified: retrieved:item:item-dfe0b6f9-c4ea-4f4b-89a5-eb080fae9cf1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-10-25 04:33:56 |

2022-10-25 04:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:56 | ------------------------------------

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

2022-10-25 04:33:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b8d8ed93-469c-49dd-90dd-b61e34fbf5c9",
        "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-10-25 04:33:56 |

2022-10-25 04:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:56 | ------------------------------------

2022-10-25 04:33:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d)"
}

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

subscribeNodes 1.009s
2022-10-25 04:33:54 |

2022-10-25 04:33:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:54 | ------------------------------------

2022-10-25 04:33:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-25 04:33:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-10-25 04:33:56 |

2022-10-25 04:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:33:56 | ------------------------------------

2022-10-25 04:33:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7ae8617a-0b3b-4d9d-a022-a0a64b67ed0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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