Generated by TestNG with ReportNG at 22:42 PDT on Tuesday 27 October 2020
root@eaa73862192b / 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.135s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2020-10-27 22:58:22 |

2020-10-27 22:58:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:22 | ------------------------------------

2020-10-27 22:58:22 | [Mutex] waiting for: [configured:node:node-31862e70-e571-4a94-937d-ff1a65eb3ced:node-dd2c063e-b372-4264-b57d-782545cd754f]

2020-10-27 22:58:22 | [Mutex] received everything.

2020-10-27 22:58:22 | [Mutex] isItemNotified: configured:node:node-31862e70-e571-4a94-937d-ff1a65eb3ced:node-dd2c063e-b372-4264-b57d-782545cd754f :: true

2020-10-27 22:58:23 | [Mutex] waiting for: [received:nodes:211d911c-475d-477e-88c8-4a0e6a25f96e:localhost]

2020-10-27 22:58:23 | [Mutex] received everything.

2020-10-27 22:58:23 | [Mutex] isItemNotified: received:node:211d911c-475d-477e-88c8-4a0e6a25f96e:localhost:node-31862e70-e571-4a94-937d-ff1a65eb3ced:Node 31862e70-e571-4a94-937d-ff1a65eb3ced :: true

2020-10-27 22:58:23 | [Mutex] waiting for: [received:nodes:7d213324-0460-4ce5-a7bd-29fbf2abfe8a:localhost]

2020-10-27 22:58:23 | [Mutex] waiting for: [received:nodes:7d213324-0460-4ce5-a7bd-29fbf2abfe8a:localhost]

2020-10-27 22:58:23 | [Mutex] received everything.

2020-10-27 22:58:23 | [Mutex] isItemNotified: received:node:7d213324-0460-4ce5-a7bd-29fbf2abfe8a:localhost:node-31862e70-e571-4a94-937d-ff1a65eb3ced:Node 31862e70-e571-4a94-937d-ff1a65eb3ced :: false

createNodes 1.740s
2020-10-27 22:58:19 |

2020-10-27 22:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:19 | ------------------------------------

2020-10-27 22:58:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "pubsub#title": "Node 31862e70-e571-4a94-937d-ff1a65eb3ced"
}

2020-10-27 22:58:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:58:21 | [Mutex] waiting for: [received:nodes:c6c94999-850d-4fa1-b43d-9748e30d977e:localhost]

2020-10-27 22:58:21 | [Mutex] received everything.

2020-10-27 22:58:21 | [Mutex] isItemNotified: received:node:c6c94999-850d-4fa1-b43d-9748e30d977e:localhost:node-31862e70-e571-4a94-937d-ff1a65eb3ced:Node 31862e70-e571-4a94-937d-ff1a65eb3ced :: true

createSubnodes 1.032s
2020-10-27 22:58:21 |

2020-10-27 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:21 | ------------------------------------

2020-10-27 22:58:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dd2c063e-b372-4264-b57d-782545cd754f",
    "pubsub#title": "Node dd2c063e-b372-4264-b57d-782545cd754f"
}

2020-10-27 22:58:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:58:22 | [Mutex] waiting for: [received:nodes:42eb0059-ec27-45cd-a5c6-6f95880b01f2:localhost]

2020-10-27 22:58:22 | [Mutex] received everything.

2020-10-27 22:58:22 | [Mutex] isItemNotified: received:node:42eb0059-ec27-45cd-a5c6-6f95880b01f2:localhost:node-dd2c063e-b372-4264-b57d-782545cd754f:Node dd2c063e-b372-4264-b57d-782545cd754f :: true

deleteNodes 1.052s
2020-10-27 22:58:27 |

2020-10-27 22:58:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:27 | ------------------------------------

2020-10-27 22:58:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd2c063e-b372-4264-b57d-782545cd754f"
}

2020-10-27 22:58:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:58:28 | [Mutex] waiting for: [received:nodes:7babfc8e-5f77-4c25-9cce-61337077b4f4:localhost]

2020-10-27 22:58:28 | [Mutex] received everything.

2020-10-27 22:58:28 | [Mutex] isItemNotified: received:node:7babfc8e-5f77-4c25-9cce-61337077b4f4:localhost:node-dd2c063e-b372-4264-b57d-782545cd754f:Node dd2c063e-b372-4264-b57d-782545cd754f :: false

