Generated by TestNG with ReportNG at 22:43 PDT on Thursday 17 June 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.048s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2021-06-17 22:58:35 |

2021-06-17 22:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:35 | ------------------------------------

2021-06-17 22:58:35 | [Mutex] waiting for: [configured:node:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:node-27845593-709d-4456-8769-1ac24affebd2]

2021-06-17 22:58:35 | [Mutex] received everything.

2021-06-17 22:58:35 | [Mutex] isItemNotified: configured:node:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:node-27845593-709d-4456-8769-1ac24affebd2 :: true

2021-06-17 22:58:36 | [Mutex] waiting for: [received:nodes:9e2997d2-dd70-4668-a106-6c87a53bdc70:localhost]

2021-06-17 22:58:36 | [Mutex] received everything.

2021-06-17 22:58:36 | [Mutex] isItemNotified: received:node:9e2997d2-dd70-4668-a106-6c87a53bdc70:localhost:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7 :: true

2021-06-17 22:58:36 | [Mutex] waiting for: [received:nodes:393c6619-c838-4b1e-95da-dbb0ddc9a915:localhost]

2021-06-17 22:58:36 | [Mutex] received everything.

2021-06-17 22:58:36 | [Mutex] isItemNotified: received:node:393c6619-c838-4b1e-95da-dbb0ddc9a915:localhost:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7 :: false

createNodes 1.618s
2021-06-17 22:58:32 |

2021-06-17 22:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:32 | ------------------------------------

2021-06-17 22:58:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "pubsub#title": "Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7"
}

2021-06-17 22:58:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:58:34 | [Mutex] waiting for: [received:nodes:5e18c446-6e2c-40ac-ac7a-a1e415840eaf:localhost]

2021-06-17 22:58:34 | [Mutex] received everything.

2021-06-17 22:58:34 | [Mutex] isItemNotified: received:node:5e18c446-6e2c-40ac-ac7a-a1e415840eaf:localhost:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7 :: true

createSubnodes 1.028s
2021-06-17 22:58:34 |

2021-06-17 22:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:34 | ------------------------------------

2021-06-17 22:58:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-27845593-709d-4456-8769-1ac24affebd2",
    "pubsub#title": "Node 27845593-709d-4456-8769-1ac24affebd2"
}

2021-06-17 22:58:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:58:35 | [Mutex] waiting for: [received:nodes:a371cf98-9054-4d8a-8785-abee38af750a:localhost]

2021-06-17 22:58:35 | [Mutex] received everything.

2021-06-17 22:58:35 | [Mutex] isItemNotified: received:node:a371cf98-9054-4d8a-8785-abee38af750a:localhost:node-27845593-709d-4456-8769-1ac24affebd2:Node 27845593-709d-4456-8769-1ac24affebd2 :: true

deleteNodes 1.020s
2021-06-17 22:58:39 |

2021-06-17 22:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:39 | ------------------------------------

2021-06-17 22:58:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-27845593-709d-4456-8769-1ac24affebd2"
}

2021-06-17 22:58:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:58:40 | [Mutex] waiting for: [received:nodes:31df54cf-7dcd-430e-a3ce-22b2fb4f55b1:localhost]

2021-06-17 22:58:40 | [Mutex] received everything.

2021-06-17 22:58:40 | [Mutex] isItemNotified: received:node:31df54cf-7dcd-430e-a3ce-22b2fb4f55b1:localhost:node-27845593-709d-4456-8769-1ac24affebd2:Node 27845593-709d-4456-8769-1ac24affebd2 :: false

deleteSubnodes 1.028s
2021-06-17 22:58:38 |

2021-06-17 22:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:38 | ------------------------------------

2021-06-17 22:58:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7"
}

2021-06-17 22:58:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:58:39 | [Mutex] waiting for: [received:nodes:17f7f681-e840-479e-82c2-f6fa97868800:localhost]

2021-06-17 22:58:39 | [Mutex] received everything.

2021-06-17 22:58:39 | [Mutex] isItemNotified: received:node:17f7f681-e840-479e-82c2-f6fa97868800:localhost:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7 :: false

2021-06-17 22:58:39 | [Mutex] waiting for: [received:nodes:61b03821-6c51-4a22-a258-cc0052bc6ae2:localhost]

2021-06-17 22:58:39 | [Mutex] received everything.

2021-06-17 22:58:39 | [Mutex] isItemNotified: received:node:61b03821-6c51-4a22-a258-cc0052bc6ae2:localhost:node-74bcc59b-9ac6-4da9-9909-2abc374b23a7:Node 74bcc59b-9ac6-4da9-9909-2abc374b23a7 :: false

publishItemsToNodes 0.048s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "entry": "<test>item-22825a14-4261-417e-838b-2943c1715eaa</test>",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa"
}

2021-06-17 22:58:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa"
}

2021-06-17 22:58:37 | [Mutex] waiting for: [published:item:notifieditem-22825a14-4261-417e-838b-2943c1715eaa:admin@test-domain.com]

2021-06-17 22:58:37 | [Mutex] received everything.

2021-06-17 22:58:37 | [Mutex] isItemNotified: published:item:notifieditem-22825a14-4261-417e-838b-2943c1715eaa:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa"
}

2021-06-17 22:58:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa"
}

2021-06-17 22:58:37 | [Mutex] received everything.

2021-06-17 22:58:37 | [Mutex] isItemNotified: retracted:item:notifieditem-22825a14-4261-417e-838b-2943c1715eaa:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa"
}

2021-06-17 22:58:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "item-id": "item-22825a14-4261-417e-838b-2943c1715eaa",
    "item": [
        "<item id=\"item-22825a14-4261-417e-838b-2943c1715eaa\"><test>item-22825a14-4261-417e-838b-2943c1715eaa</test></item>"
    ]
}

2021-06-17 22:58:37 | [Mutex] notify: [retrieved:item:item-22825a14-4261-417e-838b-2943c1715eaa:payload-matches:true:localhost]

2021-06-17 22:58:37 | [Mutex] received everything.

2021-06-17 22:58:37 | [Mutex] isItemNotified: retrieved:item:item-22825a14-4261-417e-838b-2943c1715eaa:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-17 22:58:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
        "node-27845593-709d-4456-8769-1ac24affebd2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-74bcc59b-9ac6-4da9-9909-2abc374b23a7)"
}

2021-06-17 22:58:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-06-17 22:58:36 |

2021-06-17 22:58:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:36 | ------------------------------------

2021-06-17 22:58:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:58:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-06-17 22:58:37 |

2021-06-17 22:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:58:37 | ------------------------------------

2021-06-17 22:58:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-74bcc59b-9ac6-4da9-9909-2abc374b23a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:58:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}