Generated by TestNG with ReportNG at 00:15 PDT on Saturday 28 October 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.504s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2023-10-28 00:29:50 |

2023-10-28 00:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:50 | ------------------------------------

2023-10-28 00:29:50 | [Mutex] waiting for: [configured:node:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:node-dbd8d8c1-df22-4700-bc42-3553274c8d74]

2023-10-28 00:29:50 | [Mutex] received everything.

2023-10-28 00:29:50 | [Mutex] isItemNotified: configured:node:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:node-dbd8d8c1-df22-4700-bc42-3553274c8d74 :: true

2023-10-28 00:29:51 | [Mutex] waiting for: [received:nodes:0c6d63a1-fddd-4208-a7b9-4094b6ed4cc0:localhost]

2023-10-28 00:29:51 | [Mutex] received everything.

2023-10-28 00:29:51 | [Mutex] isItemNotified: received:node:0c6d63a1-fddd-4208-a7b9-4094b6ed4cc0:localhost:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb :: true

2023-10-28 00:29:51 | [Mutex] waiting for: [received:nodes:403d6a20-bc00-4258-b990-8914b732d601:localhost]

2023-10-28 00:29:51 | [Mutex] waiting for: [received:nodes:403d6a20-bc00-4258-b990-8914b732d601:localhost]

2023-10-28 00:29:51 | [Mutex] waiting for: [received:nodes:403d6a20-bc00-4258-b990-8914b732d601:localhost]

2023-10-28 00:29:51 | [Mutex] waiting for: [received:nodes:403d6a20-bc00-4258-b990-8914b732d601:localhost]

2023-10-28 00:29:51 | [Mutex] received everything.

2023-10-28 00:29:51 | [Mutex] isItemNotified: received:node:403d6a20-bc00-4258-b990-8914b732d601:localhost:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb :: false

createNodes 1.495s
2023-10-28 00:29:48 |

2023-10-28 00:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:48 | ------------------------------------

2023-10-28 00:29:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "pubsub#title": "Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb"
}

2023-10-28 00:29:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-28 00:29:49 | [Mutex] waiting for: [received:nodes:7ed5d785-4fbd-4ae2-aa46-12e6221a2477:localhost]

2023-10-28 00:29:49 | [Mutex] waiting for: [received:nodes:7ed5d785-4fbd-4ae2-aa46-12e6221a2477:localhost]

2023-10-28 00:29:49 | [Mutex] received everything.

2023-10-28 00:29:49 | [Mutex] isItemNotified: received:node:7ed5d785-4fbd-4ae2-aa46-12e6221a2477:localhost:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb :: true

createSubnodes 1.026s
2023-10-28 00:29:49 |

2023-10-28 00:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:49 | ------------------------------------

2023-10-28 00:29:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dbd8d8c1-df22-4700-bc42-3553274c8d74",
    "pubsub#title": "Node dbd8d8c1-df22-4700-bc42-3553274c8d74"
}

2023-10-28 00:29:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-28 00:29:50 | [Mutex] waiting for: [received:nodes:afca6f4b-cdff-462d-880e-c2746f8c0083:localhost]

2023-10-28 00:29:50 | [Mutex] waiting for: [received:nodes:afca6f4b-cdff-462d-880e-c2746f8c0083:localhost]

2023-10-28 00:29:50 | [Mutex] received everything.

2023-10-28 00:29:50 | [Mutex] isItemNotified: received:node:afca6f4b-cdff-462d-880e-c2746f8c0083:localhost:node-dbd8d8c1-df22-4700-bc42-3553274c8d74:Node dbd8d8c1-df22-4700-bc42-3553274c8d74 :: true

deleteNodes 1.020s
2023-10-28 00:29:55 |

2023-10-28 00:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:55 | ------------------------------------

2023-10-28 00:29:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dbd8d8c1-df22-4700-bc42-3553274c8d74"
}

2023-10-28 00:29:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-28 00:29:56 | [Mutex] waiting for: [received:nodes:788cb251-47ef-4ff8-b18b-dab19749a49a:localhost]

2023-10-28 00:29:56 | [Mutex] waiting for: [received:nodes:788cb251-47ef-4ff8-b18b-dab19749a49a:localhost]

2023-10-28 00:29:56 | [Mutex] received everything.

