Generated by TestNG with ReportNG at 22:13 PDT on Wednesday 21 April 2021
root@b2c2a8eba6e6 / 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.828s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2021-04-21 22:30:26 |

2021-04-21 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:30:26 | ------------------------------------

2021-04-21 22:30:26 | [Mutex] waiting for: [configured:node:node-40875eb6-1279-4443-a929-4c32334367f4:node-34466588-a382-4cbd-b34f-ff3f42ecffd0]

2021-04-21 22:30:26 | [Mutex] received everything.

2021-04-21 22:30:26 | [Mutex] isItemNotified: configured:node:node-40875eb6-1279-4443-a929-4c32334367f4:node-34466588-a382-4cbd-b34f-ff3f42ecffd0 :: true

2021-04-21 22:30:27 | [Mutex] waiting for: [received:nodes:9ffb9d4d-55bf-486c-a6f5-24b8b7cd7d16:localhost]

2021-04-21 22:30:27 | [Mutex] received everything.

2021-04-21 22:30:27 | [Mutex] isItemNotified: received:node:9ffb9d4d-55bf-486c-a6f5-24b8b7cd7d16:localhost:node-40875eb6-1279-4443-a929-4c32334367f4:Node 40875eb6-1279-4443-a929-4c32334367f4 :: true

2021-04-21 22:30:27 | [Mutex] waiting for: [received:nodes:b8bd134b-ffb4-460d-8625-9505aa808d81:localhost]

2021-04-21 22:30:27 | [Mutex] received everything.

2021-04-21 22:30:27 | [Mutex] isItemNotified: received:node:b8bd134b-ffb4-460d-8625-9505aa808d81:localhost:node-40875eb6-1279-4443-a929-4c32334367f4:Node 40875eb6-1279-4443-a929-4c32334367f4 :: false

createNodes 1.502s
2021-04-21 22:30:23 |

2021-04-21 22:30:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:30:23 | ------------------------------------

2021-04-21 22:30:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "pubsub#title": "Node 40875eb6-1279-4443-a929-4c32334367f4"
}

2021-04-21 22:30:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:30:24 | [Mutex] waiting for: [received:nodes:bcfaf704-582b-43f1-8685-1ff972f0dc60:localhost]

2021-04-21 22:30:24 | [Mutex] received everything.

2021-04-21 22:30:24 | [Mutex] isItemNotified: received:node:bcfaf704-582b-43f1-8685-1ff972f0dc60:localhost:node-40875eb6-1279-4443-a929-4c32334367f4:Node 40875eb6-1279-4443-a929-4c32334367f4 :: true

createSubnodes 1.027s
2021-04-21 22:30:24 |

2021-04-21 22:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:30:24 | ------------------------------------

2021-04-21 22:30:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-34466588-a382-4cbd-b34f-ff3f42ecffd0",
    "pubsub#title": "Node 34466588-a382-4cbd-b34f-ff3f42ecffd0"
}

2021-04-21 22:30:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:30:26 | [Mutex] waiting for: [received:nodes:293e22f8-3bdd-48b6-b8b6-62cfd3a22849:localhost]

2021-04-21 22:30:26 | [Mutex] received everything.

2021-04-21 22:30:26 | [Mutex] isItemNotified: received:node:293e22f8-3bdd-48b6-b8b6-62cfd3a22849:localhost:node-34466588-a382-4cbd-b34f-ff3f42ecffd0:Node 34466588-a382-4cbd-b34f-ff3f42ecffd0 :: true

deleteNodes 1.027s
2021-04-21 22:30:30 |

2021-04-21 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:30:30 | ------------------------------------

2021-04-21 22:30:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-34466588-a382-4cbd-b34f-ff3f42ecffd0"
}

2021-04-21 22:30:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:30:31 | [Mutex] waiting for: [received:nodes:cfb98031-e049-41ec-bab5-e463e302d276:localhost]

2021-04-21 22:30:31 | [Mutex] waiting for: [received:nodes:cfb98031-e049-41ec-bab5-e463e302d276:localhost]

