Generated by TestNG with ReportNG at 21:13 PST on Tuesday 29 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 : 8.977s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2020-12-29 21:28:38 |

2020-12-29 21:28:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:38 | ------------------------------------

2020-12-29 21:28:38 | [Mutex] waiting for: [configured:node:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:node-d9d191e4-9517-41b4-ae92-286f684e6b03]

2020-12-29 21:28:38 | [Mutex] received everything.

2020-12-29 21:28:38 | [Mutex] isItemNotified: configured:node:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:node-d9d191e4-9517-41b4-ae92-286f684e6b03 :: true

2020-12-29 21:28:39 | [Mutex] waiting for: [received:nodes:e6ad5b88-1632-48f0-abb3-2487d0db9ed5:localhost]

2020-12-29 21:28:39 | [Mutex] received everything.

2020-12-29 21:28:39 | [Mutex] isItemNotified: received:node:e6ad5b88-1632-48f0-abb3-2487d0db9ed5:localhost:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:Node e3704720-b1f9-4be7-96b5-f47eba25f5c1 :: true

2020-12-29 21:28:39 | [Mutex] waiting for: [received:nodes:7f4a3424-6573-4378-885e-6c1ac17355b4:localhost]

2020-12-29 21:28:39 | [Mutex] received everything.

2020-12-29 21:28:39 | [Mutex] isItemNotified: received:node:7f4a3424-6573-4378-885e-6c1ac17355b4:localhost:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:Node e3704720-b1f9-4be7-96b5-f47eba25f5c1 :: false

createNodes 1.653s
2020-12-29 21:28:35 |

2020-12-29 21:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:35 | ------------------------------------

2020-12-29 21:28: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-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "pubsub#title": "Node e3704720-b1f9-4be7-96b5-f47eba25f5c1"
}

2020-12-29 21:28:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:28:37 | [Mutex] waiting for: [received:nodes:48e4756a-9cce-4063-9d72-c6d1718454cf:localhost]

2020-12-29 21:28:37 | [Mutex] waiting for: [received:nodes:48e4756a-9cce-4063-9d72-c6d1718454cf:localhost]

2020-12-29 21:28:37 | [Mutex] received everything.

2020-12-29 21:28:37 | [Mutex] isItemNotified: received:node:48e4756a-9cce-4063-9d72-c6d1718454cf:localhost:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:Node e3704720-b1f9-4be7-96b5-f47eba25f5c1 :: true

createSubnodes 1.028s
2020-12-29 21:28:37 |

2020-12-29 21:28:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:37 | ------------------------------------

2020-12-29 21:28:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d9d191e4-9517-41b4-ae92-286f684e6b03",
    "pubsub#title": "Node d9d191e4-9517-41b4-ae92-286f684e6b03"
}

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

2020-12-29 21:28:38 | [Mutex] waiting for: [received:nodes:21f46754-0ff5-4056-8a6e-be7fec8a52a9:localhost]

2020-12-29 21:28:38 | [Mutex] received everything.

2020-12-29 21:28:38 | [Mutex] isItemNotified: received:node:21f46754-0ff5-4056-8a6e-be7fec8a52a9:localhost:node-d9d191e4-9517-41b4-ae92-286f684e6b03:Node d9d191e4-9517-41b4-ae92-286f684e6b03 :: true

deleteNodes 1.019s
2020-12-29 21:28:42 |

2020-12-29 21:28:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:42 | ------------------------------------

2020-12-29 21:28:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d9d191e4-9517-41b4-ae92-286f684e6b03"
}

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

2020-12-29 21:28:43 | [Mutex] waiting for: [received:nodes:17381335-894f-44be-80d9-c1bceba6dbef:localhost]

2020-12-29 21:28:43 | [Mutex] received everything.

2020-12-29 21:28:43 | [Mutex] isItemNotified: received:node:17381335-894f-44be-80d9-c1bceba6dbef:localhost:node-d9d191e4-9517-41b4-ae92-286f684e6b03:Node d9d191e4-9517-41b4-ae92-286f684e6b03 :: false

deleteSubnodes 1.032s
2020-12-29 21:28:41 |

2020-12-29 21:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:41 | ------------------------------------

2020-12-29 21:28:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1"
}

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

2020-12-29 21:28:42 | [Mutex] waiting for: [received:nodes:3a56e063-28fb-4d4c-8ce5-48c509ea2c06:localhost]

2020-12-29 21:28:42 | [Mutex] received everything.

2020-12-29 21:28:42 | [Mutex] isItemNotified: received:node:3a56e063-28fb-4d4c-8ce5-48c509ea2c06:localhost:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:Node e3704720-b1f9-4be7-96b5-f47eba25f5c1 :: false

2020-12-29 21:28:42 | [Mutex] waiting for: [received:nodes:307ff822-44ed-46bd-ba0c-e8e058011c84:localhost]

2020-12-29 21:28:42 | [Mutex] received everything.

2020-12-29 21:28:42 | [Mutex] isItemNotified: received:node:307ff822-44ed-46bd-ba0c-e8e058011c84:localhost:node-e3704720-b1f9-4be7-96b5-f47eba25f5c1:Node e3704720-b1f9-4be7-96b5-f47eba25f5c1 :: false

publishItemsToNodes 0.047s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "entry": "<test>item-92b659e0-d89b-4f65-91bf-95041fc7e1b4</test>",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4"
}

2020-12-29 21:28:40 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4"
}

2020-12-29 21:28:40 | [Mutex] waiting for: [published:item:notifieditem-92b659e0-d89b-4f65-91bf-95041fc7e1b4:admin@test-domain.com]

2020-12-29 21:28:40 | [Mutex] received everything.

2020-12-29 21:28:40 | [Mutex] isItemNotified: published:item:notifieditem-92b659e0-d89b-4f65-91bf-95041fc7e1b4:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4"
}

2020-12-29 21:28:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4"
}

2020-12-29 21:28:40 | [Mutex] waiting for: [retracted:item:notifieditem-92b659e0-d89b-4f65-91bf-95041fc7e1b4:admin@test-domain.com]

2020-12-29 21:28:40 | [Mutex] received everything.

2020-12-29 21:28:40 | [Mutex] isItemNotified: retracted:item:notifieditem-92b659e0-d89b-4f65-91bf-95041fc7e1b4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.028s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4"
}

2020-12-29 21:28:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "item-id": "item-92b659e0-d89b-4f65-91bf-95041fc7e1b4",
    "item": [
        "<item id=\"item-92b659e0-d89b-4f65-91bf-95041fc7e1b4\"><test>item-92b659e0-d89b-4f65-91bf-95041fc7e1b4</test></item>"
    ]
}

2020-12-29 21:28:40 | [Mutex] notify: [retrieved:item:item-92b659e0-d89b-4f65-91bf-95041fc7e1b4:payload-matches:true:localhost]

2020-12-29 21:28:40 | [Mutex] received everything.

2020-12-29 21:28:40 | [Mutex] isItemNotified: retrieved:item:item-92b659e0-d89b-4f65-91bf-95041fc7e1b4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.065s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-29 21:28:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
        "node-d9d191e4-9517-41b4-ae92-286f684e6b03"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e3704720-b1f9-4be7-96b5-f47eba25f5c1)"
}

2020-12-29 21:28:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-12-29 21:28:39 |

2020-12-29 21:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:39 | ------------------------------------

2020-12-29 21:28:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:28:39 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-12-29 21:28:40 |

2020-12-29 21:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:40 | ------------------------------------

2020-12-29 21:28:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e3704720-b1f9-4be7-96b5-f47eba25f5c1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:28:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}