Generated by TestNG with ReportNG at 22:23 PDT on Tuesday 21 September 2021
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.986s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2021-09-21 22:38:21 |

2021-09-21 22:38:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:21 | ------------------------------------

2021-09-21 22:38:21 | [Mutex] waiting for: [configured:node:node-c40f3a02-afc0-4824-bc66-d3365bf27913:node-c641e1fb-0be1-481c-b496-d7f65a02166f]

2021-09-21 22:38:21 | [Mutex] received everything.

2021-09-21 22:38:21 | [Mutex] isItemNotified: configured:node:node-c40f3a02-afc0-4824-bc66-d3365bf27913:node-c641e1fb-0be1-481c-b496-d7f65a02166f :: true

2021-09-21 22:38:22 | [Mutex] waiting for: [received:nodes:8e22b7d9-bccf-46a1-86cb-791a1fd12a01:localhost]

2021-09-21 22:38:22 | [Mutex] received everything.

2021-09-21 22:38:22 | [Mutex] isItemNotified: received:node:8e22b7d9-bccf-46a1-86cb-791a1fd12a01:localhost:node-c40f3a02-afc0-4824-bc66-d3365bf27913:Node c40f3a02-afc0-4824-bc66-d3365bf27913 :: true

2021-09-21 22:38:22 | [Mutex] waiting for: [received:nodes:670bf468-5f32-41c0-8b99-52d4d2fd63ab:localhost]

2021-09-21 22:38:22 | [Mutex] waiting for: [received:nodes:670bf468-5f32-41c0-8b99-52d4d2fd63ab:localhost]

2021-09-21 22:38:22 | [Mutex] received everything.

2021-09-21 22:38:22 | [Mutex] isItemNotified: received:node:670bf468-5f32-41c0-8b99-52d4d2fd63ab:localhost:node-c40f3a02-afc0-4824-bc66-d3365bf27913:Node c40f3a02-afc0-4824-bc66-d3365bf27913 :: false

createNodes 1.650s
2021-09-21 22:38:18 |

2021-09-21 22:38:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:18 | ------------------------------------

2021-09-21 22:38:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "pubsub#title": "Node c40f3a02-afc0-4824-bc66-d3365bf27913"
}

2021-09-21 22:38:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:38:20 | [Mutex] waiting for: [received:nodes:ea68980a-50a1-4ecc-8e80-eb6242d5b9c6:localhost]

2021-09-21 22:38:20 | [Mutex] received everything.

2021-09-21 22:38:20 | [Mutex] isItemNotified: received:node:ea68980a-50a1-4ecc-8e80-eb6242d5b9c6:localhost:node-c40f3a02-afc0-4824-bc66-d3365bf27913:Node c40f3a02-afc0-4824-bc66-d3365bf27913 :: true

createSubnodes 1.036s
2021-09-21 22:38:20 |

2021-09-21 22:38:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:20 | ------------------------------------

2021-09-21 22:38:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c641e1fb-0be1-481c-b496-d7f65a02166f",
    "pubsub#title": "Node c641e1fb-0be1-481c-b496-d7f65a02166f"
}

2021-09-21 22:38:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:38:21 | [Mutex] waiting for: [received:nodes:b2f8db86-9567-416a-8749-64a92ce613bc:localhost]

2021-09-21 22:38:21 | [Mutex] received everything.

2021-09-21 22:38:21 | [Mutex] isItemNotified: received:node:b2f8db86-9567-416a-8749-64a92ce613bc:localhost:node-c641e1fb-0be1-481c-b496-d7f65a02166f:Node c641e1fb-0be1-481c-b496-d7f65a02166f :: true

deleteNodes 1.030s
2021-09-21 22:38:26 |

2021-09-21 22:38:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:26 | ------------------------------------

2021-09-21 22:38:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c641e1fb-0be1-481c-b496-d7f65a02166f"
}

2021-09-21 22:38:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:38:27 | [Mutex] waiting for: [received:nodes:85d35031-0cf1-45cf-94f4-56e4c169d01b:localhost]

2021-09-21 22:38:27 | [Mutex] waiting for: [received:nodes:85d35031-0cf1-45cf-94f4-56e4c169d01b:localhost]

2021-09-21 22:38:27 | [Mutex] received everything.

