Generated by TestNG with ReportNG at 21:13 PST on Monday 28 December 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 : 8.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2020-12-28 21:28:37 |

2020-12-28 21:28:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:37 | ------------------------------------

2020-12-28 21:28:37 | [Mutex] waiting for: [configured:node:node-dfd9c465-c24d-48ec-825f-85ff09045b71:node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc]

2020-12-28 21:28:37 | [Mutex] received everything.

2020-12-28 21:28:37 | [Mutex] isItemNotified: configured:node:node-dfd9c465-c24d-48ec-825f-85ff09045b71:node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc :: true

2020-12-28 21:28:38 | [Mutex] waiting for: [received:nodes:ca886792-11c6-40e6-9914-692f30d91a23:localhost]

2020-12-28 21:28:38 | [Mutex] received everything.

2020-12-28 21:28:38 | [Mutex] isItemNotified: received:node:ca886792-11c6-40e6-9914-692f30d91a23:localhost:node-dfd9c465-c24d-48ec-825f-85ff09045b71:Node dfd9c465-c24d-48ec-825f-85ff09045b71 :: true

2020-12-28 21:28:38 | [Mutex] waiting for: [received:nodes:1c617c0c-621b-4937-b480-64c79f9af202:localhost]

2020-12-28 21:28:38 | [Mutex] received everything.

2020-12-28 21:28:38 | [Mutex] isItemNotified: received:node:1c617c0c-621b-4937-b480-64c79f9af202:localhost:node-dfd9c465-c24d-48ec-825f-85ff09045b71:Node dfd9c465-c24d-48ec-825f-85ff09045b71 :: false

createNodes 1.609s
2020-12-28 21:28:35 |

2020-12-28 21:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:35 | ------------------------------------

2020-12-28 21:28:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "pubsub#title": "Node dfd9c465-c24d-48ec-825f-85ff09045b71"
}

2020-12-28 21:28:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:28:36 | [Mutex] waiting for: [received:nodes:59d97f38-c6cb-43ec-ace7-d9cbfca38464:localhost]

2020-12-28 21:28:36 | [Mutex] received everything.

2020-12-28 21:28:36 | [Mutex] isItemNotified: received:node:59d97f38-c6cb-43ec-ace7-d9cbfca38464:localhost:node-dfd9c465-c24d-48ec-825f-85ff09045b71:Node dfd9c465-c24d-48ec-825f-85ff09045b71 :: true

createSubnodes 1.023s
2020-12-28 21:28:36 |

2020-12-28 21:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:36 | ------------------------------------

2020-12-28 21:28:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc",
    "pubsub#title": "Node 9e9e2e9c-5a56-4b94-9440-3a41bf846ccc"
}

2020-12-28 21:28:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:28:37 | [Mutex] waiting for: [received:nodes:846cf5c6-880d-44f9-8834-0a06ea996355:localhost]

2020-12-28 21:28:37 | [Mutex] received everything.

2020-12-28 21:28:37 | [Mutex] isItemNotified: received:node:846cf5c6-880d-44f9-8834-0a06ea996355:localhost:node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc:Node 9e9e2e9c-5a56-4b94-9440-3a41bf846ccc :: true

deleteNodes 1.020s
2020-12-28 21:28:42 |

2020-12-28 21:28:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:42 | ------------------------------------

2020-12-28 21:28:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc"
}

2020-12-28 21:28:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:28:43 | [Mutex] waiting for: [received:nodes:a6c43f93-a3cb-489b-814e-8188a304f702:localhost]

2020-12-28 21:28:43 | [Mutex] received everything.

2020-12-28 21:28:43 | [Mutex] isItemNotified: received:node:a6c43f93-a3cb-489b-814e-8188a304f702:localhost:node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc:Node 9e9e2e9c-5a56-4b94-9440-3a41bf846ccc :: false

deleteSubnodes 1.023s
2020-12-28 21:28:41 |

2020-12-28 21:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:41 | ------------------------------------

2020-12-28 21:28:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71"
}

