Generated by TestNG with ReportNG at 13:35 PST on Wednesday 16 December 2020
root@eaa73862192b / 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.308s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2020-12-16 13:51:17 |

2020-12-16 13:51:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:17 | ------------------------------------

2020-12-16 13:51:17 | [Mutex] waiting for: [configured:node:node-094725b4-5e02-4d20-aa76-04b35187be0e:node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3]

2020-12-16 13:51:17 | [Mutex] received everything.

2020-12-16 13:51:17 | [Mutex] isItemNotified: configured:node:node-094725b4-5e02-4d20-aa76-04b35187be0e:node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3 :: true

2020-12-16 13:51:18 | [Mutex] waiting for: [received:nodes:d3488b76-b7d8-4e82-8313-66f7a680ad53:localhost]

2020-12-16 13:51:18 | [Mutex] waiting for: [received:nodes:d3488b76-b7d8-4e82-8313-66f7a680ad53:localhost]

2020-12-16 13:51:18 | [Mutex] received everything.

2020-12-16 13:51:18 | [Mutex] isItemNotified: received:node:d3488b76-b7d8-4e82-8313-66f7a680ad53:localhost:node-094725b4-5e02-4d20-aa76-04b35187be0e:Node 094725b4-5e02-4d20-aa76-04b35187be0e :: true

2020-12-16 13:51:18 | [Mutex] waiting for: [received:nodes:eefb11a4-25a1-4b28-a408-0bcefb62d033:localhost]

2020-12-16 13:51:18 | [Mutex] waiting for: [received:nodes:eefb11a4-25a1-4b28-a408-0bcefb62d033:localhost]

2020-12-16 13:51:18 | [Mutex] received everything.

2020-12-16 13:51:18 | [Mutex] isItemNotified: received:node:eefb11a4-25a1-4b28-a408-0bcefb62d033:localhost:node-094725b4-5e02-4d20-aa76-04b35187be0e:Node 094725b4-5e02-4d20-aa76-04b35187be0e :: false

createNodes 1.723s
2020-12-16 13:51:14 |

2020-12-16 13:51:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:14 | ------------------------------------

2020-12-16 13:51:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "pubsub#title": "Node 094725b4-5e02-4d20-aa76-04b35187be0e"
}

2020-12-16 13:51:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:51:16 | [Mutex] waiting for: [received:nodes:dc9cffa6-aa91-4cef-95bd-d5c9e20a354f:localhost]

2020-12-16 13:51:16 | [Mutex] received everything.

2020-12-16 13:51:16 | [Mutex] isItemNotified: received:node:dc9cffa6-aa91-4cef-95bd-d5c9e20a354f:localhost:node-094725b4-5e02-4d20-aa76-04b35187be0e:Node 094725b4-5e02-4d20-aa76-04b35187be0e :: true

createSubnodes 1.032s
2020-12-16 13:51:16 |

2020-12-16 13:51:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:16 | ------------------------------------

2020-12-16 13:51:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3",
    "pubsub#title": "Node 743bb9e5-1eda-4536-adcd-67c4b28aa4b3"
}

2020-12-16 13:51:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:51:17 | [Mutex] waiting for: [received:nodes:3029ed57-34ba-4566-adf4-37e9f28f4222:localhost]

2020-12-16 13:51:17 | [Mutex] received everything.

2020-12-16 13:51:17 | [Mutex] isItemNotified: received:node:3029ed57-34ba-4566-adf4-37e9f28f4222:localhost:node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3:Node 743bb9e5-1eda-4536-adcd-67c4b28aa4b3 :: true

deleteNodes 1.024s
2020-12-16 13:51:21 |

2020-12-16 13:51:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:21 | ------------------------------------

2020-12-16 13:51:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3"
}

2020-12-16 13:51:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:51:22 | [Mutex] waiting for: [received:nodes:5afa12f4-1b26-4473-8cb6-a568ee2f3450:localhost]

2020-12-16 13:51:22 | [Mutex] received everything.

