Generated by TestNG with ReportNG at 22:45 PDT on Wednesday 29 March 2023
root@f9c07ffec79b / 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.482s

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

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

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

2023-03-29 23:00:21 | [Mutex] waiting for: [configured:node:node-2580bb09-adf0-477e-83d6-dc16f5452e58:node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94]

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

2023-03-29 23:00:21 | [Mutex] isItemNotified: configured:node:node-2580bb09-adf0-477e-83d6-dc16f5452e58:node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94 :: true

2023-03-29 23:00:22 | [Mutex] waiting for: [received:nodes:aa01a193-bc70-4ef4-89ff-948f6f0025b7:localhost]

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

2023-03-29 23:00:22 | [Mutex] isItemNotified: received:node:aa01a193-bc70-4ef4-89ff-948f6f0025b7:localhost:node-2580bb09-adf0-477e-83d6-dc16f5452e58:Node 2580bb09-adf0-477e-83d6-dc16f5452e58 :: true

2023-03-29 23:00:22 | [Mutex] waiting for: [received:nodes:2e3e0ac5-05a5-47bd-9c59-85c247653383:localhost]

2023-03-29 23:00:22 | [Mutex] waiting for: [received:nodes:2e3e0ac5-05a5-47bd-9c59-85c247653383:localhost]

2023-03-29 23:00:22 | [Mutex] waiting for: [received:nodes:2e3e0ac5-05a5-47bd-9c59-85c247653383:localhost]

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

2023-03-29 23:00:22 | [Mutex] isItemNotified: received:node:2e3e0ac5-05a5-47bd-9c59-85c247653383:localhost:node-2580bb09-adf0-477e-83d6-dc16f5452e58:Node 2580bb09-adf0-477e-83d6-dc16f5452e58 :: false

createNodes 1.560s
2023-03-29 23:00:19 |

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

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

2023-03-29 23:00:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "pubsub#title": "Node 2580bb09-adf0-477e-83d6-dc16f5452e58"
}

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

2023-03-29 23:00:20 | [Mutex] waiting for: [received:nodes:a38cd2b3-5aa6-4eb0-a047-3bd2c5cbac0f:localhost]

2023-03-29 23:00:20 | [Mutex] waiting for: [received:nodes:a38cd2b3-5aa6-4eb0-a047-3bd2c5cbac0f:localhost]

2023-03-29 23:00:20 | [Mutex] waiting for: [received:nodes:a38cd2b3-5aa6-4eb0-a047-3bd2c5cbac0f:localhost]

2023-03-29 23:00:20 | [Mutex] waiting for: [received:nodes:a38cd2b3-5aa6-4eb0-a047-3bd2c5cbac0f:localhost]

2023-03-29 23:00:20 | [Mutex] received everything.

2023-03-29 23:00:20 | [Mutex] isItemNotified: received:node:a38cd2b3-5aa6-4eb0-a047-3bd2c5cbac0f:localhost:node-2580bb09-adf0-477e-83d6-dc16f5452e58:Node 2580bb09-adf0-477e-83d6-dc16f5452e58 :: true

createSubnodes 1.024s
2023-03-29 23:00:20 |

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

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

2023-03-29 23:00:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94",
    "pubsub#title": "Node 6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94"
}

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

2023-03-29 23:00:21 | [Mutex] waiting for: [received:nodes:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost]

2023-03-29 23:00:21 | [Mutex] waiting for: [received:nodes:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost]

2023-03-29 23:00:21 | [Mutex] waiting for: [received:nodes:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost]

2023-03-29 23:00:21 | [Mutex] waiting for: [received:nodes:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost]

2023-03-29 23:00:21 | [Mutex] waiting for: [received:nodes:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost]

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

2023-03-29 23:00:21 | [Mutex] isItemNotified: received:node:c6425de4-e316-4806-bbdb-8ad2384b0d3a:localhost:node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94:Node 6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94 :: true

deleteNodes 1.017s
2023-03-29 23:00:26 |

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

2023-03-29 23:00:26 | ------------------------------------

2023-03-29 23:00:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94"
}

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

2023-03-29 23:00:27 | [Mutex] waiting for: [received:nodes:ca890880-43c4-49fa-8343-53eaeb392d08:localhost]

2023-03-29 23:00:27 | [Mutex] waiting for: [received:nodes:ca890880-43c4-49fa-8343-53eaeb392d08:localhost]

2023-03-29 23:00:27 | [Mutex] waiting for: [received:nodes:ca890880-43c4-49fa-8343-53eaeb392d08:localhost]

2023-03-29 23:00:27 | [Mutex] received everything.

