Generated by TestNG with ReportNG at 22:30 PDT on Sunday 06 August 2023
root@c198f8de0a9c / Java 17.0.8 (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.647s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-08-06 22:45:27 |

2023-08-06 22:45:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:27 | ------------------------------------

2023-08-06 22:45:27 | [Mutex] waiting for: [configured:node:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:node-5e68d688-4e98-4463-947f-595d06d7c206]

2023-08-06 22:45:27 | [Mutex] received everything.

2023-08-06 22:45:27 | [Mutex] isItemNotified: configured:node:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:node-5e68d688-4e98-4463-947f-595d06d7c206 :: true

2023-08-06 22:45:28 | [Mutex] waiting for: [received:nodes:4a02538f-d71f-4c64-b3df-56ca52ebc700:localhost]

2023-08-06 22:45:28 | [Mutex] received everything.

2023-08-06 22:45:28 | [Mutex] isItemNotified: received:node:4a02538f-d71f-4c64-b3df-56ca52ebc700:localhost:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6 :: true

2023-08-06 22:45:28 | [Mutex] waiting for: [received:nodes:55279537-41ba-404d-abaf-141c0bd2a084:localhost]

2023-08-06 22:45:28 | [Mutex] waiting for: [received:nodes:55279537-41ba-404d-abaf-141c0bd2a084:localhost]

2023-08-06 22:45:28 | [Mutex] waiting for: [received:nodes:55279537-41ba-404d-abaf-141c0bd2a084:localhost]

2023-08-06 22:45:28 | [Mutex] received everything.

2023-08-06 22:45:28 | [Mutex] isItemNotified: received:node:55279537-41ba-404d-abaf-141c0bd2a084:localhost:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6 :: false

createNodes 1.654s
2023-08-06 22:45:25 |

2023-08-06 22:45:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:25 | ------------------------------------

2023-08-06 22:45:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "pubsub#title": "Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6"
}

2023-08-06 22:45:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 22:45:26 | [Mutex] waiting for: [received:nodes:c6d94e11-f4a6-4723-bc11-1f1390f5d818:localhost]

2023-08-06 22:45:26 | [Mutex] waiting for: [received:nodes:c6d94e11-f4a6-4723-bc11-1f1390f5d818:localhost]

2023-08-06 22:45:26 | [Mutex] waiting for: [received:nodes:c6d94e11-f4a6-4723-bc11-1f1390f5d818:localhost]

2023-08-06 22:45:26 | [Mutex] waiting for: [received:nodes:c6d94e11-f4a6-4723-bc11-1f1390f5d818:localhost]

2023-08-06 22:45:26 | [Mutex] received everything.

2023-08-06 22:45:26 | [Mutex] isItemNotified: received:node:c6d94e11-f4a6-4723-bc11-1f1390f5d818:localhost:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6 :: true

createSubnodes 1.035s
2023-08-06 22:45:26 |

2023-08-06 22:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:26 | ------------------------------------

2023-08-06 22:45:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5e68d688-4e98-4463-947f-595d06d7c206",
    "pubsub#title": "Node 5e68d688-4e98-4463-947f-595d06d7c206"
}

2023-08-06 22:45:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 22:45:27 | [Mutex] waiting for: [received:nodes:bc65d794-ac5f-4c87-9792-0fae79072374:localhost]

2023-08-06 22:45:27 | [Mutex] received everything.

2023-08-06 22:45:27 | [Mutex] isItemNotified: received:node:bc65d794-ac5f-4c87-9792-0fae79072374:localhost:node-5e68d688-4e98-4463-947f-595d06d7c206:Node 5e68d688-4e98-4463-947f-595d06d7c206 :: true

deleteNodes 1.022s
2023-08-06 22:45:32 |

2023-08-06 22:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:32 | ------------------------------------

2023-08-06 22:45:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5e68d688-4e98-4463-947f-595d06d7c206"
}

2023-08-06 22:45:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 22:45:33 | [Mutex] waiting for: [received:nodes:4f1d9ded-fd41-4968-a2b5-011a2ef98d6a:localhost]

2023-08-06 22:45:33 | [Mutex] waiting for: [received:nodes:4f1d9ded-fd41-4968-a2b5-011a2ef98d6a:localhost]

2023-08-06 22:45:33 | [Mutex] waiting for: [received:nodes:4f1d9ded-fd41-4968-a2b5-011a2ef98d6a:localhost]

2023-08-06 22:45:33 | [Mutex] received everything.

