Generated by TestNG with ReportNG at 09:50 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 : 8.862s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2020-09-18 10:08:15 |

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

2020-09-18 10:08:15 | ------------------------------------

2020-09-18 10:08:15 | [Mutex] waiting for: [configured:node:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf]

2020-09-18 10:08:15 | [Mutex] received everything.

2020-09-18 10:08:15 | [Mutex] isItemNotified: configured:node:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf :: true

2020-09-18 10:08:16 | [Mutex] waiting for: [received:nodes:d5cf5b1b-5431-4e93-a54f-42286686739d:localhost]

2020-09-18 10:08:16 | [Mutex] received everything.

2020-09-18 10:08:16 | [Mutex] isItemNotified: received:node:d5cf5b1b-5431-4e93-a54f-42286686739d:localhost:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:Node 1c456f92-ca19-481c-8925-5f09b8ec1b90 :: true

2020-09-18 10:08:16 | [Mutex] waiting for: [received:nodes:0ea08748-76a5-4efa-b0cf-fc7a59614aa6:localhost]

2020-09-18 10:08:16 | [Mutex] received everything.

2020-09-18 10:08:16 | [Mutex] isItemNotified: received:node:0ea08748-76a5-4efa-b0cf-fc7a59614aa6:localhost:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:Node 1c456f92-ca19-481c-8925-5f09b8ec1b90 :: false

createNodes 1.618s
2020-09-18 10:08:12 |

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

2020-09-18 10:08:12 | ------------------------------------

2020-09-18 10:08:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "pubsub#title": "Node 1c456f92-ca19-481c-8925-5f09b8ec1b90"
}

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

2020-09-18 10:08:14 | [Mutex] waiting for: [received:nodes:d65b8639-812f-4bc1-ae2c-d0245bb13cba:localhost]

2020-09-18 10:08:14 | [Mutex] received everything.

2020-09-18 10:08:14 | [Mutex] isItemNotified: received:node:d65b8639-812f-4bc1-ae2c-d0245bb13cba:localhost:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:Node 1c456f92-ca19-481c-8925-5f09b8ec1b90 :: true

createSubnodes 1.024s
2020-09-18 10:08:14 |

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

2020-09-18 10:08:14 | ------------------------------------

2020-09-18 10:08:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf",
    "pubsub#title": "Node 7045626f-5895-45bb-8e5e-efd7b9a6e6bf"
}

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

2020-09-18 10:08:15 | [Mutex] waiting for: [received:nodes:33af6b7a-d513-482f-b150-fd238f7028f2:localhost]

2020-09-18 10:08:15 | [Mutex] received everything.

2020-09-18 10:08:15 | [Mutex] isItemNotified: received:node:33af6b7a-d513-482f-b150-fd238f7028f2:localhost:node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf:Node 7045626f-5895-45bb-8e5e-efd7b9a6e6bf :: true

deleteNodes 1.018s
2020-09-18 10:08:19 |

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

2020-09-18 10:08:19 | ------------------------------------

2020-09-18 10:08:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf"
}

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

2020-09-18 10:08:20 | [Mutex] waiting for: [received:nodes:598d51a3-89e7-490e-afa3-7e2e78714a6a:localhost]

2020-09-18 10:08:20 | [Mutex] received everything.

2020-09-18 10:08:20 | [Mutex] isItemNotified: received:node:598d51a3-89e7-490e-afa3-7e2e78714a6a:localhost:node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf:Node 7045626f-5895-45bb-8e5e-efd7b9a6e6bf :: false

deleteSubnodes 1.029s
2020-09-18 10:08:18 |

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

2020-09-18 10:08:18 | ------------------------------------

2020-09-18 10:08:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90"
}

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

2020-09-18 10:08:19 | [Mutex] waiting for: [received:nodes:b1488ed7-277a-4193-89bc-f77cb35d1562:localhost]

2020-09-18 10:08:19 | [Mutex] received everything.

2020-09-18 10:08:19 | [Mutex] isItemNotified: received:node:b1488ed7-277a-4193-89bc-f77cb35d1562:localhost:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:Node 1c456f92-ca19-481c-8925-5f09b8ec1b90 :: false

2020-09-18 10:08:19 | [Mutex] waiting for: [received:nodes:195270eb-3387-443f-893b-9765095c3a47:localhost]

2020-09-18 10:08:19 | [Mutex] received everything.

2020-09-18 10:08:19 | [Mutex] isItemNotified: received:node:195270eb-3387-443f-893b-9765095c3a47:localhost:node-1c456f92-ca19-481c-8925-5f09b8ec1b90:Node 1c456f92-ca19-481c-8925-5f09b8ec1b90 :: false

publishItemsToNodes 0.056s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

2020-09-18 10:08:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "entry": "<test>item-acf03e3f-388f-4965-b1de-2a9ff95cd688</test>",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688"
}

2020-09-18 10:08:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688"
}

2020-09-18 10:08:17 | [Mutex] waiting for: [published:item:notifieditem-acf03e3f-388f-4965-b1de-2a9ff95cd688:admin@test-domain.com]

2020-09-18 10:08:17 | [Mutex] received everything.

2020-09-18 10:08:17 | [Mutex] isItemNotified: published:item:notifieditem-acf03e3f-388f-4965-b1de-2a9ff95cd688:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

2020-09-18 10:08:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688"
}

2020-09-18 10:08:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688"
}

2020-09-18 10:08:17 | [Mutex] waiting for: [retracted:item:notifieditem-acf03e3f-388f-4965-b1de-2a9ff95cd688:admin@test-domain.com]

2020-09-18 10:08:17 | [Mutex] received everything.

2020-09-18 10:08:17 | [Mutex] isItemNotified: retracted:item:notifieditem-acf03e3f-388f-4965-b1de-2a9ff95cd688:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

2020-09-18 10:08:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688"
}

2020-09-18 10:08:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "item-id": "item-acf03e3f-388f-4965-b1de-2a9ff95cd688",
    "item": [
        "<item id=\"item-acf03e3f-388f-4965-b1de-2a9ff95cd688\"><test>item-acf03e3f-388f-4965-b1de-2a9ff95cd688</test></item>"
    ]
}

2020-09-18 10:08:17 | [Mutex] notify: [retrieved:item:item-acf03e3f-388f-4965-b1de-2a9ff95cd688:payload-matches:true:localhost]

2020-09-18 10:08:17 | [Mutex] received everything.

2020-09-18 10:08:17 | [Mutex] isItemNotified: retrieved:item:item-acf03e3f-388f-4965-b1de-2a9ff95cd688:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

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

2020-09-18 10:08:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
        "node-7045626f-5895-45bb-8e5e-efd7b9a6e6bf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

2020-09-18 10:08:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c456f92-ca19-481c-8925-5f09b8ec1b90)"
}

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

subscribeNodes 1.011s
2020-09-18 10:08:16 |

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

2020-09-18 10:08:16 | ------------------------------------

2020-09-18 10:08:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.095s
2020-09-18 10:08:17 |

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

2020-09-18 10:08:17 | ------------------------------------

2020-09-18 10:08:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c456f92-ca19-481c-8925-5f09b8ec1b90",
    "jids": [
        "admin@test-domain.com"
    ]
}

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