Generated by TestNG with ReportNG at 22:36 PDT on Sunday 08 May 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.737s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2022-05-08 22:50:47 |

2022-05-08 22:50:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:47 | ------------------------------------

2022-05-08 22:50:47 | [Mutex] waiting for: [configured:node:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:node-f9951524-ee4a-4738-8aff-7f934a2e8011]

2022-05-08 22:50:47 | [Mutex] received everything.

2022-05-08 22:50:47 | [Mutex] isItemNotified: configured:node:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:node-f9951524-ee4a-4738-8aff-7f934a2e8011 :: true

2022-05-08 22:50:48 | [Mutex] waiting for: [received:nodes:912fa2ad-a974-4a21-8101-2813569576dd:localhost]

2022-05-08 22:50:48 | [Mutex] received everything.

2022-05-08 22:50:48 | [Mutex] isItemNotified: received:node:912fa2ad-a974-4a21-8101-2813569576dd:localhost:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:Node d2dc8b18-6df8-43df-95d0-2389f06449f0 :: true

2022-05-08 22:50:48 | [Mutex] waiting for: [received:nodes:e43561d8-ed1a-4bbf-a586-a4cbd34782f1:localhost]

2022-05-08 22:50:48 | [Mutex] received everything.

2022-05-08 22:50:48 | [Mutex] isItemNotified: received:node:e43561d8-ed1a-4bbf-a586-a4cbd34782f1:localhost:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:Node d2dc8b18-6df8-43df-95d0-2389f06449f0 :: false

createNodes 1.517s
2022-05-08 22:50:44 |

2022-05-08 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:44 | ------------------------------------

2022-05-08 22:50:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "pubsub#title": "Node d2dc8b18-6df8-43df-95d0-2389f06449f0"
}

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

2022-05-08 22:50:46 | [Mutex] waiting for: [received:nodes:58b0f092-70bc-41a5-adf8-1aa508c1be1c:localhost]

2022-05-08 22:50:46 | [Mutex] received everything.

2022-05-08 22:50:46 | [Mutex] isItemNotified: received:node:58b0f092-70bc-41a5-adf8-1aa508c1be1c:localhost:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:Node d2dc8b18-6df8-43df-95d0-2389f06449f0 :: true

createSubnodes 1.032s
2022-05-08 22:50:46 |

2022-05-08 22:50:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:46 | ------------------------------------

2022-05-08 22:50:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f9951524-ee4a-4738-8aff-7f934a2e8011",
    "pubsub#title": "Node f9951524-ee4a-4738-8aff-7f934a2e8011"
}

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

2022-05-08 22:50:47 | [Mutex] waiting for: [received:nodes:6f6b497a-5753-4dbf-812f-b8b075cd9837:localhost]

2022-05-08 22:50:47 | [Mutex] waiting for: [received:nodes:6f6b497a-5753-4dbf-812f-b8b075cd9837:localhost]

2022-05-08 22:50:47 | [Mutex] received everything.

2022-05-08 22:50:47 | [Mutex] isItemNotified: received:node:6f6b497a-5753-4dbf-812f-b8b075cd9837:localhost:node-f9951524-ee4a-4738-8aff-7f934a2e8011:Node f9951524-ee4a-4738-8aff-7f934a2e8011 :: true

deleteNodes 1.030s
2022-05-08 22:50:51 |

2022-05-08 22:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:51 | ------------------------------------

2022-05-08 22:50:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f9951524-ee4a-4738-8aff-7f934a2e8011"
}

2022-05-08 22:50:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-08 22:50:52 | [Mutex] waiting for: [received:nodes:fca54d38-3d19-4f6a-a4d6-4429359e7b35:localhost]

2022-05-08 22:50:52 | [Mutex] received everything.

2022-05-08 22:50:52 | [Mutex] isItemNotified: received:node:fca54d38-3d19-4f6a-a4d6-4429359e7b35:localhost:node-f9951524-ee4a-4738-8aff-7f934a2e8011:Node f9951524-ee4a-4738-8aff-7f934a2e8011 :: false

