Generated by TestNG with ReportNG at 22:52 PDT on Tuesday 09 August 2022
root@f9c07ffec79b / 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.858s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2022-08-09 23:07:43 |

2022-08-09 23:07:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:43 | ------------------------------------

2022-08-09 23:07:43 | [Mutex] waiting for: [configured:node:node-8253d498-b256-466b-b8a8-39cdd859c749:node-8cac0d45-0fcd-49b6-b98b-ad078e284559]

2022-08-09 23:07:44 | [Mutex] received everything.

2022-08-09 23:07:44 | [Mutex] isItemNotified: configured:node:node-8253d498-b256-466b-b8a8-39cdd859c749:node-8cac0d45-0fcd-49b6-b98b-ad078e284559 :: true

2022-08-09 23:07:45 | [Mutex] waiting for: [received:nodes:658df362-9633-4e98-92e8-02e3fea83371:localhost]

2022-08-09 23:07:45 | [Mutex] received everything.

2022-08-09 23:07:45 | [Mutex] isItemNotified: received:node:658df362-9633-4e98-92e8-02e3fea83371:localhost:node-8253d498-b256-466b-b8a8-39cdd859c749:Node 8253d498-b256-466b-b8a8-39cdd859c749 :: true

2022-08-09 23:07:45 | [Mutex] waiting for: [received:nodes:52f0a931-1d92-47a5-89e8-b99208faa4b7:localhost]

2022-08-09 23:07:45 | [Mutex] waiting for: [received:nodes:52f0a931-1d92-47a5-89e8-b99208faa4b7:localhost]

2022-08-09 23:07:45 | [Mutex] received everything.

2022-08-09 23:07:45 | [Mutex] isItemNotified: received:node:52f0a931-1d92-47a5-89e8-b99208faa4b7:localhost:node-8253d498-b256-466b-b8a8-39cdd859c749:Node 8253d498-b256-466b-b8a8-39cdd859c749 :: false

createNodes 1.791s
2022-08-09 23:07:41 |

2022-08-09 23:07:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:41 | ------------------------------------

2022-08-09 23:07:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "pubsub#title": "Node 8253d498-b256-466b-b8a8-39cdd859c749"
}

2022-08-09 23:07:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:07:42 | [Mutex] waiting for: [received:nodes:66bdd9b5-b185-4660-b7b5-c3fbb280d2be:localhost]

2022-08-09 23:07:42 | [Mutex] received everything.

2022-08-09 23:07:42 | [Mutex] isItemNotified: received:node:66bdd9b5-b185-4660-b7b5-c3fbb280d2be:localhost:node-8253d498-b256-466b-b8a8-39cdd859c749:Node 8253d498-b256-466b-b8a8-39cdd859c749 :: true

createSubnodes 1.024s
2022-08-09 23:07:42 |

2022-08-09 23:07:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:42 | ------------------------------------

2022-08-09 23:07:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8cac0d45-0fcd-49b6-b98b-ad078e284559",
    "pubsub#title": "Node 8cac0d45-0fcd-49b6-b98b-ad078e284559"
}

2022-08-09 23:07:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-09 23:07:43 | [Mutex] waiting for: [received:nodes:24e671b6-f496-4e2f-abc9-c4eb3aebb59e:localhost]

2022-08-09 23:07:43 | [Mutex] received everything.

2022-08-09 23:07:43 | [Mutex] isItemNotified: received:node:24e671b6-f496-4e2f-abc9-c4eb3aebb59e:localhost:node-8cac0d45-0fcd-49b6-b98b-ad078e284559:Node 8cac0d45-0fcd-49b6-b98b-ad078e284559 :: true

deleteNodes 1.025s
2022-08-09 23:07:48 |

2022-08-09 23:07:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:48 | ------------------------------------

2022-08-09 23:07:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8cac0d45-0fcd-49b6-b98b-ad078e284559"
}

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

2022-08-09 23:07:49 | [Mutex] waiting for: [received:nodes:8d223249-e2dd-417c-a360-f3aef1887e4a:localhost]

