Generated by TestNG with ReportNG at 22:51 PDT on Tuesday 29 September 2020
root@eaa73862192b / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.809s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2020-09-29 23:06:29 |

2020-09-29 23:06:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:29 | ------------------------------------

2020-09-29 23:06:29 | [Mutex] waiting for: [configured:node:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:node-502fa366-9174-462a-853a-2308d8d2ae2d]

2020-09-29 23:06:29 | [Mutex] received everything.

2020-09-29 23:06:29 | [Mutex] isItemNotified: configured:node:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:node-502fa366-9174-462a-853a-2308d8d2ae2d :: true

2020-09-29 23:06:30 | [Mutex] waiting for: [received:nodes:c1cfc7a9-ca68-425c-a99c-0d9f6b45b8ba:localhost]

2020-09-29 23:06:30 | [Mutex] waiting for: [received:nodes:c1cfc7a9-ca68-425c-a99c-0d9f6b45b8ba:localhost]

2020-09-29 23:06:30 | [Mutex] received everything.

2020-09-29 23:06:30 | [Mutex] isItemNotified: received:node:c1cfc7a9-ca68-425c-a99c-0d9f6b45b8ba:localhost:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:Node 55ed91c8-9b4d-4652-8045-64579a51a3e6 :: true

2020-09-29 23:06:30 | [Mutex] waiting for: [received:nodes:ee653769-4b63-4d25-8299-0efa85c9521f:localhost]

2020-09-29 23:06:30 | [Mutex] waiting for: [received:nodes:ee653769-4b63-4d25-8299-0efa85c9521f:localhost]

2020-09-29 23:06:30 | [Mutex] waiting for: [received:nodes:ee653769-4b63-4d25-8299-0efa85c9521f:localhost]

2020-09-29 23:06:30 | [Mutex] received everything.

2020-09-29 23:06:30 | [Mutex] isItemNotified: received:node:ee653769-4b63-4d25-8299-0efa85c9521f:localhost:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:Node 55ed91c8-9b4d-4652-8045-64579a51a3e6 :: false

createNodes 1.546s
2020-09-29 23:06:26 |

2020-09-29 23:06:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:26 | ------------------------------------

2020-09-29 23:06:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "pubsub#title": "Node 55ed91c8-9b4d-4652-8045-64579a51a3e6"
}

2020-09-29 23:06:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 23:06:28 | [Mutex] waiting for: [received:nodes:8ac07917-a818-47e1-89c5-6194833558e9:localhost]

2020-09-29 23:06:28 | [Mutex] waiting for: [received:nodes:8ac07917-a818-47e1-89c5-6194833558e9:localhost]

2020-09-29 23:06:28 | [Mutex] waiting for: [received:nodes:8ac07917-a818-47e1-89c5-6194833558e9:localhost]

2020-09-29 23:06:28 | [Mutex] received everything.

2020-09-29 23:06:28 | [Mutex] isItemNotified: received:node:8ac07917-a818-47e1-89c5-6194833558e9:localhost:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:Node 55ed91c8-9b4d-4652-8045-64579a51a3e6 :: true

createSubnodes 1.021s
2020-09-29 23:06:28 |

2020-09-29 23:06:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:28 | ------------------------------------

2020-09-29 23:06:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-502fa366-9174-462a-853a-2308d8d2ae2d",
    "pubsub#title": "Node 502fa366-9174-462a-853a-2308d8d2ae2d"
}

2020-09-29 23:06:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 23:06:29 | [Mutex] waiting for: [received:nodes:3204d0ee-9a36-4b82-bc2f-005a7d997293:localhost]

2020-09-29 23:06:29 | [Mutex] received everything.

2020-09-29 23:06:29 | [Mutex] isItemNotified: received:node:3204d0ee-9a36-4b82-bc2f-005a7d997293:localhost:node-502fa366-9174-462a-853a-2308d8d2ae2d:Node 502fa366-9174-462a-853a-2308d8d2ae2d :: true

deleteNodes 1.023s
2020-09-29 23:06:33 |

2020-09-29 23:06:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:33 | ------------------------------------

2020-09-29 23:06:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-502fa366-9174-462a-853a-2308d8d2ae2d"
}

