Generated by TestNG with ReportNG at 05:54 PDT on Friday 23 September 2022
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.645s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-09-23 06:16:34 |

2022-09-23 06:16:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:34 | ------------------------------------

2022-09-23 06:16:34 | [Mutex] waiting for: [configured:node:node-78c276ee-f235-4b57-a036-ce30c4132758:node-1661518a-3c79-46de-9f30-a46bdfbdedb6]

2022-09-23 06:16:34 | [Mutex] received everything.

2022-09-23 06:16:34 | [Mutex] isItemNotified: configured:node:node-78c276ee-f235-4b57-a036-ce30c4132758:node-1661518a-3c79-46de-9f30-a46bdfbdedb6 :: true

2022-09-23 06:16:35 | [Mutex] waiting for: [received:nodes:db10e4d0-8815-482e-9695-3df766eb4459:localhost]

2022-09-23 06:16:35 | [Mutex] received everything.

2022-09-23 06:16:35 | [Mutex] isItemNotified: received:node:db10e4d0-8815-482e-9695-3df766eb4459:localhost:node-78c276ee-f235-4b57-a036-ce30c4132758:Node 78c276ee-f235-4b57-a036-ce30c4132758 :: true

2022-09-23 06:16:35 | [Mutex] waiting for: [received:nodes:cffb2b63-8e90-4270-9f18-5d0466db7785:localhost]

2022-09-23 06:16:35 | [Mutex] waiting for: [received:nodes:cffb2b63-8e90-4270-9f18-5d0466db7785:localhost]

2022-09-23 06:16:35 | [Mutex] received everything.

2022-09-23 06:16:35 | [Mutex] isItemNotified: received:node:cffb2b63-8e90-4270-9f18-5d0466db7785:localhost:node-78c276ee-f235-4b57-a036-ce30c4132758:Node 78c276ee-f235-4b57-a036-ce30c4132758 :: false

createNodes 1.564s
2022-09-23 06:16:32 |

2022-09-23 06:16:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:32 | ------------------------------------

2022-09-23 06:16: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-78c276ee-f235-4b57-a036-ce30c4132758",
    "pubsub#title": "Node 78c276ee-f235-4b57-a036-ce30c4132758"
}

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

2022-09-23 06:16:33 | [Mutex] waiting for: [received:nodes:16fa1165-5518-4f25-82a5-1ae02fe68677:localhost]

2022-09-23 06:16:33 | [Mutex] received everything.

2022-09-23 06:16:33 | [Mutex] isItemNotified: received:node:16fa1165-5518-4f25-82a5-1ae02fe68677:localhost:node-78c276ee-f235-4b57-a036-ce30c4132758:Node 78c276ee-f235-4b57-a036-ce30c4132758 :: true

createSubnodes 1.022s
2022-09-23 06:16:33 |

2022-09-23 06:16:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:33 | ------------------------------------

2022-09-23 06:16:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1661518a-3c79-46de-9f30-a46bdfbdedb6",
    "pubsub#title": "Node 1661518a-3c79-46de-9f30-a46bdfbdedb6"
}

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

2022-09-23 06:16:34 | [Mutex] waiting for: [received:nodes:b2c6e1ae-f054-4c75-8c3b-5d623f23ed6f:localhost]

2022-09-23 06:16:34 | [Mutex] received everything.

2022-09-23 06:16:34 | [Mutex] isItemNotified: received:node:b2c6e1ae-f054-4c75-8c3b-5d623f23ed6f:localhost:node-1661518a-3c79-46de-9f30-a46bdfbdedb6:Node 1661518a-3c79-46de-9f30-a46bdfbdedb6 :: true

deleteNodes 1.018s
2022-09-23 06:16:39 |

2022-09-23 06:16:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:39 | ------------------------------------

2022-09-23 06:16:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1661518a-3c79-46de-9f30-a46bdfbdedb6"
}

2022-09-23 06:16:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:16:40 | [Mutex] waiting for: [received:nodes:d22945f5-01e6-47d5-b37b-6d4c764ebb03:localhost]

2022-09-23 06:16:40 | [Mutex] received everything.

