Generated by TestNG with ReportNG at 12:37 PDT on Monday 10 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.616s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2023-07-10 12:52:11 |

2023-07-10 12:52:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:11 | ------------------------------------

2023-07-10 12:52:11 | [Mutex] waiting for: [configured:node:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e]

2023-07-10 12:52:11 | [Mutex] received everything.

2023-07-10 12:52:11 | [Mutex] isItemNotified: configured:node:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e :: true

2023-07-10 12:52:12 | [Mutex] waiting for: [received:nodes:d5c850ac-7573-47de-90e3-bfd18d5eeb88:localhost]

2023-07-10 12:52:12 | [Mutex] received everything.

2023-07-10 12:52:12 | [Mutex] isItemNotified: received:node:d5c850ac-7573-47de-90e3-bfd18d5eeb88:localhost:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:Node fe894dd4-89ce-477d-ba18-a6ff959885a0 :: true

2023-07-10 12:52:12 | [Mutex] waiting for: [received:nodes:0330e8ed-4f96-463d-9978-8ffc6fe69751:localhost]

2023-07-10 12:52:12 | [Mutex] waiting for: [received:nodes:0330e8ed-4f96-463d-9978-8ffc6fe69751:localhost]

2023-07-10 12:52:12 | [Mutex] waiting for: [received:nodes:0330e8ed-4f96-463d-9978-8ffc6fe69751:localhost]

2023-07-10 12:52:12 | [Mutex] waiting for: [received:nodes:0330e8ed-4f96-463d-9978-8ffc6fe69751:localhost]

2023-07-10 12:52:12 | [Mutex] received everything.

2023-07-10 12:52:12 | [Mutex] isItemNotified: received:node:0330e8ed-4f96-463d-9978-8ffc6fe69751:localhost:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:Node fe894dd4-89ce-477d-ba18-a6ff959885a0 :: false

createNodes 1.647s
2023-07-10 12:52:08 |

2023-07-10 12:52:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:08 | ------------------------------------

2023-07-10 12:52:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "pubsub#title": "Node fe894dd4-89ce-477d-ba18-a6ff959885a0"
}

2023-07-10 12:52:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:52:10 | [Mutex] waiting for: [received:nodes:e936d1c9-2b8d-477b-8729-14829c0539de:localhost]

2023-07-10 12:52:10 | [Mutex] waiting for: [received:nodes:e936d1c9-2b8d-477b-8729-14829c0539de:localhost]

2023-07-10 12:52:10 | [Mutex] waiting for: [received:nodes:e936d1c9-2b8d-477b-8729-14829c0539de:localhost]

2023-07-10 12:52:10 | [Mutex] received everything.

2023-07-10 12:52:10 | [Mutex] isItemNotified: received:node:e936d1c9-2b8d-477b-8729-14829c0539de:localhost:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:Node fe894dd4-89ce-477d-ba18-a6ff959885a0 :: true

createSubnodes 1.019s
2023-07-10 12:52:10 |

2023-07-10 12:52:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:10 | ------------------------------------

2023-07-10 12:52:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e",
    "pubsub#title": "Node 13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e"
}

2023-07-10 12:52:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:52:11 | [Mutex] waiting for: [received:nodes:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost]

2023-07-10 12:52:11 | [Mutex] waiting for: [received:nodes:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost]

2023-07-10 12:52:11 | [Mutex] waiting for: [received:nodes:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost]

2023-07-10 12:52:11 | [Mutex] waiting for: [received:nodes:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost]

2023-07-10 12:52:11 | [Mutex] waiting for: [received:nodes:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost]

2023-07-10 12:52:11 | [Mutex] received everything.

2023-07-10 12:52:11 | [Mutex] isItemNotified: received:node:15890d12-6c0c-43ea-8a09-f9872f56b370:localhost:node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e:Node 13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e :: true

deleteNodes 1.016s
2023-07-10 12:52:15 |

2023-07-10 12:52:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:15 | ------------------------------------

2023-07-10 12:52:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e"
}

2023-07-10 12:52:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:52:16 | [Mutex] waiting for: [received:nodes:c030e581-5a4d-4ed0-b110-04b2511f62f3:localhost]

2023-07-10 12:52:16 | [Mutex] waiting for: [received:nodes:c030e581-5a4d-4ed0-b110-04b2511f62f3:localhost]

2023-07-10 12:52:16 | [Mutex] waiting for: [received:nodes:c030e581-5a4d-4ed0-b110-04b2511f62f3:localhost]

2023-07-10 12:52:16 | [Mutex] received everything.

