Generated by TestNG with ReportNG at 22:49 PDT on Tuesday 12 July 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.699s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-07-12 23:03:27 |

2022-07-12 23:03:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:27 | ------------------------------------

2022-07-12 23:03:27 | [Mutex] waiting for: [configured:node:node-db5cd966-a5be-416d-ad2a-0691e677c117:node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719]

2022-07-12 23:03:27 | [Mutex] received everything.

2022-07-12 23:03:27 | [Mutex] isItemNotified: configured:node:node-db5cd966-a5be-416d-ad2a-0691e677c117:node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719 :: true

2022-07-12 23:03:28 | [Mutex] waiting for: [received:nodes:7888c6cf-d02b-4b97-b685-e77620200d3d:localhost]

2022-07-12 23:03:28 | [Mutex] received everything.

2022-07-12 23:03:28 | [Mutex] isItemNotified: received:node:7888c6cf-d02b-4b97-b685-e77620200d3d:localhost:node-db5cd966-a5be-416d-ad2a-0691e677c117:Node db5cd966-a5be-416d-ad2a-0691e677c117 :: true

2022-07-12 23:03:28 | [Mutex] waiting for: [received:nodes:b8f83d3d-2ad9-4490-afc8-b68e53631cb9:localhost]

2022-07-12 23:03:28 | [Mutex] received everything.

2022-07-12 23:03:28 | [Mutex] isItemNotified: received:node:b8f83d3d-2ad9-4490-afc8-b68e53631cb9:localhost:node-db5cd966-a5be-416d-ad2a-0691e677c117:Node db5cd966-a5be-416d-ad2a-0691e677c117 :: false

createNodes 1.648s
2022-07-12 23:03:24 |

2022-07-12 23:03:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:24 | ------------------------------------

2022-07-12 23:03:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "pubsub#title": "Node db5cd966-a5be-416d-ad2a-0691e677c117"
}

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

2022-07-12 23:03:26 | [Mutex] waiting for: [received:nodes:a0d4a56d-e818-45c1-a35b-9e5659329464:localhost]

2022-07-12 23:03:26 | [Mutex] received everything.

2022-07-12 23:03:26 | [Mutex] isItemNotified: received:node:a0d4a56d-e818-45c1-a35b-9e5659329464:localhost:node-db5cd966-a5be-416d-ad2a-0691e677c117:Node db5cd966-a5be-416d-ad2a-0691e677c117 :: true

createSubnodes 1.020s
2022-07-12 23:03:26 |

2022-07-12 23:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:26 | ------------------------------------

2022-07-12 23:03:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719",
    "pubsub#title": "Node 4badb3d1-dc9f-4f4f-a296-9a59b62e3719"
}

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

2022-07-12 23:03:27 | [Mutex] waiting for: [received:nodes:d52814d7-4393-407b-8c37-089e5d3ac3a2:localhost]

2022-07-12 23:03:27 | [Mutex] received everything.

2022-07-12 23:03:27 | [Mutex] isItemNotified: received:node:d52814d7-4393-407b-8c37-089e5d3ac3a2:localhost:node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719:Node 4badb3d1-dc9f-4f4f-a296-9a59b62e3719 :: true

deleteNodes 1.017s
2022-07-12 23:03:31 |

2022-07-12 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:31 | ------------------------------------

2022-07-12 23:03:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719"
}

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

2022-07-12 23:03:33 | [Mutex] waiting for: [received:nodes:47b98e4d-cfba-427c-9065-57ddb6dd1f61:localhost]

2022-07-12 23:03:33 | [Mutex] received everything.

2022-07-12 23:03:33 | [Mutex] isItemNotified: received:node:47b98e4d-cfba-427c-9065-57ddb6dd1f61:localhost:node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719:Node 4badb3d1-dc9f-4f4f-a296-9a59b62e3719 :: false

deleteSubnodes 1.024s
2022-07-12 23:03:30 |

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

