Generated by TestNG with ReportNG at 22:34 PDT on Tuesday 29 September 2020
root@87f6aca6b6f2 / 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 : 9.029s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2020-09-29 22:50:39 |

2020-09-29 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:39 | ------------------------------------

2020-09-29 22:50:39 | [Mutex] waiting for: [configured:node:node-60d61c31-286e-48da-adb9-55876324ceea:node-f12c526a-373d-474d-b3bb-72ef17ec74b5]

2020-09-29 22:50:39 | [Mutex] received everything.

2020-09-29 22:50:39 | [Mutex] isItemNotified: configured:node:node-60d61c31-286e-48da-adb9-55876324ceea:node-f12c526a-373d-474d-b3bb-72ef17ec74b5 :: true

2020-09-29 22:50:40 | [Mutex] waiting for: [received:nodes:8e899d27-1fd3-4689-9c0b-0e120cc58510:localhost]

2020-09-29 22:50:40 | [Mutex] received everything.

2020-09-29 22:50:40 | [Mutex] isItemNotified: received:node:8e899d27-1fd3-4689-9c0b-0e120cc58510:localhost:node-60d61c31-286e-48da-adb9-55876324ceea:Node 60d61c31-286e-48da-adb9-55876324ceea :: true

2020-09-29 22:50:40 | [Mutex] waiting for: [received:nodes:cd9cfd98-907a-435f-b8e0-396e5dc26257:localhost]

2020-09-29 22:50:40 | [Mutex] received everything.

2020-09-29 22:50:40 | [Mutex] isItemNotified: received:node:cd9cfd98-907a-435f-b8e0-396e5dc26257:localhost:node-60d61c31-286e-48da-adb9-55876324ceea:Node 60d61c31-286e-48da-adb9-55876324ceea :: false

createNodes 1.631s
2020-09-29 22:50:36 |

2020-09-29 22:50:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:36 | ------------------------------------

2020-09-29 22:50:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "pubsub#title": "Node 60d61c31-286e-48da-adb9-55876324ceea"
}

2020-09-29 22:50:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 22:50:38 | [Mutex] waiting for: [received:nodes:dc21060e-3d30-45f1-8c59-95acb103385a:localhost]

2020-09-29 22:50:38 | [Mutex] received everything.

2020-09-29 22:50:38 | [Mutex] isItemNotified: received:node:dc21060e-3d30-45f1-8c59-95acb103385a:localhost:node-60d61c31-286e-48da-adb9-55876324ceea:Node 60d61c31-286e-48da-adb9-55876324ceea :: true

createSubnodes 1.029s
2020-09-29 22:50:38 |

2020-09-29 22:50:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:38 | ------------------------------------

2020-09-29 22:50:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f12c526a-373d-474d-b3bb-72ef17ec74b5",
    "pubsub#title": "Node f12c526a-373d-474d-b3bb-72ef17ec74b5"
}

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

2020-09-29 22:50:39 | [Mutex] waiting for: [received:nodes:da8aeaef-b09a-4cd8-9b95-785e6710a642:localhost]

2020-09-29 22:50:39 | [Mutex] received everything.

2020-09-29 22:50:39 | [Mutex] isItemNotified: received:node:da8aeaef-b09a-4cd8-9b95-785e6710a642:localhost:node-f12c526a-373d-474d-b3bb-72ef17ec74b5:Node f12c526a-373d-474d-b3bb-72ef17ec74b5 :: true

deleteNodes 1.029s
2020-09-29 22:50:43 |

2020-09-29 22:50:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:43 | ------------------------------------

2020-09-29 22:50:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f12c526a-373d-474d-b3bb-72ef17ec74b5"
}

2020-09-29 22:50:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 22:50:44 | [Mutex] waiting for: [received:nodes:7b13a238-2f06-47cc-9c55-7f5711b62b6b:localhost]

2020-09-29 22:50:44 | [Mutex] received everything.