2023-07-10 12:52:16 | [Mutex] isItemNotified: received:node:c030e581-5a4d-4ed0-b110-04b2511f62f3:localhost:node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e:Node 13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e :: false

deleteSubnodes 1.026s
2023-07-10 12:52:14 |

2023-07-10 12:52:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:14 | ------------------------------------

2023-07-10 12:52:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0"
}

2023-07-10 12:52:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:52:15 | [Mutex] waiting for: [received:nodes:5f455f26-cff0-4fcd-bde4-2af0e8040eee:localhost]

2023-07-10 12:52:15 | [Mutex] waiting for: [received:nodes:5f455f26-cff0-4fcd-bde4-2af0e8040eee:localhost]

2023-07-10 12:52:15 | [Mutex] waiting for: [received:nodes:5f455f26-cff0-4fcd-bde4-2af0e8040eee:localhost]

2023-07-10 12:52:15 | [Mutex] waiting for: [received:nodes:5f455f26-cff0-4fcd-bde4-2af0e8040eee:localhost]

2023-07-10 12:52:15 | [Mutex] received everything.

2023-07-10 12:52:15 | [Mutex] isItemNotified: received:node:5f455f26-cff0-4fcd-bde4-2af0e8040eee:localhost:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:Node fe894dd4-89ce-477d-ba18-a6ff959885a0 :: false

2023-07-10 12:52:15 | [Mutex] waiting for: [received:nodes:28546e23-dbf9-4fe3-b7a3-310c72141ca5:localhost]

2023-07-10 12:52:15 | [Mutex] received everything.

2023-07-10 12:52:15 | [Mutex] isItemNotified: received:node:28546e23-dbf9-4fe3-b7a3-310c72141ca5:localhost:node-fe894dd4-89ce-477d-ba18-a6ff959885a0:Node fe894dd4-89ce-477d-ba18-a6ff959885a0 :: false

publishItemsToNodes 0.042s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

2023-07-10 12:52:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "entry": "<test>item-17cfe425-025b-45a8-b62e-b4041a1d039f</test>",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f"
}

2023-07-10 12:52:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f"
}

2023-07-10 12:52:13 | [Mutex] waiting for: [published:item:notifieditem-17cfe425-025b-45a8-b62e-b4041a1d039f:admin@test-domain.com]

2023-07-10 12:52:13 | [Mutex] received everything.

2023-07-10 12:52:13 | [Mutex] isItemNotified: published:item:notifieditem-17cfe425-025b-45a8-b62e-b4041a1d039f:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

2023-07-10 12:52:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f"
}

2023-07-10 12:52:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f"
}

2023-07-10 12:52:13 | [Mutex] waiting for: [retracted:item:notifieditem-17cfe425-025b-45a8-b62e-b4041a1d039f:admin@test-domain.com]

2023-07-10 12:52:13 | [Mutex] received everything.

2023-07-10 12:52:13 | [Mutex] isItemNotified: retracted:item:notifieditem-17cfe425-025b-45a8-b62e-b4041a1d039f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.111s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

2023-07-10 12:52:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f"
}

2023-07-10 12:52:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "item-id": "item-17cfe425-025b-45a8-b62e-b4041a1d039f",
    "item": [
        "<item id=\"item-17cfe425-025b-45a8-b62e-b4041a1d039f\"><test>item-17cfe425-025b-45a8-b62e-b4041a1d039f</test></item>"
    ]
}

2023-07-10 12:52:13 | [Mutex] notify: [retrieved:item:item-17cfe425-025b-45a8-b62e-b4041a1d039f:payload-matches:true:localhost]

2023-07-10 12:52:13 | [Mutex] received everything.

2023-07-10 12:52:13 | [Mutex] isItemNotified: retrieved:item:item-17cfe425-025b-45a8-b62e-b4041a1d039f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

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

2023-07-10 12:52:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-13f3ea2f-83b4-42b7-ab4f-92435d7aaa3e",
        "node-fe894dd4-89ce-477d-ba18-a6ff959885a0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

2023-07-10 12:52:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fe894dd4-89ce-477d-ba18-a6ff959885a0)"
}

2023-07-10 12:52:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-07-10 12:52:12 |

2023-07-10 12:52:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:12 | ------------------------------------

2023-07-10 12:52:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 12:52:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.047s
2023-07-10 12:52:13 |

2023-07-10 12:52:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:52:13 | ------------------------------------

2023-07-10 12:52:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fe894dd4-89ce-477d-ba18-a6ff959885a0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 12:52:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}