Generated by TestNG with ReportNG at 22:18 PDT on Monday 25 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.607s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.138s
2022-07-25 22:32:15 |

2022-07-25 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:15 | ------------------------------------

2022-07-25 22:32:15 | [Mutex] waiting for: [configured:node:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:node-d4658f14-6783-4e56-adc0-8d87af0b3d9a]

2022-07-25 22:32:15 | [Mutex] received everything.

2022-07-25 22:32:15 | [Mutex] isItemNotified: configured:node:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:node-d4658f14-6783-4e56-adc0-8d87af0b3d9a :: true

2022-07-25 22:32:16 | [Mutex] waiting for: [received:nodes:cc8af51c-f672-4ec2-a84e-b3da79b4637a:localhost]

2022-07-25 22:32:16 | [Mutex] received everything.

2022-07-25 22:32:16 | [Mutex] isItemNotified: received:node:cc8af51c-f672-4ec2-a84e-b3da79b4637a:localhost:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed :: true

2022-07-25 22:32:16 | [Mutex] waiting for: [received:nodes:f63b7173-d283-4d8c-b070-ab51b46202ba:localhost]

2022-07-25 22:32:16 | [Mutex] waiting for: [received:nodes:f63b7173-d283-4d8c-b070-ab51b46202ba:localhost]

2022-07-25 22:32:16 | [Mutex] received everything.

2022-07-25 22:32:16 | [Mutex] isItemNotified: received:node:f63b7173-d283-4d8c-b070-ab51b46202ba:localhost:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed :: false

createNodes 1.550s
2022-07-25 22:32:12 |

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

2022-07-25 22:32:12 | ------------------------------------

2022-07-25 22:32:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "pubsub#title": "Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed"
}

2022-07-25 22:32:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:14 | [Mutex] waiting for: [received:nodes:905d33f0-dabf-469b-a468-04f4a506c4d9:localhost]

2022-07-25 22:32:14 | [Mutex] received everything.

2022-07-25 22:32:14 | [Mutex] isItemNotified: received:node:905d33f0-dabf-469b-a468-04f4a506c4d9:localhost:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed :: true

createSubnodes 1.023s
2022-07-25 22:32:14 |

2022-07-25 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:14 | ------------------------------------

2022-07-25 22:32:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d4658f14-6783-4e56-adc0-8d87af0b3d9a",
    "pubsub#title": "Node d4658f14-6783-4e56-adc0-8d87af0b3d9a"
}

2022-07-25 22:32:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:15 | [Mutex] waiting for: [received:nodes:3061634c-afa9-4bf4-b4d1-447878549b2e:localhost]

2022-07-25 22:32:15 | [Mutex] received everything.

2022-07-25 22:32:15 | [Mutex] isItemNotified: received:node:3061634c-afa9-4bf4-b4d1-447878549b2e:localhost:node-d4658f14-6783-4e56-adc0-8d87af0b3d9a:Node d4658f14-6783-4e56-adc0-8d87af0b3d9a :: true

deleteNodes 1.021s
2022-07-25 22:32:20 |

2022-07-25 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:20 | ------------------------------------

2022-07-25 22:32:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d4658f14-6783-4e56-adc0-8d87af0b3d9a"
}

2022-07-25 22:32:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:21 | [Mutex] waiting for: [received:nodes:e624c125-9cdb-4551-a12b-78d61db4f315:localhost]

2022-07-25 22:32:21 | [Mutex] received everything.

2022-07-25 22:32:21 | [Mutex] isItemNotified: received:node:e624c125-9cdb-4551-a12b-78d61db4f315:localhost:node-d4658f14-6783-4e56-adc0-8d87af0b3d9a:Node d4658f14-6783-4e56-adc0-8d87af0b3d9a :: false

deleteSubnodes 1.024s
2022-07-25 22:32:19 |

2022-07-25 22:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:19 | ------------------------------------

2022-07-25 22:32:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed"
}

2022-07-25 22:32:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:20 | [Mutex] waiting for: [received:nodes:dea56363-dcbe-4f39-b582-60207c639e92:localhost]

2022-07-25 22:32:20 | [Mutex] received everything.

2022-07-25 22:32:20 | [Mutex] isItemNotified: received:node:dea56363-dcbe-4f39-b582-60207c639e92:localhost:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed :: false

2022-07-25 22:32:20 | [Mutex] waiting for: [received:nodes:4d9201fb-d102-45bf-8179-c09e736ea41b:localhost]

2022-07-25 22:32:20 | [Mutex] received everything.

2022-07-25 22:32:20 | [Mutex] isItemNotified: received:node:4d9201fb-d102-45bf-8179-c09e736ea41b:localhost:node-8bb69346-62c0-4c30-90e2-43a95b46e9ed:Node 8bb69346-62c0-4c30-90e2-43a95b46e9ed :: false

publishItemsToNodes 0.045s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

2022-07-25 22:32:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "entry": "<test>item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3</test>",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3"
}

2022-07-25 22:32:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3"
}

2022-07-25 22:32:17 | [Mutex] waiting for: [published:item:notifieditem-4c01d2b2-131c-4c00-b906-fc1d5d0649a3:admin@test-domain.com]

2022-07-25 22:32:17 | [Mutex] received everything.

2022-07-25 22:32:17 | [Mutex] isItemNotified: published:item:notifieditem-4c01d2b2-131c-4c00-b906-fc1d5d0649a3:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

2022-07-25 22:32:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3"
}

2022-07-25 22:32:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3"
}

2022-07-25 22:32:17 | [Mutex] received everything.

2022-07-25 22:32:17 | [Mutex] isItemNotified: retracted:item:notifieditem-4c01d2b2-131c-4c00-b906-fc1d5d0649a3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

2022-07-25 22:32:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3"
}

2022-07-25 22:32:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "item-id": "item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3",
    "item": [
        "<item id=\"item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3\"><test>item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3</test></item>"
    ]
}

2022-07-25 22:32:17 | [Mutex] notify: [retrieved:item:item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3:payload-matches:true:localhost]

2022-07-25 22:32:17 | [Mutex] received everything.

2022-07-25 22:32:17 | [Mutex] isItemNotified: retrieved:item:item-4c01d2b2-131c-4c00-b906-fc1d5d0649a3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

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

2022-07-25 22:32:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
        "node-d4658f14-6783-4e56-adc0-8d87af0b3d9a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

2022-07-25 22:32:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8bb69346-62c0-4c30-90e2-43a95b46e9ed)"
}

2022-07-25 22:32:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-25 22:32:16 |

2022-07-25 22:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:16 | ------------------------------------

2022-07-25 22:32:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.073s
2022-07-25 22:32:17 |

2022-07-25 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:17 | ------------------------------------

2022-07-25 22:32:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8bb69346-62c0-4c30-90e2-43a95b46e9ed",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 22:32:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}