Generated by TestNG with ReportNG at 15:45 PDT on Friday 25 September 2020
root@a2ca0c7e65bb / 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.151s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-09-25 16:01:46 |

2020-09-25 16:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:46 | ------------------------------------

2020-09-25 16:01:46 | [Mutex] waiting for: [configured:node:node-5ee11c65-dad3-4421-a004-e4be1274d707:node-2b644fee-42b1-4bff-adfd-e8175901202c]

2020-09-25 16:01:46 | [Mutex] received everything.

2020-09-25 16:01:46 | [Mutex] isItemNotified: configured:node:node-5ee11c65-dad3-4421-a004-e4be1274d707:node-2b644fee-42b1-4bff-adfd-e8175901202c :: true

2020-09-25 16:01:47 | [Mutex] waiting for: [received:nodes:78435db8-fcfe-4199-a0eb-44d338d7e402:localhost]

2020-09-25 16:01:47 | [Mutex] received everything.

2020-09-25 16:01:47 | [Mutex] isItemNotified: received:node:78435db8-fcfe-4199-a0eb-44d338d7e402:localhost:node-5ee11c65-dad3-4421-a004-e4be1274d707:Node 5ee11c65-dad3-4421-a004-e4be1274d707 :: true

2020-09-25 16:01:47 | [Mutex] waiting for: [received:nodes:c8ad5c79-086a-44fa-8776-a803cfee9ba6:localhost]

2020-09-25 16:01:47 | [Mutex] received everything.

2020-09-25 16:01:47 | [Mutex] isItemNotified: received:node:c8ad5c79-086a-44fa-8776-a803cfee9ba6:localhost:node-5ee11c65-dad3-4421-a004-e4be1274d707:Node 5ee11c65-dad3-4421-a004-e4be1274d707 :: false

createNodes 1.774s
2020-09-25 16:01:43 |

2020-09-25 16:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:43 | ------------------------------------

2020-09-25 16:01:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "pubsub#title": "Node 5ee11c65-dad3-4421-a004-e4be1274d707"
}

2020-09-25 16:01:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:01:45 | [Mutex] waiting for: [received:nodes:56a868eb-5144-42e5-be89-121ac5a024d0:localhost]

2020-09-25 16:01:45 | [Mutex] received everything.

2020-09-25 16:01:45 | [Mutex] isItemNotified: received:node:56a868eb-5144-42e5-be89-121ac5a024d0:localhost:node-5ee11c65-dad3-4421-a004-e4be1274d707:Node 5ee11c65-dad3-4421-a004-e4be1274d707 :: true

createSubnodes 1.023s
2020-09-25 16:01:45 |

2020-09-25 16:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:45 | ------------------------------------

2020-09-25 16:01:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2b644fee-42b1-4bff-adfd-e8175901202c",
    "pubsub#title": "Node 2b644fee-42b1-4bff-adfd-e8175901202c"
}

2020-09-25 16:01:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:01:46 | [Mutex] waiting for: [received:nodes:482aa770-d64d-4dc2-8384-49de66b4122c:localhost]

2020-09-25 16:01:46 | [Mutex] received everything.

2020-09-25 16:01:46 | [Mutex] isItemNotified: received:node:482aa770-d64d-4dc2-8384-49de66b4122c:localhost:node-2b644fee-42b1-4bff-adfd-e8175901202c:Node 2b644fee-42b1-4bff-adfd-e8175901202c :: true

deleteNodes 1.017s
2020-09-25 16:01:50 |

2020-09-25 16:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:50 | ------------------------------------

2020-09-25 16:01:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2b644fee-42b1-4bff-adfd-e8175901202c"
}

2020-09-25 16:01:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:01:51 | [Mutex] waiting for: [received:nodes:110f59c3-e174-4d39-8912-9d15d921e709:localhost]

2020-09-25 16:01:51 | [Mutex] received everything.

2020-09-25 16:01:51 | [Mutex] isItemNotified: received:node:110f59c3-e174-4d39-8912-9d15d921e709:localhost:node-2b644fee-42b1-4bff-adfd-e8175901202c:Node 2b644fee-42b1-4bff-adfd-e8175901202c :: false

deleteSubnodes 1.025s
2020-09-25 16:01:49 |

2020-09-25 16:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:49 | ------------------------------------

2020-09-25 16:01:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707"
}

2020-09-25 16:01:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:01:50 | [Mutex] waiting for: [received:nodes:d24c05de-23ee-42f6-ab0f-c9b67921396b:localhost]

2020-09-25 16:01:50 | [Mutex] received everything.

2020-09-25 16:01:50 | [Mutex] isItemNotified: received:node:d24c05de-23ee-42f6-ab0f-c9b67921396b:localhost:node-5ee11c65-dad3-4421-a004-e4be1274d707:Node 5ee11c65-dad3-4421-a004-e4be1274d707 :: false

2020-09-25 16:01:50 | [Mutex] waiting for: [received:nodes:d2bf3672-25ad-4398-9cf1-f545a2c7465b:localhost]

2020-09-25 16:01:50 | [Mutex] received everything.

2020-09-25 16:01:50 | [Mutex] isItemNotified: received:node:d2bf3672-25ad-4398-9cf1-f545a2c7465b:localhost:node-5ee11c65-dad3-4421-a004-e4be1274d707:Node 5ee11c65-dad3-4421-a004-e4be1274d707 :: false

publishItemsToNodes 0.025s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "entry": "<test>item-cf524041-c188-40ee-959a-3f58d604da22</test>",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22"
}

2020-09-25 16:01:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22"
}

2020-09-25 16:01:48 | [Mutex] waiting for: [published:item:notifieditem-cf524041-c188-40ee-959a-3f58d604da22:admin@test-domain.com]

2020-09-25 16:01:48 | [Mutex] received everything.

2020-09-25 16:01:48 | [Mutex] isItemNotified: published:item:notifieditem-cf524041-c188-40ee-959a-3f58d604da22:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22"
}

2020-09-25 16:01:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22"
}

2020-09-25 16:01:48 | [Mutex] received everything.

2020-09-25 16:01:48 | [Mutex] isItemNotified: retracted:item:notifieditem-cf524041-c188-40ee-959a-3f58d604da22:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22"
}

2020-09-25 16:01:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "item-id": "item-cf524041-c188-40ee-959a-3f58d604da22",
    "item": [
        "<item id=\"item-cf524041-c188-40ee-959a-3f58d604da22\"><test>item-cf524041-c188-40ee-959a-3f58d604da22</test></item>"
    ]
}

2020-09-25 16:01:48 | [Mutex] notify: [retrieved:item:item-cf524041-c188-40ee-959a-3f58d604da22:payload-matches:true:localhost]

2020-09-25 16:01:48 | [Mutex] received everything.

2020-09-25 16:01:48 | [Mutex] isItemNotified: retrieved:item:item-cf524041-c188-40ee-959a-3f58d604da22:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-25 16:01:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5ee11c65-dad3-4421-a004-e4be1274d707",
        "node-2b644fee-42b1-4bff-adfd-e8175901202c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5ee11c65-dad3-4421-a004-e4be1274d707)"
}

2020-09-25 16:01:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-09-25 16:01:47 |

2020-09-25 16:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:47 | ------------------------------------

2020-09-25 16:01:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:01:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-25 16:01:48 |

2020-09-25 16:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:01:48 | ------------------------------------

2020-09-25 16:01:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5ee11c65-dad3-4421-a004-e4be1274d707",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:01:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}