2021-09-21 22:38:27 | [Mutex] isItemNotified: received:node:85d35031-0cf1-45cf-94f4-56e4c169d01b:localhost:node-c641e1fb-0be1-481c-b496-d7f65a02166f:Node c641e1fb-0be1-481c-b496-d7f65a02166f :: false

deleteSubnodes 1.029s
2021-09-21 22:38:25 |

2021-09-21 22:38:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:25 | ------------------------------------

2021-09-21 22:38:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913"
}

2021-09-21 22:38:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:38:26 | [Mutex] waiting for: [received:nodes:f6ca2131-9159-4872-ac2e-564084ecb719:localhost]

2021-09-21 22:38:26 | [Mutex] received everything.

2021-09-21 22:38:26 | [Mutex] isItemNotified: received:node:f6ca2131-9159-4872-ac2e-564084ecb719:localhost:node-c40f3a02-afc0-4824-bc66-d3365bf27913:Node c40f3a02-afc0-4824-bc66-d3365bf27913 :: false

2021-09-21 22:38:26 | [Mutex] waiting for: [received:nodes:6c84ad88-108c-40c8-b1b9-a415c60651f4:localhost]

2021-09-21 22:38:26 | [Mutex] received everything.

2021-09-21 22:38:26 | [Mutex] isItemNotified: received:node:6c84ad88-108c-40c8-b1b9-a415c60651f4:localhost:node-c40f3a02-afc0-4824-bc66-d3365bf27913:Node c40f3a02-afc0-4824-bc66-d3365bf27913 :: false

publishItemsToNodes 0.055s
2021-09-21 22:38:23 |

2021-09-21 22:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:23 | ------------------------------------

2021-09-21 22:38:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "entry": "<test>item-55553ec4-f393-42c4-93a1-82def61fd4a2</test>",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2"
}

2021-09-21 22:38:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2"
}

2021-09-21 22:38:23 | [Mutex] received everything.

2021-09-21 22:38:23 | [Mutex] isItemNotified: published:item:notifieditem-55553ec4-f393-42c4-93a1-82def61fd4a2:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2021-09-21 22:38:23 |

2021-09-21 22:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:23 | ------------------------------------

2021-09-21 22:38:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2"
}

2021-09-21 22:38:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2"
}

2021-09-21 22:38:24 | [Mutex] waiting for: [retracted:item:notifieditem-55553ec4-f393-42c4-93a1-82def61fd4a2:admin@test-domain.com]

2021-09-21 22:38:24 | [Mutex] received everything.

2021-09-21 22:38:24 | [Mutex] isItemNotified: retracted:item:notifieditem-55553ec4-f393-42c4-93a1-82def61fd4a2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2021-09-21 22:38:23 |

2021-09-21 22:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:23 | ------------------------------------

2021-09-21 22:38:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2"
}

2021-09-21 22:38:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "item-id": "item-55553ec4-f393-42c4-93a1-82def61fd4a2",
    "item": [
        "<item id=\"item-55553ec4-f393-42c4-93a1-82def61fd4a2\"><test>item-55553ec4-f393-42c4-93a1-82def61fd4a2</test></item>"
    ]
}

2021-09-21 22:38:23 | [Mutex] notify: [retrieved:item:item-55553ec4-f393-42c4-93a1-82def61fd4a2:payload-matches:true:localhost]

2021-09-21 22:38:23 | [Mutex] received everything.

2021-09-21 22:38:23 | [Mutex] isItemNotified: retrieved:item:item-55553ec4-f393-42c4-93a1-82def61fd4a2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-21 22:38:23 |

2021-09-21 22:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:23 | ------------------------------------

2021-09-21 22:38:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-21 22:38:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
        "test",
        "node-c641e1fb-0be1-481c-b496-d7f65a02166f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-09-21 22:38:23 |

2021-09-21 22:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:23 | ------------------------------------

2021-09-21 22:38:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c40f3a02-afc0-4824-bc66-d3365bf27913)"
}

2021-09-21 22:38:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-09-21 22:38:22 |

2021-09-21 22:38:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:22 | ------------------------------------

2021-09-21 22:38:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 22:38:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2021-09-21 22:38:24 |

2021-09-21 22:38:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:38:24 | ------------------------------------

2021-09-21 22:38:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c40f3a02-afc0-4824-bc66-d3365bf27913",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 22:38:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}