Generated by TestNG with ReportNG at 22:33 PDT on Monday 16 May 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.546s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-05-16 22:48:10 |

2022-05-16 22:48:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:10 | ------------------------------------

2022-05-16 22:48:10 | [Mutex] waiting for: [configured:node:node-4260660e-5176-4e1d-aa34-21d100569ff0:node-bee22708-2cee-4cce-a023-39e14670af1c]

2022-05-16 22:48:11 | [Mutex] received everything.

2022-05-16 22:48:11 | [Mutex] isItemNotified: configured:node:node-4260660e-5176-4e1d-aa34-21d100569ff0:node-bee22708-2cee-4cce-a023-39e14670af1c :: true

2022-05-16 22:48:12 | [Mutex] waiting for: [received:nodes:60238f0f-7a11-4f8d-9e96-907d13fb93ff:localhost]

2022-05-16 22:48:12 | [Mutex] received everything.

2022-05-16 22:48:12 | [Mutex] isItemNotified: received:node:60238f0f-7a11-4f8d-9e96-907d13fb93ff:localhost:node-4260660e-5176-4e1d-aa34-21d100569ff0:Node 4260660e-5176-4e1d-aa34-21d100569ff0 :: true

2022-05-16 22:48:12 | [Mutex] waiting for: [received:nodes:a6d9708d-8206-4d62-ba90-a675c9184862:localhost]

2022-05-16 22:48:12 | [Mutex] received everything.

2022-05-16 22:48:12 | [Mutex] isItemNotified: received:node:a6d9708d-8206-4d62-ba90-a675c9184862:localhost:node-4260660e-5176-4e1d-aa34-21d100569ff0:Node 4260660e-5176-4e1d-aa34-21d100569ff0 :: false

createNodes 1.518s
2022-05-16 22:48:08 |

2022-05-16 22:48:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:08 | ------------------------------------

2022-05-16 22:48:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "pubsub#title": "Node 4260660e-5176-4e1d-aa34-21d100569ff0"
}

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

2022-05-16 22:48:09 | [Mutex] waiting for: [received:nodes:7646ab70-341a-4f27-919a-78f05c3226e2:localhost]

2022-05-16 22:48:09 | [Mutex] received everything.

2022-05-16 22:48:09 | [Mutex] isItemNotified: received:node:7646ab70-341a-4f27-919a-78f05c3226e2:localhost:node-4260660e-5176-4e1d-aa34-21d100569ff0:Node 4260660e-5176-4e1d-aa34-21d100569ff0 :: true

createSubnodes 1.023s
2022-05-16 22:48:09 |

2022-05-16 22:48:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:09 | ------------------------------------

2022-05-16 22:48:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bee22708-2cee-4cce-a023-39e14670af1c",
    "pubsub#title": "Node bee22708-2cee-4cce-a023-39e14670af1c"
}

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

2022-05-16 22:48:10 | [Mutex] waiting for: [received:nodes:9a2855b4-220a-44e6-a3c0-0efb354a7d99:localhost]

2022-05-16 22:48:10 | [Mutex] received everything.

2022-05-16 22:48:10 | [Mutex] isItemNotified: received:node:9a2855b4-220a-44e6-a3c0-0efb354a7d99:localhost:node-bee22708-2cee-4cce-a023-39e14670af1c:Node bee22708-2cee-4cce-a023-39e14670af1c :: true

deleteNodes 1.021s
2022-05-16 22:48:15 |

2022-05-16 22:48:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:15 | ------------------------------------

2022-05-16 22:48:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bee22708-2cee-4cce-a023-39e14670af1c"
}

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

2022-05-16 22:48:16 | [Mutex] waiting for: [received:nodes:2989ef78-222d-4172-a6bc-ef496fa9066f:localhost]

2022-05-16 22:48:16 | [Mutex] waiting for: [received:nodes:2989ef78-222d-4172-a6bc-ef496fa9066f:localhost]

2022-05-16 22:48:16 | [Mutex] received everything.

2022-05-16 22:48:16 | [Mutex] isItemNotified: received:node:2989ef78-222d-4172-a6bc-ef496fa9066f:localhost:node-bee22708-2cee-4cce-a023-39e14670af1c:Node bee22708-2cee-4cce-a023-39e14670af1c :: false

deleteSubnodes 1.024s
2022-05-16 22:48:14 |

2022-05-16 22:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:14 | ------------------------------------

2022-05-16 22:48:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0"
}

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

2022-05-16 22:48:15 | [Mutex] waiting for: [received:nodes:ebed4e97-b4e1-458d-a35e-3b149b8fdb48:localhost]

2022-05-16 22:48:15 | [Mutex] received everything.

2022-05-16 22:48:15 | [Mutex] isItemNotified: received:node:ebed4e97-b4e1-458d-a35e-3b149b8fdb48:localhost:node-4260660e-5176-4e1d-aa34-21d100569ff0:Node 4260660e-5176-4e1d-aa34-21d100569ff0 :: false

2022-05-16 22:48:15 | [Mutex] waiting for: [received:nodes:c5ec2592-22ef-42c5-ad46-c5a7fab75b16:localhost]

2022-05-16 22:48:15 | [Mutex] received everything.

2022-05-16 22:48:15 | [Mutex] isItemNotified: received:node:c5ec2592-22ef-42c5-ad46-c5a7fab75b16:localhost:node-4260660e-5176-4e1d-aa34-21d100569ff0:Node 4260660e-5176-4e1d-aa34-21d100569ff0 :: false

publishItemsToNodes 0.075s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

2022-05-16 22:48:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "entry": "<test>item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e</test>",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e"
}

2022-05-16 22:48:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e"
}

2022-05-16 22:48:13 | [Mutex] waiting for: [published:item:notifieditem-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e:admin@test-domain.com]

2022-05-16 22:48:13 | [Mutex] received everything.

2022-05-16 22:48:13 | [Mutex] isItemNotified: published:item:notifieditem-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

2022-05-16 22:48:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e"
}

2022-05-16 22:48:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e"
}

2022-05-16 22:48:13 | [Mutex] received everything.

2022-05-16 22:48:13 | [Mutex] isItemNotified: retracted:item:notifieditem-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

2022-05-16 22:48:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e"
}

2022-05-16 22:48:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "item-id": "item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e",
    "item": [
        "<item id=\"item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e\"><test>item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e</test></item>"
    ]
}

2022-05-16 22:48:13 | [Mutex] notify: [retrieved:item:item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e:payload-matches:true:localhost]

2022-05-16 22:48:13 | [Mutex] received everything.

2022-05-16 22:48:13 | [Mutex] isItemNotified: retrieved:item:item-e0de9f21-b42b-491a-85c6-4cd12b1b8b9e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

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

2022-05-16 22:48:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bee22708-2cee-4cce-a023-39e14670af1c",
        "test",
        "node-4260660e-5176-4e1d-aa34-21d100569ff0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

2022-05-16 22:48:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4260660e-5176-4e1d-aa34-21d100569ff0)"
}

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

subscribeNodes 1.010s
2022-05-16 22:48:12 |

2022-05-16 22:48:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:12 | ------------------------------------

2022-05-16 22:48:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-05-16 22:48:13 |

2022-05-16 22:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-16 22:48:13 | ------------------------------------

2022-05-16 22:48:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4260660e-5176-4e1d-aa34-21d100569ff0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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