2020-12-28 21:28:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:28:42 | [Mutex] waiting for: [received:nodes:35ba4eaa-e012-4ace-97b8-ad33f7e45f0f:localhost]

2020-12-28 21:28:42 | [Mutex] received everything.

2020-12-28 21:28:42 | [Mutex] isItemNotified: received:node:35ba4eaa-e012-4ace-97b8-ad33f7e45f0f:localhost:node-dfd9c465-c24d-48ec-825f-85ff09045b71:Node dfd9c465-c24d-48ec-825f-85ff09045b71 :: false

2020-12-28 21:28:42 | [Mutex] waiting for: [received:nodes:eb7a3e36-63f6-4dea-b837-2c7a685aae96:localhost]

2020-12-28 21:28:42 | [Mutex] received everything.

2020-12-28 21:28:42 | [Mutex] isItemNotified: received:node:eb7a3e36-63f6-4dea-b837-2c7a685aae96:localhost:node-dfd9c465-c24d-48ec-825f-85ff09045b71:Node dfd9c465-c24d-48ec-825f-85ff09045b71 :: false

publishItemsToNodes 0.042s
2020-12-28 21:28:39 |

2020-12-28 21:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:39 | ------------------------------------

2020-12-28 21:28:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "entry": "<test>item-f4311826-ae1c-40e8-9ad5-7d779a24cb58</test>",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58"
}

2020-12-28 21:28:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58"
}

2020-12-28 21:28:39 | [Mutex] waiting for: [published:item:notifieditem-f4311826-ae1c-40e8-9ad5-7d779a24cb58:admin@test-domain.com]

2020-12-28 21:28:39 | [Mutex] received everything.

2020-12-28 21:28:39 | [Mutex] isItemNotified: published:item:notifieditem-f4311826-ae1c-40e8-9ad5-7d779a24cb58:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-12-28 21:28:40 |

2020-12-28 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:40 | ------------------------------------

2020-12-28 21:28:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58"
}

2020-12-28 21:28:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58"
}

2020-12-28 21:28:40 | [Mutex] received everything.

2020-12-28 21:28:40 | [Mutex] isItemNotified: retracted:item:notifieditem-f4311826-ae1c-40e8-9ad5-7d779a24cb58:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-12-28 21:28:39 |

2020-12-28 21:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:39 | ------------------------------------

2020-12-28 21:28:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58"
}

2020-12-28 21:28:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "item-id": "item-f4311826-ae1c-40e8-9ad5-7d779a24cb58",
    "item": [
        "<item id=\"item-f4311826-ae1c-40e8-9ad5-7d779a24cb58\"><test>item-f4311826-ae1c-40e8-9ad5-7d779a24cb58</test></item>"
    ]
}

2020-12-28 21:28:39 | [Mutex] notify: [retrieved:item:item-f4311826-ae1c-40e8-9ad5-7d779a24cb58:payload-matches:true:localhost]

2020-12-28 21:28:39 | [Mutex] received everything.

2020-12-28 21:28:39 | [Mutex] isItemNotified: retrieved:item:item-f4311826-ae1c-40e8-9ad5-7d779a24cb58:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-12-28 21:28:39 |

2020-12-28 21:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:39 | ------------------------------------

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

2020-12-28 21:28:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9e9e2e9c-5a56-4b94-9440-3a41bf846ccc",
        "test",
        "node-dfd9c465-c24d-48ec-825f-85ff09045b71"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-12-28 21:28:39 |

2020-12-28 21:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:39 | ------------------------------------

2020-12-28 21:28:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dfd9c465-c24d-48ec-825f-85ff09045b71)"
}

2020-12-28 21:28:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-12-28 21:28:38 |

2020-12-28 21:28:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:38 | ------------------------------------

2020-12-28 21:28:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:28:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2020-12-28 21:28:40 |

2020-12-28 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:28:40 | ------------------------------------

2020-12-28 21:28:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dfd9c465-c24d-48ec-825f-85ff09045b71",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:28:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}