deleteSubnodes 1.030s
2022-05-08 22:50:50 |

2022-05-08 22:50:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:50 | ------------------------------------

2022-05-08 22:50:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0"
}

2022-05-08 22:50:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-08 22:50:51 | [Mutex] waiting for: [received:nodes:516d1107-d72d-491c-b8d6-33c33243d46b:localhost]

2022-05-08 22:50:51 | [Mutex] received everything.

2022-05-08 22:50:51 | [Mutex] isItemNotified: received:node:516d1107-d72d-491c-b8d6-33c33243d46b:localhost:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:Node d2dc8b18-6df8-43df-95d0-2389f06449f0 :: false

2022-05-08 22:50:51 | [Mutex] waiting for: [received:nodes:6004766a-4ded-45b4-baf1-6a8d5eb3ab37:localhost]

2022-05-08 22:50:51 | [Mutex] received everything.

2022-05-08 22:50:51 | [Mutex] isItemNotified: received:node:6004766a-4ded-45b4-baf1-6a8d5eb3ab37:localhost:node-d2dc8b18-6df8-43df-95d0-2389f06449f0:Node d2dc8b18-6df8-43df-95d0-2389f06449f0 :: false

publishItemsToNodes 0.047s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

2022-05-08 22:50:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "entry": "<test>item-09134b3e-bb81-4bea-8370-e72a7159c0a4</test>",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4"
}

2022-05-08 22:50:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4"
}

2022-05-08 22:50:49 | [Mutex] waiting for: [published:item:notifieditem-09134b3e-bb81-4bea-8370-e72a7159c0a4:admin@test-domain.com]

2022-05-08 22:50:49 | [Mutex] received everything.

2022-05-08 22:50:49 | [Mutex] isItemNotified: published:item:notifieditem-09134b3e-bb81-4bea-8370-e72a7159c0a4:admin@test-domain.com :: true

retractItemsFromNodes 0.105s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

2022-05-08 22:50:49 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4"
}

2022-05-08 22:50:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4"
}

2022-05-08 22:50:49 | [Mutex] waiting for: [retracted:item:notifieditem-09134b3e-bb81-4bea-8370-e72a7159c0a4:admin@test-domain.com]

2022-05-08 22:50:49 | [Mutex] received everything.

2022-05-08 22:50:49 | [Mutex] isItemNotified: retracted:item:notifieditem-09134b3e-bb81-4bea-8370-e72a7159c0a4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

2022-05-08 22:50:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4"
}

2022-05-08 22:50:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "item-id": "item-09134b3e-bb81-4bea-8370-e72a7159c0a4",
    "item": [
        "<item id=\"item-09134b3e-bb81-4bea-8370-e72a7159c0a4\"><test>item-09134b3e-bb81-4bea-8370-e72a7159c0a4</test></item>"
    ]
}

2022-05-08 22:50:49 | [Mutex] notify: [retrieved:item:item-09134b3e-bb81-4bea-8370-e72a7159c0a4:payload-matches:true:localhost]

2022-05-08 22:50:49 | [Mutex] received everything.

2022-05-08 22:50:49 | [Mutex] isItemNotified: retrieved:item:item-09134b3e-bb81-4bea-8370-e72a7159c0a4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

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

2022-05-08 22:50:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
        "test",
        "node-f9951524-ee4a-4738-8aff-7f934a2e8011"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

2022-05-08 22:50:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d2dc8b18-6df8-43df-95d0-2389f06449f0)"
}

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

subscribeNodes 1.014s
2022-05-08 22:50:48 |

2022-05-08 22:50:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:48 | ------------------------------------

2022-05-08 22:50:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-08 22:50:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.036s
2022-05-08 22:50:49 |

2022-05-08 22:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 22:50:49 | ------------------------------------

2022-05-08 22:50:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d2dc8b18-6df8-43df-95d0-2389f06449f0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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