Generated by TestNG with ReportNG at 22:42 PDT on Thursday 08 October 2020
root@87f6aca6b6f2 / 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 : 9.091s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.054s
2020-10-08 22:59:23 |

2020-10-08 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:23 | ------------------------------------

2020-10-08 22:59:23 | [Mutex] waiting for: [configured:node:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:node-457d6ed7-6fca-4033-9284-ec727cb0bfdd]

2020-10-08 22:59:23 | [Mutex] received everything.

2020-10-08 22:59:23 | [Mutex] isItemNotified: configured:node:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:node-457d6ed7-6fca-4033-9284-ec727cb0bfdd :: true

2020-10-08 22:59:24 | [Mutex] waiting for: [received:nodes:7c11e610-c99c-4f55-badd-53c4e248b1fc:localhost]

2020-10-08 22:59:24 | [Mutex] received everything.

2020-10-08 22:59:24 | [Mutex] isItemNotified: received:node:7c11e610-c99c-4f55-badd-53c4e248b1fc:localhost:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:Node d1286d59-600a-4fe2-9de2-41d4bba07c18 :: true

2020-10-08 22:59:24 | [Mutex] waiting for: [received:nodes:024aaa64-c26e-4436-a51e-a83f8d58de1c:localhost]

2020-10-08 22:59:24 | [Mutex] received everything.

2020-10-08 22:59:24 | [Mutex] isItemNotified: received:node:024aaa64-c26e-4436-a51e-a83f8d58de1c:localhost:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:Node d1286d59-600a-4fe2-9de2-41d4bba07c18 :: false

createNodes 1.586s
2020-10-08 22:59:21 |

2020-10-08 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:21 | ------------------------------------

2020-10-08 22:59:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "pubsub#title": "Node d1286d59-600a-4fe2-9de2-41d4bba07c18"
}

2020-10-08 22:59:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-08 22:59:22 | [Mutex] waiting for: [received:nodes:94dfdba9-7d67-4d60-9bdd-45e6d10588af:localhost]

2020-10-08 22:59:22 | [Mutex] waiting for: [received:nodes:94dfdba9-7d67-4d60-9bdd-45e6d10588af:localhost]

2020-10-08 22:59:22 | [Mutex] received everything.

2020-10-08 22:59:22 | [Mutex] isItemNotified: received:node:94dfdba9-7d67-4d60-9bdd-45e6d10588af:localhost:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:Node d1286d59-600a-4fe2-9de2-41d4bba07c18 :: true

createSubnodes 1.037s
2020-10-08 22:59:22 |

2020-10-08 22:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:22 | ------------------------------------

2020-10-08 22:59:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-457d6ed7-6fca-4033-9284-ec727cb0bfdd",
    "pubsub#title": "Node 457d6ed7-6fca-4033-9284-ec727cb0bfdd"
}

2020-10-08 22:59:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-08 22:59:23 | [Mutex] waiting for: [received:nodes:32d7bd6a-921b-49d9-8b58-7d8a4dc1aac4:localhost]

2020-10-08 22:59:23 | [Mutex] received everything.

2020-10-08 22:59:23 | [Mutex] isItemNotified: received:node:32d7bd6a-921b-49d9-8b58-7d8a4dc1aac4:localhost:node-457d6ed7-6fca-4033-9284-ec727cb0bfdd:Node 457d6ed7-6fca-4033-9284-ec727cb0bfdd :: true

deleteNodes 1.032s
2020-10-08 22:59:28 |

2020-10-08 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:28 | ------------------------------------

2020-10-08 22:59:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-457d6ed7-6fca-4033-9284-ec727cb0bfdd"
}

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

2020-10-08 22:59:29 | [Mutex] waiting for: [received:nodes:e6a74fa0-043a-4059-9625-28ac8126da7f:localhost]

2020-10-08 22:59:29 | [Mutex] received everything.

