Generated by TestNG with ReportNG at 22:45 PDT on Tuesday 20 June 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.550s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.166s
2023-06-20 22:59:53 |

2023-06-20 22:59:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:53 | ------------------------------------

2023-06-20 22:59:54 | [Mutex] waiting for: [configured:node:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c]

2023-06-20 22:59:54 | [Mutex] received everything.

2023-06-20 22:59:54 | [Mutex] isItemNotified: configured:node:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c :: true

2023-06-20 22:59:55 | [Mutex] waiting for: [received:nodes:bd8ea503-b97c-4b88-b950-c467149b6d7f:localhost]

2023-06-20 22:59:55 | [Mutex] received everything.

2023-06-20 22:59:55 | [Mutex] isItemNotified: received:node:bd8ea503-b97c-4b88-b950-c467149b6d7f:localhost:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e :: true

2023-06-20 22:59:55 | [Mutex] waiting for: [received:nodes:55e9a7f2-ab98-4384-9211-288afce44e8c:localhost]

2023-06-20 22:59:55 | [Mutex] waiting for: [received:nodes:55e9a7f2-ab98-4384-9211-288afce44e8c:localhost]

2023-06-20 22:59:55 | [Mutex] waiting for: [received:nodes:55e9a7f2-ab98-4384-9211-288afce44e8c:localhost]

2023-06-20 22:59:55 | [Mutex] waiting for: [received:nodes:55e9a7f2-ab98-4384-9211-288afce44e8c:localhost]

2023-06-20 22:59:55 | [Mutex] received everything.

2023-06-20 22:59:55 | [Mutex] isItemNotified: received:node:55e9a7f2-ab98-4384-9211-288afce44e8c:localhost:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e :: false

createNodes 1.552s
2023-06-20 22:59:51 |

2023-06-20 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:51 | ------------------------------------

2023-06-20 22:59:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "pubsub#title": "Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e"
}

2023-06-20 22:59:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:59:52 | [Mutex] waiting for: [received:nodes:9fab16af-2d23-4b0b-b06a-6f0293d95673:localhost]

2023-06-20 22:59:52 | [Mutex] waiting for: [received:nodes:9fab16af-2d23-4b0b-b06a-6f0293d95673:localhost]

2023-06-20 22:59:52 | [Mutex] waiting for: [received:nodes:9fab16af-2d23-4b0b-b06a-6f0293d95673:localhost]

2023-06-20 22:59:52 | [Mutex] waiting for: [received:nodes:9fab16af-2d23-4b0b-b06a-6f0293d95673:localhost]

2023-06-20 22:59:52 | [Mutex] received everything.

2023-06-20 22:59:52 | [Mutex] isItemNotified: received:node:9fab16af-2d23-4b0b-b06a-6f0293d95673:localhost:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e :: true

createSubnodes 1.026s
2023-06-20 22:59:52 |

2023-06-20 22:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:52 | ------------------------------------

2023-06-20 22:59:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c",
    "pubsub#title": "Node 40e570c0-106a-4aa1-9ced-c0ace8a6cc3c"
}

2023-06-20 22:59:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] waiting for: [received:nodes:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost]

2023-06-20 22:59:53 | [Mutex] received everything.

2023-06-20 22:59:53 | [Mutex] isItemNotified: received:node:0c7dc81f-8949-4fd8-9e9e-187990b61baa:localhost:node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c:Node 40e570c0-106a-4aa1-9ced-c0ace8a6cc3c :: true

deleteNodes 1.020s
2023-06-20 22:59:58 |

2023-06-20 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:58 | ------------------------------------

2023-06-20 22:59:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c"
}

2023-06-20 22:59:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:59:59 | [Mutex] waiting for: [received:nodes:e7eaeb68-2375-4c6b-9116-2e6c3dbc2b6a:localhost]

2023-06-20 22:59:59 | [Mutex] waiting for: [received:nodes:e7eaeb68-2375-4c6b-9116-2e6c3dbc2b6a:localhost]

2023-06-20 22:59:59 | [Mutex] waiting for: [received:nodes:e7eaeb68-2375-4c6b-9116-2e6c3dbc2b6a:localhost]

