Generated by TestNG with ReportNG at 21:51 PST on Thursday 28 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.331s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-01-28 22:09:35 |

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

2021-01-28 22:09:35 | ------------------------------------

2021-01-28 22:09:35 | [Mutex] waiting for: [configured:node:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:node-293e73b7-0c8c-4308-b34d-ef167ba1d78a]

2021-01-28 22:09:35 | [Mutex] received everything.

2021-01-28 22:09:35 | [Mutex] isItemNotified: configured:node:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:node-293e73b7-0c8c-4308-b34d-ef167ba1d78a :: true

2021-01-28 22:09:36 | [Mutex] waiting for: [received:nodes:c6cffa93-f3f4-4c8d-82fb-9705bbfde086:localhost]

2021-01-28 22:09:36 | [Mutex] received everything.

2021-01-28 22:09:36 | [Mutex] isItemNotified: received:node:c6cffa93-f3f4-4c8d-82fb-9705bbfde086:localhost:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2 :: true

2021-01-28 22:09:36 | [Mutex] waiting for: [received:nodes:d90490fd-0b03-47fa-9e8b-2a0012151cc8:localhost]

2021-01-28 22:09:36 | [Mutex] waiting for: [received:nodes:d90490fd-0b03-47fa-9e8b-2a0012151cc8:localhost]

2021-01-28 22:09:36 | [Mutex] received everything.

2021-01-28 22:09:36 | [Mutex] isItemNotified: received:node:d90490fd-0b03-47fa-9e8b-2a0012151cc8:localhost:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2 :: false

createNodes 1.757s
2021-01-28 22:09:32 |

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

2021-01-28 22:09:32 | ------------------------------------

2021-01-28 22:09:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "pubsub#title": "Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2"
}

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

2021-01-28 22:09:34 | [Mutex] waiting for: [received:nodes:03528d7d-27c4-4508-b018-1fdfb6cb1ab2:localhost]

2021-01-28 22:09:34 | [Mutex] received everything.

2021-01-28 22:09:34 | [Mutex] isItemNotified: received:node:03528d7d-27c4-4508-b018-1fdfb6cb1ab2:localhost:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2 :: true

createSubnodes 1.028s
2021-01-28 22:09:34 |

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

2021-01-28 22:09:34 | ------------------------------------

2021-01-28 22:09:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-293e73b7-0c8c-4308-b34d-ef167ba1d78a",
    "pubsub#title": "Node 293e73b7-0c8c-4308-b34d-ef167ba1d78a"
}

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

2021-01-28 22:09:35 | [Mutex] waiting for: [received:nodes:6cc57a4b-bff2-40ea-8fc1-db79b81050d5:localhost]

2021-01-28 22:09:35 | [Mutex] received everything.

2021-01-28 22:09:35 | [Mutex] isItemNotified: received:node:6cc57a4b-bff2-40ea-8fc1-db79b81050d5:localhost:node-293e73b7-0c8c-4308-b34d-ef167ba1d78a:Node 293e73b7-0c8c-4308-b34d-ef167ba1d78a :: true

deleteNodes 1.027s
2021-01-28 22:09:39 |

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

2021-01-28 22:09:39 | ------------------------------------

2021-01-28 22:09:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-293e73b7-0c8c-4308-b34d-ef167ba1d78a"
}

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

2021-01-28 22:09:40 | [Mutex] waiting for: [received:nodes:60caf67f-6535-41d9-88de-59058710f6ee:localhost]

2021-01-28 22:09:40 | [Mutex] waiting for: [received:nodes:60caf67f-6535-41d9-88de-59058710f6ee:localhost]

2021-01-28 22:09:40 | [Mutex] received everything.

2021-01-28 22:09:40 | [Mutex] isItemNotified: received:node:60caf67f-6535-41d9-88de-59058710f6ee:localhost:node-293e73b7-0c8c-4308-b34d-ef167ba1d78a:Node 293e73b7-0c8c-4308-b34d-ef167ba1d78a :: false

deleteSubnodes 1.040s
2021-01-28 22:09:38 |

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

2021-01-28 22:09:38 | ------------------------------------

2021-01-28 22:09:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2"
}

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

2021-01-28 22:09:39 | [Mutex] waiting for: [received:nodes:169e0935-fbc8-4b28-92f0-d570e482b986:localhost]

2021-01-28 22:09:39 | [Mutex] received everything.

2021-01-28 22:09:39 | [Mutex] isItemNotified: received:node:169e0935-fbc8-4b28-92f0-d570e482b986:localhost:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2 :: false

2021-01-28 22:09:39 | [Mutex] waiting for: [received:nodes:d95a1929-5e28-4e38-b2c4-48205de56620:localhost]

2021-01-28 22:09:39 | [Mutex] received everything.

2021-01-28 22:09:39 | [Mutex] isItemNotified: received:node:d95a1929-5e28-4e38-b2c4-48205de56620:localhost:node-1b7063c5-acd7-4b20-a174-5fa0722e62a2:Node 1b7063c5-acd7-4b20-a174-5fa0722e62a2 :: false

publishItemsToNodes 0.081s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

2021-01-28 22:09:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "entry": "<test>item-cd9d7093-220a-42f1-944b-c2addb3bdf5c</test>",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c"
}

2021-01-28 22:09:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c"
}

2021-01-28 22:09:37 | [Mutex] waiting for: [published:item:notifieditem-cd9d7093-220a-42f1-944b-c2addb3bdf5c:admin@test-domain.com]

2021-01-28 22:09:37 | [Mutex] received everything.

2021-01-28 22:09:37 | [Mutex] isItemNotified: published:item:notifieditem-cd9d7093-220a-42f1-944b-c2addb3bdf5c:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

2021-01-28 22:09:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c"
}

2021-01-28 22:09:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c"
}

2021-01-28 22:09:37 | [Mutex] received everything.

2021-01-28 22:09:37 | [Mutex] isItemNotified: retracted:item:notifieditem-cd9d7093-220a-42f1-944b-c2addb3bdf5c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

2021-01-28 22:09:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c"
}

2021-01-28 22:09:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "item-id": "item-cd9d7093-220a-42f1-944b-c2addb3bdf5c",
    "item": [
        "<item id=\"item-cd9d7093-220a-42f1-944b-c2addb3bdf5c\"><test>item-cd9d7093-220a-42f1-944b-c2addb3bdf5c</test></item>"
    ]
}

2021-01-28 22:09:37 | [Mutex] notify: [retrieved:item:item-cd9d7093-220a-42f1-944b-c2addb3bdf5c:payload-matches:true:localhost]

2021-01-28 22:09:37 | [Mutex] received everything.

2021-01-28 22:09:37 | [Mutex] isItemNotified: retrieved:item:item-cd9d7093-220a-42f1-944b-c2addb3bdf5c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

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

2021-01-28 22:09:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
        "node-293e73b7-0c8c-4308-b34d-ef167ba1d78a",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

2021-01-28 22:09:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1b7063c5-acd7-4b20-a174-5fa0722e62a2)"
}

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

subscribeNodes 1.017s
2021-01-28 22:09:36 |

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

2021-01-28 22:09:36 | ------------------------------------

2021-01-28 22:09:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.143s
2021-01-28 22:09:37 |

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

2021-01-28 22:09:37 | ------------------------------------

2021-01-28 22:09:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1b7063c5-acd7-4b20-a174-5fa0722e62a2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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