Generated by TestNG with ReportNG at 22:15 PDT on Monday 28 September 2020
root@4b128309152c / 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.020s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-09-28 22:31:22 |

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

2020-09-28 22:31:22 | ------------------------------------

2020-09-28 22:31:22 | [Mutex] waiting for: [configured:node:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:node-782f7faf-3139-4767-9270-ea7c66fe69ee]

2020-09-28 22:31:22 | [Mutex] received everything.

2020-09-28 22:31:22 | [Mutex] isItemNotified: configured:node:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:node-782f7faf-3139-4767-9270-ea7c66fe69ee :: true

2020-09-28 22:31:23 | [Mutex] waiting for: [received:nodes:9cdfad25-5dcf-4111-a79b-17b93e08db9c:localhost]

2020-09-28 22:31:23 | [Mutex] received everything.

2020-09-28 22:31:23 | [Mutex] isItemNotified: received:node:9cdfad25-5dcf-4111-a79b-17b93e08db9c:localhost:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:Node ec36a101-e479-40f3-9ba1-5415af3a57ff :: true

2020-09-28 22:31:23 | [Mutex] waiting for: [received:nodes:68f96820-2cd2-463e-8b65-ba0cb39d686e:localhost]

2020-09-28 22:31:23 | [Mutex] waiting for: [received:nodes:68f96820-2cd2-463e-8b65-ba0cb39d686e:localhost]

2020-09-28 22:31:23 | [Mutex] received everything.

2020-09-28 22:31:23 | [Mutex] isItemNotified: received:node:68f96820-2cd2-463e-8b65-ba0cb39d686e:localhost:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:Node ec36a101-e479-40f3-9ba1-5415af3a57ff :: false

createNodes 1.781s
2020-09-28 22:31:19 |

2020-09-28 22:31:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:19 | ------------------------------------

2020-09-28 22:31: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-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "pubsub#title": "Node ec36a101-e479-40f3-9ba1-5415af3a57ff"
}

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

2020-09-28 22:31:21 | [Mutex] waiting for: [received:nodes:2f1aeadc-3db3-4184-be54-5cfefcc0eeed:localhost]

2020-09-28 22:31:21 | [Mutex] waiting for: [received:nodes:2f1aeadc-3db3-4184-be54-5cfefcc0eeed:localhost]

2020-09-28 22:31:21 | [Mutex] received everything.

2020-09-28 22:31:21 | [Mutex] isItemNotified: received:node:2f1aeadc-3db3-4184-be54-5cfefcc0eeed:localhost:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:Node ec36a101-e479-40f3-9ba1-5415af3a57ff :: true

createSubnodes 1.021s
2020-09-28 22:31:21 |

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

2020-09-28 22:31:21 | ------------------------------------

2020-09-28 22:31: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-782f7faf-3139-4767-9270-ea7c66fe69ee",
    "pubsub#title": "Node 782f7faf-3139-4767-9270-ea7c66fe69ee"
}

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

2020-09-28 22:31:22 | [Mutex] waiting for: [received:nodes:a551edc2-a0a5-4811-9fcd-cc54bd854013:localhost]

2020-09-28 22:31:22 | [Mutex] received everything.

2020-09-28 22:31:22 | [Mutex] isItemNotified: received:node:a551edc2-a0a5-4811-9fcd-cc54bd854013:localhost:node-782f7faf-3139-4767-9270-ea7c66fe69ee:Node 782f7faf-3139-4767-9270-ea7c66fe69ee :: true

deleteNodes 1.020s
2020-09-28 22:31:27 |

2020-09-28 22:31:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:27 | ------------------------------------

2020-09-28 22:31:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-782f7faf-3139-4767-9270-ea7c66fe69ee"
}

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

2020-09-28 22:31:28 | [Mutex] waiting for: [received:nodes:22e2335b-f2c3-46cb-b616-ffddae50a11b:localhost]

2020-09-28 22:31:28 | [Mutex] waiting for: [received:nodes:22e2335b-f2c3-46cb-b616-ffddae50a11b:localhost]

2020-09-28 22:31:28 | [Mutex] received everything.

