Generated by TestNG with ReportNG at 21:31 PST on Tuesday 15 February 2022
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / 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 : 9.010s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.146s
2022-02-15 21:48:59 |

2022-02-15 21:48:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:48:59 | ------------------------------------

2022-02-15 21:48:59 | [Mutex] waiting for: [configured:node:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:node-e21fd69e-e835-4707-ab71-0f90f49fdd65]

2022-02-15 21:48:59 | [Mutex] received everything.

2022-02-15 21:48:59 | [Mutex] isItemNotified: configured:node:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:node-e21fd69e-e835-4707-ab71-0f90f49fdd65 :: true

2022-02-15 21:49:00 | [Mutex] waiting for: [received:nodes:30975c5e-143d-43ca-8b3b-38b940f363b1:localhost]

2022-02-15 21:49:00 | [Mutex] received everything.

2022-02-15 21:49:00 | [Mutex] isItemNotified: received:node:30975c5e-143d-43ca-8b3b-38b940f363b1:localhost:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:Node 6acb07df-088f-425c-b2c4-6a8601ec36f7 :: true

2022-02-15 21:49:00 | [Mutex] waiting for: [received:nodes:cb960f04-11b9-46c8-aa51-5d70cb605b8b:localhost]

2022-02-15 21:49:00 | [Mutex] received everything.

2022-02-15 21:49:00 | [Mutex] isItemNotified: received:node:cb960f04-11b9-46c8-aa51-5d70cb605b8b:localhost:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:Node 6acb07df-088f-425c-b2c4-6a8601ec36f7 :: false

createNodes 1.520s
2022-02-15 21:48:57 |

2022-02-15 21:48:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:48:57 | ------------------------------------

2022-02-15 21:48:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "pubsub#title": "Node 6acb07df-088f-425c-b2c4-6a8601ec36f7"
}

2022-02-15 21:48:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:48:58 | [Mutex] waiting for: [received:nodes:fe14765a-fa5c-4d56-9330-2fddd88f648a:localhost]

2022-02-15 21:48:58 | [Mutex] waiting for: [received:nodes:fe14765a-fa5c-4d56-9330-2fddd88f648a:localhost]

2022-02-15 21:48:58 | [Mutex] received everything.

2022-02-15 21:48:58 | [Mutex] isItemNotified: received:node:fe14765a-fa5c-4d56-9330-2fddd88f648a:localhost:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:Node 6acb07df-088f-425c-b2c4-6a8601ec36f7 :: true

createSubnodes 1.029s
2022-02-15 21:48:58 |

2022-02-15 21:48:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:48:58 | ------------------------------------

2022-02-15 21:48:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e21fd69e-e835-4707-ab71-0f90f49fdd65",
    "pubsub#title": "Node e21fd69e-e835-4707-ab71-0f90f49fdd65"
}

2022-02-15 21:48:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:48:59 | [Mutex] waiting for: [received:nodes:5ec45f7c-26b9-4462-9813-622cbcc7cc2c:localhost]

2022-02-15 21:48:59 | [Mutex] received everything.

2022-02-15 21:48:59 | [Mutex] isItemNotified: received:node:5ec45f7c-26b9-4462-9813-622cbcc7cc2c:localhost:node-e21fd69e-e835-4707-ab71-0f90f49fdd65:Node e21fd69e-e835-4707-ab71-0f90f49fdd65 :: true

deleteNodes 1.025s
2022-02-15 21:49:04 |

2022-02-15 21:49:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:04 | ------------------------------------

2022-02-15 21:49:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e21fd69e-e835-4707-ab71-0f90f49fdd65"
}

2022-02-15 21:49:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:49:05 | [Mutex] waiting for: [received:nodes:df16adec-1065-4faa-bde9-a55702679d8a:localhost]

2022-02-15 21:49:05 | [Mutex] received everything.

2022-02-15 21:49:05 | [Mutex] isItemNotified: received:node:df16adec-1065-4faa-bde9-a55702679d8a:localhost:node-e21fd69e-e835-4707-ab71-0f90f49fdd65:Node e21fd69e-e835-4707-ab71-0f90f49fdd65 :: false

deleteSubnodes 1.031s
2022-02-15 21:49:03 |

2022-02-15 21:49:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:03 | ------------------------------------

2022-02-15 21:49:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7"
}

2022-02-15 21:49:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-15 21:49:04 | [Mutex] waiting for: [received:nodes:2dda90b7-1666-4fd7-8cbc-c21b2e61573b:localhost]

2022-02-15 21:49:04 | [Mutex] received everything.

2022-02-15 21:49:04 | [Mutex] isItemNotified: received:node:2dda90b7-1666-4fd7-8cbc-c21b2e61573b:localhost:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:Node 6acb07df-088f-425c-b2c4-6a8601ec36f7 :: false

2022-02-15 21:49:04 | [Mutex] waiting for: [received:nodes:26367648-f348-4685-a599-1ffa1fd38e20:localhost]

2022-02-15 21:49:04 | [Mutex] received everything.

2022-02-15 21:49:04 | [Mutex] isItemNotified: received:node:26367648-f348-4685-a599-1ffa1fd38e20:localhost:node-6acb07df-088f-425c-b2c4-6a8601ec36f7:Node 6acb07df-088f-425c-b2c4-6a8601ec36f7 :: false

publishItemsToNodes 0.055s
2022-02-15 21:49:01 |

2022-02-15 21:49:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:01 | ------------------------------------

2022-02-15 21:49:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "entry": "<test>item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a</test>",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a"
}

2022-02-15 21:49:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a"
}

2022-02-15 21:49:01 | [Mutex] received everything.

2022-02-15 21:49:01 | [Mutex] isItemNotified: published:item:notifieditem-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-02-15 21:49:02 |

2022-02-15 21:49:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:02 | ------------------------------------

2022-02-15 21:49:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a"
}

2022-02-15 21:49:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a"
}

2022-02-15 21:49:02 | [Mutex] waiting for: [retracted:item:notifieditem-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a:admin@test-domain.com]

2022-02-15 21:49:02 | [Mutex] received everything.

2022-02-15 21:49:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2022-02-15 21:49:01 |

2022-02-15 21:49:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:01 | ------------------------------------

2022-02-15 21:49:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a"
}

2022-02-15 21:49:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "item-id": "item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a",
    "item": [
        "<item id=\"item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a\"><test>item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a</test></item>"
    ]
}

2022-02-15 21:49:01 | [Mutex] notify: [retrieved:item:item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a:payload-matches:true:localhost]

2022-02-15 21:49:01 | [Mutex] received everything.

2022-02-15 21:49:01 | [Mutex] isItemNotified: retrieved:item:item-ccc40e0c-0092-42cc-b9c2-3dbd2de60c9a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-15 21:49:01 |

2022-02-15 21:49:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:01 | ------------------------------------

2022-02-15 21:49:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-15 21:49:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
        "test",
        "node-e21fd69e-e835-4707-ab71-0f90f49fdd65"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-15 21:49:01 |

2022-02-15 21:49:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:01 | ------------------------------------

2022-02-15 21:49:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6acb07df-088f-425c-b2c4-6a8601ec36f7)"
}

2022-02-15 21:49:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-15 21:49:00 |

2022-02-15 21:49:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:00 | ------------------------------------

2022-02-15 21:49:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:49:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2022-02-15 21:49:02 |

2022-02-15 21:49:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-15 21:49:02 | ------------------------------------

2022-02-15 21:49:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6acb07df-088f-425c-b2c4-6a8601ec36f7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-15 21:49:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}