Generated by TestNG with ReportNG at 22:52 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.175s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2020-09-18 23:07:05 |

2020-09-18 23:07:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 23:07:05 | ------------------------------------

2020-09-18 23:07:05 | [Mutex] waiting for: [configured:node:node-288a0e76-5f66-4d22-b085-e622796a65b6:node-51285ade-5f85-4b78-a5c7-67bfe537ddd7]

2020-09-18 23:07:05 | [Mutex] received everything.

2020-09-18 23:07:05 | [Mutex] isItemNotified: configured:node:node-288a0e76-5f66-4d22-b085-e622796a65b6:node-51285ade-5f85-4b78-a5c7-67bfe537ddd7 :: true

2020-09-18 23:07:06 | [Mutex] waiting for: [received:nodes:20f373f8-91fe-4b45-a4dd-e461a3c88f3a:localhost]

2020-09-18 23:07:06 | [Mutex] received everything.

2020-09-18 23:07:06 | [Mutex] isItemNotified: received:node:20f373f8-91fe-4b45-a4dd-e461a3c88f3a:localhost:node-288a0e76-5f66-4d22-b085-e622796a65b6:Node 288a0e76-5f66-4d22-b085-e622796a65b6 :: true

2020-09-18 23:07:06 | [Mutex] waiting for: [received:nodes:4c97f17f-1267-4217-bb9d-f274f55b07a8:localhost]

2020-09-18 23:07:06 | [Mutex] received everything.

2020-09-18 23:07:06 | [Mutex] isItemNotified: received:node:4c97f17f-1267-4217-bb9d-f274f55b07a8:localhost:node-288a0e76-5f66-4d22-b085-e622796a65b6:Node 288a0e76-5f66-4d22-b085-e622796a65b6 :: false

createNodes 1.882s
2020-09-18 23:07:02 |

2020-09-18 23:07:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 23:07:02 | ------------------------------------

2020-09-18 23:07:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "pubsub#title": "Node 288a0e76-5f66-4d22-b085-e622796a65b6"
}

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

2020-09-18 23:07:04 | [Mutex] waiting for: [received:nodes:59caeab2-6d41-4c15-92c5-a1476d24b239:localhost]

2020-09-18 23:07:04 | [Mutex] received everything.

2020-09-18 23:07:04 | [Mutex] isItemNotified: received:node:59caeab2-6d41-4c15-92c5-a1476d24b239:localhost:node-288a0e76-5f66-4d22-b085-e622796a65b6:Node 288a0e76-5f66-4d22-b085-e622796a65b6 :: true

createSubnodes 1.031s
2020-09-18 23:07:04 |

2020-09-18 23:07:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 23:07:04 | ------------------------------------

2020-09-18 23:07:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-51285ade-5f85-4b78-a5c7-67bfe537ddd7",
    "pubsub#title": "Node 51285ade-5f85-4b78-a5c7-67bfe537ddd7"
}

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

2020-09-18 23:07:05 | [Mutex] waiting for: [received:nodes:776aaf3f-e8bd-4461-aa97-63282e7c7d63:localhost]

2020-09-18 23:07:05 | [Mutex] received everything.

2020-09-18 23:07:05 | [Mutex] isItemNotified: received:node:776aaf3f-e8bd-4461-aa97-63282e7c7d63:localhost:node-51285ade-5f85-4b78-a5c7-67bfe537ddd7:Node 51285ade-5f85-4b78-a5c7-67bfe537ddd7 :: true

deleteNodes 1.020s
2020-09-18 23:07:09 |

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

2020-09-18 23:07:09 | ------------------------------------

2020-09-18 23:07:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-51285ade-5f85-4b78-a5c7-67bfe537ddd7"
}

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

2020-09-18 23:07:10 | [Mutex] waiting for: [received:nodes:fba9b9b8-f465-443a-b4f3-853d896d5309:localhost]

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

