Generated by TestNG with ReportNG at 21:15 PST on Friday 17 February 2023
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.671s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2023-02-17 21:31:35 |

2023-02-17 21:31:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:35 | ------------------------------------

2023-02-17 21:31:35 | [Mutex] waiting for: [configured:node:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:node-076919cd-a5a7-4c8d-86b9-c353e287e429]

2023-02-17 21:31:35 | [Mutex] received everything.

2023-02-17 21:31:35 | [Mutex] isItemNotified: configured:node:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:node-076919cd-a5a7-4c8d-86b9-c353e287e429 :: true

2023-02-17 21:31:36 | [Mutex] waiting for: [received:nodes:20de7de5-d382-486b-94b2-4bd3d55a5d89:localhost]

2023-02-17 21:31:36 | [Mutex] received everything.

2023-02-17 21:31:36 | [Mutex] isItemNotified: received:node:20de7de5-d382-486b-94b2-4bd3d55a5d89:localhost:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9 :: true

2023-02-17 21:31:36 | [Mutex] waiting for: [received:nodes:1f376278-c55b-4bf4-a016-8cb306d0df01:localhost]

2023-02-17 21:31:36 | [Mutex] waiting for: [received:nodes:1f376278-c55b-4bf4-a016-8cb306d0df01:localhost]

2023-02-17 21:31:36 | [Mutex] waiting for: [received:nodes:1f376278-c55b-4bf4-a016-8cb306d0df01:localhost]

2023-02-17 21:31:36 | [Mutex] received everything.

2023-02-17 21:31:36 | [Mutex] isItemNotified: received:node:1f376278-c55b-4bf4-a016-8cb306d0df01:localhost:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9 :: false

createNodes 1.603s
2023-02-17 21:31:32 |

2023-02-17 21:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:32 | ------------------------------------

2023-02-17 21:31:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "pubsub#title": "Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9"
}

2023-02-17 21:31:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:31:34 | [Mutex] waiting for: [received:nodes:acaf404f-7a62-4952-826d-3445a8c56c57:localhost]

2023-02-17 21:31:34 | [Mutex] waiting for: [received:nodes:acaf404f-7a62-4952-826d-3445a8c56c57:localhost]

2023-02-17 21:31:34 | [Mutex] received everything.

2023-02-17 21:31:34 | [Mutex] isItemNotified: received:node:acaf404f-7a62-4952-826d-3445a8c56c57:localhost:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9 :: true

createSubnodes 1.029s
2023-02-17 21:31:34 |

2023-02-17 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:34 | ------------------------------------

2023-02-17 21:31:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-076919cd-a5a7-4c8d-86b9-c353e287e429",
    "pubsub#title": "Node 076919cd-a5a7-4c8d-86b9-c353e287e429"
}

2023-02-17 21:31:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:31:35 | [Mutex] waiting for: [received:nodes:8afd5a3d-7c94-4ec7-bc57-1410df46a014:localhost]

2023-02-17 21:31:35 | [Mutex] received everything.

2023-02-17 21:31:35 | [Mutex] isItemNotified: received:node:8afd5a3d-7c94-4ec7-bc57-1410df46a014:localhost:node-076919cd-a5a7-4c8d-86b9-c353e287e429:Node 076919cd-a5a7-4c8d-86b9-c353e287e429 :: true

deleteNodes 1.038s
2023-02-17 21:31:39 |

2023-02-17 21:31:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:39 | ------------------------------------

2023-02-17 21:31:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-076919cd-a5a7-4c8d-86b9-c353e287e429"
}

2023-02-17 21:31:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:31:40 | [Mutex] waiting for: [received:nodes:567a8e2d-bc66-4da5-9075-5fb6fa533d27:localhost]

2023-02-17 21:31:40 | [Mutex] received everything.

2023-02-17 21:31:40 | [Mutex] isItemNotified: received:node:567a8e2d-bc66-4da5-9075-5fb6fa533d27:localhost:node-076919cd-a5a7-4c8d-86b9-c353e287e429:Node 076919cd-a5a7-4c8d-86b9-c353e287e429 :: false

deleteSubnodes 1.026s
2023-02-17 21:31:38 |

2023-02-17 21:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:38 | ------------------------------------

2023-02-17 21:31:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9"
}

2023-02-17 21:31:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:31:39 | [Mutex] waiting for: [received:nodes:6dd5bde4-3228-4485-84d7-eb6bc2626f97:localhost]

2023-02-17 21:31:39 | [Mutex] waiting for: [received:nodes:6dd5bde4-3228-4485-84d7-eb6bc2626f97:localhost]

2023-02-17 21:31:39 | [Mutex] waiting for: [received:nodes:6dd5bde4-3228-4485-84d7-eb6bc2626f97:localhost]

2023-02-17 21:31:39 | [Mutex] received everything.

2023-02-17 21:31:39 | [Mutex] isItemNotified: received:node:6dd5bde4-3228-4485-84d7-eb6bc2626f97:localhost:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9 :: false

2023-02-17 21:31:39 | [Mutex] waiting for: [received:nodes:957681e7-4bce-4dc9-ba7e-9d0f07583814:localhost]

2023-02-17 21:31:39 | [Mutex] received everything.

2023-02-17 21:31:39 | [Mutex] isItemNotified: received:node:957681e7-4bce-4dc9-ba7e-9d0f07583814:localhost:node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9:Node 635f4ce4-179e-4f4c-b6cf-464c79ee36b9 :: false

publishItemsToNodes 0.059s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "entry": "<test>item-5fb93974-8684-441c-89f6-bc7fd9d97ec1</test>",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1"
}

2023-02-17 21:31:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1"
}

2023-02-17 21:31:37 | [Mutex] waiting for: [published:item:notifieditem-5fb93974-8684-441c-89f6-bc7fd9d97ec1:admin@test-domain.com]

2023-02-17 21:31:37 | [Mutex] received everything.

2023-02-17 21:31:37 | [Mutex] isItemNotified: published:item:notifieditem-5fb93974-8684-441c-89f6-bc7fd9d97ec1:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1"
}

2023-02-17 21:31:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1"
}

2023-02-17 21:31:37 | [Mutex] received everything.

2023-02-17 21:31:37 | [Mutex] isItemNotified: retracted:item:notifieditem-5fb93974-8684-441c-89f6-bc7fd9d97ec1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.012s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1"
}

2023-02-17 21:31:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "item-id": "item-5fb93974-8684-441c-89f6-bc7fd9d97ec1",
    "item": [
        "<item id=\"item-5fb93974-8684-441c-89f6-bc7fd9d97ec1\"><test>item-5fb93974-8684-441c-89f6-bc7fd9d97ec1</test></item>"
    ]
}

2023-02-17 21:31:37 | [Mutex] notify: [retrieved:item:item-5fb93974-8684-441c-89f6-bc7fd9d97ec1:payload-matches:true:localhost]

2023-02-17 21:31:37 | [Mutex] received everything.

2023-02-17 21:31:37 | [Mutex] isItemNotified: retrieved:item:item-5fb93974-8684-441c-89f6-bc7fd9d97ec1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-17 21:31:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-076919cd-a5a7-4c8d-86b9-c353e287e429",
        "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9)"
}

2023-02-17 21:31:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-17 21:31:36 |

2023-02-17 21:31:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:36 | ------------------------------------

2023-02-17 21:31:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:31:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-02-17 21:31:37 |

2023-02-17 21:31:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:31:37 | ------------------------------------

2023-02-17 21:31:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-635f4ce4-179e-4f4c-b6cf-464c79ee36b9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:31:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}