Generated by TestNG with ReportNG at 21:21 PST on Wednesday 30 December 2020
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.103s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.125s
2020-12-30 21:36:18 |

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

2020-12-30 21:36:18 | ------------------------------------

2020-12-30 21:36:18 | [Mutex] waiting for: [configured:node:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:node-fcd2dabc-04e8-48b6-af73-272c5caee5b0]

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

2020-12-30 21:36:18 | [Mutex] isItemNotified: configured:node:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:node-fcd2dabc-04e8-48b6-af73-272c5caee5b0 :: true

2020-12-30 21:36:19 | [Mutex] waiting for: [received:nodes:37064cea-5572-4e9f-bfcf-cea27d1d7c6a:localhost]

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

2020-12-30 21:36:19 | [Mutex] isItemNotified: received:node:37064cea-5572-4e9f-bfcf-cea27d1d7c6a:localhost:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01 :: true

2020-12-30 21:36:19 | [Mutex] waiting for: [received:nodes:ceff58b6-91bc-4d5c-ad0d-9161cfd1d8f5:localhost]

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

2020-12-30 21:36:19 | [Mutex] isItemNotified: received:node:ceff58b6-91bc-4d5c-ad0d-9161cfd1d8f5:localhost:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01 :: false

createNodes 1.738s
2020-12-30 21:36:15 |

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

2020-12-30 21:36:15 | ------------------------------------

2020-12-30 21:36:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "pubsub#title": "Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01"
}

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

2020-12-30 21:36:17 | [Mutex] waiting for: [received:nodes:2f30e675-8e19-4ab8-a879-0253f3698867:localhost]

2020-12-30 21:36:17 | [Mutex] waiting for: [received:nodes:2f30e675-8e19-4ab8-a879-0253f3698867:localhost]

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

2020-12-30 21:36:17 | [Mutex] isItemNotified: received:node:2f30e675-8e19-4ab8-a879-0253f3698867:localhost:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01 :: true

createSubnodes 1.038s
2020-12-30 21:36:17 |

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

2020-12-30 21:36:17 | ------------------------------------

2020-12-30 21:36:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fcd2dabc-04e8-48b6-af73-272c5caee5b0",
    "pubsub#title": "Node fcd2dabc-04e8-48b6-af73-272c5caee5b0"
}

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

2020-12-30 21:36:18 | [Mutex] waiting for: [received:nodes:8d822c24-459a-4df9-a757-4440ced3b106:localhost]

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

2020-12-30 21:36:18 | [Mutex] isItemNotified: received:node:8d822c24-459a-4df9-a757-4440ced3b106:localhost:node-fcd2dabc-04e8-48b6-af73-272c5caee5b0:Node fcd2dabc-04e8-48b6-af73-272c5caee5b0 :: true

deleteNodes 1.030s
2020-12-30 21:36:23 |

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

2020-12-30 21:36:23 | ------------------------------------

2020-12-30 21:36:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fcd2dabc-04e8-48b6-af73-272c5caee5b0"
}

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

2020-12-30 21:36:24 | [Mutex] waiting for: [received:nodes:336efd11-ae6a-4f16-a05b-98de1422d989:localhost]

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

2020-12-30 21:36:24 | [Mutex] isItemNotified: received:node:336efd11-ae6a-4f16-a05b-98de1422d989:localhost:node-fcd2dabc-04e8-48b6-af73-272c5caee5b0:Node fcd2dabc-04e8-48b6-af73-272c5caee5b0 :: false

deleteSubnodes 1.032s
2020-12-30 21:36:21 |

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

2020-12-30 21:36:21 | ------------------------------------

2020-12-30 21:36:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01"
}

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

2020-12-30 21:36:23 | [Mutex] waiting for: [received:nodes:d2e95a3b-6f7c-4557-86d3-9effbb4007c0:localhost]

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

2020-12-30 21:36:23 | [Mutex] isItemNotified: received:node:d2e95a3b-6f7c-4557-86d3-9effbb4007c0:localhost:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01 :: false

2020-12-30 21:36:23 | [Mutex] waiting for: [received:nodes:fafb9a10-8d30-4e45-92e5-3a6f172480ab:localhost]

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

2020-12-30 21:36:23 | [Mutex] isItemNotified: received:node:fafb9a10-8d30-4e45-92e5-3a6f172480ab:localhost:node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01:Node cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01 :: false

publishItemsToNodes 0.056s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

2020-12-30 21:36:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "entry": "<test>item-34cddf63-0090-4817-a0db-114944f0d412</test>",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412"
}

2020-12-30 21:36:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412"
}

2020-12-30 21:36:20 | [Mutex] waiting for: [published:item:notifieditem-34cddf63-0090-4817-a0db-114944f0d412:admin@test-domain.com]

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

2020-12-30 21:36:20 | [Mutex] isItemNotified: published:item:notifieditem-34cddf63-0090-4817-a0db-114944f0d412:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

2020-12-30 21:36:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412"
}

2020-12-30 21:36:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412"
}

2020-12-30 21:36:20 | [Mutex] waiting for: [retracted:item:notifieditem-34cddf63-0090-4817-a0db-114944f0d412:admin@test-domain.com]

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

2020-12-30 21:36:20 | [Mutex] isItemNotified: retracted:item:notifieditem-34cddf63-0090-4817-a0db-114944f0d412:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

2020-12-30 21:36:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412"
}

2020-12-30 21:36:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "item-id": "item-34cddf63-0090-4817-a0db-114944f0d412",
    "item": [
        "<item id=\"item-34cddf63-0090-4817-a0db-114944f0d412\"><test>item-34cddf63-0090-4817-a0db-114944f0d412</test></item>"
    ]
}

2020-12-30 21:36:20 | [Mutex] notify: [retrieved:item:item-34cddf63-0090-4817-a0db-114944f0d412:payload-matches:true:localhost]

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

2020-12-30 21:36:20 | [Mutex] isItemNotified: retrieved:item:item-34cddf63-0090-4817-a0db-114944f0d412:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.078s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

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

2020-12-30 21:36:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fcd2dabc-04e8-48b6-af73-272c5caee5b0",
        "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

2020-12-30 21:36:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01)"
}

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

subscribeNodes 1.016s
2020-12-30 21:36:19 |

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

2020-12-30 21:36:19 | ------------------------------------

2020-12-30 21:36:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.072s
2020-12-30 21:36:20 |

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

2020-12-30 21:36:20 | ------------------------------------

2020-12-30 21:36:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cd5eb0ce-1ae8-41b0-8b06-8b6ca1340b01",
    "jids": [
        "admin@test-domain.com"
    ]
}

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