Generated by TestNG with ReportNG at 22:17 PDT on Tuesday 19 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.544s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-07-19 22:33:06 |

2022-07-19 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:06 | ------------------------------------

2022-07-19 22:33:06 | [Mutex] waiting for: [configured:node:node-f602921a-7efe-410e-b627-7b0bb27c3868:node-5b2aded6-427e-4788-a3e9-ea3c5db018cf]

2022-07-19 22:33:06 | [Mutex] received everything.

2022-07-19 22:33:06 | [Mutex] isItemNotified: configured:node:node-f602921a-7efe-410e-b627-7b0bb27c3868:node-5b2aded6-427e-4788-a3e9-ea3c5db018cf :: true

2022-07-19 22:33:07 | [Mutex] waiting for: [received:nodes:3c6d4e70-3a27-46ef-a6f8-59be2fc3831d:localhost]

2022-07-19 22:33:07 | [Mutex] received everything.

2022-07-19 22:33:07 | [Mutex] isItemNotified: received:node:3c6d4e70-3a27-46ef-a6f8-59be2fc3831d:localhost:node-f602921a-7efe-410e-b627-7b0bb27c3868:Node f602921a-7efe-410e-b627-7b0bb27c3868 :: true

2022-07-19 22:33:07 | [Mutex] waiting for: [received:nodes:72592a83-58c7-4bd1-91d9-d7440d33203a:localhost]

2022-07-19 22:33:07 | [Mutex] received everything.

2022-07-19 22:33:07 | [Mutex] isItemNotified: received:node:72592a83-58c7-4bd1-91d9-d7440d33203a:localhost:node-f602921a-7efe-410e-b627-7b0bb27c3868:Node f602921a-7efe-410e-b627-7b0bb27c3868 :: false

createNodes 1.506s
2022-07-19 22:33:03 |

2022-07-19 22:33:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:03 | ------------------------------------

2022-07-19 22:33:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "pubsub#title": "Node f602921a-7efe-410e-b627-7b0bb27c3868"
}

2022-07-19 22:33:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:33:05 | [Mutex] waiting for: [received:nodes:64b2e5cb-7f07-4969-b8ab-a45ac6bcf68d:localhost]

2022-07-19 22:33:05 | [Mutex] waiting for: [received:nodes:64b2e5cb-7f07-4969-b8ab-a45ac6bcf68d:localhost]

2022-07-19 22:33:05 | [Mutex] waiting for: [received:nodes:64b2e5cb-7f07-4969-b8ab-a45ac6bcf68d:localhost]

2022-07-19 22:33:05 | [Mutex] waiting for: [received:nodes:64b2e5cb-7f07-4969-b8ab-a45ac6bcf68d:localhost]

2022-07-19 22:33:05 | [Mutex] received everything.

2022-07-19 22:33:05 | [Mutex] isItemNotified: received:node:64b2e5cb-7f07-4969-b8ab-a45ac6bcf68d:localhost:node-f602921a-7efe-410e-b627-7b0bb27c3868:Node f602921a-7efe-410e-b627-7b0bb27c3868 :: true

createSubnodes 1.063s
2022-07-19 22:33:05 |

2022-07-19 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:05 | ------------------------------------

2022-07-19 22:33:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5b2aded6-427e-4788-a3e9-ea3c5db018cf",
    "pubsub#title": "Node 5b2aded6-427e-4788-a3e9-ea3c5db018cf"
}

2022-07-19 22:33:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:33:06 | [Mutex] waiting for: [received:nodes:b176002b-04bf-444d-85b3-2f11be257f3d:localhost]

2022-07-19 22:33:06 | [Mutex] received everything.

2022-07-19 22:33:06 | [Mutex] isItemNotified: received:node:b176002b-04bf-444d-85b3-2f11be257f3d:localhost:node-5b2aded6-427e-4788-a3e9-ea3c5db018cf:Node 5b2aded6-427e-4788-a3e9-ea3c5db018cf :: true

deleteNodes 1.019s
2022-07-19 22:33:10 |

2022-07-19 22:33:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:10 | ------------------------------------

2022-07-19 22:33:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5b2aded6-427e-4788-a3e9-ea3c5db018cf"
}

