Generated by TestNG with ReportNG at 22:19 PDT on Wednesday 24 August 2022
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.756s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2022-08-24 22:34:24 |

2022-08-24 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:24 | ------------------------------------

2022-08-24 22:34:24 | [Mutex] waiting for: [configured:node:node-78871210-cf4a-4651-bb43-1a79e858b31a:node-dbf76dff-4fe6-436d-b24f-5487db43f3ed]

2022-08-24 22:34:24 | [Mutex] received everything.

2022-08-24 22:34:24 | [Mutex] isItemNotified: configured:node:node-78871210-cf4a-4651-bb43-1a79e858b31a:node-dbf76dff-4fe6-436d-b24f-5487db43f3ed :: true

2022-08-24 22:34:25 | [Mutex] waiting for: [received:nodes:b43341ee-5ed5-45b5-9fc8-5c844b4f9649:localhost]

2022-08-24 22:34:25 | [Mutex] received everything.

2022-08-24 22:34:25 | [Mutex] isItemNotified: received:node:b43341ee-5ed5-45b5-9fc8-5c844b4f9649:localhost:node-78871210-cf4a-4651-bb43-1a79e858b31a:Node 78871210-cf4a-4651-bb43-1a79e858b31a :: true

2022-08-24 22:34:25 | [Mutex] waiting for: [received:nodes:67066b54-4e15-4a32-9424-23f7858d6ef1:localhost]

2022-08-24 22:34:25 | [Mutex] received everything.

2022-08-24 22:34:25 | [Mutex] isItemNotified: received:node:67066b54-4e15-4a32-9424-23f7858d6ef1:localhost:node-78871210-cf4a-4651-bb43-1a79e858b31a:Node 78871210-cf4a-4651-bb43-1a79e858b31a :: false

createNodes 1.616s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "pubsub#title": "Node 78871210-cf4a-4651-bb43-1a79e858b31a"
}

2022-08-24 22:34:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:23 | [Mutex] waiting for: [received:nodes:0f7401e5-74af-4cf7-8e19-6de429c196ce:localhost]

2022-08-24 22:34:23 | [Mutex] received everything.

2022-08-24 22:34:23 | [Mutex] isItemNotified: received:node:0f7401e5-74af-4cf7-8e19-6de429c196ce:localhost:node-78871210-cf4a-4651-bb43-1a79e858b31a:Node 78871210-cf4a-4651-bb43-1a79e858b31a :: true

createSubnodes 1.025s
2022-08-24 22:34:23 |

2022-08-24 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:23 | ------------------------------------

2022-08-24 22:34:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dbf76dff-4fe6-436d-b24f-5487db43f3ed",
    "pubsub#title": "Node dbf76dff-4fe6-436d-b24f-5487db43f3ed"
}

2022-08-24 22:34:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:24 | [Mutex] waiting for: [received:nodes:13ed0643-95d1-4298-849f-de0b53c1d920:localhost]

2022-08-24 22:34:24 | [Mutex] received everything.

2022-08-24 22:34:24 | [Mutex] isItemNotified: received:node:13ed0643-95d1-4298-849f-de0b53c1d920:localhost:node-dbf76dff-4fe6-436d-b24f-5487db43f3ed:Node dbf76dff-4fe6-436d-b24f-5487db43f3ed :: true

deleteNodes 1.018s
2022-08-24 22:34:28 |

2022-08-24 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:28 | ------------------------------------

2022-08-24 22:34:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dbf76dff-4fe6-436d-b24f-5487db43f3ed"
}

2022-08-24 22:34:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:29 | [Mutex] waiting for: [received:nodes:ae004d17-d4bc-4f71-bfca-faaecd7b271a:localhost]

2022-08-24 22:34:29 | [Mutex] waiting for: [received:nodes:ae004d17-d4bc-4f71-bfca-faaecd7b271a:localhost]

2022-08-24 22:34:29 | [Mutex] waiting for: [received:nodes:ae004d17-d4bc-4f71-bfca-faaecd7b271a:localhost]

2022-08-24 22:34:29 | [Mutex] received everything.

