Generated by TestNG with ReportNG at 21:45 PST on Monday 16 January 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.616s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.131s
2023-01-16 22:00:49 |

2023-01-16 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:49 | ------------------------------------

2023-01-16 22:00:49 | [Mutex] waiting for: [configured:node:node-128c9728-caf1-441e-a179-a94c56fb1014:node-74c7e176-d543-45fd-9e2f-ece4e8c3e111]

2023-01-16 22:00:49 | [Mutex] received everything.

2023-01-16 22:00:49 | [Mutex] isItemNotified: configured:node:node-128c9728-caf1-441e-a179-a94c56fb1014:node-74c7e176-d543-45fd-9e2f-ece4e8c3e111 :: true

2023-01-16 22:00:50 | [Mutex] waiting for: [received:nodes:072f11e1-a087-4d84-ba28-7cba2c088251:localhost]

2023-01-16 22:00:50 | [Mutex] received everything.

2023-01-16 22:00:50 | [Mutex] isItemNotified: received:node:072f11e1-a087-4d84-ba28-7cba2c088251:localhost:node-128c9728-caf1-441e-a179-a94c56fb1014:Node 128c9728-caf1-441e-a179-a94c56fb1014 :: true

2023-01-16 22:00:50 | [Mutex] waiting for: [received:nodes:65d6155f-527e-44d8-b929-0cc51801bd61:localhost]

2023-01-16 22:00:50 | [Mutex] waiting for: [received:nodes:65d6155f-527e-44d8-b929-0cc51801bd61:localhost]

2023-01-16 22:00:50 | [Mutex] received everything.

2023-01-16 22:00:50 | [Mutex] isItemNotified: received:node:65d6155f-527e-44d8-b929-0cc51801bd61:localhost:node-128c9728-caf1-441e-a179-a94c56fb1014:Node 128c9728-caf1-441e-a179-a94c56fb1014 :: false

createNodes 1.614s
2023-01-16 22:00:46 |

2023-01-16 22:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:46 | ------------------------------------

2023-01-16 22:00:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "pubsub#title": "Node 128c9728-caf1-441e-a179-a94c56fb1014"
}

2023-01-16 22:00:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:00:48 | [Mutex] waiting for: [received:nodes:08333b2c-dfd9-4933-aa19-b3006a6a53e0:localhost]

2023-01-16 22:00:48 | [Mutex] received everything.

2023-01-16 22:00:48 | [Mutex] isItemNotified: received:node:08333b2c-dfd9-4933-aa19-b3006a6a53e0:localhost:node-128c9728-caf1-441e-a179-a94c56fb1014:Node 128c9728-caf1-441e-a179-a94c56fb1014 :: true

createSubnodes 1.023s
2023-01-16 22:00:48 |

2023-01-16 22:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:48 | ------------------------------------

2023-01-16 22:00:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-74c7e176-d543-45fd-9e2f-ece4e8c3e111",
    "pubsub#title": "Node 74c7e176-d543-45fd-9e2f-ece4e8c3e111"
}

2023-01-16 22:00:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:00:49 | [Mutex] waiting for: [received:nodes:c7763ebb-74ec-4be1-99f8-bbe0dcb3fa67:localhost]

2023-01-16 22:00:49 | [Mutex] waiting for: [received:nodes:c7763ebb-74ec-4be1-99f8-bbe0dcb3fa67:localhost]

2023-01-16 22:00:49 | [Mutex] waiting for: [received:nodes:c7763ebb-74ec-4be1-99f8-bbe0dcb3fa67:localhost]

2023-01-16 22:00:49 | [Mutex] received everything.

2023-01-16 22:00:49 | [Mutex] isItemNotified: received:node:c7763ebb-74ec-4be1-99f8-bbe0dcb3fa67:localhost:node-74c7e176-d543-45fd-9e2f-ece4e8c3e111:Node 74c7e176-d543-45fd-9e2f-ece4e8c3e111 :: true

deleteNodes 1.017s
2023-01-16 22:00:53 |

2023-01-16 22:00:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:53 | ------------------------------------

2023-01-16 22:00:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-74c7e176-d543-45fd-9e2f-ece4e8c3e111"
}

2023-01-16 22:00:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:00:54 | [Mutex] waiting for: [received:nodes:38f89cae-8678-4163-9b4c-76acda3994ad:localhost]

2023-01-16 22:00:54 | [Mutex] waiting for: [received:nodes:38f89cae-8678-4163-9b4c-76acda3994ad:localhost]