2023-08-06 22:45:33 | [Mutex] isItemNotified: received:node:4f1d9ded-fd41-4968-a2b5-011a2ef98d6a:localhost:node-5e68d688-4e98-4463-947f-595d06d7c206:Node 5e68d688-4e98-4463-947f-595d06d7c206 :: false

deleteSubnodes 1.028s
2023-08-06 22:45:31 |

2023-08-06 22:45:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:31 | ------------------------------------

2023-08-06 22:45:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6"
}

2023-08-06 22:45:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 22:45:32 | [Mutex] waiting for: [received:nodes:64a5fd51-4d87-4c66-842f-a23380894802:localhost]

2023-08-06 22:45:32 | [Mutex] waiting for: [received:nodes:64a5fd51-4d87-4c66-842f-a23380894802:localhost]

2023-08-06 22:45:32 | [Mutex] waiting for: [received:nodes:64a5fd51-4d87-4c66-842f-a23380894802:localhost]

2023-08-06 22:45:32 | [Mutex] waiting for: [received:nodes:64a5fd51-4d87-4c66-842f-a23380894802:localhost]

2023-08-06 22:45:32 | [Mutex] received everything.

2023-08-06 22:45:32 | [Mutex] isItemNotified: received:node:64a5fd51-4d87-4c66-842f-a23380894802:localhost:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6 :: false

2023-08-06 22:45:32 | [Mutex] waiting for: [received:nodes:2cf2be3c-3662-46e9-a7a8-3c69e5bbd1f7:localhost]

2023-08-06 22:45:32 | [Mutex] received everything.

2023-08-06 22:45:32 | [Mutex] isItemNotified: received:node:2cf2be3c-3662-46e9-a7a8-3c69e5bbd1f7:localhost:node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6:Node 5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6 :: false

publishItemsToNodes 0.071s
2023-08-06 22:45:29 |

2023-08-06 22:45:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:29 | ------------------------------------

2023-08-06 22:45:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "entry": "<test>item-03c5b9f2-055f-44d4-a054-62398f359d18</test>",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18"
}

2023-08-06 22:45:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18"
}

2023-08-06 22:45:30 | [Mutex] received everything.

2023-08-06 22:45:30 | [Mutex] isItemNotified: published:item:notifieditem-03c5b9f2-055f-44d4-a054-62398f359d18:admin@test-domain.com :: true

retractItemsFromNodes 0.098s
2023-08-06 22:45:30 |

2023-08-06 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:30 | ------------------------------------

2023-08-06 22:45:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18"
}

2023-08-06 22:45:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18"
}

2023-08-06 22:45:30 | [Mutex] waiting for: [retracted:item:notifieditem-03c5b9f2-055f-44d4-a054-62398f359d18:admin@test-domain.com]

2023-08-06 22:45:30 | [Mutex] received everything.

2023-08-06 22:45:30 | [Mutex] isItemNotified: retracted:item:notifieditem-03c5b9f2-055f-44d4-a054-62398f359d18:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-08-06 22:45:30 |

2023-08-06 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:30 | ------------------------------------

2023-08-06 22:45:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18"
}

2023-08-06 22:45:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "item-id": "item-03c5b9f2-055f-44d4-a054-62398f359d18",
    "item": [
        "<item id=\"item-03c5b9f2-055f-44d4-a054-62398f359d18\"><test>item-03c5b9f2-055f-44d4-a054-62398f359d18</test></item>"
    ]
}

2023-08-06 22:45:30 | [Mutex] notify: [retrieved:item:item-03c5b9f2-055f-44d4-a054-62398f359d18:payload-matches:true:localhost]

2023-08-06 22:45:30 | [Mutex] received everything.

2023-08-06 22:45:30 | [Mutex] isItemNotified: retrieved:item:item-03c5b9f2-055f-44d4-a054-62398f359d18:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2023-08-06 22:45:30 |

2023-08-06 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:30 | ------------------------------------

2023-08-06 22:45:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-06 22:45:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
        "test",
        "node-5e68d688-4e98-4463-947f-595d06d7c206"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-08-06 22:45:30 |

2023-08-06 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:30 | ------------------------------------

2023-08-06 22:45:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6)"
}

2023-08-06 22:45:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-08-06 22:45:28 |

2023-08-06 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:28 | ------------------------------------

2023-08-06 22:45:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-06 22:45:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.029s
2023-08-06 22:45:30 |

2023-08-06 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 22:45:30 | ------------------------------------

2023-08-06 22:45:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5ede4cb4-095e-41b4-8dfa-2ddef9cb7fc6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-06 22:45:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}