2020-09-29 22:50:44 | [Mutex] isItemNotified: received:node:7b13a238-2f06-47cc-9c55-7f5711b62b6b:localhost:node-f12c526a-373d-474d-b3bb-72ef17ec74b5:Node f12c526a-373d-474d-b3bb-72ef17ec74b5 :: false

deleteSubnodes 1.049s
2020-09-29 22:50:42 |

2020-09-29 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:42 | ------------------------------------

2020-09-29 22:50:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea"
}

2020-09-29 22:50:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-29 22:50:43 | [Mutex] waiting for: [received:nodes:44577288-4f83-4a29-a409-21c9072afa49:localhost]

2020-09-29 22:50:43 | [Mutex] waiting for: [received:nodes:44577288-4f83-4a29-a409-21c9072afa49:localhost]

2020-09-29 22:50:43 | [Mutex] received everything.

2020-09-29 22:50:43 | [Mutex] isItemNotified: received:node:44577288-4f83-4a29-a409-21c9072afa49:localhost:node-60d61c31-286e-48da-adb9-55876324ceea:Node 60d61c31-286e-48da-adb9-55876324ceea :: false

2020-09-29 22:50:43 | [Mutex] waiting for: [received:nodes:0ac16c6d-f160-49ce-a1fe-26d4e004fb72:localhost]

2020-09-29 22:50:43 | [Mutex] received everything.

2020-09-29 22:50:43 | [Mutex] isItemNotified: received:node:0ac16c6d-f160-49ce-a1fe-26d4e004fb72:localhost:node-60d61c31-286e-48da-adb9-55876324ceea:Node 60d61c31-286e-48da-adb9-55876324ceea :: false

publishItemsToNodes 0.031s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "entry": "<test>item-ff48ea0d-26f3-4e18-af6b-d0646becb662</test>",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662"
}

2020-09-29 22:50:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662"
}

2020-09-29 22:50:41 | [Mutex] waiting for: [published:item:notifieditem-ff48ea0d-26f3-4e18-af6b-d0646becb662:admin@test-domain.com]

2020-09-29 22:50:41 | [Mutex] received everything.

2020-09-29 22:50:41 | [Mutex] isItemNotified: published:item:notifieditem-ff48ea0d-26f3-4e18-af6b-d0646becb662:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662"
}

2020-09-29 22:50:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662"
}

2020-09-29 22:50:41 | [Mutex] received everything.

2020-09-29 22:50:41 | [Mutex] isItemNotified: retracted:item:notifieditem-ff48ea0d-26f3-4e18-af6b-d0646becb662:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662"
}

2020-09-29 22:50:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "item-id": "item-ff48ea0d-26f3-4e18-af6b-d0646becb662",
    "item": [
        "<item id=\"item-ff48ea0d-26f3-4e18-af6b-d0646becb662\"><test>item-ff48ea0d-26f3-4e18-af6b-d0646becb662</test></item>"
    ]
}

2020-09-29 22:50:41 | [Mutex] notify: [retrieved:item:item-ff48ea0d-26f3-4e18-af6b-d0646becb662:payload-matches:true:localhost]

2020-09-29 22:50:41 | [Mutex] received everything.

2020-09-29 22:50:41 | [Mutex] isItemNotified: retrieved:item:item-ff48ea0d-26f3-4e18-af6b-d0646becb662:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-29 22:50:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f12c526a-373d-474d-b3bb-72ef17ec74b5",
        "node-60d61c31-286e-48da-adb9-55876324ceea"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-60d61c31-286e-48da-adb9-55876324ceea)"
}

2020-09-29 22:50:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-09-29 22:50:40 |

2020-09-29 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:40 | ------------------------------------

2020-09-29 22:50:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2020-09-29 22:50:41 |

2020-09-29 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-29 22:50:41 | ------------------------------------

2020-09-29 22:50:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-60d61c31-286e-48da-adb9-55876324ceea",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-29 22:50:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}