2022-08-09 23:07:49 | [Mutex] received everything.

2022-08-09 23:07:49 | [Mutex] isItemNotified: received:node:8d223249-e2dd-417c-a360-f3aef1887e4a:localhost:node-8cac0d45-0fcd-49b6-b98b-ad078e284559:Node 8cac0d45-0fcd-49b6-b98b-ad078e284559 :: false

deleteSubnodes 1.032s
2022-08-09 23:07:47 |

2022-08-09 23:07:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:47 | ------------------------------------

2022-08-09 23:07:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749"
}

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

2022-08-09 23:07:48 | [Mutex] waiting for: [received:nodes:541eb9cb-07a3-4bbc-a46e-bbd44062c350:localhost]

2022-08-09 23:07:48 | [Mutex] received everything.

2022-08-09 23:07:48 | [Mutex] isItemNotified: received:node:541eb9cb-07a3-4bbc-a46e-bbd44062c350:localhost:node-8253d498-b256-466b-b8a8-39cdd859c749:Node 8253d498-b256-466b-b8a8-39cdd859c749 :: false

2022-08-09 23:07:48 | [Mutex] waiting for: [received:nodes:7a83d3f4-c9ce-49e5-863a-6d1557e55b8a:localhost]

2022-08-09 23:07:48 | [Mutex] received everything.

2022-08-09 23:07:48 | [Mutex] isItemNotified: received:node:7a83d3f4-c9ce-49e5-863a-6d1557e55b8a:localhost:node-8253d498-b256-466b-b8a8-39cdd859c749:Node 8253d498-b256-466b-b8a8-39cdd859c749 :: false

publishItemsToNodes 0.051s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

2022-08-09 23:07:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "entry": "<test>item-53154c0d-08ee-4962-87e0-4033f972307c</test>",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c"
}

2022-08-09 23:07:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c"
}

2022-08-09 23:07:46 | [Mutex] waiting for: [published:item:notifieditem-53154c0d-08ee-4962-87e0-4033f972307c:admin@test-domain.com]

2022-08-09 23:07:46 | [Mutex] received everything.

2022-08-09 23:07:46 | [Mutex] isItemNotified: published:item:notifieditem-53154c0d-08ee-4962-87e0-4033f972307c:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

2022-08-09 23:07:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c"
}

2022-08-09 23:07:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c"
}

2022-08-09 23:07:46 | [Mutex] received everything.

2022-08-09 23:07:46 | [Mutex] isItemNotified: retracted:item:notifieditem-53154c0d-08ee-4962-87e0-4033f972307c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

2022-08-09 23:07:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c"
}

2022-08-09 23:07:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "item-id": "item-53154c0d-08ee-4962-87e0-4033f972307c",
    "item": [
        "<item id=\"item-53154c0d-08ee-4962-87e0-4033f972307c\"><test>item-53154c0d-08ee-4962-87e0-4033f972307c</test></item>"
    ]
}

2022-08-09 23:07:46 | [Mutex] notify: [retrieved:item:item-53154c0d-08ee-4962-87e0-4033f972307c:payload-matches:true:localhost]

2022-08-09 23:07:46 | [Mutex] received everything.

2022-08-09 23:07:46 | [Mutex] isItemNotified: retrieved:item:item-53154c0d-08ee-4962-87e0-4033f972307c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

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

2022-08-09 23:07:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8cac0d45-0fcd-49b6-b98b-ad078e284559",
        "node-8253d498-b256-466b-b8a8-39cdd859c749"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

2022-08-09 23:07:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8253d498-b256-466b-b8a8-39cdd859c749)"
}

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

subscribeNodes 1.009s
2022-08-09 23:07:45 |

2022-08-09 23:07:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:45 | ------------------------------------

2022-08-09 23:07:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-09 23:07:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-08-09 23:07:46 |

2022-08-09 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-09 23:07:46 | ------------------------------------

2022-08-09 23:07:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8253d498-b256-466b-b8a8-39cdd859c749",
    "jids": [
        "admin@test-domain.com"
    ]
}

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