Generated by TestNG with ReportNG at 21:13 PST on Wednesday 27 January 2021
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.061s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-01-27 21:28:04 |

2021-01-27 21:28:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:04 | ------------------------------------

2021-01-27 21:28:04 | [Mutex] waiting for: [configured:node:node-c9909029-0338-4333-8fc4-dd19bfec8d60:node-f9ad893c-7934-4532-9b89-706e5ab8c586]

2021-01-27 21:28:05 | [Mutex] received everything.

2021-01-27 21:28:05 | [Mutex] isItemNotified: configured:node:node-c9909029-0338-4333-8fc4-dd19bfec8d60:node-f9ad893c-7934-4532-9b89-706e5ab8c586 :: true

2021-01-27 21:28:06 | [Mutex] waiting for: [received:nodes:0b9bdc2f-1cc3-4b4e-9dcb-87262341e443:localhost]

2021-01-27 21:28:06 | [Mutex] received everything.

2021-01-27 21:28:06 | [Mutex] isItemNotified: received:node:0b9bdc2f-1cc3-4b4e-9dcb-87262341e443:localhost:node-c9909029-0338-4333-8fc4-dd19bfec8d60:Node c9909029-0338-4333-8fc4-dd19bfec8d60 :: true

2021-01-27 21:28:06 | [Mutex] waiting for: [received:nodes:0224690d-caab-429c-9043-effaa095d46c:localhost]

2021-01-27 21:28:06 | [Mutex] received everything.

2021-01-27 21:28:06 | [Mutex] isItemNotified: received:node:0224690d-caab-429c-9043-effaa095d46c:localhost:node-c9909029-0338-4333-8fc4-dd19bfec8d60:Node c9909029-0338-4333-8fc4-dd19bfec8d60 :: false

createNodes 1.703s
2021-01-27 21:28:02 |

2021-01-27 21:28:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:02 | ------------------------------------

2021-01-27 21:28:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "pubsub#title": "Node c9909029-0338-4333-8fc4-dd19bfec8d60"
}

2021-01-27 21:28:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:28:03 | [Mutex] waiting for: [received:nodes:45799d4e-f13b-45e2-8137-37810ecd0f3a:localhost]

2021-01-27 21:28:03 | [Mutex] received everything.

2021-01-27 21:28:03 | [Mutex] isItemNotified: received:node:45799d4e-f13b-45e2-8137-37810ecd0f3a:localhost:node-c9909029-0338-4333-8fc4-dd19bfec8d60:Node c9909029-0338-4333-8fc4-dd19bfec8d60 :: true

createSubnodes 1.025s
2021-01-27 21:28:03 |

2021-01-27 21:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:03 | ------------------------------------

2021-01-27 21:28:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f9ad893c-7934-4532-9b89-706e5ab8c586",
    "pubsub#title": "Node f9ad893c-7934-4532-9b89-706e5ab8c586"
}

2021-01-27 21:28:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:28:04 | [Mutex] waiting for: [received:nodes:7f2002a7-42a8-4612-a497-a3fe6cf78a92:localhost]

2021-01-27 21:28:04 | [Mutex] waiting for: [received:nodes:7f2002a7-42a8-4612-a497-a3fe6cf78a92:localhost]

2021-01-27 21:28:04 | [Mutex] waiting for: [received:nodes:7f2002a7-42a8-4612-a497-a3fe6cf78a92:localhost]

2021-01-27 21:28:04 | [Mutex] received everything.

2021-01-27 21:28:04 | [Mutex] isItemNotified: received:node:7f2002a7-42a8-4612-a497-a3fe6cf78a92:localhost:node-f9ad893c-7934-4532-9b89-706e5ab8c586:Node f9ad893c-7934-4532-9b89-706e5ab8c586 :: true

deleteNodes 1.025s
2021-01-27 21:28:09 |

2021-01-27 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:09 | ------------------------------------

2021-01-27 21:28:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f9ad893c-7934-4532-9b89-706e5ab8c586"
}

