Generated by TestNG with ReportNG at 22:46 PDT on Monday 25 July 2022
root@7c41cec37518 / 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.625s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.084s
2022-07-25 23:00:41 |

2022-07-25 23:00:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:41 | ------------------------------------

2022-07-25 23:00:41 | [Mutex] waiting for: [configured:node:node-7090ee24-3450-40de-a911-0f92e239ec76:node-424033fd-4026-45e1-b3c0-4adfa379b564]

2022-07-25 23:00:41 | [Mutex] received everything.

2022-07-25 23:00:41 | [Mutex] isItemNotified: configured:node:node-7090ee24-3450-40de-a911-0f92e239ec76:node-424033fd-4026-45e1-b3c0-4adfa379b564 :: true

2022-07-25 23:00:42 | [Mutex] waiting for: [received:nodes:b7a18711-7df5-4493-99ef-63c34bed1963:localhost]

2022-07-25 23:00:42 | [Mutex] received everything.

2022-07-25 23:00:42 | [Mutex] isItemNotified: received:node:b7a18711-7df5-4493-99ef-63c34bed1963:localhost:node-7090ee24-3450-40de-a911-0f92e239ec76:Node 7090ee24-3450-40de-a911-0f92e239ec76 :: true

2022-07-25 23:00:42 | [Mutex] waiting for: [received:nodes:c906df31-62b0-4409-9612-2ef67fee18f7:localhost]

2022-07-25 23:00:42 | [Mutex] received everything.

2022-07-25 23:00:42 | [Mutex] isItemNotified: received:node:c906df31-62b0-4409-9612-2ef67fee18f7:localhost:node-7090ee24-3450-40de-a911-0f92e239ec76:Node 7090ee24-3450-40de-a911-0f92e239ec76 :: false

createNodes 1.579s
2022-07-25 23:00:38 |

2022-07-25 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:38 | ------------------------------------

2022-07-25 23:00:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "pubsub#title": "Node 7090ee24-3450-40de-a911-0f92e239ec76"
}

2022-07-25 23:00:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:00:40 | [Mutex] waiting for: [received:nodes:46d13319-e5fd-48e5-8b89-787260ed8277:localhost]

2022-07-25 23:00:40 | [Mutex] received everything.

2022-07-25 23:00:40 | [Mutex] isItemNotified: received:node:46d13319-e5fd-48e5-8b89-787260ed8277:localhost:node-7090ee24-3450-40de-a911-0f92e239ec76:Node 7090ee24-3450-40de-a911-0f92e239ec76 :: true

createSubnodes 1.027s
2022-07-25 23:00:40 |

2022-07-25 23:00:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:40 | ------------------------------------

2022-07-25 23:00:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-424033fd-4026-45e1-b3c0-4adfa379b564",
    "pubsub#title": "Node 424033fd-4026-45e1-b3c0-4adfa379b564"
}

2022-07-25 23:00:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:00:41 | [Mutex] waiting for: [received:nodes:fd0ec424-dc2e-4074-9b95-1399bcd841f1:localhost]

2022-07-25 23:00:41 | [Mutex] waiting for: [received:nodes:fd0ec424-dc2e-4074-9b95-1399bcd841f1:localhost]

2022-07-25 23:00:41 | [Mutex] received everything.

2022-07-25 23:00:41 | [Mutex] isItemNotified: received:node:fd0ec424-dc2e-4074-9b95-1399bcd841f1:localhost:node-424033fd-4026-45e1-b3c0-4adfa379b564:Node 424033fd-4026-45e1-b3c0-4adfa379b564 :: true

deleteNodes 1.018s
2022-07-25 23:00:45 |

2022-07-25 23:00:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:45 | ------------------------------------

2022-07-25 23:00:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-424033fd-4026-45e1-b3c0-4adfa379b564"
}

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

2022-07-25 23:00:46 | [Mutex] waiting for: [received:nodes:9901c5f1-1030-4393-8f25-47b7e35ae4bd:localhost]

2022-07-25 23:00:47 | [Mutex] waiting for: [received:nodes:9901c5f1-1030-4393-8f25-47b7e35ae4bd:localhost]