2020-12-16 13:51:22 | [Mutex] isItemNotified: received:node:5afa12f4-1b26-4473-8cb6-a568ee2f3450:localhost:node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3:Node 743bb9e5-1eda-4536-adcd-67c4b28aa4b3 :: false

deleteSubnodes 1.025s
2020-12-16 13:51:20 |

2020-12-16 13:51:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:20 | ------------------------------------

2020-12-16 13:51:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e"
}

2020-12-16 13:51:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-16 13:51:21 | [Mutex] waiting for: [received:nodes:f4d69843-fa44-4312-b837-6de7384de702:localhost]

2020-12-16 13:51:21 | [Mutex] received everything.

2020-12-16 13:51:21 | [Mutex] isItemNotified: received:node:f4d69843-fa44-4312-b837-6de7384de702:localhost:node-094725b4-5e02-4d20-aa76-04b35187be0e:Node 094725b4-5e02-4d20-aa76-04b35187be0e :: false

2020-12-16 13:51:21 | [Mutex] waiting for: [received:nodes:71b64a0a-fb1a-4e03-84d3-c8522570fdc0:localhost]

2020-12-16 13:51:21 | [Mutex] received everything.

2020-12-16 13:51:21 | [Mutex] isItemNotified: received:node:71b64a0a-fb1a-4e03-84d3-c8522570fdc0:localhost:node-094725b4-5e02-4d20-aa76-04b35187be0e:Node 094725b4-5e02-4d20-aa76-04b35187be0e :: false

publishItemsToNodes 0.045s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "entry": "<test>item-a7300898-0285-4305-a31a-81025c185cba</test>",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba"
}

2020-12-16 13:51:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba"
}

2020-12-16 13:51:19 | [Mutex] waiting for: [published:item:notifieditem-a7300898-0285-4305-a31a-81025c185cba:admin@test-domain.com]

2020-12-16 13:51:19 | [Mutex] received everything.

2020-12-16 13:51:19 | [Mutex] isItemNotified: published:item:notifieditem-a7300898-0285-4305-a31a-81025c185cba:admin@test-domain.com :: true

retractItemsFromNodes 0.096s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba"
}

2020-12-16 13:51:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba"
}

2020-12-16 13:51:19 | [Mutex] waiting for: [retracted:item:notifieditem-a7300898-0285-4305-a31a-81025c185cba:admin@test-domain.com]

2020-12-16 13:51:19 | [Mutex] received everything.

2020-12-16 13:51:19 | [Mutex] isItemNotified: retracted:item:notifieditem-a7300898-0285-4305-a31a-81025c185cba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.094s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba"
}

2020-12-16 13:51:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "item-id": "item-a7300898-0285-4305-a31a-81025c185cba",
    "item": [
        "<item id=\"item-a7300898-0285-4305-a31a-81025c185cba\"><test>item-a7300898-0285-4305-a31a-81025c185cba</test></item>"
    ]
}

2020-12-16 13:51:19 | [Mutex] notify: [retrieved:item:item-a7300898-0285-4305-a31a-81025c185cba:payload-matches:true:localhost]

2020-12-16 13:51:19 | [Mutex] received everything.

2020-12-16 13:51:19 | [Mutex] isItemNotified: retrieved:item:item-a7300898-0285-4305-a31a-81025c185cba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-16 13:51:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-743bb9e5-1eda-4536-adcd-67c4b28aa4b3",
        "test",
        "node-094725b4-5e02-4d20-aa76-04b35187be0e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-094725b4-5e02-4d20-aa76-04b35187be0e)"
}

2020-12-16 13:51:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-12-16 13:51:18 |

2020-12-16 13:51:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:18 | ------------------------------------

2020-12-16 13:51:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-16 13:51:18 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2020-12-16 13:51:19 |

2020-12-16 13:51:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-16 13:51:19 | ------------------------------------

2020-12-16 13:51:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-094725b4-5e02-4d20-aa76-04b35187be0e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-16 13:51:19 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}