Generated by TestNG with ReportNG at 22:28 PDT on Monday 13 September 2021
root@f29ef40080b5 / 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.127s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-09-13 22:42:14 |

2021-09-13 22:42:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:14 | ------------------------------------

2021-09-13 22:42:14 | [Mutex] waiting for: [configured:node:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:node-20e56960-141c-406a-b758-ccf139051dd4]

2021-09-13 22:42:14 | [Mutex] received everything.

2021-09-13 22:42:14 | [Mutex] isItemNotified: configured:node:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:node-20e56960-141c-406a-b758-ccf139051dd4 :: true

2021-09-13 22:42:15 | [Mutex] waiting for: [received:nodes:92031b66-8eb5-49b6-ad9b-bb29b6d30048:localhost]

2021-09-13 22:42:15 | [Mutex] waiting for: [received:nodes:92031b66-8eb5-49b6-ad9b-bb29b6d30048:localhost]

2021-09-13 22:42:15 | [Mutex] received everything.

2021-09-13 22:42:15 | [Mutex] isItemNotified: received:node:92031b66-8eb5-49b6-ad9b-bb29b6d30048:localhost:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925 :: true

2021-09-13 22:42:15 | [Mutex] waiting for: [received:nodes:1053fc2c-cb87-48fd-a7fb-6e9c4e32edbc:localhost]

2021-09-13 22:42:15 | [Mutex] received everything.

2021-09-13 22:42:15 | [Mutex] isItemNotified: received:node:1053fc2c-cb87-48fd-a7fb-6e9c4e32edbc:localhost:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925 :: false

createNodes 1.740s
2021-09-13 22:42:12 |

2021-09-13 22:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:12 | ------------------------------------

2021-09-13 22:42:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "pubsub#title": "Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925"
}

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

2021-09-13 22:42:13 | [Mutex] waiting for: [received:nodes:e579cf0a-1b63-4480-b3c6-0f10ad5dfb9a:localhost]

2021-09-13 22:42:13 | [Mutex] received everything.

2021-09-13 22:42:13 | [Mutex] isItemNotified: received:node:e579cf0a-1b63-4480-b3c6-0f10ad5dfb9a:localhost:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925 :: true

createSubnodes 1.031s
2021-09-13 22:42:13 |

2021-09-13 22:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:13 | ------------------------------------

2021-09-13 22:42:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-20e56960-141c-406a-b758-ccf139051dd4",
    "pubsub#title": "Node 20e56960-141c-406a-b758-ccf139051dd4"
}

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

2021-09-13 22:42:14 | [Mutex] waiting for: [received:nodes:4252ecc3-6496-4d1d-b6ed-3759304ded89:localhost]

2021-09-13 22:42:14 | [Mutex] received everything.

2021-09-13 22:42:14 | [Mutex] isItemNotified: received:node:4252ecc3-6496-4d1d-b6ed-3759304ded89:localhost:node-20e56960-141c-406a-b758-ccf139051dd4:Node 20e56960-141c-406a-b758-ccf139051dd4 :: true

deleteNodes 1.026s
2021-09-13 22:42:19 |

2021-09-13 22:42:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:19 | ------------------------------------

2021-09-13 22:42:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20e56960-141c-406a-b758-ccf139051dd4"
}

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

2021-09-13 22:42:20 | [Mutex] waiting for: [received:nodes:5cf254bd-aae2-4c56-b56d-d9622db9876b:localhost]

2021-09-13 22:42:20 | [Mutex] received everything.

2021-09-13 22:42:20 | [Mutex] isItemNotified: received:node:5cf254bd-aae2-4c56-b56d-d9622db9876b:localhost:node-20e56960-141c-406a-b758-ccf139051dd4:Node 20e56960-141c-406a-b758-ccf139051dd4 :: false

deleteSubnodes 1.033s
2021-09-13 22:42:18 |

2021-09-13 22:42:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:18 | ------------------------------------

2021-09-13 22:42:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925"
}

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

2021-09-13 22:42:19 | [Mutex] waiting for: [received:nodes:6f6a351a-6d7f-4ada-a9b5-148ab1a0795e:localhost]