2020-09-28 22:31:28 | [Mutex] isItemNotified: received:node:22e2335b-f2c3-46cb-b616-ffddae50a11b:localhost:node-782f7faf-3139-4767-9270-ea7c66fe69ee:Node 782f7faf-3139-4767-9270-ea7c66fe69ee :: false

deleteSubnodes 1.026s
2020-09-28 22:31:26 |

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

2020-09-28 22:31:26 | ------------------------------------

2020-09-28 22:31:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff"
}

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

2020-09-28 22:31:27 | [Mutex] waiting for: [received:nodes:55e6b158-530a-4357-8634-25cdd3b8e70c:localhost]

2020-09-28 22:31:27 | [Mutex] received everything.

2020-09-28 22:31:27 | [Mutex] isItemNotified: received:node:55e6b158-530a-4357-8634-25cdd3b8e70c:localhost:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:Node ec36a101-e479-40f3-9ba1-5415af3a57ff :: false

2020-09-28 22:31:27 | [Mutex] waiting for: [received:nodes:5a6203c3-ac87-448a-8b9e-04c9c5518cfc:localhost]

2020-09-28 22:31:27 | [Mutex] received everything.

2020-09-28 22:31:27 | [Mutex] isItemNotified: received:node:5a6203c3-ac87-448a-8b9e-04c9c5518cfc:localhost:node-ec36a101-e479-40f3-9ba1-5415af3a57ff:Node ec36a101-e479-40f3-9ba1-5415af3a57ff :: false

publishItemsToNodes 0.032s
2020-09-28 22:31:24 |

2020-09-28 22:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:24 | ------------------------------------

2020-09-28 22:31:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "entry": "<test>item-f4879f0b-d35b-4015-8884-576fc57b5525</test>",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525"
}

2020-09-28 22:31:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525"
}

2020-09-28 22:31:24 | [Mutex] received everything.

2020-09-28 22:31:24 | [Mutex] isItemNotified: published:item:notifieditem-f4879f0b-d35b-4015-8884-576fc57b5525:admin@test-domain.com :: true

retractItemsFromNodes 0.095s
2020-09-28 22:31:24 |

2020-09-28 22:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:24 | ------------------------------------

2020-09-28 22:31:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525"
}

2020-09-28 22:31:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525"
}

2020-09-28 22:31:25 | [Mutex] waiting for: [retracted:item:notifieditem-f4879f0b-d35b-4015-8884-576fc57b5525:admin@test-domain.com]

2020-09-28 22:31:25 | [Mutex] received everything.

2020-09-28 22:31:25 | [Mutex] isItemNotified: retracted:item:notifieditem-f4879f0b-d35b-4015-8884-576fc57b5525:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-09-28 22:31:24 |

2020-09-28 22:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:24 | ------------------------------------

2020-09-28 22:31:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525"
}

2020-09-28 22:31:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "item-id": "item-f4879f0b-d35b-4015-8884-576fc57b5525",
    "item": [
        "<item id=\"item-f4879f0b-d35b-4015-8884-576fc57b5525\"><test>item-f4879f0b-d35b-4015-8884-576fc57b5525</test></item>"
    ]
}

2020-09-28 22:31:24 | [Mutex] notify: [retrieved:item:item-f4879f0b-d35b-4015-8884-576fc57b5525:payload-matches:true:localhost]

2020-09-28 22:31:24 | [Mutex] received everything.

2020-09-28 22:31:24 | [Mutex] isItemNotified: retrieved:item:item-f4879f0b-d35b-4015-8884-576fc57b5525:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-09-28 22:31:24 |

2020-09-28 22:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:24 | ------------------------------------

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

2020-09-28 22:31:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-782f7faf-3139-4767-9270-ea7c66fe69ee",
        "node-ec36a101-e479-40f3-9ba1-5415af3a57ff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-28 22:31:24 |

2020-09-28 22:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:31:24 | ------------------------------------

2020-09-28 22:31:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ec36a101-e479-40f3-9ba1-5415af3a57ff)"
}

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

subscribeNodes 1.009s
2020-09-28 22:31:23 |

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

2020-09-28 22:31:23 | ------------------------------------

2020-09-28 22:31:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.012s
2020-09-28 22:31:25 |

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

2020-09-28 22:31:25 | ------------------------------------

2020-09-28 22:31:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ec36a101-e479-40f3-9ba1-5415af3a57ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

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