Generated by TestNG with ReportNG at 22:14 PDT on Sunday 09 May 2021
root@785cf647a4ab / 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.196s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-05-09 22:31:21 |

2021-05-09 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:21 | ------------------------------------

2021-05-09 22:31:21 | [Mutex] waiting for: [configured:node:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:node-fe6b64e1-eb85-4380-8308-36873fcd54f8]

2021-05-09 22:31:21 | [Mutex] received everything.

2021-05-09 22:31:21 | [Mutex] isItemNotified: configured:node:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:node-fe6b64e1-eb85-4380-8308-36873fcd54f8 :: true

2021-05-09 22:31:22 | [Mutex] waiting for: [received:nodes:0b669a3a-e992-46cc-bdf5-33f8be2629f9:localhost]

2021-05-09 22:31:22 | [Mutex] received everything.

2021-05-09 22:31:22 | [Mutex] isItemNotified: received:node:0b669a3a-e992-46cc-bdf5-33f8be2629f9:localhost:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:Node f95e99f2-7a01-4d52-bd18-00b878d18bde :: true

2021-05-09 22:31:22 | [Mutex] waiting for: [received:nodes:e995a13c-fe4c-4d0a-b080-450285164c94:localhost]

2021-05-09 22:31:22 | [Mutex] waiting for: [received:nodes:e995a13c-fe4c-4d0a-b080-450285164c94:localhost]

2021-05-09 22:31:22 | [Mutex] received everything.

2021-05-09 22:31:22 | [Mutex] isItemNotified: received:node:e995a13c-fe4c-4d0a-b080-450285164c94:localhost:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:Node f95e99f2-7a01-4d52-bd18-00b878d18bde :: false

createNodes 1.656s
2021-05-09 22:31:18 |

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

2021-05-09 22:31:18 | ------------------------------------

2021-05-09 22:31:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "pubsub#title": "Node f95e99f2-7a01-4d52-bd18-00b878d18bde"
}

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

2021-05-09 22:31:20 | [Mutex] waiting for: [received:nodes:3d3a2814-226a-4d59-a018-2ac01294ca55:localhost]

2021-05-09 22:31:20 | [Mutex] received everything.

2021-05-09 22:31:20 | [Mutex] isItemNotified: received:node:3d3a2814-226a-4d59-a018-2ac01294ca55:localhost:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:Node f95e99f2-7a01-4d52-bd18-00b878d18bde :: true

createSubnodes 1.027s
2021-05-09 22:31:20 |

2021-05-09 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:20 | ------------------------------------

2021-05-09 22:31:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fe6b64e1-eb85-4380-8308-36873fcd54f8",
    "pubsub#title": "Node fe6b64e1-eb85-4380-8308-36873fcd54f8"
}

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

2021-05-09 22:31:21 | [Mutex] waiting for: [received:nodes:53df998b-a492-44a7-aea9-c9cba8b92740:localhost]

2021-05-09 22:31:21 | [Mutex] waiting for: [received:nodes:53df998b-a492-44a7-aea9-c9cba8b92740:localhost]

2021-05-09 22:31:21 | [Mutex] received everything.

2021-05-09 22:31:21 | [Mutex] isItemNotified: received:node:53df998b-a492-44a7-aea9-c9cba8b92740:localhost:node-fe6b64e1-eb85-4380-8308-36873fcd54f8:Node fe6b64e1-eb85-4380-8308-36873fcd54f8 :: true

deleteNodes 1.024s
2021-05-09 22:31:26 |

2021-05-09 22:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:26 | ------------------------------------

2021-05-09 22:31:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fe6b64e1-eb85-4380-8308-36873fcd54f8"
}

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

2021-05-09 22:31:27 | [Mutex] waiting for: [received:nodes:5c6a5f30-f78c-4b31-8320-bd1ab022c282:localhost]

2021-05-09 22:31:27 | [Mutex] received everything.

