Generated by TestNG with ReportNG at 22:34 PDT on Friday 28 August 2020
root@3513606298cd / 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 : 8.971s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2020-08-28 22:49:52 |

2020-08-28 22:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:52 | ------------------------------------

2020-08-28 22:49:52 | [Mutex] waiting for: [configured:node:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:node-bb0c198a-394d-426d-9caf-773c35b0b418]

2020-08-28 22:49:52 | [Mutex] received everything.

2020-08-28 22:49:52 | [Mutex] isItemNotified: configured:node:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:node-bb0c198a-394d-426d-9caf-773c35b0b418 :: true

2020-08-28 22:49:53 | [Mutex] waiting for: [received:nodes:02c7e381-e2a3-490c-b48c-51e3ad482486:localhost]

2020-08-28 22:49:53 | [Mutex] received everything.

2020-08-28 22:49:53 | [Mutex] isItemNotified: received:node:02c7e381-e2a3-490c-b48c-51e3ad482486:localhost:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e :: true

2020-08-28 22:49:53 | [Mutex] waiting for: [received:nodes:fac2a70a-e624-4252-830f-9d681c3880fc:localhost]

2020-08-28 22:49:53 | [Mutex] waiting for: [received:nodes:fac2a70a-e624-4252-830f-9d681c3880fc:localhost]

2020-08-28 22:49:53 | [Mutex] waiting for: [received:nodes:fac2a70a-e624-4252-830f-9d681c3880fc:localhost]

2020-08-28 22:49:53 | [Mutex] received everything.

2020-08-28 22:49:53 | [Mutex] isItemNotified: received:node:fac2a70a-e624-4252-830f-9d681c3880fc:localhost:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e :: false

createNodes 1.712s
2020-08-28 22:49:49 |

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

2020-08-28 22:49:49 | ------------------------------------

2020-08-28 22:49:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "pubsub#title": "Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e"
}

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

2020-08-28 22:49:51 | [Mutex] waiting for: [received:nodes:742ffb56-a097-42b1-9a8f-5b23e3cafcd5:localhost]

2020-08-28 22:49:51 | [Mutex] waiting for: [received:nodes:742ffb56-a097-42b1-9a8f-5b23e3cafcd5:localhost]

2020-08-28 22:49:51 | [Mutex] received everything.

2020-08-28 22:49:51 | [Mutex] isItemNotified: received:node:742ffb56-a097-42b1-9a8f-5b23e3cafcd5:localhost:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e :: true

createSubnodes 1.031s
2020-08-28 22:49:51 |

2020-08-28 22:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:51 | ------------------------------------

2020-08-28 22:49:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bb0c198a-394d-426d-9caf-773c35b0b418",
    "pubsub#title": "Node bb0c198a-394d-426d-9caf-773c35b0b418"
}

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

2020-08-28 22:49:52 | [Mutex] waiting for: [received:nodes:8d4e056e-d342-4e2a-aa82-5ea3947b799b:localhost]

2020-08-28 22:49:52 | [Mutex] received everything.

2020-08-28 22:49:52 | [Mutex] isItemNotified: received:node:8d4e056e-d342-4e2a-aa82-5ea3947b799b:localhost:node-bb0c198a-394d-426d-9caf-773c35b0b418:Node bb0c198a-394d-426d-9caf-773c35b0b418 :: true

deleteNodes 1.022s
2020-08-28 22:49:56 |

2020-08-28 22:49:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:56 | ------------------------------------

2020-08-28 22:49:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb0c198a-394d-426d-9caf-773c35b0b418"
}

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

2020-08-28 22:49:57 | [Mutex] waiting for: [received:nodes:b6dfb1d8-4788-4789-b06d-e72840368ee2:localhost]

2020-08-28 22:49:57 | [Mutex] received everything.

2020-08-28 22:49:57 | [Mutex] isItemNotified: received:node:b6dfb1d8-4788-4789-b06d-e72840368ee2:localhost:node-bb0c198a-394d-426d-9caf-773c35b0b418:Node bb0c198a-394d-426d-9caf-773c35b0b418 :: false

deleteSubnodes 1.025s
2020-08-28 22:49:55 |

2020-08-28 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:55 | ------------------------------------

2020-08-28 22:49:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e"
}

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

2020-08-28 22:49:56 | [Mutex] waiting for: [received:nodes:ce1d0409-049e-4e9f-856c-073c4ce642fa:localhost]

2020-08-28 22:49:56 | [Mutex] received everything.

2020-08-28 22:49:56 | [Mutex] isItemNotified: received:node:ce1d0409-049e-4e9f-856c-073c4ce642fa:localhost:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e :: false

2020-08-28 22:49:56 | [Mutex] waiting for: [received:nodes:d7d2fdad-33f7-455c-9bac-bc6a62a760e2:localhost]

2020-08-28 22:49:56 | [Mutex] received everything.

2020-08-28 22:49:56 | [Mutex] isItemNotified: received:node:d7d2fdad-33f7-455c-9bac-bc6a62a760e2:localhost:node-95fcf539-8e8e-4928-bbf9-8bc46aad859e:Node 95fcf539-8e8e-4928-bbf9-8bc46aad859e :: false

publishItemsToNodes 0.035s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

2020-08-28 22:49:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "entry": "<test>item-dc0681c5-aa2b-44c2-907b-411acb760146</test>",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146"
}

2020-08-28 22:49:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146"
}

2020-08-28 22:49:54 | [Mutex] waiting for: [published:item:notifieditem-dc0681c5-aa2b-44c2-907b-411acb760146:admin@test-domain.com]

2020-08-28 22:49:54 | [Mutex] received everything.

2020-08-28 22:49:54 | [Mutex] isItemNotified: published:item:notifieditem-dc0681c5-aa2b-44c2-907b-411acb760146:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

2020-08-28 22:49:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146"
}

2020-08-28 22:49:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146"
}

2020-08-28 22:49:54 | [Mutex] received everything.

2020-08-28 22:49:54 | [Mutex] isItemNotified: retracted:item:notifieditem-dc0681c5-aa2b-44c2-907b-411acb760146:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

2020-08-28 22:49:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146"
}

2020-08-28 22:49:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "item-id": "item-dc0681c5-aa2b-44c2-907b-411acb760146",
    "item": [
        "<item id=\"item-dc0681c5-aa2b-44c2-907b-411acb760146\"><test>item-dc0681c5-aa2b-44c2-907b-411acb760146</test></item>"
    ]
}

2020-08-28 22:49:54 | [Mutex] notify: [retrieved:item:item-dc0681c5-aa2b-44c2-907b-411acb760146:payload-matches:true:localhost]

2020-08-28 22:49:54 | [Mutex] received everything.

2020-08-28 22:49:54 | [Mutex] isItemNotified: retrieved:item:item-dc0681c5-aa2b-44c2-907b-411acb760146:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

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

2020-08-28 22:49:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bb0c198a-394d-426d-9caf-773c35b0b418",
        "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

2020-08-28 22:49:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-95fcf539-8e8e-4928-bbf9-8bc46aad859e)"
}

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

subscribeNodes 1.011s
2020-08-28 22:49:53 |

2020-08-28 22:49:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:53 | ------------------------------------

2020-08-28 22:49:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2020-08-28 22:49:54 |

2020-08-28 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 22:49:54 | ------------------------------------

2020-08-28 22:49:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-95fcf539-8e8e-4928-bbf9-8bc46aad859e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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