deleteSubnodes 1.031s
2020-10-27 22:58:26 |

2020-10-27 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:26 | ------------------------------------

2020-10-27 22:58:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced"
}

2020-10-27 22:58:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:58:27 | [Mutex] waiting for: [received:nodes:965d052a-83c2-449f-bdad-7c8e6638c7fd:localhost]

2020-10-27 22:58:27 | [Mutex] received everything.

2020-10-27 22:58:27 | [Mutex] isItemNotified: received:node:965d052a-83c2-449f-bdad-7c8e6638c7fd:localhost:node-31862e70-e571-4a94-937d-ff1a65eb3ced:Node 31862e70-e571-4a94-937d-ff1a65eb3ced :: false

2020-10-27 22:58:27 | [Mutex] waiting for: [received:nodes:4bc34014-66ee-4169-bd3d-d7718afbcc6a:localhost]

2020-10-27 22:58:27 | [Mutex] received everything.

2020-10-27 22:58:27 | [Mutex] isItemNotified: received:node:4bc34014-66ee-4169-bd3d-d7718afbcc6a:localhost:node-31862e70-e571-4a94-937d-ff1a65eb3ced:Node 31862e70-e571-4a94-937d-ff1a65eb3ced :: false

publishItemsToNodes 0.056s
2020-10-27 22:58:24 |

2020-10-27 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:24 | ------------------------------------

2020-10-27 22:58:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "entry": "<test>item-fdd1ad5a-22c3-42fc-9428-65677d8924ae</test>",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae"
}

2020-10-27 22:58:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae"
}

2020-10-27 22:58:24 | [Mutex] waiting for: [published:item:notifieditem-fdd1ad5a-22c3-42fc-9428-65677d8924ae:admin@test-domain.com]

2020-10-27 22:58:24 | [Mutex] received everything.

2020-10-27 22:58:24 | [Mutex] isItemNotified: published:item:notifieditem-fdd1ad5a-22c3-42fc-9428-65677d8924ae:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-10-27 22:58:24 |

2020-10-27 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:24 | ------------------------------------

2020-10-27 22:58:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae"
}

2020-10-27 22:58:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae"
}

2020-10-27 22:58:25 | [Mutex] received everything.

2020-10-27 22:58:25 | [Mutex] isItemNotified: retracted:item:notifieditem-fdd1ad5a-22c3-42fc-9428-65677d8924ae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2020-10-27 22:58:24 |

2020-10-27 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:24 | ------------------------------------

2020-10-27 22:58:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae"
}

2020-10-27 22:58:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "item-id": "item-fdd1ad5a-22c3-42fc-9428-65677d8924ae",
    "item": [
        "<item id=\"item-fdd1ad5a-22c3-42fc-9428-65677d8924ae\"><test>item-fdd1ad5a-22c3-42fc-9428-65677d8924ae</test></item>"
    ]
}

2020-10-27 22:58:24 | [Mutex] notify: [retrieved:item:item-fdd1ad5a-22c3-42fc-9428-65677d8924ae:payload-matches:true:localhost]

2020-10-27 22:58:24 | [Mutex] received everything.

2020-10-27 22:58:24 | [Mutex] isItemNotified: retrieved:item:item-fdd1ad5a-22c3-42fc-9428-65677d8924ae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2020-10-27 22:58:24 |

2020-10-27 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:24 | ------------------------------------

2020-10-27 22:58:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-27 22:58:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
        "node-dd2c063e-b372-4264-b57d-782545cd754f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-27 22:58:24 |

2020-10-27 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:24 | ------------------------------------

2020-10-27 22:58:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-31862e70-e571-4a94-937d-ff1a65eb3ced)"
}

2020-10-27 22:58:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2020-10-27 22:58:23 |

2020-10-27 22:58:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:23 | ------------------------------------

2020-10-27 22:58:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:58:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-10-27 22:58:25 |

2020-10-27 22:58:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:58:25 | ------------------------------------

2020-10-27 22:58:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-31862e70-e571-4a94-937d-ff1a65eb3ced",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:58:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}