Generated by TestNG with ReportNG at 21:27 PST on Tuesday 09 November 2021
root@b2c2a8eba6e6 / 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.833s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2021-11-09 21:44:34 |

2021-11-09 21:44:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:34 | ------------------------------------

2021-11-09 21:44:35 | [Mutex] waiting for: [configured:node:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:node-af15f5b2-fe25-4b35-88ec-e08521f26ed4]

2021-11-09 21:44:35 | [Mutex] received everything.

2021-11-09 21:44:35 | [Mutex] isItemNotified: configured:node:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:node-af15f5b2-fe25-4b35-88ec-e08521f26ed4 :: true

2021-11-09 21:44:36 | [Mutex] waiting for: [received:nodes:8ceaaee8-58af-4b70-bdb7-1030a5509d61:localhost]

2021-11-09 21:44:36 | [Mutex] received everything.

2021-11-09 21:44:36 | [Mutex] isItemNotified: received:node:8ceaaee8-58af-4b70-bdb7-1030a5509d61:localhost:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee :: true

2021-11-09 21:44:36 | [Mutex] waiting for: [received:nodes:0f201cfd-318d-43e4-960e-697f458469eb:localhost]

2021-11-09 21:44:36 | [Mutex] received everything.

2021-11-09 21:44:36 | [Mutex] isItemNotified: received:node:0f201cfd-318d-43e4-960e-697f458469eb:localhost:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee :: false

createNodes 1.506s
2021-11-09 21:44:32 |

2021-11-09 21:44:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:32 | ------------------------------------

2021-11-09 21:44: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-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "pubsub#title": "Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee"
}

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

2021-11-09 21:44:33 | [Mutex] waiting for: [received:nodes:dd13e813-7aec-4545-bb62-b35b40431b6e:localhost]

2021-11-09 21:44:33 | [Mutex] received everything.

2021-11-09 21:44:33 | [Mutex] isItemNotified: received:node:dd13e813-7aec-4545-bb62-b35b40431b6e:localhost:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee :: true

createSubnodes 1.025s
2021-11-09 21:44:33 |

2021-11-09 21:44:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:33 | ------------------------------------

2021-11-09 21:44:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-af15f5b2-fe25-4b35-88ec-e08521f26ed4",
    "pubsub#title": "Node af15f5b2-fe25-4b35-88ec-e08521f26ed4"
}

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

2021-11-09 21:44:34 | [Mutex] waiting for: [received:nodes:51889f2a-d05a-48ae-bca8-02da326f5172:localhost]

2021-11-09 21:44:34 | [Mutex] received everything.

2021-11-09 21:44:34 | [Mutex] isItemNotified: received:node:51889f2a-d05a-48ae-bca8-02da326f5172:localhost:node-af15f5b2-fe25-4b35-88ec-e08521f26ed4:Node af15f5b2-fe25-4b35-88ec-e08521f26ed4 :: true

deleteNodes 1.023s
2021-11-09 21:44:39 |

2021-11-09 21:44:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:39 | ------------------------------------

2021-11-09 21:44:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-af15f5b2-fe25-4b35-88ec-e08521f26ed4"
}

2021-11-09 21:44:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:44:40 | [Mutex] waiting for: [received:nodes:66cb3b30-97ab-41ee-b7ce-130d69ef788f:localhost]

2021-11-09 21:44:40 | [Mutex] waiting for: [received:nodes:66cb3b30-97ab-41ee-b7ce-130d69ef788f:localhost]

2021-11-09 21:44:40 | [Mutex] received everything.

2021-11-09 21:44:40 | [Mutex] isItemNotified: received:node:66cb3b30-97ab-41ee-b7ce-130d69ef788f:localhost:node-af15f5b2-fe25-4b35-88ec-e08521f26ed4:Node af15f5b2-fe25-4b35-88ec-e08521f26ed4 :: false

deleteSubnodes 1.029s
2021-11-09 21:44:38 |

2021-11-09 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:38 | ------------------------------------

2021-11-09 21:44:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee"
}

2021-11-09 21:44:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:44:39 | [Mutex] waiting for: [received:nodes:77aa1812-b6ba-487e-b594-4115ff60b241:localhost]

2021-11-09 21:44:39 | [Mutex] received everything.

2021-11-09 21:44:39 | [Mutex] isItemNotified: received:node:77aa1812-b6ba-487e-b594-4115ff60b241:localhost:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee :: false

2021-11-09 21:44:39 | [Mutex] waiting for: [received:nodes:0d8ea75b-278e-41d1-8c81-18ec3470afe3:localhost]

2021-11-09 21:44:39 | [Mutex] received everything.

2021-11-09 21:44:39 | [Mutex] isItemNotified: received:node:0d8ea75b-278e-41d1-8c81-18ec3470afe3:localhost:node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee:Node c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee :: false

publishItemsToNodes 0.053s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "entry": "<test>item-d9bbac85-e39f-4849-9a33-7600c6019d0f</test>",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f"
}

2021-11-09 21:44:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f"
}

2021-11-09 21:44:37 | [Mutex] received everything.

2021-11-09 21:44:37 | [Mutex] isItemNotified: published:item:notifieditem-d9bbac85-e39f-4849-9a33-7600c6019d0f:admin@test-domain.com :: true

retractItemsFromNodes 0.123s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f"
}

2021-11-09 21:44:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f"
}

2021-11-09 21:44:37 | [Mutex] waiting for: [retracted:item:notifieditem-d9bbac85-e39f-4849-9a33-7600c6019d0f:admin@test-domain.com]

2021-11-09 21:44:37 | [Mutex] received everything.

2021-11-09 21:44:37 | [Mutex] isItemNotified: retracted:item:notifieditem-d9bbac85-e39f-4849-9a33-7600c6019d0f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f"
}

2021-11-09 21:44:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "item-id": "item-d9bbac85-e39f-4849-9a33-7600c6019d0f",
    "item": [
        "<item id=\"item-d9bbac85-e39f-4849-9a33-7600c6019d0f\"><test>item-d9bbac85-e39f-4849-9a33-7600c6019d0f</test></item>"
    ]
}

2021-11-09 21:44:37 | [Mutex] notify: [retrieved:item:item-d9bbac85-e39f-4849-9a33-7600c6019d0f:payload-matches:true:localhost]

2021-11-09 21:44:37 | [Mutex] received everything.

2021-11-09 21:44:37 | [Mutex] isItemNotified: retrieved:item:item-d9bbac85-e39f-4849-9a33-7600c6019d0f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-11-09 21:44:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-af15f5b2-fe25-4b35-88ec-e08521f26ed4",
        "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee)"
}

2021-11-09 21:44:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-11-09 21:44:36 |

2021-11-09 21:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:36 | ------------------------------------

2021-11-09 21:44:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 21:44:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.013s
2021-11-09 21:44:37 |

2021-11-09 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:44:37 | ------------------------------------

2021-11-09 21:44:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c549bdb0-bdc6-4f4b-b7f1-bd541b66aeee",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 21:44:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}