2022-07-12 23:03:30 | ------------------------------------

2022-07-12 23:03:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117"
}

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

2022-07-12 23:03:31 | [Mutex] waiting for: [received:nodes:1e7a096f-4706-463d-8acd-26ae75f4283c:localhost]

2022-07-12 23:03:31 | [Mutex] received everything.

2022-07-12 23:03:31 | [Mutex] isItemNotified: received:node:1e7a096f-4706-463d-8acd-26ae75f4283c:localhost:node-db5cd966-a5be-416d-ad2a-0691e677c117:Node db5cd966-a5be-416d-ad2a-0691e677c117 :: false

2022-07-12 23:03:31 | [Mutex] waiting for: [received:nodes:27309ef7-816e-41c1-9e0e-757cd8f23591:localhost]

2022-07-12 23:03:31 | [Mutex] received everything.

2022-07-12 23:03:31 | [Mutex] isItemNotified: received:node:27309ef7-816e-41c1-9e0e-757cd8f23591:localhost:node-db5cd966-a5be-416d-ad2a-0691e677c117:Node db5cd966-a5be-416d-ad2a-0691e677c117 :: false

publishItemsToNodes 0.054s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

2022-07-12 23:03:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "entry": "<test>item-22154270-61bc-4ab1-9b5b-d73e38d2adfb</test>",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb"
}

2022-07-12 23:03:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb"
}

2022-07-12 23:03:29 | [Mutex] waiting for: [published:item:notifieditem-22154270-61bc-4ab1-9b5b-d73e38d2adfb:admin@test-domain.com]

2022-07-12 23:03:29 | [Mutex] received everything.

2022-07-12 23:03:29 | [Mutex] isItemNotified: published:item:notifieditem-22154270-61bc-4ab1-9b5b-d73e38d2adfb:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

2022-07-12 23:03:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb"
}

2022-07-12 23:03:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb"
}

2022-07-12 23:03:29 | [Mutex] waiting for: [retracted:item:notifieditem-22154270-61bc-4ab1-9b5b-d73e38d2adfb:admin@test-domain.com]

2022-07-12 23:03:29 | [Mutex] received everything.

2022-07-12 23:03:29 | [Mutex] isItemNotified: retracted:item:notifieditem-22154270-61bc-4ab1-9b5b-d73e38d2adfb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.049s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

2022-07-12 23:03:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb"
}

2022-07-12 23:03:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "item-id": "item-22154270-61bc-4ab1-9b5b-d73e38d2adfb",
    "item": [
        "<item id=\"item-22154270-61bc-4ab1-9b5b-d73e38d2adfb\"><test>item-22154270-61bc-4ab1-9b5b-d73e38d2adfb</test></item>"
    ]
}

2022-07-12 23:03:29 | [Mutex] notify: [retrieved:item:item-22154270-61bc-4ab1-9b5b-d73e38d2adfb:payload-matches:true:localhost]

2022-07-12 23:03:29 | [Mutex] received everything.

2022-07-12 23:03:29 | [Mutex] isItemNotified: retrieved:item:item-22154270-61bc-4ab1-9b5b-d73e38d2adfb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

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

2022-07-12 23:03:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4badb3d1-dc9f-4f4f-a296-9a59b62e3719",
        "node-db5cd966-a5be-416d-ad2a-0691e677c117"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

2022-07-12 23:03:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-db5cd966-a5be-416d-ad2a-0691e677c117)"
}

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

subscribeNodes 1.010s
2022-07-12 23:03:28 |

2022-07-12 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:28 | ------------------------------------

2022-07-12 23:03:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2022-07-12 23:03:29 |

2022-07-12 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 23:03:29 | ------------------------------------

2022-07-12 23:03:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-db5cd966-a5be-416d-ad2a-0691e677c117",
    "jids": [
        "admin@test-domain.com"
    ]
}

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