2020-10-08 22:59:29 | [Mutex] isItemNotified: received:node:e6a74fa0-043a-4059-9625-28ac8126da7f:localhost:node-457d6ed7-6fca-4033-9284-ec727cb0bfdd:Node 457d6ed7-6fca-4033-9284-ec727cb0bfdd :: false

deleteSubnodes 1.033s
2020-10-08 22:59:27 |

2020-10-08 22:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:27 | ------------------------------------

2020-10-08 22:59:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18"
}

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

2020-10-08 22:59:28 | [Mutex] waiting for: [received:nodes:fef3a2dc-e054-4d06-b754-fe1d36a5efeb:localhost]

2020-10-08 22:59:28 | [Mutex] received everything.

2020-10-08 22:59:28 | [Mutex] isItemNotified: received:node:fef3a2dc-e054-4d06-b754-fe1d36a5efeb:localhost:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:Node d1286d59-600a-4fe2-9de2-41d4bba07c18 :: false

2020-10-08 22:59:28 | [Mutex] waiting for: [received:nodes:da4f80a2-e275-4203-aa6e-a9b93fbd02e5:localhost]

2020-10-08 22:59:28 | [Mutex] received everything.

2020-10-08 22:59:28 | [Mutex] isItemNotified: received:node:da4f80a2-e275-4203-aa6e-a9b93fbd02e5:localhost:node-d1286d59-600a-4fe2-9de2-41d4bba07c18:Node d1286d59-600a-4fe2-9de2-41d4bba07c18 :: false

publishItemsToNodes 0.055s
2020-10-08 22:59:25 |

2020-10-08 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:25 | ------------------------------------

2020-10-08 22:59:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "entry": "<test>item-bce21a52-daff-4894-b351-1a2c1caa8b45</test>",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45"
}

2020-10-08 22:59:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45"
}

2020-10-08 22:59:25 | [Mutex] received everything.

2020-10-08 22:59:25 | [Mutex] isItemNotified: published:item:notifieditem-bce21a52-daff-4894-b351-1a2c1caa8b45:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2020-10-08 22:59:26 |

2020-10-08 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:26 | ------------------------------------

2020-10-08 22:59:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45"
}

2020-10-08 22:59:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45"
}

2020-10-08 22:59:26 | [Mutex] received everything.

2020-10-08 22:59:26 | [Mutex] isItemNotified: retracted:item:notifieditem-bce21a52-daff-4894-b351-1a2c1caa8b45:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2020-10-08 22:59:25 |

2020-10-08 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:25 | ------------------------------------

2020-10-08 22:59:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45"
}

2020-10-08 22:59:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "item-id": "item-bce21a52-daff-4894-b351-1a2c1caa8b45",
    "item": [
        "<item id=\"item-bce21a52-daff-4894-b351-1a2c1caa8b45\"><test>item-bce21a52-daff-4894-b351-1a2c1caa8b45</test></item>"
    ]
}

2020-10-08 22:59:25 | [Mutex] notify: [retrieved:item:item-bce21a52-daff-4894-b351-1a2c1caa8b45:payload-matches:true:localhost]

2020-10-08 22:59:25 | [Mutex] received everything.

2020-10-08 22:59:25 | [Mutex] isItemNotified: retrieved:item:item-bce21a52-daff-4894-b351-1a2c1caa8b45:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-08 22:59:25 |

2020-10-08 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:25 | ------------------------------------

2020-10-08 22:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-08 22:59:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
        "test",
        "node-457d6ed7-6fca-4033-9284-ec727cb0bfdd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-08 22:59:25 |

2020-10-08 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:25 | ------------------------------------

2020-10-08 22:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d1286d59-600a-4fe2-9de2-41d4bba07c18)"
}

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

subscribeNodes 1.013s
2020-10-08 22:59:24 |

2020-10-08 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:24 | ------------------------------------

2020-10-08 22:59:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2020-10-08 22:59:26 |

2020-10-08 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:59:26 | ------------------------------------

2020-10-08 22:59:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d1286d59-600a-4fe2-9de2-41d4bba07c18",
    "jids": [
        "admin@test-domain.com"
    ]
}

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