Generated by TestNG with ReportNG at 22:18 PDT on Thursday 23 June 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.784s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-06-23 22:39:46 |

2022-06-23 22:39:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:46 | ------------------------------------

2022-06-23 22:39:46 | [Mutex] waiting for: [configured:node:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:node-e49583cf-b6df-4776-8275-61e75586c9f6]

2022-06-23 22:39:46 | [Mutex] received everything.

2022-06-23 22:39:46 | [Mutex] isItemNotified: configured:node:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:node-e49583cf-b6df-4776-8275-61e75586c9f6 :: true

2022-06-23 22:39:47 | [Mutex] waiting for: [received:nodes:19ab7d92-3085-4ed5-8383-cc9f614b8143:localhost]

2022-06-23 22:39:47 | [Mutex] received everything.

2022-06-23 22:39:47 | [Mutex] isItemNotified: received:node:19ab7d92-3085-4ed5-8383-cc9f614b8143:localhost:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:Node 6c009bf4-cd32-47df-b789-eabe96f52f3f :: true

2022-06-23 22:39:47 | [Mutex] waiting for: [received:nodes:66d74fc4-b6a6-4b66-a8b3-03208618c152:localhost]

2022-06-23 22:39:47 | [Mutex] waiting for: [received:nodes:66d74fc4-b6a6-4b66-a8b3-03208618c152:localhost]

2022-06-23 22:39:47 | [Mutex] received everything.

2022-06-23 22:39:47 | [Mutex] isItemNotified: received:node:66d74fc4-b6a6-4b66-a8b3-03208618c152:localhost:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:Node 6c009bf4-cd32-47df-b789-eabe96f52f3f :: false

createNodes 1.739s
2022-06-23 22:39:44 |

2022-06-23 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:44 | ------------------------------------

2022-06-23 22:39:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "pubsub#title": "Node 6c009bf4-cd32-47df-b789-eabe96f52f3f"
}

2022-06-23 22:39:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-23 22:39:45 | [Mutex] waiting for: [received:nodes:93e0ac90-2907-4526-9f62-deb6f4a47346:localhost]

2022-06-23 22:39:45 | [Mutex] received everything.

2022-06-23 22:39:45 | [Mutex] isItemNotified: received:node:93e0ac90-2907-4526-9f62-deb6f4a47346:localhost:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:Node 6c009bf4-cd32-47df-b789-eabe96f52f3f :: true

createSubnodes 1.028s
2022-06-23 22:39:45 |

2022-06-23 22:39:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:45 | ------------------------------------

2022-06-23 22:39:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e49583cf-b6df-4776-8275-61e75586c9f6",
    "pubsub#title": "Node e49583cf-b6df-4776-8275-61e75586c9f6"
}

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

2022-06-23 22:39:46 | [Mutex] waiting for: [received:nodes:8feb90a8-ad5b-4765-986e-8daea2347ad0:localhost]

2022-06-23 22:39:46 | [Mutex] received everything.

2022-06-23 22:39:46 | [Mutex] isItemNotified: received:node:8feb90a8-ad5b-4765-986e-8daea2347ad0:localhost:node-e49583cf-b6df-4776-8275-61e75586c9f6:Node e49583cf-b6df-4776-8275-61e75586c9f6 :: true

deleteNodes 1.030s
2022-06-23 22:39:51 |

2022-06-23 22:39:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:51 | ------------------------------------

2022-06-23 22:39:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e49583cf-b6df-4776-8275-61e75586c9f6"
}

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

2022-06-23 22:39:52 | [Mutex] waiting for: [received:nodes:c7ac4202-6356-40cb-86c3-8d6cc321ad85:localhost]

2022-06-23 22:39:52 | [Mutex] received everything.

2022-06-23 22:39:52 | [Mutex] isItemNotified: received:node:c7ac4202-6356-40cb-86c3-8d6cc321ad85:localhost:node-e49583cf-b6df-4776-8275-61e75586c9f6:Node e49583cf-b6df-4776-8275-61e75586c9f6 :: false