2021-05-09 22:31:27 | [Mutex] isItemNotified: received:node:5c6a5f30-f78c-4b31-8320-bd1ab022c282:localhost:node-fe6b64e1-eb85-4380-8308-36873fcd54f8:Node fe6b64e1-eb85-4380-8308-36873fcd54f8 :: false

deleteSubnodes 1.034s
2021-05-09 22:31:25 |

2021-05-09 22:31:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:25 | ------------------------------------

2021-05-09 22:31:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde"
}

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

2021-05-09 22:31:26 | [Mutex] waiting for: [received:nodes:98cc4594-7514-46e8-bd1c-e74947c09c73:localhost]

2021-05-09 22:31:26 | [Mutex] received everything.

2021-05-09 22:31:26 | [Mutex] isItemNotified: received:node:98cc4594-7514-46e8-bd1c-e74947c09c73:localhost:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:Node f95e99f2-7a01-4d52-bd18-00b878d18bde :: false

2021-05-09 22:31:26 | [Mutex] waiting for: [received:nodes:ea51b4e8-7ee7-49cf-b687-beeeb5f3433e:localhost]

2021-05-09 22:31:26 | [Mutex] received everything.

2021-05-09 22:31:26 | [Mutex] isItemNotified: received:node:ea51b4e8-7ee7-49cf-b687-beeeb5f3433e:localhost:node-f95e99f2-7a01-4d52-bd18-00b878d18bde:Node f95e99f2-7a01-4d52-bd18-00b878d18bde :: false

publishItemsToNodes 0.051s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

2021-05-09 22:31:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "entry": "<test>item-b180e19e-758e-49a1-84e5-2879e68b03b0</test>",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0"
}

2021-05-09 22:31:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0"
}

2021-05-09 22:31:23 | [Mutex] waiting for: [published:item:notifieditem-b180e19e-758e-49a1-84e5-2879e68b03b0:admin@test-domain.com]

2021-05-09 22:31:23 | [Mutex] received everything.

2021-05-09 22:31:23 | [Mutex] isItemNotified: published:item:notifieditem-b180e19e-758e-49a1-84e5-2879e68b03b0:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

2021-05-09 22:31:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0"
}

2021-05-09 22:31:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0"
}

2021-05-09 22:31:23 | [Mutex] received everything.

2021-05-09 22:31:23 | [Mutex] isItemNotified: retracted:item:notifieditem-b180e19e-758e-49a1-84e5-2879e68b03b0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

2021-05-09 22:31:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0"
}

2021-05-09 22:31:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "item-id": "item-b180e19e-758e-49a1-84e5-2879e68b03b0",
    "item": [
        "<item id=\"item-b180e19e-758e-49a1-84e5-2879e68b03b0\"><test>item-b180e19e-758e-49a1-84e5-2879e68b03b0</test></item>"
    ]
}

2021-05-09 22:31:23 | [Mutex] notify: [retrieved:item:item-b180e19e-758e-49a1-84e5-2879e68b03b0:payload-matches:true:localhost]

2021-05-09 22:31:23 | [Mutex] received everything.

2021-05-09 22:31:23 | [Mutex] isItemNotified: retrieved:item:item-b180e19e-758e-49a1-84e5-2879e68b03b0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

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

2021-05-09 22:31:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
        "test",
        "node-fe6b64e1-eb85-4380-8308-36873fcd54f8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

2021-05-09 22:31:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f95e99f2-7a01-4d52-bd18-00b878d18bde)"
}

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

subscribeNodes 1.010s
2021-05-09 22:31:22 |

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

2021-05-09 22:31:22 | ------------------------------------

2021-05-09 22:31:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.179s
2021-05-09 22:31:23 |

2021-05-09 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:31:23 | ------------------------------------

2021-05-09 22:31:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f95e99f2-7a01-4d52-bd18-00b878d18bde",
    "jids": [
        "admin@test-domain.com"
    ]
}

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