2023-06-20 22:59:59 | [Mutex] received everything.

2023-06-20 22:59:59 | [Mutex] isItemNotified: received:node:e7eaeb68-2375-4c6b-9116-2e6c3dbc2b6a:localhost:node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c:Node 40e570c0-106a-4aa1-9ced-c0ace8a6cc3c :: false

deleteSubnodes 1.024s
2023-06-20 22:59:57 |

2023-06-20 22:59:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:57 | ------------------------------------

2023-06-20 22:59:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e"
}

2023-06-20 22:59:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:59:58 | [Mutex] waiting for: [received:nodes:268f3de2-755f-4f85-a2ee-bca6a1b4750d:localhost]

2023-06-20 22:59:58 | [Mutex] waiting for: [received:nodes:268f3de2-755f-4f85-a2ee-bca6a1b4750d:localhost]

2023-06-20 22:59:58 | [Mutex] waiting for: [received:nodes:268f3de2-755f-4f85-a2ee-bca6a1b4750d:localhost]

2023-06-20 22:59:58 | [Mutex] waiting for: [received:nodes:268f3de2-755f-4f85-a2ee-bca6a1b4750d:localhost]

2023-06-20 22:59:58 | [Mutex] received everything.

2023-06-20 22:59:58 | [Mutex] isItemNotified: received:node:268f3de2-755f-4f85-a2ee-bca6a1b4750d:localhost:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e :: false

2023-06-20 22:59:58 | [Mutex] waiting for: [received:nodes:0e15032b-ecb7-45de-9dde-dcafc63184c9:localhost]

2023-06-20 22:59:58 | [Mutex] received everything.

2023-06-20 22:59:58 | [Mutex] isItemNotified: received:node:0e15032b-ecb7-45de-9dde-dcafc63184c9:localhost:node-7a1879dd-d114-4ec6-8381-c9c1a531db8e:Node 7a1879dd-d114-4ec6-8381-c9c1a531db8e :: false

publishItemsToNodes 0.051s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "entry": "<test>item-33fc5497-577c-4486-a6a1-dc3a8cb779fd</test>",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd"
}

2023-06-20 22:59:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd"
}

2023-06-20 22:59:56 | [Mutex] waiting for: [published:item:notifieditem-33fc5497-577c-4486-a6a1-dc3a8cb779fd:admin@test-domain.com]

2023-06-20 22:59:56 | [Mutex] received everything.

2023-06-20 22:59:56 | [Mutex] isItemNotified: published:item:notifieditem-33fc5497-577c-4486-a6a1-dc3a8cb779fd:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd"
}

2023-06-20 22:59:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd"
}

2023-06-20 22:59:56 | [Mutex] received everything.

2023-06-20 22:59:56 | [Mutex] isItemNotified: retracted:item:notifieditem-33fc5497-577c-4486-a6a1-dc3a8cb779fd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.043s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd"
}

2023-06-20 22:59:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "item-id": "item-33fc5497-577c-4486-a6a1-dc3a8cb779fd",
    "item": [
        "<item id=\"item-33fc5497-577c-4486-a6a1-dc3a8cb779fd\"><test>item-33fc5497-577c-4486-a6a1-dc3a8cb779fd</test></item>"
    ]
}

2023-06-20 22:59:56 | [Mutex] notify: [retrieved:item:item-33fc5497-577c-4486-a6a1-dc3a8cb779fd:payload-matches:true:localhost]

2023-06-20 22:59:56 | [Mutex] received everything.

2023-06-20 22:59:56 | [Mutex] isItemNotified: retrieved:item:item-33fc5497-577c-4486-a6a1-dc3a8cb779fd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-06-20 22:59:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
        "node-40e570c0-106a-4aa1-9ced-c0ace8a6cc3c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7a1879dd-d114-4ec6-8381-c9c1a531db8e)"
}

2023-06-20 22:59:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-06-20 22:59:55 |

2023-06-20 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:55 | ------------------------------------

2023-06-20 22:59:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 22:59:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-06-20 22:59:56 |

2023-06-20 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:59:56 | ------------------------------------

2023-06-20 22:59:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7a1879dd-d114-4ec6-8381-c9c1a531db8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 22:59:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}