Generated by TestNG with ReportNG at 22:49 PDT on Thursday 22 September 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.542s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2022-09-22 23:03:49 |

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

2022-09-22 23:03:49 | ------------------------------------

2022-09-22 23:03:49 | [Mutex] waiting for: [configured:node:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:node-67fc3600-e6cb-4ff3-8884-ad535432a7f1]

2022-09-22 23:03:50 | [Mutex] received everything.

2022-09-22 23:03:50 | [Mutex] isItemNotified: configured:node:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:node-67fc3600-e6cb-4ff3-8884-ad535432a7f1 :: true

2022-09-22 23:03:51 | [Mutex] waiting for: [received:nodes:d6528326-0e1c-4ab4-918f-1630c5d62079:localhost]

2022-09-22 23:03:51 | [Mutex] received everything.

2022-09-22 23:03:51 | [Mutex] isItemNotified: received:node:d6528326-0e1c-4ab4-918f-1630c5d62079:localhost:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4 :: true

2022-09-22 23:03:51 | [Mutex] waiting for: [received:nodes:59237b2d-3a42-45c2-9f11-3561760e0a1d:localhost]

2022-09-22 23:03:51 | [Mutex] waiting for: [received:nodes:59237b2d-3a42-45c2-9f11-3561760e0a1d:localhost]

2022-09-22 23:03:51 | [Mutex] received everything.

2022-09-22 23:03:51 | [Mutex] isItemNotified: received:node:59237b2d-3a42-45c2-9f11-3561760e0a1d:localhost:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4 :: false

createNodes 1.549s
2022-09-22 23:03:47 |

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

2022-09-22 23:03:47 | ------------------------------------

2022-09-22 23:03:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "pubsub#title": "Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4"
}

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

2022-09-22 23:03:48 | [Mutex] waiting for: [received:nodes:1d10074a-1f0f-4c09-919e-6c03b4e3630c:localhost]

2022-09-22 23:03:48 | [Mutex] received everything.

2022-09-22 23:03:48 | [Mutex] isItemNotified: received:node:1d10074a-1f0f-4c09-919e-6c03b4e3630c:localhost:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4 :: true

createSubnodes 1.021s
2022-09-22 23:03:48 |

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

2022-09-22 23:03:48 | ------------------------------------

2022-09-22 23:03:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-67fc3600-e6cb-4ff3-8884-ad535432a7f1",
    "pubsub#title": "Node 67fc3600-e6cb-4ff3-8884-ad535432a7f1"
}

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

2022-09-22 23:03:49 | [Mutex] waiting for: [received:nodes:d7582358-bfc5-4470-a5c9-47626d98e9af:localhost]

2022-09-22 23:03:49 | [Mutex] received everything.

2022-09-22 23:03:49 | [Mutex] isItemNotified: received:node:d7582358-bfc5-4470-a5c9-47626d98e9af:localhost:node-67fc3600-e6cb-4ff3-8884-ad535432a7f1:Node 67fc3600-e6cb-4ff3-8884-ad535432a7f1 :: true

deleteNodes 1.018s
2022-09-22 23:03:54 |

2022-09-22 23:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:54 | ------------------------------------

2022-09-22 23:03:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-67fc3600-e6cb-4ff3-8884-ad535432a7f1"
}

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

2022-09-22 23:03:55 | [Mutex] waiting for: [received:nodes:bad0ef63-7b22-4646-927c-fa64944cd858:localhost]

2022-09-22 23:03:55 | [Mutex] received everything.

2022-09-22 23:03:55 | [Mutex] isItemNotified: received:node:bad0ef63-7b22-4646-927c-fa64944cd858:localhost:node-67fc3600-e6cb-4ff3-8884-ad535432a7f1:Node 67fc3600-e6cb-4ff3-8884-ad535432a7f1 :: false

deleteSubnodes 1.029s
2022-09-22 23:03:53 |

2022-09-22 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:53 | ------------------------------------

2022-09-22 23:03:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4"
}

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

2022-09-22 23:03:54 | [Mutex] waiting for: [received:nodes:bb3a49a4-3791-40af-b3fc-c3c0d71fcc10:localhost]

2022-09-22 23:03:54 | [Mutex] waiting for: [received:nodes:bb3a49a4-3791-40af-b3fc-c3c0d71fcc10:localhost]

2022-09-22 23:03:54 | [Mutex] received everything.

2022-09-22 23:03:54 | [Mutex] isItemNotified: received:node:bb3a49a4-3791-40af-b3fc-c3c0d71fcc10:localhost:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4 :: false

2022-09-22 23:03:54 | [Mutex] waiting for: [received:nodes:63e88155-0cb5-4280-ae60-e8f21e7a82ad:localhost]

2022-09-22 23:03:54 | [Mutex] received everything.

2022-09-22 23:03:54 | [Mutex] isItemNotified: received:node:63e88155-0cb5-4280-ae60-e8f21e7a82ad:localhost:node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4:Node ec8640ad-4136-4242-9cf5-8bc7359c8fd4 :: false

publishItemsToNodes 0.053s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

2022-09-22 23:03:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "entry": "<test>item-d2a748e6-f68f-4935-b35c-4810d0389975</test>",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975"
}

2022-09-22 23:03:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975"
}

2022-09-22 23:03:52 | [Mutex] waiting for: [published:item:notifieditem-d2a748e6-f68f-4935-b35c-4810d0389975:admin@test-domain.com]

2022-09-22 23:03:52 | [Mutex] received everything.

2022-09-22 23:03:52 | [Mutex] isItemNotified: published:item:notifieditem-d2a748e6-f68f-4935-b35c-4810d0389975:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

2022-09-22 23:03:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975"
}

2022-09-22 23:03:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975"
}

2022-09-22 23:03:52 | [Mutex] waiting for: [retracted:item:notifieditem-d2a748e6-f68f-4935-b35c-4810d0389975:admin@test-domain.com]

2022-09-22 23:03:52 | [Mutex] received everything.

2022-09-22 23:03:52 | [Mutex] isItemNotified: retracted:item:notifieditem-d2a748e6-f68f-4935-b35c-4810d0389975:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

2022-09-22 23:03:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975"
}

2022-09-22 23:03:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "item-id": "item-d2a748e6-f68f-4935-b35c-4810d0389975",
    "item": [
        "<item id=\"item-d2a748e6-f68f-4935-b35c-4810d0389975\"><test>item-d2a748e6-f68f-4935-b35c-4810d0389975</test></item>"
    ]
}

2022-09-22 23:03:52 | [Mutex] notify: [retrieved:item:item-d2a748e6-f68f-4935-b35c-4810d0389975:payload-matches:true:localhost]

2022-09-22 23:03:52 | [Mutex] received everything.

2022-09-22 23:03:52 | [Mutex] isItemNotified: retrieved:item:item-d2a748e6-f68f-4935-b35c-4810d0389975:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

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

2022-09-22 23:03:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-67fc3600-e6cb-4ff3-8884-ad535432a7f1",
        "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

2022-09-22 23:03:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4)"
}

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

subscribeNodes 1.010s
2022-09-22 23:03:51 |

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

2022-09-22 23:03:51 | ------------------------------------

2022-09-22 23:03:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-09-22 23:03:52 |

2022-09-22 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:03:52 | ------------------------------------

2022-09-22 23:03:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ec8640ad-4136-4242-9cf5-8bc7359c8fd4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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