2020-09-18 23:07:10 | [Mutex] isItemNotified: received:node:fba9b9b8-f465-443a-b4f3-853d896d5309:localhost:node-51285ade-5f85-4b78-a5c7-67bfe537ddd7:Node 51285ade-5f85-4b78-a5c7-67bfe537ddd7 :: false

deleteSubnodes 1.023s
2020-09-18 23:07:08 |

2020-09-18 23:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 23:07:08 | ------------------------------------

2020-09-18 23:07:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6"
}

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

2020-09-18 23:07:09 | [Mutex] waiting for: [received:nodes:849cc79b-ebae-4d58-90fe-c9d83de9f81e:localhost]

2020-09-18 23:07:09 | [Mutex] received everything.

2020-09-18 23:07:09 | [Mutex] isItemNotified: received:node:849cc79b-ebae-4d58-90fe-c9d83de9f81e:localhost:node-288a0e76-5f66-4d22-b085-e622796a65b6:Node 288a0e76-5f66-4d22-b085-e622796a65b6 :: false

2020-09-18 23:07:09 | [Mutex] waiting for: [received:nodes:3f717e59-9f06-4490-a693-4fcb4dce17ff:localhost]

2020-09-18 23:07:09 | [Mutex] received everything.

2020-09-18 23:07:09 | [Mutex] isItemNotified: received:node:3f717e59-9f06-4490-a693-4fcb4dce17ff:localhost:node-288a0e76-5f66-4d22-b085-e622796a65b6:Node 288a0e76-5f66-4d22-b085-e622796a65b6 :: false

publishItemsToNodes 0.054s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

2020-09-18 23:07:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "entry": "<test>item-c3a9534d-0cdf-49f5-816e-dee7193719d2</test>",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2"
}

2020-09-18 23:07:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2"
}

2020-09-18 23:07:07 | [Mutex] waiting for: [published:item:notifieditem-c3a9534d-0cdf-49f5-816e-dee7193719d2:admin@test-domain.com]

2020-09-18 23:07:07 | [Mutex] received everything.

2020-09-18 23:07:07 | [Mutex] isItemNotified: published:item:notifieditem-c3a9534d-0cdf-49f5-816e-dee7193719d2:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

2020-09-18 23:07:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2"
}

2020-09-18 23:07:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2"
}

2020-09-18 23:07:07 | [Mutex] received everything.

2020-09-18 23:07:07 | [Mutex] isItemNotified: retracted:item:notifieditem-c3a9534d-0cdf-49f5-816e-dee7193719d2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

2020-09-18 23:07:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2"
}

2020-09-18 23:07:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "item-id": "item-c3a9534d-0cdf-49f5-816e-dee7193719d2",
    "item": [
        "<item id=\"item-c3a9534d-0cdf-49f5-816e-dee7193719d2\"><test>item-c3a9534d-0cdf-49f5-816e-dee7193719d2</test></item>"
    ]
}

2020-09-18 23:07:07 | [Mutex] notify: [retrieved:item:item-c3a9534d-0cdf-49f5-816e-dee7193719d2:payload-matches:true:localhost]

2020-09-18 23:07:07 | [Mutex] received everything.

2020-09-18 23:07:07 | [Mutex] isItemNotified: retrieved:item:item-c3a9534d-0cdf-49f5-816e-dee7193719d2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

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

2020-09-18 23:07:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-288a0e76-5f66-4d22-b085-e622796a65b6",
        "node-51285ade-5f85-4b78-a5c7-67bfe537ddd7",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

2020-09-18 23:07:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-288a0e76-5f66-4d22-b085-e622796a65b6)"
}

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

subscribeNodes 1.012s
2020-09-18 23:07:06 |

2020-09-18 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 23:07:06 | ------------------------------------

2020-09-18 23:07:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2020-09-18 23:07:07 |

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

2020-09-18 23:07:07 | ------------------------------------

2020-09-18 23:07:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-288a0e76-5f66-4d22-b085-e622796a65b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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