Generated by TestNG with ReportNG at 23:05 PDT on Monday 20 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 : 9.083s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.137s
2021-09-20 23:29:42 |

2021-09-20 23:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:42 | ------------------------------------

2021-09-20 23:29:42 | [Mutex] waiting for: [configured:node:node-c444ebeb-e596-4df9-9224-3fd11609530e:node-d6951bd5-c852-4f47-95af-93f2a61f36c0]

2021-09-20 23:29:42 | [Mutex] received everything.

2021-09-20 23:29:42 | [Mutex] isItemNotified: configured:node:node-c444ebeb-e596-4df9-9224-3fd11609530e:node-d6951bd5-c852-4f47-95af-93f2a61f36c0 :: true

2021-09-20 23:29:43 | [Mutex] waiting for: [received:nodes:e58c8a0e-09e7-4cc8-b991-8b68f74b04f5:localhost]

2021-09-20 23:29:43 | [Mutex] received everything.

2021-09-20 23:29:43 | [Mutex] isItemNotified: received:node:e58c8a0e-09e7-4cc8-b991-8b68f74b04f5:localhost:node-c444ebeb-e596-4df9-9224-3fd11609530e:Node c444ebeb-e596-4df9-9224-3fd11609530e :: true

2021-09-20 23:29:43 | [Mutex] waiting for: [received:nodes:e7f9c16a-52c7-48c4-a895-1bed71e41dc7:localhost]

2021-09-20 23:29:43 | [Mutex] received everything.

2021-09-20 23:29:43 | [Mutex] isItemNotified: received:node:e7f9c16a-52c7-48c4-a895-1bed71e41dc7:localhost:node-c444ebeb-e596-4df9-9224-3fd11609530e:Node c444ebeb-e596-4df9-9224-3fd11609530e :: false

createNodes 1.734s
2021-09-20 23:29:39 |

2021-09-20 23:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:39 | ------------------------------------

2021-09-20 23:29:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "pubsub#title": "Node c444ebeb-e596-4df9-9224-3fd11609530e"
}

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

2021-09-20 23:29:41 | [Mutex] waiting for: [received:nodes:2f87d17a-6426-41d4-997e-feb1dcc3f56d:localhost]

2021-09-20 23:29:41 | [Mutex] received everything.

2021-09-20 23:29:41 | [Mutex] isItemNotified: received:node:2f87d17a-6426-41d4-997e-feb1dcc3f56d:localhost:node-c444ebeb-e596-4df9-9224-3fd11609530e:Node c444ebeb-e596-4df9-9224-3fd11609530e :: true

createSubnodes 1.028s
2021-09-20 23:29:41 |

2021-09-20 23:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:41 | ------------------------------------

2021-09-20 23:29:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d6951bd5-c852-4f47-95af-93f2a61f36c0",
    "pubsub#title": "Node d6951bd5-c852-4f47-95af-93f2a61f36c0"
}

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

2021-09-20 23:29:42 | [Mutex] waiting for: [received:nodes:7d644e29-b4c0-4128-995f-2184d8f2a1a8:localhost]

2021-09-20 23:29:42 | [Mutex] received everything.

2021-09-20 23:29:42 | [Mutex] isItemNotified: received:node:7d644e29-b4c0-4128-995f-2184d8f2a1a8:localhost:node-d6951bd5-c852-4f47-95af-93f2a61f36c0:Node d6951bd5-c852-4f47-95af-93f2a61f36c0 :: true

deleteNodes 1.024s
2021-09-20 23:29:46 |

2021-09-20 23:29:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:46 | ------------------------------------

2021-09-20 23:29:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d6951bd5-c852-4f47-95af-93f2a61f36c0"
}

2021-09-20 23:29:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 23:29:47 | [Mutex] waiting for: [received:nodes:080ca96b-6ba4-41bf-97af-98ca6a9b915f:localhost]

2021-09-20 23:29:47 | [Mutex] received everything.

2021-09-20 23:29:47 | [Mutex] isItemNotified: received:node:080ca96b-6ba4-41bf-97af-98ca6a9b915f:localhost:node-d6951bd5-c852-4f47-95af-93f2a61f36c0:Node d6951bd5-c852-4f47-95af-93f2a61f36c0 :: false