2023-03-29 23:00:27 | [Mutex] isItemNotified: received:node:ca890880-43c4-49fa-8343-53eaeb392d08:localhost:node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94:Node 6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94 :: false

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

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

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

2023-03-29 23:00:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58"
}

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

2023-03-29 23:00:26 | [Mutex] waiting for: [received:nodes:3ff31a9f-eef8-4108-b325-181f6bb74402:localhost]

2023-03-29 23:00:26 | [Mutex] waiting for: [received:nodes:3ff31a9f-eef8-4108-b325-181f6bb74402:localhost]

2023-03-29 23:00:26 | [Mutex] waiting for: [received:nodes:3ff31a9f-eef8-4108-b325-181f6bb74402:localhost]

2023-03-29 23:00:26 | [Mutex] waiting for: [received:nodes:3ff31a9f-eef8-4108-b325-181f6bb74402:localhost]

2023-03-29 23:00:26 | [Mutex] received everything.

2023-03-29 23:00:26 | [Mutex] isItemNotified: received:node:3ff31a9f-eef8-4108-b325-181f6bb74402:localhost:node-2580bb09-adf0-477e-83d6-dc16f5452e58:Node 2580bb09-adf0-477e-83d6-dc16f5452e58 :: false

2023-03-29 23:00:26 | [Mutex] waiting for: [received:nodes:720d8af8-3be3-4683-9156-e30d2813aeb4:localhost]

2023-03-29 23:00:26 | [Mutex] received everything.

2023-03-29 23:00:26 | [Mutex] isItemNotified: received:node:720d8af8-3be3-4683-9156-e30d2813aeb4:localhost:node-2580bb09-adf0-477e-83d6-dc16f5452e58:Node 2580bb09-adf0-477e-83d6-dc16f5452e58 :: false

publishItemsToNodes 0.049s
2023-03-29 23:00:23 |

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

2023-03-29 23:00:23 | ------------------------------------

2023-03-29 23:00:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "entry": "<test>item-aa9039af-4b05-4bce-ba63-5e4f18956fd0</test>",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0"
}

2023-03-29 23:00:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0"
}

2023-03-29 23:00:23 | [Mutex] waiting for: [published:item:notifieditem-aa9039af-4b05-4bce-ba63-5e4f18956fd0:admin@test-domain.com]

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

2023-03-29 23:00:23 | [Mutex] isItemNotified: published:item:notifieditem-aa9039af-4b05-4bce-ba63-5e4f18956fd0:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2023-03-29 23:00:23 |

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

2023-03-29 23:00:23 | ------------------------------------

2023-03-29 23:00:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0"
}

2023-03-29 23:00:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0"
}

2023-03-29 23:00:24 | [Mutex] received everything.

2023-03-29 23:00:24 | [Mutex] isItemNotified: retracted:item:notifieditem-aa9039af-4b05-4bce-ba63-5e4f18956fd0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2023-03-29 23:00:23 |

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

2023-03-29 23:00:23 | ------------------------------------

2023-03-29 23:00:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0"
}

2023-03-29 23:00:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "item-id": "item-aa9039af-4b05-4bce-ba63-5e4f18956fd0",
    "item": [
        "<item id=\"item-aa9039af-4b05-4bce-ba63-5e4f18956fd0\"><test>item-aa9039af-4b05-4bce-ba63-5e4f18956fd0</test></item>"
    ]
}

2023-03-29 23:00:23 | [Mutex] notify: [retrieved:item:item-aa9039af-4b05-4bce-ba63-5e4f18956fd0:payload-matches:true:localhost]

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

2023-03-29 23:00:23 | [Mutex] isItemNotified: retrieved:item:item-aa9039af-4b05-4bce-ba63-5e4f18956fd0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2023-03-29 23:00:23 |

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

2023-03-29 23:00:23 | ------------------------------------

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

2023-03-29 23:00:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6f7b3c82-af68-4dd6-9a2b-3fbacd63fb94",
        "node-2580bb09-adf0-477e-83d6-dc16f5452e58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-29 23:00:23 |

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

2023-03-29 23:00:23 | ------------------------------------

2023-03-29 23:00:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2580bb09-adf0-477e-83d6-dc16f5452e58)"
}

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

subscribeNodes 1.012s
2023-03-29 23:00:22 |

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

2023-03-29 23:00:22 | ------------------------------------

2023-03-29 23:00:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.072s
2023-03-29 23:00:24 |

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

2023-03-29 23:00:24 | ------------------------------------

2023-03-29 23:00:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2580bb09-adf0-477e-83d6-dc16f5452e58",
    "jids": [
        "admin@test-domain.com"
    ]
}

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