2021-09-13 22:42:19 | [Mutex] waiting for: [received:nodes:6f6a351a-6d7f-4ada-a9b5-148ab1a0795e:localhost]

2021-09-13 22:42:19 | [Mutex] waiting for: [received:nodes:6f6a351a-6d7f-4ada-a9b5-148ab1a0795e:localhost]

2021-09-13 22:42:19 | [Mutex] received everything.

2021-09-13 22:42:19 | [Mutex] isItemNotified: received:node:6f6a351a-6d7f-4ada-a9b5-148ab1a0795e:localhost:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925 :: false

2021-09-13 22:42:19 | [Mutex] waiting for: [received:nodes:6682c362-29ff-4f19-92c1-83b8504fcf77:localhost]

2021-09-13 22:42:19 | [Mutex] received everything.

2021-09-13 22:42:19 | [Mutex] isItemNotified: received:node:6682c362-29ff-4f19-92c1-83b8504fcf77:localhost:node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925:Node e1193ac0-afbc-4d4e-9566-bb3ea5f18925 :: false

publishItemsToNodes 0.058s
2021-09-13 22:42:16 |

2021-09-13 22:42:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:16 | ------------------------------------

2021-09-13 22:42:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "entry": "<test>item-883e84c3-7641-40d1-86c1-f1e7015bd13b</test>",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b"
}

2021-09-13 22:42:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b"
}

2021-09-13 22:42:17 | [Mutex] waiting for: [published:item:notifieditem-883e84c3-7641-40d1-86c1-f1e7015bd13b:admin@test-domain.com]

2021-09-13 22:42:17 | [Mutex] received everything.

2021-09-13 22:42:17 | [Mutex] isItemNotified: published:item:notifieditem-883e84c3-7641-40d1-86c1-f1e7015bd13b:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-09-13 22:42:17 |

2021-09-13 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:17 | ------------------------------------

2021-09-13 22:42:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b"
}

2021-09-13 22:42:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b"
}

2021-09-13 22:42:17 | [Mutex] waiting for: [retracted:item:notifieditem-883e84c3-7641-40d1-86c1-f1e7015bd13b:admin@test-domain.com]

2021-09-13 22:42:17 | [Mutex] received everything.

2021-09-13 22:42:17 | [Mutex] isItemNotified: retracted:item:notifieditem-883e84c3-7641-40d1-86c1-f1e7015bd13b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2021-09-13 22:42:17 |

2021-09-13 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:17 | ------------------------------------

2021-09-13 22:42:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b"
}

2021-09-13 22:42:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "item-id": "item-883e84c3-7641-40d1-86c1-f1e7015bd13b",
    "item": [
        "<item id=\"item-883e84c3-7641-40d1-86c1-f1e7015bd13b\"><test>item-883e84c3-7641-40d1-86c1-f1e7015bd13b</test></item>"
    ]
}

2021-09-13 22:42:17 | [Mutex] notify: [retrieved:item:item-883e84c3-7641-40d1-86c1-f1e7015bd13b:payload-matches:true:localhost]

2021-09-13 22:42:17 | [Mutex] received everything.

2021-09-13 22:42:17 | [Mutex] isItemNotified: retrieved:item:item-883e84c3-7641-40d1-86c1-f1e7015bd13b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-09-13 22:42:17 |

2021-09-13 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:17 | ------------------------------------

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

2021-09-13 22:42:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
        "node-20e56960-141c-406a-b758-ccf139051dd4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-09-13 22:42:17 |

2021-09-13 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:17 | ------------------------------------

2021-09-13 22:42:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925)"
}

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

subscribeNodes 1.019s
2021-09-13 22:42:15 |

2021-09-13 22:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:15 | ------------------------------------

2021-09-13 22:42:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.066s
2021-09-13 22:42:17 |

2021-09-13 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:42:17 | ------------------------------------

2021-09-13 22:42:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e1193ac0-afbc-4d4e-9566-bb3ea5f18925",
    "jids": [
        "admin@test-domain.com"
    ]
}

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