Generated by TestNG with ReportNG at 22:29 PDT on Sunday 09 July 2023
root@8f5c98824654 / 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.841s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2023-07-09 22:44:28 |

2023-07-09 22:44:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:28 | ------------------------------------

2023-07-09 22:44:28 | [Mutex] waiting for: [configured:node:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:node-4fdf303e-bb51-47ef-9c7f-a7877010171e]

2023-07-09 22:44:28 | [Mutex] received everything.

2023-07-09 22:44:28 | [Mutex] isItemNotified: configured:node:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:node-4fdf303e-bb51-47ef-9c7f-a7877010171e :: true

2023-07-09 22:44:29 | [Mutex] waiting for: [received:nodes:43896ece-5efa-40c3-a0d8-ec33b1bf6068:localhost]

2023-07-09 22:44:29 | [Mutex] received everything.

2023-07-09 22:44:29 | [Mutex] isItemNotified: received:node:43896ece-5efa-40c3-a0d8-ec33b1bf6068:localhost:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c :: true

2023-07-09 22:44:29 | [Mutex] waiting for: [received:nodes:ca96d415-be8f-4836-a646-38d6aec79559:localhost]

2023-07-09 22:44:29 | [Mutex] waiting for: [received:nodes:ca96d415-be8f-4836-a646-38d6aec79559:localhost]

2023-07-09 22:44:29 | [Mutex] waiting for: [received:nodes:ca96d415-be8f-4836-a646-38d6aec79559:localhost]

2023-07-09 22:44:29 | [Mutex] received everything.

2023-07-09 22:44:29 | [Mutex] isItemNotified: received:node:ca96d415-be8f-4836-a646-38d6aec79559:localhost:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c :: false

createNodes 1.723s
2023-07-09 22:44:25 |

2023-07-09 22:44:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:25 | ------------------------------------

2023-07-09 22:44:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "pubsub#title": "Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c"
}

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

2023-07-09 22:44:27 | [Mutex] waiting for: [received:nodes:5078dc62-b616-4264-b04a-ab6c0e3a3e68:localhost]

2023-07-09 22:44:27 | [Mutex] waiting for: [received:nodes:5078dc62-b616-4264-b04a-ab6c0e3a3e68:localhost]

2023-07-09 22:44:27 | [Mutex] received everything.

2023-07-09 22:44:27 | [Mutex] isItemNotified: received:node:5078dc62-b616-4264-b04a-ab6c0e3a3e68:localhost:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c :: true

createSubnodes 1.035s
2023-07-09 22:44:27 |

2023-07-09 22:44:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:27 | ------------------------------------

2023-07-09 22:44:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4fdf303e-bb51-47ef-9c7f-a7877010171e",
    "pubsub#title": "Node 4fdf303e-bb51-47ef-9c7f-a7877010171e"
}

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

2023-07-09 22:44:28 | [Mutex] waiting for: [received:nodes:7aa775d5-5a53-475f-873a-9dd5718a21a4:localhost]

2023-07-09 22:44:28 | [Mutex] waiting for: [received:nodes:7aa775d5-5a53-475f-873a-9dd5718a21a4:localhost]

2023-07-09 22:44:28 | [Mutex] waiting for: [received:nodes:7aa775d5-5a53-475f-873a-9dd5718a21a4:localhost]

2023-07-09 22:44:28 | [Mutex] waiting for: [received:nodes:7aa775d5-5a53-475f-873a-9dd5718a21a4:localhost]

2023-07-09 22:44:28 | [Mutex] received everything.

2023-07-09 22:44:28 | [Mutex] isItemNotified: received:node:7aa775d5-5a53-475f-873a-9dd5718a21a4:localhost:node-4fdf303e-bb51-47ef-9c7f-a7877010171e:Node 4fdf303e-bb51-47ef-9c7f-a7877010171e :: true

deleteNodes 1.023s
2023-07-09 22:44:32 |

2023-07-09 22:44:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:32 | ------------------------------------

2023-07-09 22:44:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fdf303e-bb51-47ef-9c7f-a7877010171e"
}

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

2023-07-09 22:44:33 | [Mutex] waiting for: [received:nodes:bfd1e8ad-7ffe-4c6d-90b7-e720fc9069a0:localhost]