2023-01-16 22:00:54 | [Mutex] waiting for: [received:nodes:38f89cae-8678-4163-9b4c-76acda3994ad:localhost]

2023-01-16 22:00:54 | [Mutex] received everything.

2023-01-16 22:00:54 | [Mutex] isItemNotified: received:node:38f89cae-8678-4163-9b4c-76acda3994ad:localhost:node-74c7e176-d543-45fd-9e2f-ece4e8c3e111:Node 74c7e176-d543-45fd-9e2f-ece4e8c3e111 :: false

deleteSubnodes 1.027s
2023-01-16 22:00:52 |

2023-01-16 22:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:52 | ------------------------------------

2023-01-16 22:00:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014"
}

2023-01-16 22:00:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:00:53 | [Mutex] waiting for: [received:nodes:5474345c-3e62-418a-8f69-ee7e78ad5467:localhost]

2023-01-16 22:00:53 | [Mutex] waiting for: [received:nodes:5474345c-3e62-418a-8f69-ee7e78ad5467:localhost]

2023-01-16 22:00:53 | [Mutex] waiting for: [received:nodes:5474345c-3e62-418a-8f69-ee7e78ad5467:localhost]

2023-01-16 22:00:53 | [Mutex] waiting for: [received:nodes:5474345c-3e62-418a-8f69-ee7e78ad5467:localhost]

2023-01-16 22:00:53 | [Mutex] received everything.

2023-01-16 22:00:53 | [Mutex] isItemNotified: received:node:5474345c-3e62-418a-8f69-ee7e78ad5467:localhost:node-128c9728-caf1-441e-a179-a94c56fb1014:Node 128c9728-caf1-441e-a179-a94c56fb1014 :: false

2023-01-16 22:00:53 | [Mutex] waiting for: [received:nodes:46887027-3a5a-4c02-a6a8-286c75d72c5d:localhost]

2023-01-16 22:00:53 | [Mutex] received everything.

2023-01-16 22:00:53 | [Mutex] isItemNotified: received:node:46887027-3a5a-4c02-a6a8-286c75d72c5d:localhost:node-128c9728-caf1-441e-a179-a94c56fb1014:Node 128c9728-caf1-441e-a179-a94c56fb1014 :: false

publishItemsToNodes 0.049s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

2023-01-16 22:00:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "entry": "<test>item-43ad0a75-35a6-41bf-a860-055db3c07286</test>",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286"
}

2023-01-16 22:00:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286"
}

2023-01-16 22:00:51 | [Mutex] waiting for: [published:item:notifieditem-43ad0a75-35a6-41bf-a860-055db3c07286:admin@test-domain.com]

2023-01-16 22:00:51 | [Mutex] received everything.

2023-01-16 22:00:51 | [Mutex] isItemNotified: published:item:notifieditem-43ad0a75-35a6-41bf-a860-055db3c07286:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

2023-01-16 22:00:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286"
}

2023-01-16 22:00:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286"
}

2023-01-16 22:00:51 | [Mutex] received everything.

2023-01-16 22:00:51 | [Mutex] isItemNotified: retracted:item:notifieditem-43ad0a75-35a6-41bf-a860-055db3c07286:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

2023-01-16 22:00:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286"
}

2023-01-16 22:00:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "item-id": "item-43ad0a75-35a6-41bf-a860-055db3c07286",
    "item": [
        "<item id=\"item-43ad0a75-35a6-41bf-a860-055db3c07286\"><test>item-43ad0a75-35a6-41bf-a860-055db3c07286</test></item>"
    ]
}

2023-01-16 22:00:51 | [Mutex] notify: [retrieved:item:item-43ad0a75-35a6-41bf-a860-055db3c07286:payload-matches:true:localhost]

2023-01-16 22:00:51 | [Mutex] received everything.

2023-01-16 22:00:51 | [Mutex] isItemNotified: retrieved:item:item-43ad0a75-35a6-41bf-a860-055db3c07286:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

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

2023-01-16 22:00:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-128c9728-caf1-441e-a179-a94c56fb1014",
        "node-74c7e176-d543-45fd-9e2f-ece4e8c3e111"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

2023-01-16 22:00:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-128c9728-caf1-441e-a179-a94c56fb1014)"
}

2023-01-16 22:00:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-01-16 22:00:50 |

2023-01-16 22:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:50 | ------------------------------------

2023-01-16 22:00:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2023-01-16 22:00:51 |

2023-01-16 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:00:51 | ------------------------------------

2023-01-16 22:00:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-128c9728-caf1-441e-a179-a94c56fb1014",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-16 22:00:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}