Generated by TestNG with ReportNG at 22:26 PDT on Sunday 09 May 2021
root@f29ef40080b5 / 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.114s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2021-05-09 22:41:22 |

2021-05-09 22:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:22 | ------------------------------------

2021-05-09 22:41:22 | [Mutex] waiting for: [configured:node:node-e6ace659-47bf-464b-a623-4421d56164ae:node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b]

2021-05-09 22:41:22 | [Mutex] received everything.

2021-05-09 22:41:22 | [Mutex] isItemNotified: configured:node:node-e6ace659-47bf-464b-a623-4421d56164ae:node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b :: true

2021-05-09 22:41:23 | [Mutex] waiting for: [received:nodes:5fb5dd28-fa84-41e9-992c-12612327b799:localhost]

2021-05-09 22:41:23 | [Mutex] received everything.

2021-05-09 22:41:23 | [Mutex] isItemNotified: received:node:5fb5dd28-fa84-41e9-992c-12612327b799:localhost:node-e6ace659-47bf-464b-a623-4421d56164ae:Node e6ace659-47bf-464b-a623-4421d56164ae :: true

2021-05-09 22:41:23 | [Mutex] waiting for: [received:nodes:944ff243-14a6-438d-9b41-b27a053cf979:localhost]

2021-05-09 22:41:23 | [Mutex] received everything.

2021-05-09 22:41:23 | [Mutex] isItemNotified: received:node:944ff243-14a6-438d-9b41-b27a053cf979:localhost:node-e6ace659-47bf-464b-a623-4421d56164ae:Node e6ace659-47bf-464b-a623-4421d56164ae :: false

createNodes 1.749s
2021-05-09 22:41:19 |

2021-05-09 22:41:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:19 | ------------------------------------

2021-05-09 22:41: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-e6ace659-47bf-464b-a623-4421d56164ae",
    "pubsub#title": "Node e6ace659-47bf-464b-a623-4421d56164ae"
}

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

2021-05-09 22:41:21 | [Mutex] waiting for: [received:nodes:8317c3c8-b6d9-42e8-aa89-4e69ab640669:localhost]

2021-05-09 22:41:21 | [Mutex] waiting for: [received:nodes:8317c3c8-b6d9-42e8-aa89-4e69ab640669:localhost]

2021-05-09 22:41:21 | [Mutex] received everything.

2021-05-09 22:41:21 | [Mutex] isItemNotified: received:node:8317c3c8-b6d9-42e8-aa89-4e69ab640669:localhost:node-e6ace659-47bf-464b-a623-4421d56164ae:Node e6ace659-47bf-464b-a623-4421d56164ae :: true

createSubnodes 1.028s
2021-05-09 22:41:21 |

2021-05-09 22:41:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:21 | ------------------------------------

2021-05-09 22:41: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-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b",
    "pubsub#title": "Node b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b"
}

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

2021-05-09 22:41:22 | [Mutex] waiting for: [received:nodes:748e618e-71ce-45e4-a7c2-4c77ae4636d8:localhost]

2021-05-09 22:41:22 | [Mutex] received everything.

2021-05-09 22:41:22 | [Mutex] isItemNotified: received:node:748e618e-71ce-45e4-a7c2-4c77ae4636d8:localhost:node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b:Node b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b :: true

deleteNodes 1.030s
2021-05-09 22:41:26 |

2021-05-09 22:41:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:26 | ------------------------------------

2021-05-09 22:41:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b"
}

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

2021-05-09 22:41:27 | [Mutex] waiting for: [received:nodes:644903cd-d060-4478-bcc8-7de7e5c4972d:localhost]

2021-05-09 22:41:27 | [Mutex] received everything.

2021-05-09 22:41:27 | [Mutex] isItemNotified: received:node:644903cd-d060-4478-bcc8-7de7e5c4972d:localhost:node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b:Node b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b :: false

deleteSubnodes 1.038s
2021-05-09 22:41:25 |

2021-05-09 22:41:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:25 | ------------------------------------

2021-05-09 22:41:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae"
}

2021-05-09 22:41:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 22:41:26 | [Mutex] waiting for: [received:nodes:d3fd285c-ddd4-4dcc-8754-5ea7890336c8:localhost]

2021-05-09 22:41:26 | [Mutex] waiting for: [received:nodes:d3fd285c-ddd4-4dcc-8754-5ea7890336c8:localhost]

2021-05-09 22:41:26 | [Mutex] received everything.

2021-05-09 22:41:26 | [Mutex] isItemNotified: received:node:d3fd285c-ddd4-4dcc-8754-5ea7890336c8:localhost:node-e6ace659-47bf-464b-a623-4421d56164ae:Node e6ace659-47bf-464b-a623-4421d56164ae :: false

2021-05-09 22:41:26 | [Mutex] waiting for: [received:nodes:5d1c9167-5929-4794-b45e-83fdb54bda16:localhost]

2021-05-09 22:41:26 | [Mutex] received everything.

2021-05-09 22:41:26 | [Mutex] isItemNotified: received:node:5d1c9167-5929-4794-b45e-83fdb54bda16:localhost:node-e6ace659-47bf-464b-a623-4421d56164ae:Node e6ace659-47bf-464b-a623-4421d56164ae :: false

publishItemsToNodes 0.062s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

2021-05-09 22:41:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "entry": "<test>item-97dd5815-43cd-452a-a451-f18898471d15</test>",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15"
}

2021-05-09 22:41:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15"
}

2021-05-09 22:41:24 | [Mutex] waiting for: [published:item:notifieditem-97dd5815-43cd-452a-a451-f18898471d15:admin@test-domain.com]

2021-05-09 22:41:24 | [Mutex] received everything.

2021-05-09 22:41:24 | [Mutex] isItemNotified: published:item:notifieditem-97dd5815-43cd-452a-a451-f18898471d15:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

2021-05-09 22:41:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15"
}

2021-05-09 22:41:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15"
}

2021-05-09 22:41:24 | [Mutex] received everything.

2021-05-09 22:41:24 | [Mutex] isItemNotified: retracted:item:notifieditem-97dd5815-43cd-452a-a451-f18898471d15:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

2021-05-09 22:41:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15"
}

2021-05-09 22:41:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "item-id": "item-97dd5815-43cd-452a-a451-f18898471d15",
    "item": [
        "<item id=\"item-97dd5815-43cd-452a-a451-f18898471d15\"><test>item-97dd5815-43cd-452a-a451-f18898471d15</test></item>"
    ]
}

2021-05-09 22:41:24 | [Mutex] notify: [retrieved:item:item-97dd5815-43cd-452a-a451-f18898471d15:payload-matches:true:localhost]

2021-05-09 22:41:24 | [Mutex] received everything.

2021-05-09 22:41:24 | [Mutex] isItemNotified: retrieved:item:item-97dd5815-43cd-452a-a451-f18898471d15:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

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

2021-05-09 22:41:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b8fe3071-b9b1-42ba-8736-eefd2a7b8d1b",
        "test",
        "node-e6ace659-47bf-464b-a623-4421d56164ae"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

2021-05-09 22:41:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e6ace659-47bf-464b-a623-4421d56164ae)"
}

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

subscribeNodes 1.014s
2021-05-09 22:41:23 |

2021-05-09 22:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:23 | ------------------------------------

2021-05-09 22:41:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.082s
2021-05-09 22:41:24 |

2021-05-09 22:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:41:24 | ------------------------------------

2021-05-09 22:41:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e6ace659-47bf-464b-a623-4421d56164ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-09 22:41:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}