Generated by TestNG with ReportNG at 05:50 PDT on Tuesday 12 July 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.758s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-07-12 06:06:07 |

2022-07-12 06:06:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:07 | ------------------------------------

2022-07-12 06:06:07 | [Mutex] waiting for: [configured:node:node-64a1242b-87ff-40d9-b924-94213676346e:node-9218f3b2-0788-4375-a66d-3d9283b299d4]

2022-07-12 06:06:07 | [Mutex] received everything.

2022-07-12 06:06:07 | [Mutex] isItemNotified: configured:node:node-64a1242b-87ff-40d9-b924-94213676346e:node-9218f3b2-0788-4375-a66d-3d9283b299d4 :: true

2022-07-12 06:06:08 | [Mutex] waiting for: [received:nodes:ed69e46e-6ba3-41ee-b489-002e48aa1e52:localhost]

2022-07-12 06:06:08 | [Mutex] received everything.

2022-07-12 06:06:08 | [Mutex] isItemNotified: received:node:ed69e46e-6ba3-41ee-b489-002e48aa1e52:localhost:node-64a1242b-87ff-40d9-b924-94213676346e:Node 64a1242b-87ff-40d9-b924-94213676346e :: true

2022-07-12 06:06:08 | [Mutex] waiting for: [received:nodes:c27f4277-abe2-4639-a3b3-0e8662e2d5d4:localhost]

2022-07-12 06:06:08 | [Mutex] waiting for: [received:nodes:c27f4277-abe2-4639-a3b3-0e8662e2d5d4:localhost]

2022-07-12 06:06:08 | [Mutex] received everything.

2022-07-12 06:06:08 | [Mutex] isItemNotified: received:node:c27f4277-abe2-4639-a3b3-0e8662e2d5d4:localhost:node-64a1242b-87ff-40d9-b924-94213676346e:Node 64a1242b-87ff-40d9-b924-94213676346e :: false

createNodes 1.601s
2022-07-12 06:06:04 |

2022-07-12 06:06:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:04 | ------------------------------------

2022-07-12 06:06:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "pubsub#title": "Node 64a1242b-87ff-40d9-b924-94213676346e"
}

2022-07-12 06:06:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:06:06 | [Mutex] waiting for: [received:nodes:70a6eee7-7a4a-4aa2-bcbf-3c042c3b38d5:localhost]

2022-07-12 06:06:06 | [Mutex] received everything.

2022-07-12 06:06:06 | [Mutex] isItemNotified: received:node:70a6eee7-7a4a-4aa2-bcbf-3c042c3b38d5:localhost:node-64a1242b-87ff-40d9-b924-94213676346e:Node 64a1242b-87ff-40d9-b924-94213676346e :: true

createSubnodes 1.020s
2022-07-12 06:06:06 |

2022-07-12 06:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:06 | ------------------------------------

2022-07-12 06:06:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9218f3b2-0788-4375-a66d-3d9283b299d4",
    "pubsub#title": "Node 9218f3b2-0788-4375-a66d-3d9283b299d4"
}

2022-07-12 06:06:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:06:07 | [Mutex] waiting for: [received:nodes:d45e9c9c-1d54-4961-8027-659014e8511a:localhost]

2022-07-12 06:06:07 | [Mutex] waiting for: [received:nodes:d45e9c9c-1d54-4961-8027-659014e8511a:localhost]

2022-07-12 06:06:07 | [Mutex] received everything.

2022-07-12 06:06:07 | [Mutex] isItemNotified: received:node:d45e9c9c-1d54-4961-8027-659014e8511a:localhost:node-9218f3b2-0788-4375-a66d-3d9283b299d4:Node 9218f3b2-0788-4375-a66d-3d9283b299d4 :: true

deleteNodes 1.020s
2022-07-12 06:06:11 |

2022-07-12 06:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:11 | ------------------------------------

2022-07-12 06:06:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9218f3b2-0788-4375-a66d-3d9283b299d4"
}

