Generated by TestNG with ReportNG at 22:45 PDT on Saturday 25 March 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.744s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2023-03-25 23:00:16 |

2023-03-25 23:00:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:16 | ------------------------------------

2023-03-25 23:00:16 | [Mutex] waiting for: [configured:node:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53]

2023-03-25 23:00:16 | [Mutex] received everything.

2023-03-25 23:00:16 | [Mutex] isItemNotified: configured:node:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53 :: true

2023-03-25 23:00:17 | [Mutex] waiting for: [received:nodes:1396a52d-c475-4cd3-b1ae-d7caaf4012f4:localhost]

2023-03-25 23:00:17 | [Mutex] received everything.

2023-03-25 23:00:17 | [Mutex] isItemNotified: received:node:1396a52d-c475-4cd3-b1ae-d7caaf4012f4:localhost:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d :: true

2023-03-25 23:00:17 | [Mutex] waiting for: [received:nodes:39fc471f-e5bd-4c5b-8d3f-de677f3e6e57:localhost]

2023-03-25 23:00:17 | [Mutex] waiting for: [received:nodes:39fc471f-e5bd-4c5b-8d3f-de677f3e6e57:localhost]

2023-03-25 23:00:17 | [Mutex] waiting for: [received:nodes:39fc471f-e5bd-4c5b-8d3f-de677f3e6e57:localhost]

2023-03-25 23:00:17 | [Mutex] waiting for: [received:nodes:39fc471f-e5bd-4c5b-8d3f-de677f3e6e57:localhost]

2023-03-25 23:00:17 | [Mutex] received everything.

2023-03-25 23:00:17 | [Mutex] isItemNotified: received:node:39fc471f-e5bd-4c5b-8d3f-de677f3e6e57:localhost:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d :: false

createNodes 1.741s
2023-03-25 23:00:13 |

2023-03-25 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:13 | ------------------------------------

2023-03-25 23:00:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "pubsub#title": "Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d"
}

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

2023-03-25 23:00:15 | [Mutex] waiting for: [received:nodes:91b87288-a1e6-4c0b-8624-245a259523f0:localhost]

2023-03-25 23:00:15 | [Mutex] waiting for: [received:nodes:91b87288-a1e6-4c0b-8624-245a259523f0:localhost]

2023-03-25 23:00:15 | [Mutex] waiting for: [received:nodes:91b87288-a1e6-4c0b-8624-245a259523f0:localhost]

2023-03-25 23:00:15 | [Mutex] received everything.

2023-03-25 23:00:15 | [Mutex] isItemNotified: received:node:91b87288-a1e6-4c0b-8624-245a259523f0:localhost:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d :: true

createSubnodes 1.021s
2023-03-25 23:00:15 |

2023-03-25 23:00:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:15 | ------------------------------------

2023-03-25 23:00:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53",
    "pubsub#title": "Node 00c8f5a4-2e84-4b80-977c-6c0fe0376a53"
}

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

2023-03-25 23:00:16 | [Mutex] waiting for: [received:nodes:49edf998-c64f-4927-894e-1ef5d43cd9e5:localhost]

2023-03-25 23:00:16 | [Mutex] waiting for: [received:nodes:49edf998-c64f-4927-894e-1ef5d43cd9e5:localhost]

2023-03-25 23:00:16 | [Mutex] waiting for: [received:nodes:49edf998-c64f-4927-894e-1ef5d43cd9e5:localhost]

2023-03-25 23:00:16 | [Mutex] waiting for: [received:nodes:49edf998-c64f-4927-894e-1ef5d43cd9e5:localhost]

2023-03-25 23:00:16 | [Mutex] received everything.

2023-03-25 23:00:16 | [Mutex] isItemNotified: received:node:49edf998-c64f-4927-894e-1ef5d43cd9e5:localhost:node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53:Node 00c8f5a4-2e84-4b80-977c-6c0fe0376a53 :: true

deleteNodes 1.023s
2023-03-25 23:00:21 |

2023-03-25 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:21 | ------------------------------------

2023-03-25 23:00:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53"
}

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

2023-03-25 23:00:22 | [Mutex] waiting for: [received:nodes:3be5d37a-29c6-4a26-b5dd-0d8d2dcea65a:localhost]

2023-03-25 23:00:22 | [Mutex] received everything.