2021-01-27 21:28:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:28:10 | [Mutex] waiting for: [received:nodes:2be22278-e4dc-45b3-9c31-888f5a9f299a:localhost]

2021-01-27 21:28:10 | [Mutex] received everything.

2021-01-27 21:28:10 | [Mutex] isItemNotified: received:node:2be22278-e4dc-45b3-9c31-888f5a9f299a:localhost:node-f9ad893c-7934-4532-9b89-706e5ab8c586:Node f9ad893c-7934-4532-9b89-706e5ab8c586 :: false

deleteSubnodes 1.045s
2021-01-27 21:28:08 |

2021-01-27 21:28:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:08 | ------------------------------------

2021-01-27 21:28:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60"
}

2021-01-27 21:28:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:28:09 | [Mutex] waiting for: [received:nodes:58c59cc2-b236-40d1-a67b-cdaa402d64b5:localhost]

2021-01-27 21:28:09 | [Mutex] received everything.

2021-01-27 21:28:09 | [Mutex] isItemNotified: received:node:58c59cc2-b236-40d1-a67b-cdaa402d64b5:localhost:node-c9909029-0338-4333-8fc4-dd19bfec8d60:Node c9909029-0338-4333-8fc4-dd19bfec8d60 :: false

2021-01-27 21:28:09 | [Mutex] waiting for: [received:nodes:061eebc1-8729-4592-9a78-289c592ed4d1:localhost]

2021-01-27 21:28:09 | [Mutex] received everything.

2021-01-27 21:28:09 | [Mutex] isItemNotified: received:node:061eebc1-8729-4592-9a78-289c592ed4d1:localhost:node-c9909029-0338-4333-8fc4-dd19bfec8d60:Node c9909029-0338-4333-8fc4-dd19bfec8d60 :: false

publishItemsToNodes 0.064s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "entry": "<test>item-dcad92d4-147a-45e3-83ed-f8832a968fff</test>",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff"
}

2021-01-27 21:28:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff"
}

2021-01-27 21:28:07 | [Mutex] waiting for: [published:item:notifieditem-dcad92d4-147a-45e3-83ed-f8832a968fff:admin@test-domain.com]

2021-01-27 21:28:07 | [Mutex] received everything.

2021-01-27 21:28:07 | [Mutex] isItemNotified: published:item:notifieditem-dcad92d4-147a-45e3-83ed-f8832a968fff:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff"
}

2021-01-27 21:28:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff"
}

2021-01-27 21:28:07 | [Mutex] received everything.

2021-01-27 21:28:07 | [Mutex] isItemNotified: retracted:item:notifieditem-dcad92d4-147a-45e3-83ed-f8832a968fff:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff"
}

2021-01-27 21:28:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "item-id": "item-dcad92d4-147a-45e3-83ed-f8832a968fff",
    "item": [
        "<item id=\"item-dcad92d4-147a-45e3-83ed-f8832a968fff\"><test>item-dcad92d4-147a-45e3-83ed-f8832a968fff</test></item>"
    ]
}

2021-01-27 21:28:07 | [Mutex] notify: [retrieved:item:item-dcad92d4-147a-45e3-83ed-f8832a968fff:payload-matches:true:localhost]

2021-01-27 21:28:07 | [Mutex] received everything.

2021-01-27 21:28:07 | [Mutex] isItemNotified: retrieved:item:item-dcad92d4-147a-45e3-83ed-f8832a968fff:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 21:28:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f9ad893c-7934-4532-9b89-706e5ab8c586",
        "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c9909029-0338-4333-8fc4-dd19bfec8d60)"
}

2021-01-27 21:28:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-01-27 21:28:06 |

2021-01-27 21:28:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:06 | ------------------------------------

2021-01-27 21:28:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 21:28:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.070s
2021-01-27 21:28:07 |

2021-01-27 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:28:07 | ------------------------------------

2021-01-27 21:28:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c9909029-0338-4333-8fc4-dd19bfec8d60",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 21:28:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}