2023-07-09 22:44:33 | [Mutex] waiting for: [received:nodes:bfd1e8ad-7ffe-4c6d-90b7-e720fc9069a0:localhost]

2023-07-09 22:44:33 | [Mutex] received everything.

2023-07-09 22:44:33 | [Mutex] isItemNotified: received:node:bfd1e8ad-7ffe-4c6d-90b7-e720fc9069a0:localhost:node-4fdf303e-bb51-47ef-9c7f-a7877010171e:Node 4fdf303e-bb51-47ef-9c7f-a7877010171e :: false

deleteSubnodes 1.026s
2023-07-09 22:44:31 |

2023-07-09 22:44:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:31 | ------------------------------------

2023-07-09 22:44:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c"
}

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

2023-07-09 22:44:32 | [Mutex] waiting for: [received:nodes:17b422f1-131e-4773-a694-ffa9709541cc:localhost]

2023-07-09 22:44:32 | [Mutex] waiting for: [received:nodes:17b422f1-131e-4773-a694-ffa9709541cc:localhost]

2023-07-09 22:44:32 | [Mutex] waiting for: [received:nodes:17b422f1-131e-4773-a694-ffa9709541cc:localhost]

2023-07-09 22:44:32 | [Mutex] waiting for: [received:nodes:17b422f1-131e-4773-a694-ffa9709541cc:localhost]

2023-07-09 22:44:32 | [Mutex] received everything.

2023-07-09 22:44:32 | [Mutex] isItemNotified: received:node:17b422f1-131e-4773-a694-ffa9709541cc:localhost:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c :: false

2023-07-09 22:44:32 | [Mutex] waiting for: [received:nodes:16b2f6d2-3d94-41e1-b8e0-25930b89e9f1:localhost]

2023-07-09 22:44:32 | [Mutex] received everything.

2023-07-09 22:44:32 | [Mutex] isItemNotified: received:node:16b2f6d2-3d94-41e1-b8e0-25930b89e9f1:localhost:node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c:Node 17eb2f2d-6ea8-4e97-a1cd-57d60836775c :: false

publishItemsToNodes 0.037s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "entry": "<test>item-c0f446b1-ba33-4370-92eb-ad07e5779c0d</test>",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d"
}

2023-07-09 22:44:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d"
}

2023-07-09 22:44:30 | [Mutex] received everything.

2023-07-09 22:44:30 | [Mutex] isItemNotified: published:item:notifieditem-c0f446b1-ba33-4370-92eb-ad07e5779c0d:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d"
}

2023-07-09 22:44:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d"
}

2023-07-09 22:44:30 | [Mutex] waiting for: [retracted:item:notifieditem-c0f446b1-ba33-4370-92eb-ad07e5779c0d:admin@test-domain.com]

2023-07-09 22:44:30 | [Mutex] received everything.

2023-07-09 22:44:30 | [Mutex] isItemNotified: retracted:item:notifieditem-c0f446b1-ba33-4370-92eb-ad07e5779c0d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d"
}

2023-07-09 22:44:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "item-id": "item-c0f446b1-ba33-4370-92eb-ad07e5779c0d",
    "item": [
        "<item id=\"item-c0f446b1-ba33-4370-92eb-ad07e5779c0d\"><test>item-c0f446b1-ba33-4370-92eb-ad07e5779c0d</test></item>"
    ]
}

2023-07-09 22:44:30 | [Mutex] notify: [retrieved:item:item-c0f446b1-ba33-4370-92eb-ad07e5779c0d:payload-matches:true:localhost]

2023-07-09 22:44:30 | [Mutex] received everything.

2023-07-09 22:44:30 | [Mutex] isItemNotified: retrieved:item:item-c0f446b1-ba33-4370-92eb-ad07e5779c0d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-09 22:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
        "node-4fdf303e-bb51-47ef-9c7f-a7877010171e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c)"
}

2023-07-09 22:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.022s
2023-07-09 22:44:29 |

2023-07-09 22:44:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:29 | ------------------------------------

2023-07-09 22:44:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-09 22:44:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.131s
2023-07-09 22:44:30 |

2023-07-09 22:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:44:30 | ------------------------------------

2023-07-09 22:44:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-17eb2f2d-6ea8-4e97-a1cd-57d60836775c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-09 22:44:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}