2023-10-28 00:29:56 | [Mutex] isItemNotified: received:node:788cb251-47ef-4ff8-b18b-dab19749a49a:localhost:node-dbd8d8c1-df22-4700-bc42-3553274c8d74:Node dbd8d8c1-df22-4700-bc42-3553274c8d74 :: false

deleteSubnodes 1.026s
2023-10-28 00:29:54 |

2023-10-28 00:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:54 | ------------------------------------

2023-10-28 00:29:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb"
}

2023-10-28 00:29:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-28 00:29:55 | [Mutex] waiting for: [received:nodes:7c208552-59a0-4dc4-bfd7-221fdb6905d9:localhost]

2023-10-28 00:29:55 | [Mutex] waiting for: [received:nodes:7c208552-59a0-4dc4-bfd7-221fdb6905d9:localhost]

2023-10-28 00:29:55 | [Mutex] waiting for: [received:nodes:7c208552-59a0-4dc4-bfd7-221fdb6905d9:localhost]

2023-10-28 00:29:55 | [Mutex] waiting for: [received:nodes:7c208552-59a0-4dc4-bfd7-221fdb6905d9:localhost]

2023-10-28 00:29:55 | [Mutex] received everything.

2023-10-28 00:29:55 | [Mutex] isItemNotified: received:node:7c208552-59a0-4dc4-bfd7-221fdb6905d9:localhost:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb :: false

2023-10-28 00:29:55 | [Mutex] waiting for: [received:nodes:f0d807d8-e13a-4743-8dd2-91dd7456d0fc:localhost]

2023-10-28 00:29:55 | [Mutex] received everything.

2023-10-28 00:29:55 | [Mutex] isItemNotified: received:node:f0d807d8-e13a-4743-8dd2-91dd7456d0fc:localhost:node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb:Node 7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb :: false

publishItemsToNodes 0.108s
2023-10-28 00:29:52 |

2023-10-28 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:52 | ------------------------------------

2023-10-28 00:29:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "entry": "<test>item-e630b187-04af-4256-849e-1f342c113d1f</test>",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f"
}

2023-10-28 00:29:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f"
}

2023-10-28 00:29:52 | [Mutex] received everything.

2023-10-28 00:29:52 | [Mutex] isItemNotified: published:item:notifieditem-e630b187-04af-4256-849e-1f342c113d1f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-10-28 00:29:53 |

2023-10-28 00:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:53 | ------------------------------------

2023-10-28 00:29:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f"
}

2023-10-28 00:29:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f"
}

2023-10-28 00:29:53 | [Mutex] received everything.

2023-10-28 00:29:53 | [Mutex] isItemNotified: retracted:item:notifieditem-e630b187-04af-4256-849e-1f342c113d1f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2023-10-28 00:29:52 |

2023-10-28 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:52 | ------------------------------------

2023-10-28 00:29:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f"
}

2023-10-28 00:29:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "item-id": "item-e630b187-04af-4256-849e-1f342c113d1f",
    "item": [
        "<item id=\"item-e630b187-04af-4256-849e-1f342c113d1f\"><test>item-e630b187-04af-4256-849e-1f342c113d1f</test></item>"
    ]
}

2023-10-28 00:29:52 | [Mutex] notify: [retrieved:item:item-e630b187-04af-4256-849e-1f342c113d1f:payload-matches:true:localhost]

2023-10-28 00:29:52 | [Mutex] received everything.

2023-10-28 00:29:52 | [Mutex] isItemNotified: retrieved:item:item-e630b187-04af-4256-849e-1f342c113d1f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2023-10-28 00:29:52 |

2023-10-28 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:52 | ------------------------------------

2023-10-28 00:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-10-28 00:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dbd8d8c1-df22-4700-bc42-3553274c8d74",
        "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-10-28 00:29:52 |

2023-10-28 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:52 | ------------------------------------

2023-10-28 00:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb)"
}

2023-10-28 00:29:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-10-28 00:29:51 |

2023-10-28 00:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:51 | ------------------------------------

2023-10-28 00:29:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-28 00:29:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2023-10-28 00:29:53 |

2023-10-28 00:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-28 00:29:53 | ------------------------------------

2023-10-28 00:29:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7261b83b-5d1a-4ccb-ad5c-8d8fcd99f7fb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-28 00:29:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}