2022-08-24 22:34:29 | [Mutex] isItemNotified: received:node:ae004d17-d4bc-4f71-bfca-faaecd7b271a:localhost:node-dbf76dff-4fe6-436d-b24f-5487db43f3ed:Node dbf76dff-4fe6-436d-b24f-5487db43f3ed :: false

deleteSubnodes 1.031s
2022-08-24 22:34:27 |

2022-08-24 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:27 | ------------------------------------

2022-08-24 22:34:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a"
}

2022-08-24 22:34:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:28 | [Mutex] waiting for: [received:nodes:8b734ce2-1354-4ea1-90d7-d8c945b93b65:localhost]

2022-08-24 22:34:28 | [Mutex] received everything.

2022-08-24 22:34:28 | [Mutex] isItemNotified: received:node:8b734ce2-1354-4ea1-90d7-d8c945b93b65:localhost:node-78871210-cf4a-4651-bb43-1a79e858b31a:Node 78871210-cf4a-4651-bb43-1a79e858b31a :: false

2022-08-24 22:34:28 | [Mutex] waiting for: [received:nodes:388256b8-2726-4665-96bf-27ddf41f4a1b:localhost]

2022-08-24 22:34:28 | [Mutex] received everything.

2022-08-24 22:34:28 | [Mutex] isItemNotified: received:node:388256b8-2726-4665-96bf-27ddf41f4a1b:localhost:node-78871210-cf4a-4651-bb43-1a79e858b31a:Node 78871210-cf4a-4651-bb43-1a79e858b31a :: false

publishItemsToNodes 0.063s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "entry": "<test>item-400b5eb4-4d21-442e-b6a3-0721406b8ddc</test>",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc"
}

2022-08-24 22:34:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc"
}

2022-08-24 22:34:26 | [Mutex] waiting for: [published:item:notifieditem-400b5eb4-4d21-442e-b6a3-0721406b8ddc:admin@test-domain.com]

2022-08-24 22:34:26 | [Mutex] received everything.

2022-08-24 22:34:26 | [Mutex] isItemNotified: published:item:notifieditem-400b5eb4-4d21-442e-b6a3-0721406b8ddc:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc"
}

2022-08-24 22:34:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc"
}

2022-08-24 22:34:26 | [Mutex] waiting for: [retracted:item:notifieditem-400b5eb4-4d21-442e-b6a3-0721406b8ddc:admin@test-domain.com]

2022-08-24 22:34:26 | [Mutex] received everything.

2022-08-24 22:34:26 | [Mutex] isItemNotified: retracted:item:notifieditem-400b5eb4-4d21-442e-b6a3-0721406b8ddc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc"
}

2022-08-24 22:34:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "item-id": "item-400b5eb4-4d21-442e-b6a3-0721406b8ddc",
    "item": [
        "<item id=\"item-400b5eb4-4d21-442e-b6a3-0721406b8ddc\"><test>item-400b5eb4-4d21-442e-b6a3-0721406b8ddc</test></item>"
    ]
}

2022-08-24 22:34:26 | [Mutex] notify: [retrieved:item:item-400b5eb4-4d21-442e-b6a3-0721406b8ddc:payload-matches:true:localhost]

2022-08-24 22:34:26 | [Mutex] received everything.

2022-08-24 22:34:26 | [Mutex] isItemNotified: retrieved:item:item-400b5eb4-4d21-442e-b6a3-0721406b8ddc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.070s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-24 22:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-78871210-cf4a-4651-bb43-1a79e858b31a",
        "node-dbf76dff-4fe6-436d-b24f-5487db43f3ed"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-78871210-cf4a-4651-bb43-1a79e858b31a)"
}

2022-08-24 22:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-24 22:34:25 |

2022-08-24 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:25 | ------------------------------------

2022-08-24 22:34:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-24 22:34:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-08-24 22:34:26 |

2022-08-24 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:26 | ------------------------------------

2022-08-24 22:34:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-78871210-cf4a-4651-bb43-1a79e858b31a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-24 22:34:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}