Generated by TestNG with ReportNG at 06:08 PDT on Tuesday 12 July 2022
root@7c41cec37518 / 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.629s

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

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

2022-07-12 06:23:45 | ------------------------------------

2022-07-12 06:23:45 | [Mutex] waiting for: [configured:node:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:node-25a95816-d8ae-40d2-9644-2bfdcd318a9e]

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

2022-07-12 06:23:45 | [Mutex] isItemNotified: configured:node:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:node-25a95816-d8ae-40d2-9644-2bfdcd318a9e :: true

2022-07-12 06:23:46 | [Mutex] waiting for: [received:nodes:910c02b9-7032-48b4-8d9e-2ec9cf40e65a:localhost]

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

2022-07-12 06:23:46 | [Mutex] isItemNotified: received:node:910c02b9-7032-48b4-8d9e-2ec9cf40e65a:localhost:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8 :: true

2022-07-12 06:23:46 | [Mutex] waiting for: [received:nodes:b95af9e6-78e4-47cc-a5b5-947b91b26250:localhost]

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

2022-07-12 06:23:46 | [Mutex] isItemNotified: received:node:b95af9e6-78e4-47cc-a5b5-947b91b26250:localhost:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8 :: false

createNodes 1.534s
2022-07-12 06:23:42 |

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

2022-07-12 06:23:42 | ------------------------------------

2022-07-12 06:23:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "pubsub#title": "Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8"
}

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

2022-07-12 06:23:44 | [Mutex] waiting for: [received:nodes:4d6bbe8a-04a0-4fb0-a426-772068b825f2:localhost]

2022-07-12 06:23:44 | [Mutex] waiting for: [received:nodes:4d6bbe8a-04a0-4fb0-a426-772068b825f2:localhost]

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

2022-07-12 06:23:44 | [Mutex] isItemNotified: received:node:4d6bbe8a-04a0-4fb0-a426-772068b825f2:localhost:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8 :: true

createSubnodes 1.021s
2022-07-12 06:23:44 |

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

2022-07-12 06:23:44 | ------------------------------------

2022-07-12 06:23:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-25a95816-d8ae-40d2-9644-2bfdcd318a9e",
    "pubsub#title": "Node 25a95816-d8ae-40d2-9644-2bfdcd318a9e"
}

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

2022-07-12 06:23:45 | [Mutex] waiting for: [received:nodes:258e1585-76fd-4ef8-af5b-8737253fe05d:localhost]

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

2022-07-12 06:23:45 | [Mutex] isItemNotified: received:node:258e1585-76fd-4ef8-af5b-8737253fe05d:localhost:node-25a95816-d8ae-40d2-9644-2bfdcd318a9e:Node 25a95816-d8ae-40d2-9644-2bfdcd318a9e :: true

deleteNodes 1.019s
2022-07-12 06:23:49 |

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

2022-07-12 06:23:49 | ------------------------------------

2022-07-12 06:23:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-25a95816-d8ae-40d2-9644-2bfdcd318a9e"
}

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

2022-07-12 06:23:50 | [Mutex] waiting for: [received:nodes:42555b06-e63a-43a3-b5b4-ceb50958d03d:localhost]

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

2022-07-12 06:23:50 | [Mutex] isItemNotified: received:node:42555b06-e63a-43a3-b5b4-ceb50958d03d:localhost:node-25a95816-d8ae-40d2-9644-2bfdcd318a9e:Node 25a95816-d8ae-40d2-9644-2bfdcd318a9e :: false

deleteSubnodes 1.026s
2022-07-12 06:23:48 |

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

2022-07-12 06:23:48 | ------------------------------------

2022-07-12 06:23:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8"
}

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

2022-07-12 06:23:49 | [Mutex] waiting for: [received:nodes:206cabfb-1136-4964-a6e5-3a11eca74431:localhost]

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

2022-07-12 06:23:49 | [Mutex] isItemNotified: received:node:206cabfb-1136-4964-a6e5-3a11eca74431:localhost:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8 :: false

2022-07-12 06:23:49 | [Mutex] waiting for: [received:nodes:264fbf3a-7212-498e-ae72-96efcba9ec53:localhost]

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

2022-07-12 06:23:49 | [Mutex] isItemNotified: received:node:264fbf3a-7212-498e-ae72-96efcba9ec53:localhost:node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8:Node 9e7de1ed-b23a-4ff1-9182-1fa798042fa8 :: false

publishItemsToNodes 0.058s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

2022-07-12 06:23:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "entry": "<test>item-7ea91800-42d1-406b-8e79-f3dac923b027</test>",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027"
}

2022-07-12 06:23:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027"
}

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

2022-07-12 06:23:47 | [Mutex] isItemNotified: published:item:notifieditem-7ea91800-42d1-406b-8e79-f3dac923b027:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

2022-07-12 06:23:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027"
}

2022-07-12 06:23:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027"
}

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

2022-07-12 06:23:47 | [Mutex] isItemNotified: retracted:item:notifieditem-7ea91800-42d1-406b-8e79-f3dac923b027:admin@test-domain.com :: true

retrieveItemsFromNodes 0.177s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

2022-07-12 06:23:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027"
}

2022-07-12 06:23:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "item-id": "item-7ea91800-42d1-406b-8e79-f3dac923b027",
    "item": [
        "<item id=\"item-7ea91800-42d1-406b-8e79-f3dac923b027\"><test>item-7ea91800-42d1-406b-8e79-f3dac923b027</test></item>"
    ]
}

2022-07-12 06:23:47 | [Mutex] notify: [retrieved:item:item-7ea91800-42d1-406b-8e79-f3dac923b027:payload-matches:true:localhost]

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

2022-07-12 06:23:47 | [Mutex] isItemNotified: retrieved:item:item-7ea91800-42d1-406b-8e79-f3dac923b027:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

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

2022-07-12 06:23:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-25a95816-d8ae-40d2-9644-2bfdcd318a9e",
        "test",
        "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

2022-07-12 06:23:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8)"
}

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

subscribeNodes 1.010s
2022-07-12 06:23:46 |

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

2022-07-12 06:23:46 | ------------------------------------

2022-07-12 06:23:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2022-07-12 06:23:47 |

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

2022-07-12 06:23:47 | ------------------------------------

2022-07-12 06:23:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9e7de1ed-b23a-4ff1-9182-1fa798042fa8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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