Generated by TestNG with ReportNG at 22:46 PDT on Friday 09 October 2020
root@87f6aca6b6f2 / 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.383s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2020-10-09 23:03:25 |

2020-10-09 23:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 23:03:25 | ------------------------------------

2020-10-09 23:03:25 | [Mutex] waiting for: [configured:node:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:node-e6c17b1f-b7bf-4351-9669-25cc30673213]

2020-10-09 23:03:25 | [Mutex] received everything.

2020-10-09 23:03:25 | [Mutex] isItemNotified: configured:node:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:node-e6c17b1f-b7bf-4351-9669-25cc30673213 :: true

2020-10-09 23:03:26 | [Mutex] waiting for: [received:nodes:4c876e3b-9f04-487d-ac25-a6483f2212f8:localhost]

2020-10-09 23:03:26 | [Mutex] received everything.

2020-10-09 23:03:26 | [Mutex] isItemNotified: received:node:4c876e3b-9f04-487d-ac25-a6483f2212f8:localhost:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7 :: true

2020-10-09 23:03:26 | [Mutex] waiting for: [received:nodes:96710825-b566-47e1-a1ed-6618ad291c24:localhost]

2020-10-09 23:03:26 | [Mutex] received everything.

2020-10-09 23:03:26 | [Mutex] isItemNotified: received:node:96710825-b566-47e1-a1ed-6618ad291c24:localhost:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7 :: false

createNodes 1.787s
2020-10-09 23:03:22 |

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

2020-10-09 23:03:22 | ------------------------------------

2020-10-09 23:03:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "pubsub#title": "Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7"
}

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

2020-10-09 23:03:23 | [Mutex] waiting for: [received:nodes:f8a5d2cb-8cb0-45e2-8ebc-02ad696bfa55:localhost]

2020-10-09 23:03:23 | [Mutex] received everything.

2020-10-09 23:03:23 | [Mutex] isItemNotified: received:node:f8a5d2cb-8cb0-45e2-8ebc-02ad696bfa55:localhost:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7 :: true

createSubnodes 1.038s
2020-10-09 23:03:23 |

2020-10-09 23:03:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 23:03:23 | ------------------------------------

2020-10-09 23:03:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e6c17b1f-b7bf-4351-9669-25cc30673213",
    "pubsub#title": "Node e6c17b1f-b7bf-4351-9669-25cc30673213"
}

2020-10-09 23:03:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 23:03:25 | [Mutex] waiting for: [received:nodes:a63bee03-c7a7-4251-8cdf-5a8562c9a859:localhost]

2020-10-09 23:03:25 | [Mutex] received everything.

2020-10-09 23:03:25 | [Mutex] isItemNotified: received:node:a63bee03-c7a7-4251-8cdf-5a8562c9a859:localhost:node-e6c17b1f-b7bf-4351-9669-25cc30673213:Node e6c17b1f-b7bf-4351-9669-25cc30673213 :: true

deleteNodes 1.035s
2020-10-09 23:03:29 |

2020-10-09 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 23:03:29 | ------------------------------------

2020-10-09 23:03:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6c17b1f-b7bf-4351-9669-25cc30673213"
}

2020-10-09 23:03:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 23:03:30 | [Mutex] waiting for: [received:nodes:ec507261-d841-4e44-864b-8b5e521b1742:localhost]

2020-10-09 23:03:30 | [Mutex] received everything.

2020-10-09 23:03:30 | [Mutex] isItemNotified: received:node:ec507261-d841-4e44-864b-8b5e521b1742:localhost:node-e6c17b1f-b7bf-4351-9669-25cc30673213:Node e6c17b1f-b7bf-4351-9669-25cc30673213 :: false

deleteSubnodes 1.040s
2020-10-09 23:03:28 |

2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 23:03:28 | ------------------------------------

2020-10-09 23:03:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7"
}

2020-10-09 23:03:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 23:03:29 | [Mutex] waiting for: [received:nodes:b7303767-19a1-4272-afd2-b92aa7fb2462:localhost]

2020-10-09 23:03:29 | [Mutex] waiting for: [received:nodes:b7303767-19a1-4272-afd2-b92aa7fb2462:localhost]

2020-10-09 23:03:29 | [Mutex] received everything.

2020-10-09 23:03:29 | [Mutex] isItemNotified: received:node:b7303767-19a1-4272-afd2-b92aa7fb2462:localhost:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7 :: false

2020-10-09 23:03:29 | [Mutex] waiting for: [received:nodes:99607c4a-c1f2-4f18-a4c6-f2ee5c246138:localhost]

2020-10-09 23:03:29 | [Mutex] received everything.

2020-10-09 23:03:29 | [Mutex] isItemNotified: received:node:99607c4a-c1f2-4f18-a4c6-f2ee5c246138:localhost:node-3803498b-08e4-4ce9-ae46-56f5a425cfa7:Node 3803498b-08e4-4ce9-ae46-56f5a425cfa7 :: false

publishItemsToNodes 0.049s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

2020-10-09 23:03:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "entry": "<test>item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5</test>",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5"
}

2020-10-09 23:03:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5"
}

2020-10-09 23:03:27 | [Mutex] waiting for: [published:item:notifieditem-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:admin@test-domain.com]

2020-10-09 23:03:27 | [Mutex] received everything.

2020-10-09 23:03:27 | [Mutex] isItemNotified: published:item:notifieditem-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:admin@test-domain.com :: true

retractItemsFromNodes 0.112s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

2020-10-09 23:03:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5"
}

2020-10-09 23:03:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5"
}

2020-10-09 23:03:27 | [Mutex] waiting for: [retracted:item:notifieditem-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:admin@test-domain.com]

2020-10-09 23:03:27 | [Mutex] received everything.

2020-10-09 23:03:27 | [Mutex] isItemNotified: retracted:item:notifieditem-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

2020-10-09 23:03:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5"
}

2020-10-09 23:03:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "item-id": "item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5",
    "item": [
        "<item id=\"item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5\"><test>item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5</test></item>"
    ]
}

2020-10-09 23:03:27 | [Mutex] notify: [retrieved:item:item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:payload-matches:true:localhost]

2020-10-09 23:03:27 | [Mutex] received everything.

2020-10-09 23:03:27 | [Mutex] isItemNotified: retrieved:item:item-2c3c2b2c-e2a7-4d95-9627-dd97c4005cc5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

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

2020-10-09 23:03:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
        "test",
        "node-e6c17b1f-b7bf-4351-9669-25cc30673213"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

2020-10-09 23:03:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3803498b-08e4-4ce9-ae46-56f5a425cfa7)"
}

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

subscribeNodes 1.018s
2020-10-09 23:03:26 |

2020-10-09 23:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 23:03:26 | ------------------------------------

2020-10-09 23:03:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.027s
2020-10-09 23:03:27 |

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

2020-10-09 23:03:27 | ------------------------------------

2020-10-09 23:03:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3803498b-08e4-4ce9-ae46-56f5a425cfa7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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