deleteSubnodes 1.023s
2022-06-23 22:39:50 |

2022-06-23 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:50 | ------------------------------------

2022-06-23 22:39:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f"
}

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

2022-06-23 22:39:51 | [Mutex] waiting for: [received:nodes:206be4bf-03ed-4761-b567-d82a3bc27c2b:localhost]

2022-06-23 22:39:51 | [Mutex] waiting for: [received:nodes:206be4bf-03ed-4761-b567-d82a3bc27c2b:localhost]

2022-06-23 22:39:51 | [Mutex] received everything.

2022-06-23 22:39:51 | [Mutex] isItemNotified: received:node:206be4bf-03ed-4761-b567-d82a3bc27c2b:localhost:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:Node 6c009bf4-cd32-47df-b789-eabe96f52f3f :: false

2022-06-23 22:39:51 | [Mutex] waiting for: [received:nodes:fb8edd1e-e09f-45b2-a97d-a952636117c6:localhost]

2022-06-23 22:39:51 | [Mutex] received everything.

2022-06-23 22:39:51 | [Mutex] isItemNotified: received:node:fb8edd1e-e09f-45b2-a97d-a952636117c6:localhost:node-6c009bf4-cd32-47df-b789-eabe96f52f3f:Node 6c009bf4-cd32-47df-b789-eabe96f52f3f :: false

publishItemsToNodes 0.029s
2022-06-23 22:39:48 |

2022-06-23 22:39:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:48 | ------------------------------------

2022-06-23 22:39:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "entry": "<test>item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f</test>",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f"
}

2022-06-23 22:39:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f"
}

2022-06-23 22:39:48 | [Mutex] waiting for: [published:item:notifieditem-591fa71b-13a4-44a2-a7ca-09d4f9118c0f:admin@test-domain.com]

2022-06-23 22:39:48 | [Mutex] received everything.

2022-06-23 22:39:48 | [Mutex] isItemNotified: published:item:notifieditem-591fa71b-13a4-44a2-a7ca-09d4f9118c0f:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-23 22:39:49 |

2022-06-23 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:49 | ------------------------------------

2022-06-23 22:39:49 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f"
}

2022-06-23 22:39:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f"
}

2022-06-23 22:39:49 | [Mutex] received everything.

2022-06-23 22:39:49 | [Mutex] isItemNotified: retracted:item:notifieditem-591fa71b-13a4-44a2-a7ca-09d4f9118c0f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-06-23 22:39:48 |

2022-06-23 22:39:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:48 | ------------------------------------

2022-06-23 22:39:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f"
}

2022-06-23 22:39:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "item-id": "item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f",
    "item": [
        "<item id=\"item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f\"><test>item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f</test></item>"
    ]
}

2022-06-23 22:39:49 | [Mutex] notify: [retrieved:item:item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f:payload-matches:true:localhost]

2022-06-23 22:39:49 | [Mutex] received everything.

2022-06-23 22:39:49 | [Mutex] isItemNotified: retrieved:item:item-591fa71b-13a4-44a2-a7ca-09d4f9118c0f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-06-23 22:39:49 |

2022-06-23 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:49 | ------------------------------------

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

2022-06-23 22:39:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
        "node-e49583cf-b6df-4776-8275-61e75586c9f6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-23 22:39:49 |

2022-06-23 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:49 | ------------------------------------

2022-06-23 22:39:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6c009bf4-cd32-47df-b789-eabe96f52f3f)"
}

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

subscribeNodes 1.010s
2022-06-23 22:39:47 |

2022-06-23 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:47 | ------------------------------------

2022-06-23 22:39:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-23 22:39:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-06-23 22:39:49 |

2022-06-23 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:39:49 | ------------------------------------

2022-06-23 22:39:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6c009bf4-cd32-47df-b789-eabe96f52f3f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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