2022-07-19 22:33:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:33:11 | [Mutex] waiting for: [received:nodes:8098ac23-ee3c-4d80-a9e4-3d550aa3bbcb:localhost]

2022-07-19 22:33:11 | [Mutex] received everything.

2022-07-19 22:33:11 | [Mutex] isItemNotified: received:node:8098ac23-ee3c-4d80-a9e4-3d550aa3bbcb:localhost:node-5b2aded6-427e-4788-a3e9-ea3c5db018cf:Node 5b2aded6-427e-4788-a3e9-ea3c5db018cf :: false

deleteSubnodes 1.029s
2022-07-19 22:33:09 |

2022-07-19 22:33:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:09 | ------------------------------------

2022-07-19 22:33:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868"
}

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

2022-07-19 22:33:10 | [Mutex] waiting for: [received:nodes:e08358a9-f35d-4007-acc7-658d1cee8fab:localhost]

2022-07-19 22:33:10 | [Mutex] waiting for: [received:nodes:e08358a9-f35d-4007-acc7-658d1cee8fab:localhost]

2022-07-19 22:33:10 | [Mutex] waiting for: [received:nodes:e08358a9-f35d-4007-acc7-658d1cee8fab:localhost]

2022-07-19 22:33:10 | [Mutex] received everything.

2022-07-19 22:33:10 | [Mutex] isItemNotified: received:node:e08358a9-f35d-4007-acc7-658d1cee8fab:localhost:node-f602921a-7efe-410e-b627-7b0bb27c3868:Node f602921a-7efe-410e-b627-7b0bb27c3868 :: false

2022-07-19 22:33:10 | [Mutex] waiting for: [received:nodes:5fa66b07-e671-4fdb-a7aa-e5d8fd8597fa:localhost]

2022-07-19 22:33:10 | [Mutex] received everything.

2022-07-19 22:33:10 | [Mutex] isItemNotified: received:node:5fa66b07-e671-4fdb-a7aa-e5d8fd8597fa:localhost:node-f602921a-7efe-410e-b627-7b0bb27c3868:Node f602921a-7efe-410e-b627-7b0bb27c3868 :: false

publishItemsToNodes 0.052s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "entry": "<test>item-d1c965e1-c293-4362-986c-4269e4c795bd</test>",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd"
}

2022-07-19 22:33:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd"
}

2022-07-19 22:33:08 | [Mutex] waiting for: [published:item:notifieditem-d1c965e1-c293-4362-986c-4269e4c795bd:admin@test-domain.com]

2022-07-19 22:33:08 | [Mutex] received everything.

2022-07-19 22:33:08 | [Mutex] isItemNotified: published:item:notifieditem-d1c965e1-c293-4362-986c-4269e4c795bd:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd"
}

2022-07-19 22:33:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd"
}

2022-07-19 22:33:08 | [Mutex] received everything.

2022-07-19 22:33:08 | [Mutex] isItemNotified: retracted:item:notifieditem-d1c965e1-c293-4362-986c-4269e4c795bd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd"
}

2022-07-19 22:33:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "item-id": "item-d1c965e1-c293-4362-986c-4269e4c795bd",
    "item": [
        "<item id=\"item-d1c965e1-c293-4362-986c-4269e4c795bd\"><test>item-d1c965e1-c293-4362-986c-4269e4c795bd</test></item>"
    ]
}

2022-07-19 22:33:08 | [Mutex] notify: [retrieved:item:item-d1c965e1-c293-4362-986c-4269e4c795bd:payload-matches:true:localhost]

2022-07-19 22:33:08 | [Mutex] received everything.

2022-07-19 22:33:08 | [Mutex] isItemNotified: retrieved:item:item-d1c965e1-c293-4362-986c-4269e4c795bd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-19 22:33:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f602921a-7efe-410e-b627-7b0bb27c3868",
        "node-5b2aded6-427e-4788-a3e9-ea3c5db018cf",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f602921a-7efe-410e-b627-7b0bb27c3868)"
}

2022-07-19 22:33:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-19 22:33:07 |

2022-07-19 22:33:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:07 | ------------------------------------

2022-07-19 22:33:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 22:33:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-07-19 22:33:08 |

2022-07-19 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:33:08 | ------------------------------------

2022-07-19 22:33:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f602921a-7efe-410e-b627-7b0bb27c3868",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 22:33:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}