Generated by TestNG with ReportNG at 22:48 PDT on Tuesday 30 August 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.569s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-08-30 23:03:33 |

2022-08-30 23:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:33 | ------------------------------------

2022-08-30 23:03:33 | [Mutex] waiting for: [configured:node:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:node-90891b5e-57e8-4fae-8ad8-893af6aca5b0]

2022-08-30 23:03:33 | [Mutex] received everything.

2022-08-30 23:03:33 | [Mutex] isItemNotified: configured:node:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:node-90891b5e-57e8-4fae-8ad8-893af6aca5b0 :: true

2022-08-30 23:03:34 | [Mutex] waiting for: [received:nodes:dcad0e65-3804-4932-90f0-4b70dec76230:localhost]

2022-08-30 23:03:34 | [Mutex] received everything.

2022-08-30 23:03:34 | [Mutex] isItemNotified: received:node:dcad0e65-3804-4932-90f0-4b70dec76230:localhost:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6 :: true

2022-08-30 23:03:34 | [Mutex] waiting for: [received:nodes:1bb45cf3-5b0f-4d6c-8c8c-abb49f9abe30:localhost]

2022-08-30 23:03:34 | [Mutex] received everything.

2022-08-30 23:03:34 | [Mutex] isItemNotified: received:node:1bb45cf3-5b0f-4d6c-8c8c-abb49f9abe30:localhost:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6 :: false

createNodes 1.550s
2022-08-30 23:03:30 |

2022-08-30 23:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:30 | ------------------------------------

2022-08-30 23:03:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "pubsub#title": "Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6"
}

2022-08-30 23:03:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 23:03:32 | [Mutex] waiting for: [received:nodes:f4ed9a9f-4e61-47b5-9046-f3760b8bf13f:localhost]

2022-08-30 23:03:32 | [Mutex] waiting for: [received:nodes:f4ed9a9f-4e61-47b5-9046-f3760b8bf13f:localhost]

2022-08-30 23:03:32 | [Mutex] received everything.

2022-08-30 23:03:32 | [Mutex] isItemNotified: received:node:f4ed9a9f-4e61-47b5-9046-f3760b8bf13f:localhost:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6 :: true

createSubnodes 1.020s
2022-08-30 23:03:32 |

2022-08-30 23:03:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:32 | ------------------------------------

2022-08-30 23:03:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-90891b5e-57e8-4fae-8ad8-893af6aca5b0",
    "pubsub#title": "Node 90891b5e-57e8-4fae-8ad8-893af6aca5b0"
}

2022-08-30 23:03:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 23:03:33 | [Mutex] waiting for: [received:nodes:b122a910-16af-4475-bcc0-89b121b5ad5c:localhost]

2022-08-30 23:03:33 | [Mutex] received everything.

2022-08-30 23:03:33 | [Mutex] isItemNotified: received:node:b122a910-16af-4475-bcc0-89b121b5ad5c:localhost:node-90891b5e-57e8-4fae-8ad8-893af6aca5b0:Node 90891b5e-57e8-4fae-8ad8-893af6aca5b0 :: true

deleteNodes 1.027s
2022-08-30 23:03:37 |

2022-08-30 23:03:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:37 | ------------------------------------

2022-08-30 23:03:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-90891b5e-57e8-4fae-8ad8-893af6aca5b0"
}

2022-08-30 23:03:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 23:03:38 | [Mutex] waiting for: [received:nodes:b57b9f2d-b475-4bc6-9741-0c7122252551:localhost]

2022-08-30 23:03:38 | [Mutex] waiting for: [received:nodes:b57b9f2d-b475-4bc6-9741-0c7122252551:localhost]

2022-08-30 23:03:38 | [Mutex] received everything.

2022-08-30 23:03:38 | [Mutex] isItemNotified: received:node:b57b9f2d-b475-4bc6-9741-0c7122252551:localhost:node-90891b5e-57e8-4fae-8ad8-893af6aca5b0:Node 90891b5e-57e8-4fae-8ad8-893af6aca5b0 :: false

deleteSubnodes 1.025s
2022-08-30 23:03:36 |

2022-08-30 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:36 | ------------------------------------

2022-08-30 23:03:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6"
}

2022-08-30 23:03:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 23:03:37 | [Mutex] waiting for: [received:nodes:f3b1863b-096d-419e-a0b9-212353359583:localhost]

2022-08-30 23:03:37 | [Mutex] waiting for: [received:nodes:f3b1863b-096d-419e-a0b9-212353359583:localhost]

2022-08-30 23:03:37 | [Mutex] received everything.

2022-08-30 23:03:37 | [Mutex] isItemNotified: received:node:f3b1863b-096d-419e-a0b9-212353359583:localhost:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6 :: false

2022-08-30 23:03:37 | [Mutex] waiting for: [received:nodes:9942e85d-fac3-4da5-9612-2e5ab2ac9f51:localhost]

2022-08-30 23:03:37 | [Mutex] received everything.

2022-08-30 23:03:37 | [Mutex] isItemNotified: received:node:9942e85d-fac3-4da5-9612-2e5ab2ac9f51:localhost:node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6:Node 4d3564cf-e6a7-4879-8e1d-64e6bd15eed6 :: false

publishItemsToNodes 0.065s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "entry": "<test>item-83eeb957-953a-4a43-a895-49c0ea1ccdb4</test>",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4"
}

2022-08-30 23:03:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4"
}

2022-08-30 23:03:35 | [Mutex] waiting for: [published:item:notifieditem-83eeb957-953a-4a43-a895-49c0ea1ccdb4:admin@test-domain.com]

2022-08-30 23:03:35 | [Mutex] received everything.

2022-08-30 23:03:35 | [Mutex] isItemNotified: published:item:notifieditem-83eeb957-953a-4a43-a895-49c0ea1ccdb4:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4"
}

2022-08-30 23:03:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4"
}

2022-08-30 23:03:35 | [Mutex] received everything.

2022-08-30 23:03:35 | [Mutex] isItemNotified: retracted:item:notifieditem-83eeb957-953a-4a43-a895-49c0ea1ccdb4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4"
}

2022-08-30 23:03:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "item-id": "item-83eeb957-953a-4a43-a895-49c0ea1ccdb4",
    "item": [
        "<item id=\"item-83eeb957-953a-4a43-a895-49c0ea1ccdb4\"><test>item-83eeb957-953a-4a43-a895-49c0ea1ccdb4</test></item>"
    ]
}

2022-08-30 23:03:35 | [Mutex] notify: [retrieved:item:item-83eeb957-953a-4a43-a895-49c0ea1ccdb4:payload-matches:true:localhost]

2022-08-30 23:03:35 | [Mutex] received everything.

2022-08-30 23:03:35 | [Mutex] isItemNotified: retrieved:item:item-83eeb957-953a-4a43-a895-49c0ea1ccdb4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-30 23:03:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-90891b5e-57e8-4fae-8ad8-893af6aca5b0",
        "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6)"
}

2022-08-30 23:03:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-08-30 23:03:34 |

2022-08-30 23:03:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:34 | ------------------------------------

2022-08-30 23:03:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-30 23:03:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-08-30 23:03:35 |

2022-08-30 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 23:03:35 | ------------------------------------

2022-08-30 23:03:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4d3564cf-e6a7-4879-8e1d-64e6bd15eed6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-30 23:03:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}