2023-03-25 23:00:22 | [Mutex] isItemNotified: received:node:3be5d37a-29c6-4a26-b5dd-0d8d2dcea65a:localhost:node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53:Node 00c8f5a4-2e84-4b80-977c-6c0fe0376a53 :: false

deleteSubnodes 1.025s
2023-03-25 23:00:20 |

2023-03-25 23:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:20 | ------------------------------------

2023-03-25 23:00:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d"
}

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

2023-03-25 23:00:21 | [Mutex] waiting for: [received:nodes:e27d4284-4657-4d2d-b1dd-99d7550222fd:localhost]

2023-03-25 23:00:21 | [Mutex] waiting for: [received:nodes:e27d4284-4657-4d2d-b1dd-99d7550222fd:localhost]

2023-03-25 23:00:21 | [Mutex] received everything.

2023-03-25 23:00:21 | [Mutex] isItemNotified: received:node:e27d4284-4657-4d2d-b1dd-99d7550222fd:localhost:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d :: false

2023-03-25 23:00:21 | [Mutex] waiting for: [received:nodes:a7843263-cd72-47c7-8c19-77cddd82d4ee:localhost]

2023-03-25 23:00:21 | [Mutex] received everything.

2023-03-25 23:00:21 | [Mutex] isItemNotified: received:node:a7843263-cd72-47c7-8c19-77cddd82d4ee:localhost:node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d:Node 8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d :: false

publishItemsToNodes 0.052s
2023-03-25 23:00:18 |

2023-03-25 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:18 | ------------------------------------

2023-03-25 23:00:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "entry": "<test>item-8a2b4df8-8fdb-4f0b-a947-32977b99d601</test>",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601"
}

2023-03-25 23:00:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601"
}

2023-03-25 23:00:18 | [Mutex] waiting for: [published:item:notifieditem-8a2b4df8-8fdb-4f0b-a947-32977b99d601:admin@test-domain.com]

2023-03-25 23:00:18 | [Mutex] received everything.

2023-03-25 23:00:18 | [Mutex] isItemNotified: published:item:notifieditem-8a2b4df8-8fdb-4f0b-a947-32977b99d601:admin@test-domain.com :: true

retractItemsFromNodes 0.096s
2023-03-25 23:00:18 |

2023-03-25 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:18 | ------------------------------------

2023-03-25 23:00:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601"
}

2023-03-25 23:00:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601"
}

2023-03-25 23:00:19 | [Mutex] received everything.

2023-03-25 23:00:19 | [Mutex] isItemNotified: retracted:item:notifieditem-8a2b4df8-8fdb-4f0b-a947-32977b99d601:admin@test-domain.com :: true

retrieveItemsFromNodes 0.015s
2023-03-25 23:00:18 |

2023-03-25 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:18 | ------------------------------------

2023-03-25 23:00:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601"
}

2023-03-25 23:00:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "item-id": "item-8a2b4df8-8fdb-4f0b-a947-32977b99d601",
    "item": [
        "<item id=\"item-8a2b4df8-8fdb-4f0b-a947-32977b99d601\"><test>item-8a2b4df8-8fdb-4f0b-a947-32977b99d601</test></item>"
    ]
}

2023-03-25 23:00:18 | [Mutex] notify: [retrieved:item:item-8a2b4df8-8fdb-4f0b-a947-32977b99d601:payload-matches:true:localhost]

2023-03-25 23:00:18 | [Mutex] received everything.

2023-03-25 23:00:18 | [Mutex] isItemNotified: retrieved:item:item-8a2b4df8-8fdb-4f0b-a947-32977b99d601:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2023-03-25 23:00:18 |

2023-03-25 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:18 | ------------------------------------

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

2023-03-25 23:00:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-00c8f5a4-2e84-4b80-977c-6c0fe0376a53",
        "test",
        "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.060s
2023-03-25 23:00:18 |

2023-03-25 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:18 | ------------------------------------

2023-03-25 23:00:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d)"
}

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

subscribeNodes 1.014s
2023-03-25 23:00:17 |

2023-03-25 23:00:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:17 | ------------------------------------

2023-03-25 23:00:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2023-03-25 23:00:19 |

2023-03-25 23:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-25 23:00:19 | ------------------------------------

2023-03-25 23:00:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8cd6f1b5-1adf-4ee9-90f1-0192a0c05c4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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