Generated by TestNG with ReportNG at 21:15 PST on Monday 04 January 2021
root@43fec6d4badf / 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.111s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2021-01-04 21:31:30 |

2021-01-04 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:30 | ------------------------------------

2021-01-04 21:31:30 | [Mutex] waiting for: [configured:node:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc]

2021-01-04 21:31:30 | [Mutex] received everything.

2021-01-04 21:31:30 | [Mutex] isItemNotified: configured:node:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc :: true

2021-01-04 21:31:31 | [Mutex] waiting for: [received:nodes:1710b224-c275-4a3f-8d0e-ddad7521e9f4:localhost]

2021-01-04 21:31:31 | [Mutex] received everything.

2021-01-04 21:31:31 | [Mutex] isItemNotified: received:node:1710b224-c275-4a3f-8d0e-ddad7521e9f4:localhost:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f :: true

2021-01-04 21:31:31 | [Mutex] waiting for: [received:nodes:df172bbc-e91d-476f-9bfa-2fe13bde5176:localhost]

2021-01-04 21:31:31 | [Mutex] received everything.

2021-01-04 21:31:31 | [Mutex] isItemNotified: received:node:df172bbc-e91d-476f-9bfa-2fe13bde5176:localhost:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f :: false

createNodes 1.587s
2021-01-04 21:31:28 |

2021-01-04 21:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:28 | ------------------------------------

2021-01-04 21:31:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "pubsub#title": "Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f"
}

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

2021-01-04 21:31:29 | [Mutex] waiting for: [received:nodes:2d972f4c-67c0-47cf-a160-ea705e5a55d1:localhost]

2021-01-04 21:31:29 | [Mutex] received everything.

2021-01-04 21:31:29 | [Mutex] isItemNotified: received:node:2d972f4c-67c0-47cf-a160-ea705e5a55d1:localhost:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f :: true

createSubnodes 1.054s
2021-01-04 21:31:29 |

2021-01-04 21:31:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:29 | ------------------------------------

2021-01-04 21:31:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc",
    "pubsub#title": "Node ed0a65fa-5b82-4f58-abac-cf5af73da4bc"
}

2021-01-04 21:31:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:30 | [Mutex] waiting for: [received:nodes:a37d4fee-b9cb-4bb9-bc06-b5d867b30887:localhost]

2021-01-04 21:31:30 | [Mutex] waiting for: [received:nodes:a37d4fee-b9cb-4bb9-bc06-b5d867b30887:localhost]

2021-01-04 21:31:30 | [Mutex] received everything.

2021-01-04 21:31:30 | [Mutex] isItemNotified: received:node:a37d4fee-b9cb-4bb9-bc06-b5d867b30887:localhost:node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc:Node ed0a65fa-5b82-4f58-abac-cf5af73da4bc :: true

deleteNodes 1.037s
2021-01-04 21:31:35 |

2021-01-04 21:31:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:35 | ------------------------------------

2021-01-04 21:31:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc"
}

2021-01-04 21:31:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:36 | [Mutex] waiting for: [received:nodes:e3b3264b-6efa-4010-b64e-a9d06e443530:localhost]

2021-01-04 21:31:36 | [Mutex] waiting for: [received:nodes:e3b3264b-6efa-4010-b64e-a9d06e443530:localhost]

2021-01-04 21:31:36 | [Mutex] received everything.

2021-01-04 21:31:36 | [Mutex] isItemNotified: received:node:e3b3264b-6efa-4010-b64e-a9d06e443530:localhost:node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc:Node ed0a65fa-5b82-4f58-abac-cf5af73da4bc :: false

deleteSubnodes 1.033s
2021-01-04 21:31:34 |

2021-01-04 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:34 | ------------------------------------

2021-01-04 21:31:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f"
}

2021-01-04 21:31:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-04 21:31:35 | [Mutex] waiting for: [received:nodes:18b15655-5c39-4163-b2df-379748b395aa:localhost]

2021-01-04 21:31:35 | [Mutex] received everything.

2021-01-04 21:31:35 | [Mutex] isItemNotified: received:node:18b15655-5c39-4163-b2df-379748b395aa:localhost:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f :: false

2021-01-04 21:31:35 | [Mutex] waiting for: [received:nodes:40c5e7bd-6efd-4e6f-81e6-d8681be25c15:localhost]

2021-01-04 21:31:35 | [Mutex] received everything.

2021-01-04 21:31:35 | [Mutex] isItemNotified: received:node:40c5e7bd-6efd-4e6f-81e6-d8681be25c15:localhost:node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f:Node 2d75014a-0e43-4bda-9430-6c8c3cd86e4f :: false

publishItemsToNodes 0.039s
2021-01-04 21:31:32 |

2021-01-04 21:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:32 | ------------------------------------

2021-01-04 21:31:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "entry": "<test>item-dffd4d1f-5687-4a7f-9128-448903f4c64d</test>",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d"
}

2021-01-04 21:31:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d"
}

2021-01-04 21:31:33 | [Mutex] waiting for: [published:item:notifieditem-dffd4d1f-5687-4a7f-9128-448903f4c64d:admin@test-domain.com]

2021-01-04 21:31:33 | [Mutex] received everything.

2021-01-04 21:31:33 | [Mutex] isItemNotified: published:item:notifieditem-dffd4d1f-5687-4a7f-9128-448903f4c64d:admin@test-domain.com :: true

retractItemsFromNodes 0.070s
2021-01-04 21:31:33 |

2021-01-04 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:33 | ------------------------------------

2021-01-04 21:31:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d"
}

2021-01-04 21:31:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d"
}

2021-01-04 21:31:33 | [Mutex] received everything.

2021-01-04 21:31:33 | [Mutex] isItemNotified: retracted:item:notifieditem-dffd4d1f-5687-4a7f-9128-448903f4c64d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.097s
2021-01-04 21:31:33 |

2021-01-04 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:33 | ------------------------------------

2021-01-04 21:31:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d"
}

2021-01-04 21:31:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "item-id": "item-dffd4d1f-5687-4a7f-9128-448903f4c64d",
    "item": [
        "<item id=\"item-dffd4d1f-5687-4a7f-9128-448903f4c64d\"><test>item-dffd4d1f-5687-4a7f-9128-448903f4c64d</test></item>"
    ]
}

2021-01-04 21:31:33 | [Mutex] notify: [retrieved:item:item-dffd4d1f-5687-4a7f-9128-448903f4c64d:payload-matches:true:localhost]

2021-01-04 21:31:33 | [Mutex] received everything.

2021-01-04 21:31:33 | [Mutex] isItemNotified: retrieved:item:item-dffd4d1f-5687-4a7f-9128-448903f4c64d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-04 21:31:33 |

2021-01-04 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:33 | ------------------------------------

2021-01-04 21:31:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-04 21:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
        "test",
        "node-ed0a65fa-5b82-4f58-abac-cf5af73da4bc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-04 21:31:33 |

2021-01-04 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:33 | ------------------------------------

2021-01-04 21:31:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f)"
}

2021-01-04 21:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-01-04 21:31:31 |

2021-01-04 21:31:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:31 | ------------------------------------

2021-01-04 21:31:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-04 21:31:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2021-01-04 21:31:33 |

2021-01-04 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-04 21:31:33 | ------------------------------------

2021-01-04 21:31:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2d75014a-0e43-4bda-9430-6c8c3cd86e4f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-04 21:31:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}