2021-04-21 22:30:31 | [Mutex] received everything.

2021-04-21 22:30:31 | [Mutex] isItemNotified: received:node:cfb98031-e049-41ec-bab5-e463e302d276:localhost:node-34466588-a382-4cbd-b34f-ff3f42ecffd0:Node 34466588-a382-4cbd-b34f-ff3f42ecffd0 :: false

deleteSubnodes 1.026s
2021-04-21 22:30:29 |

2021-04-21 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:30:29 | ------------------------------------

2021-04-21 22:30:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4"
}

2021-04-21 22:30:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:30:30 | [Mutex] waiting for: [received:nodes:b6778eac-de6f-4d21-b73a-3ca93062b7dd:localhost]

2021-04-21 22:30:30 | [Mutex] received everything.

2021-04-21 22:30:30 | [Mutex] isItemNotified: received:node:b6778eac-de6f-4d21-b73a-3ca93062b7dd:localhost:node-40875eb6-1279-4443-a929-4c32334367f4:Node 40875eb6-1279-4443-a929-4c32334367f4 :: false

2021-04-21 22:30:30 | [Mutex] waiting for: [received:nodes:9ff2caa4-823a-463f-81b6-890948967717:localhost]

2021-04-21 22:30:30 | [Mutex] received everything.

2021-04-21 22:30:30 | [Mutex] isItemNotified: received:node:9ff2caa4-823a-463f-81b6-890948967717:localhost:node-40875eb6-1279-4443-a929-4c32334367f4:Node 40875eb6-1279-4443-a929-4c32334367f4 :: false

publishItemsToNodes 0.050s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

2021-04-21 22:30:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "entry": "<test>item-bce2028e-9742-43e4-8470-f9dfa28c41bd</test>",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd"
}

2021-04-21 22:30:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd"
}

2021-04-21 22:30:28 | [Mutex] waiting for: [published:item:notifieditem-bce2028e-9742-43e4-8470-f9dfa28c41bd:admin@test-domain.com]

2021-04-21 22:30:28 | [Mutex] received everything.

2021-04-21 22:30:28 | [Mutex] isItemNotified: published:item:notifieditem-bce2028e-9742-43e4-8470-f9dfa28c41bd:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

2021-04-21 22:30:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd"
}

2021-04-21 22:30:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd"
}

2021-04-21 22:30:28 | [Mutex] received everything.

2021-04-21 22:30:28 | [Mutex] isItemNotified: retracted:item:notifieditem-bce2028e-9742-43e4-8470-f9dfa28c41bd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

2021-04-21 22:30:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd"
}

2021-04-21 22:30:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "item-id": "item-bce2028e-9742-43e4-8470-f9dfa28c41bd",
    "item": [
        "<item id=\"item-bce2028e-9742-43e4-8470-f9dfa28c41bd\"><test>item-bce2028e-9742-43e4-8470-f9dfa28c41bd</test></item>"
    ]
}

2021-04-21 22:30:28 | [Mutex] notify: [retrieved:item:item-bce2028e-9742-43e4-8470-f9dfa28c41bd:payload-matches:true:localhost]

2021-04-21 22:30:28 | [Mutex] received everything.

2021-04-21 22:30:28 | [Mutex] isItemNotified: retrieved:item:item-bce2028e-9742-43e4-8470-f9dfa28c41bd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

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

2021-04-21 22:30:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-40875eb6-1279-4443-a929-4c32334367f4",
        "node-34466588-a382-4cbd-b34f-ff3f42ecffd0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

2021-04-21 22:30:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-40875eb6-1279-4443-a929-4c32334367f4)"
}

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

subscribeNodes 1.017s
2021-04-21 22:30:27 |

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

2021-04-21 22:30:27 | ------------------------------------

2021-04-21 22:30:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2021-04-21 22:30:28 |

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

2021-04-21 22:30:28 | ------------------------------------

2021-04-21 22:30:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-40875eb6-1279-4443-a929-4c32334367f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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