2022-07-25 23:00:47 | [Mutex] received everything.

2022-07-25 23:00:47 | [Mutex] isItemNotified: received:node:9901c5f1-1030-4393-8f25-47b7e35ae4bd:localhost:node-424033fd-4026-45e1-b3c0-4adfa379b564:Node 424033fd-4026-45e1-b3c0-4adfa379b564 :: false

deleteSubnodes 1.026s
2022-07-25 23:00:44 |

2022-07-25 23:00:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:44 | ------------------------------------

2022-07-25 23:00:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76"
}

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

2022-07-25 23:00:45 | [Mutex] waiting for: [received:nodes:15aa2f72-1600-4243-816c-1d8d9faa6cef:localhost]

2022-07-25 23:00:45 | [Mutex] received everything.

2022-07-25 23:00:45 | [Mutex] isItemNotified: received:node:15aa2f72-1600-4243-816c-1d8d9faa6cef:localhost:node-7090ee24-3450-40de-a911-0f92e239ec76:Node 7090ee24-3450-40de-a911-0f92e239ec76 :: false

2022-07-25 23:00:45 | [Mutex] waiting for: [received:nodes:df58ef66-a2a6-4838-ba7f-95840dd9c4a3:localhost]

2022-07-25 23:00:45 | [Mutex] received everything.

2022-07-25 23:00:45 | [Mutex] isItemNotified: received:node:df58ef66-a2a6-4838-ba7f-95840dd9c4a3:localhost:node-7090ee24-3450-40de-a911-0f92e239ec76:Node 7090ee24-3450-40de-a911-0f92e239ec76 :: false

publishItemsToNodes 0.050s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

2022-07-25 23:00:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "entry": "<test>item-fa946436-0ada-424f-a1ef-39ad32450da0</test>",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0"
}

2022-07-25 23:00:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0"
}

2022-07-25 23:00:43 | [Mutex] waiting for: [published:item:notifieditem-fa946436-0ada-424f-a1ef-39ad32450da0:admin@test-domain.com]

2022-07-25 23:00:43 | [Mutex] received everything.

2022-07-25 23:00:43 | [Mutex] isItemNotified: published:item:notifieditem-fa946436-0ada-424f-a1ef-39ad32450da0:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

2022-07-25 23:00:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0"
}

2022-07-25 23:00:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0"
}

2022-07-25 23:00:43 | [Mutex] received everything.

2022-07-25 23:00:43 | [Mutex] isItemNotified: retracted:item:notifieditem-fa946436-0ada-424f-a1ef-39ad32450da0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

2022-07-25 23:00:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0"
}

2022-07-25 23:00:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "item-id": "item-fa946436-0ada-424f-a1ef-39ad32450da0",
    "item": [
        "<item id=\"item-fa946436-0ada-424f-a1ef-39ad32450da0\"><test>item-fa946436-0ada-424f-a1ef-39ad32450da0</test></item>"
    ]
}

2022-07-25 23:00:43 | [Mutex] notify: [retrieved:item:item-fa946436-0ada-424f-a1ef-39ad32450da0:payload-matches:true:localhost]

2022-07-25 23:00:43 | [Mutex] received everything.

2022-07-25 23:00:43 | [Mutex] isItemNotified: retrieved:item:item-fa946436-0ada-424f-a1ef-39ad32450da0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

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

2022-07-25 23:00:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-424033fd-4026-45e1-b3c0-4adfa379b564",
        "node-7090ee24-3450-40de-a911-0f92e239ec76"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

2022-07-25 23:00:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7090ee24-3450-40de-a911-0f92e239ec76)"
}

2022-07-25 23:00:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-07-25 23:00:42 |

2022-07-25 23:00:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:42 | ------------------------------------

2022-07-25 23:00:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 23:00:42 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2022-07-25 23:00:43 |

2022-07-25 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:00:43 | ------------------------------------

2022-07-25 23:00:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7090ee24-3450-40de-a911-0f92e239ec76",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 23:00:43 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}