Generated by TestNG with ReportNG at 22:25 PDT on Thursday 26 May 2022
root@61c39d2ed70d / 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.667s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-05-26 22:39:53 |

2022-05-26 22:39:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:53 | ------------------------------------

2022-05-26 22:39:53 | [Mutex] waiting for: [configured:node:node-b96a2f95-f87b-446f-8973-8910f2980f39:node-82b33de2-4308-448f-a50e-2c5a12b351cf]

2022-05-26 22:39:53 | [Mutex] received everything.

2022-05-26 22:39:53 | [Mutex] isItemNotified: configured:node:node-b96a2f95-f87b-446f-8973-8910f2980f39:node-82b33de2-4308-448f-a50e-2c5a12b351cf :: true

2022-05-26 22:39:54 | [Mutex] waiting for: [received:nodes:322549eb-8753-4471-bfbd-1c4c580071fe:localhost]

2022-05-26 22:39:54 | [Mutex] received everything.

2022-05-26 22:39:54 | [Mutex] isItemNotified: received:node:322549eb-8753-4471-bfbd-1c4c580071fe:localhost:node-b96a2f95-f87b-446f-8973-8910f2980f39:Node b96a2f95-f87b-446f-8973-8910f2980f39 :: true

2022-05-26 22:39:54 | [Mutex] waiting for: [received:nodes:0bb069b3-73d6-4190-85dc-9cc6a47b79d5:localhost]

2022-05-26 22:39:54 | [Mutex] waiting for: [received:nodes:0bb069b3-73d6-4190-85dc-9cc6a47b79d5:localhost]

2022-05-26 22:39:54 | [Mutex] received everything.

2022-05-26 22:39:54 | [Mutex] isItemNotified: received:node:0bb069b3-73d6-4190-85dc-9cc6a47b79d5:localhost:node-b96a2f95-f87b-446f-8973-8910f2980f39:Node b96a2f95-f87b-446f-8973-8910f2980f39 :: false

createNodes 1.617s
2022-05-26 22:39:50 |

2022-05-26 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:50 | ------------------------------------

2022-05-26 22:39:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "pubsub#title": "Node b96a2f95-f87b-446f-8973-8910f2980f39"
}

2022-05-26 22:39:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 22:39:51 | [Mutex] waiting for: [received:nodes:8b7adf94-f0de-429e-9b79-6bc3f3c28452:localhost]

2022-05-26 22:39:51 | [Mutex] received everything.

2022-05-26 22:39:51 | [Mutex] isItemNotified: received:node:8b7adf94-f0de-429e-9b79-6bc3f3c28452:localhost:node-b96a2f95-f87b-446f-8973-8910f2980f39:Node b96a2f95-f87b-446f-8973-8910f2980f39 :: true

createSubnodes 1.035s
2022-05-26 22:39:51 |

2022-05-26 22:39:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:51 | ------------------------------------

2022-05-26 22:39:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-82b33de2-4308-448f-a50e-2c5a12b351cf",
    "pubsub#title": "Node 82b33de2-4308-448f-a50e-2c5a12b351cf"
}

2022-05-26 22:39:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 22:39:53 | [Mutex] waiting for: [received:nodes:9b52d3da-b2b3-4ff9-984e-e7275f2ed079:localhost]

2022-05-26 22:39:53 | [Mutex] received everything.

2022-05-26 22:39:53 | [Mutex] isItemNotified: received:node:9b52d3da-b2b3-4ff9-984e-e7275f2ed079:localhost:node-82b33de2-4308-448f-a50e-2c5a12b351cf:Node 82b33de2-4308-448f-a50e-2c5a12b351cf :: true

deleteNodes 1.025s
2022-05-26 22:39:57 |

2022-05-26 22:39:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:57 | ------------------------------------

2022-05-26 22:39:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-82b33de2-4308-448f-a50e-2c5a12b351cf"
}

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

2022-05-26 22:39:58 | [Mutex] waiting for: [received:nodes:9ee2c626-3172-4b60-bdde-903a519df117:localhost]

2022-05-26 22:39:58 | [Mutex] waiting for: [received:nodes:9ee2c626-3172-4b60-bdde-903a519df117:localhost]

2022-05-26 22:39:58 | [Mutex] received everything.

2022-05-26 22:39:58 | [Mutex] isItemNotified: received:node:9ee2c626-3172-4b60-bdde-903a519df117:localhost:node-82b33de2-4308-448f-a50e-2c5a12b351cf:Node 82b33de2-4308-448f-a50e-2c5a12b351cf :: false

deleteSubnodes 1.030s
2022-05-26 22:39:56 |

2022-05-26 22:39:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:56 | ------------------------------------

2022-05-26 22:39:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39"
}

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

2022-05-26 22:39:57 | [Mutex] waiting for: [received:nodes:9e32835d-409b-48e6-a8d7-cc5c80c88363:localhost]

2022-05-26 22:39:57 | [Mutex] received everything.

2022-05-26 22:39:57 | [Mutex] isItemNotified: received:node:9e32835d-409b-48e6-a8d7-cc5c80c88363:localhost:node-b96a2f95-f87b-446f-8973-8910f2980f39:Node b96a2f95-f87b-446f-8973-8910f2980f39 :: false

2022-05-26 22:39:57 | [Mutex] waiting for: [received:nodes:bc085720-2914-4f3b-96ba-c64649c189bb:localhost]

2022-05-26 22:39:57 | [Mutex] received everything.

2022-05-26 22:39:57 | [Mutex] isItemNotified: received:node:bc085720-2914-4f3b-96ba-c64649c189bb:localhost:node-b96a2f95-f87b-446f-8973-8910f2980f39:Node b96a2f95-f87b-446f-8973-8910f2980f39 :: false

publishItemsToNodes 0.044s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "entry": "<test>item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26</test>",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26"
}

2022-05-26 22:39:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26"
}

2022-05-26 22:39:55 | [Mutex] waiting for: [published:item:notifieditem-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26:admin@test-domain.com]

2022-05-26 22:39:55 | [Mutex] received everything.

2022-05-26 22:39:55 | [Mutex] isItemNotified: published:item:notifieditem-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26"
}

2022-05-26 22:39:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26"
}

2022-05-26 22:39:55 | [Mutex] received everything.

2022-05-26 22:39:55 | [Mutex] isItemNotified: retracted:item:notifieditem-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26"
}

2022-05-26 22:39:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "item-id": "item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26",
    "item": [
        "<item id=\"item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26\"><test>item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26</test></item>"
    ]
}

2022-05-26 22:39:55 | [Mutex] notify: [retrieved:item:item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26:payload-matches:true:localhost]

2022-05-26 22:39:55 | [Mutex] received everything.

2022-05-26 22:39:55 | [Mutex] isItemNotified: retrieved:item:item-f9f5c596-2e8f-47e3-9d13-6d7cab7a3c26:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-26 22:39:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b96a2f95-f87b-446f-8973-8910f2980f39",
        "node-82b33de2-4308-448f-a50e-2c5a12b351cf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b96a2f95-f87b-446f-8973-8910f2980f39)"
}

2022-05-26 22:39:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-05-26 22:39:54 |

2022-05-26 22:39:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:54 | ------------------------------------

2022-05-26 22:39:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-26 22:39:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-05-26 22:39:55 |

2022-05-26 22:39:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:39:55 | ------------------------------------

2022-05-26 22:39:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b96a2f95-f87b-446f-8973-8910f2980f39",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-26 22:39:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}