deleteSubnodes 1.028s
2021-09-20 23:29:45 |

2021-09-20 23:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:45 | ------------------------------------

2021-09-20 23:29:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e"
}

2021-09-20 23:29:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 23:29:46 | [Mutex] waiting for: [received:nodes:3b844c6c-848e-4b2c-a1b0-57387e9ea5bb:localhost]

2021-09-20 23:29:46 | [Mutex] waiting for: [received:nodes:3b844c6c-848e-4b2c-a1b0-57387e9ea5bb:localhost]

2021-09-20 23:29:46 | [Mutex] received everything.

2021-09-20 23:29:46 | [Mutex] isItemNotified: received:node:3b844c6c-848e-4b2c-a1b0-57387e9ea5bb:localhost:node-c444ebeb-e596-4df9-9224-3fd11609530e:Node c444ebeb-e596-4df9-9224-3fd11609530e :: false

2021-09-20 23:29:46 | [Mutex] waiting for: [received:nodes:dbd73e8a-b2bc-4754-a579-ff76760519bc:localhost]

2021-09-20 23:29:46 | [Mutex] received everything.

2021-09-20 23:29:46 | [Mutex] isItemNotified: received:node:dbd73e8a-b2bc-4754-a579-ff76760519bc:localhost:node-c444ebeb-e596-4df9-9224-3fd11609530e:Node c444ebeb-e596-4df9-9224-3fd11609530e :: false

publishItemsToNodes 0.045s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

2021-09-20 23:29:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "entry": "<test>item-848479c9-a03b-4b73-8ff1-89eefaffb9c7</test>",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7"
}

2021-09-20 23:29:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7"
}

2021-09-20 23:29:44 | [Mutex] waiting for: [published:item:notifieditem-848479c9-a03b-4b73-8ff1-89eefaffb9c7:admin@test-domain.com]

2021-09-20 23:29:44 | [Mutex] received everything.

2021-09-20 23:29:44 | [Mutex] isItemNotified: published:item:notifieditem-848479c9-a03b-4b73-8ff1-89eefaffb9c7:admin@test-domain.com :: true

retractItemsFromNodes 0.117s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

2021-09-20 23:29:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7"
}

2021-09-20 23:29:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7"
}

2021-09-20 23:29:44 | [Mutex] waiting for: [retracted:item:notifieditem-848479c9-a03b-4b73-8ff1-89eefaffb9c7:admin@test-domain.com]

2021-09-20 23:29:44 | [Mutex] received everything.

2021-09-20 23:29:44 | [Mutex] isItemNotified: retracted:item:notifieditem-848479c9-a03b-4b73-8ff1-89eefaffb9c7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

2021-09-20 23:29:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7"
}

2021-09-20 23:29:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "item-id": "item-848479c9-a03b-4b73-8ff1-89eefaffb9c7",
    "item": [
        "<item id=\"item-848479c9-a03b-4b73-8ff1-89eefaffb9c7\"><test>item-848479c9-a03b-4b73-8ff1-89eefaffb9c7</test></item>"
    ]
}

2021-09-20 23:29:44 | [Mutex] notify: [retrieved:item:item-848479c9-a03b-4b73-8ff1-89eefaffb9c7:payload-matches:true:localhost]

2021-09-20 23:29:44 | [Mutex] received everything.

2021-09-20 23:29:44 | [Mutex] isItemNotified: retrieved:item:item-848479c9-a03b-4b73-8ff1-89eefaffb9c7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

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

2021-09-20 23:29:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d6951bd5-c852-4f47-95af-93f2a61f36c0",
        "node-c444ebeb-e596-4df9-9224-3fd11609530e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

2021-09-20 23:29:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c444ebeb-e596-4df9-9224-3fd11609530e)"
}

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

subscribeNodes 1.012s
2021-09-20 23:29:43 |

2021-09-20 23:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:43 | ------------------------------------

2021-09-20 23:29:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 23:29:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.010s
2021-09-20 23:29:44 |

2021-09-20 23:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:29:44 | ------------------------------------

2021-09-20 23:29:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c444ebeb-e596-4df9-9224-3fd11609530e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 23:29:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}