2020-09-29 23:06:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 23:06:35 | [Mutex] waiting for: [received:nodes:8766088b-9b9b-47a8-a494-277c2b0d9b88:localhost]

2020-09-29 23:06:35 | [Mutex] received everything.

2020-09-29 23:06:35 | [Mutex] isItemNotified: received:node:8766088b-9b9b-47a8-a494-277c2b0d9b88:localhost:node-502fa366-9174-462a-853a-2308d8d2ae2d:Node 502fa366-9174-462a-853a-2308d8d2ae2d :: false

deleteSubnodes 1.026s
2020-09-29 23:06:32 |

2020-09-29 23:06:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:32 | ------------------------------------

2020-09-29 23:06:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6"
}

2020-09-29 23:06:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 23:06:33 | [Mutex] waiting for: [received:nodes:82ec9945-48c4-4dae-8c6c-7920c4283a9a:localhost]

2020-09-29 23:06:33 | [Mutex] received everything.

2020-09-29 23:06:33 | [Mutex] isItemNotified: received:node:82ec9945-48c4-4dae-8c6c-7920c4283a9a:localhost:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:Node 55ed91c8-9b4d-4652-8045-64579a51a3e6 :: false

2020-09-29 23:06:33 | [Mutex] waiting for: [received:nodes:a4fd64f6-b485-4512-add3-ec1529f9addb:localhost]

2020-09-29 23:06:33 | [Mutex] received everything.

2020-09-29 23:06:33 | [Mutex] isItemNotified: received:node:a4fd64f6-b485-4512-add3-ec1529f9addb:localhost:node-55ed91c8-9b4d-4652-8045-64579a51a3e6:Node 55ed91c8-9b4d-4652-8045-64579a51a3e6 :: false

publishItemsToNodes 0.031s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

2020-09-29 23:06:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "entry": "<test>item-51a23766-353f-4cd0-8a2c-b4102bfe604e</test>",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e"
}

2020-09-29 23:06:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e"
}

2020-09-29 23:06:31 | [Mutex] waiting for: [published:item:notifieditem-51a23766-353f-4cd0-8a2c-b4102bfe604e:admin@test-domain.com]

2020-09-29 23:06:31 | [Mutex] received everything.

2020-09-29 23:06:31 | [Mutex] isItemNotified: published:item:notifieditem-51a23766-353f-4cd0-8a2c-b4102bfe604e:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

2020-09-29 23:06:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e"
}

2020-09-29 23:06:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e"
}

2020-09-29 23:06:31 | [Mutex] received everything.

2020-09-29 23:06:31 | [Mutex] isItemNotified: retracted:item:notifieditem-51a23766-353f-4cd0-8a2c-b4102bfe604e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

2020-09-29 23:06:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e"
}

2020-09-29 23:06:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "item-id": "item-51a23766-353f-4cd0-8a2c-b4102bfe604e",
    "item": [
        "<item id=\"item-51a23766-353f-4cd0-8a2c-b4102bfe604e\"><test>item-51a23766-353f-4cd0-8a2c-b4102bfe604e</test></item>"
    ]
}

2020-09-29 23:06:31 | [Mutex] notify: [retrieved:item:item-51a23766-353f-4cd0-8a2c-b4102bfe604e:payload-matches:true:localhost]

2020-09-29 23:06:31 | [Mutex] received everything.

2020-09-29 23:06:31 | [Mutex] isItemNotified: retrieved:item:item-51a23766-353f-4cd0-8a2c-b4102bfe604e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

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

2020-09-29 23:06:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
        "node-502fa366-9174-462a-853a-2308d8d2ae2d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

2020-09-29 23:06:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-55ed91c8-9b4d-4652-8045-64579a51a3e6)"
}

2020-09-29 23:06:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-09-29 23:06:30 |

2020-09-29 23:06:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:30 | ------------------------------------

2020-09-29 23:06:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-29 23:06:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-09-29 23:06:31 |

2020-09-29 23:06:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 23:06:31 | ------------------------------------

2020-09-29 23:06:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-55ed91c8-9b4d-4652-8045-64579a51a3e6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-29 23:06:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}