2022-09-23 06:16:40 | [Mutex] isItemNotified: received:node:d22945f5-01e6-47d5-b37b-6d4c764ebb03:localhost:node-1661518a-3c79-46de-9f30-a46bdfbdedb6:Node 1661518a-3c79-46de-9f30-a46bdfbdedb6 :: false

deleteSubnodes 1.035s
2022-09-23 06:16:38 |

2022-09-23 06:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:38 | ------------------------------------

2022-09-23 06:16:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758"
}

2022-09-23 06:16:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:16:39 | [Mutex] waiting for: [received:nodes:2f9eaf6e-6a3b-4c22-bb3c-c4f1d33e2107:localhost]

2022-09-23 06:16:39 | [Mutex] received everything.

2022-09-23 06:16:39 | [Mutex] isItemNotified: received:node:2f9eaf6e-6a3b-4c22-bb3c-c4f1d33e2107:localhost:node-78c276ee-f235-4b57-a036-ce30c4132758:Node 78c276ee-f235-4b57-a036-ce30c4132758 :: false

2022-09-23 06:16:39 | [Mutex] waiting for: [received:nodes:991a3bfd-be9c-44e7-88bd-186ca39ca31e:localhost]

2022-09-23 06:16:39 | [Mutex] received everything.

2022-09-23 06:16:39 | [Mutex] isItemNotified: received:node:991a3bfd-be9c-44e7-88bd-186ca39ca31e:localhost:node-78c276ee-f235-4b57-a036-ce30c4132758:Node 78c276ee-f235-4b57-a036-ce30c4132758 :: false

publishItemsToNodes 0.116s
2022-09-23 06:16:36 |

2022-09-23 06:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:36 | ------------------------------------

2022-09-23 06:16:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "entry": "<test>item-ee021052-89f6-44bb-999a-f558b83ea57e</test>",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e"
}

2022-09-23 06:16:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e"
}

2022-09-23 06:16:36 | [Mutex] waiting for: [published:item:notifieditem-ee021052-89f6-44bb-999a-f558b83ea57e:admin@test-domain.com]

2022-09-23 06:16:36 | [Mutex] received everything.

2022-09-23 06:16:36 | [Mutex] isItemNotified: published:item:notifieditem-ee021052-89f6-44bb-999a-f558b83ea57e:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-09-23 06:16:37 |

2022-09-23 06:16:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:37 | ------------------------------------

2022-09-23 06:16:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e"
}

2022-09-23 06:16:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e"
}

2022-09-23 06:16:37 | [Mutex] received everything.

2022-09-23 06:16:37 | [Mutex] isItemNotified: retracted:item:notifieditem-ee021052-89f6-44bb-999a-f558b83ea57e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-09-23 06:16:36 |

2022-09-23 06:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:36 | ------------------------------------

2022-09-23 06:16:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e"
}

2022-09-23 06:16:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "item-id": "item-ee021052-89f6-44bb-999a-f558b83ea57e",
    "item": [
        "<item id=\"item-ee021052-89f6-44bb-999a-f558b83ea57e\"><test>item-ee021052-89f6-44bb-999a-f558b83ea57e</test></item>"
    ]
}

2022-09-23 06:16:36 | [Mutex] notify: [retrieved:item:item-ee021052-89f6-44bb-999a-f558b83ea57e:payload-matches:true:localhost]

2022-09-23 06:16:36 | [Mutex] received everything.

2022-09-23 06:16:36 | [Mutex] isItemNotified: retrieved:item:item-ee021052-89f6-44bb-999a-f558b83ea57e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-09-23 06:16:36 |

2022-09-23 06:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:36 | ------------------------------------

2022-09-23 06:16:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-23 06:16:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1661518a-3c79-46de-9f30-a46bdfbdedb6",
        "node-78c276ee-f235-4b57-a036-ce30c4132758"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-23 06:16:37 |

2022-09-23 06:16:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:37 | ------------------------------------

2022-09-23 06:16:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-78c276ee-f235-4b57-a036-ce30c4132758)"
}

2022-09-23 06:16:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-09-23 06:16:35 |

2022-09-23 06:16:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:35 | ------------------------------------

2022-09-23 06:16:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-23 06:16:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-09-23 06:16:37 |

2022-09-23 06:16:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:16:37 | ------------------------------------

2022-09-23 06:16:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-78c276ee-f235-4b57-a036-ce30c4132758",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-23 06:16:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}