2022-07-12 06:06:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:06:12 | [Mutex] waiting for: [received:nodes:ac26736a-e7e8-4110-b566-652db7378687:localhost]

2022-07-12 06:06:12 | [Mutex] received everything.

2022-07-12 06:06:12 | [Mutex] isItemNotified: received:node:ac26736a-e7e8-4110-b566-652db7378687:localhost:node-9218f3b2-0788-4375-a66d-3d9283b299d4:Node 9218f3b2-0788-4375-a66d-3d9283b299d4 :: false

deleteSubnodes 1.058s
2022-07-12 06:06:10 |

2022-07-12 06:06:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:10 | ------------------------------------

2022-07-12 06:06:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e"
}

2022-07-12 06:06:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:06:11 | [Mutex] waiting for: [received:nodes:5a07d3d3-7dac-4592-801e-6c8b3bbd6f8c:localhost]

2022-07-12 06:06:11 | [Mutex] received everything.

2022-07-12 06:06:11 | [Mutex] isItemNotified: received:node:5a07d3d3-7dac-4592-801e-6c8b3bbd6f8c:localhost:node-64a1242b-87ff-40d9-b924-94213676346e:Node 64a1242b-87ff-40d9-b924-94213676346e :: false

2022-07-12 06:06:11 | [Mutex] waiting for: [received:nodes:6be61ed5-7f82-40d0-8326-b7e42d248720:localhost]

2022-07-12 06:06:11 | [Mutex] received everything.

2022-07-12 06:06:11 | [Mutex] isItemNotified: received:node:6be61ed5-7f82-40d0-8326-b7e42d248720:localhost:node-64a1242b-87ff-40d9-b924-94213676346e:Node 64a1242b-87ff-40d9-b924-94213676346e :: false

publishItemsToNodes 0.031s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "entry": "<test>item-ddd393ef-3d61-468c-a7f9-bf31861541a0</test>",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0"
}

2022-07-12 06:06:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0"
}

2022-07-12 06:06:09 | [Mutex] waiting for: [published:item:notifieditem-ddd393ef-3d61-468c-a7f9-bf31861541a0:admin@test-domain.com]

2022-07-12 06:06:09 | [Mutex] received everything.

2022-07-12 06:06:09 | [Mutex] isItemNotified: published:item:notifieditem-ddd393ef-3d61-468c-a7f9-bf31861541a0:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0"
}

2022-07-12 06:06:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0"
}

2022-07-12 06:06:09 | [Mutex] received everything.

2022-07-12 06:06:09 | [Mutex] isItemNotified: retracted:item:notifieditem-ddd393ef-3d61-468c-a7f9-bf31861541a0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0"
}

2022-07-12 06:06:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "item-id": "item-ddd393ef-3d61-468c-a7f9-bf31861541a0",
    "item": [
        "<item id=\"item-ddd393ef-3d61-468c-a7f9-bf31861541a0\"><test>item-ddd393ef-3d61-468c-a7f9-bf31861541a0</test></item>"
    ]
}

2022-07-12 06:06:09 | [Mutex] notify: [retrieved:item:item-ddd393ef-3d61-468c-a7f9-bf31861541a0:payload-matches:true:localhost]

2022-07-12 06:06:09 | [Mutex] received everything.

2022-07-12 06:06:09 | [Mutex] isItemNotified: retrieved:item:item-ddd393ef-3d61-468c-a7f9-bf31861541a0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-12 06:06:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9218f3b2-0788-4375-a66d-3d9283b299d4",
        "test",
        "node-64a1242b-87ff-40d9-b924-94213676346e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-64a1242b-87ff-40d9-b924-94213676346e)"
}

2022-07-12 06:06:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-12 06:06:08 |

2022-07-12 06:06:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:08 | ------------------------------------

2022-07-12 06:06:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 06:06:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.082s
2022-07-12 06:06:09 |

2022-07-12 06:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:06:09 | ------------------------------------

2022-07-12 06:06:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-64a1242b-87ff-40d9-b924-94213676346e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 06:06:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}