Generated by TestNG with ReportNG at 22:44 PDT on Monday 28 September 2020
root@4b128309152c / 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.218s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2020-09-28 22:59:53 |

2020-09-28 22:59:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:53 | ------------------------------------

2020-09-28 22:59:53 | [Mutex] waiting for: [configured:node:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:node-8eb27d31-c444-4cfd-8ee1-ccf45489babe]

2020-09-28 22:59:53 | [Mutex] received everything.

2020-09-28 22:59:53 | [Mutex] isItemNotified: configured:node:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:node-8eb27d31-c444-4cfd-8ee1-ccf45489babe :: true

2020-09-28 22:59:54 | [Mutex] waiting for: [received:nodes:8cddf4b9-4c95-4969-a920-ebfbdb1be60b:localhost]

2020-09-28 22:59:54 | [Mutex] received everything.

2020-09-28 22:59:54 | [Mutex] isItemNotified: received:node:8cddf4b9-4c95-4969-a920-ebfbdb1be60b:localhost:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d :: true

2020-09-28 22:59:54 | [Mutex] waiting for: [received:nodes:72b15f62-6176-47d1-9e02-5bcb6a2bc0ef:localhost]

2020-09-28 22:59:54 | [Mutex] received everything.

2020-09-28 22:59:54 | [Mutex] isItemNotified: received:node:72b15f62-6176-47d1-9e02-5bcb6a2bc0ef:localhost:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d :: false

createNodes 1.887s
2020-09-28 22:59:50 |

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

2020-09-28 22:59:50 | ------------------------------------

2020-09-28 22:59:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "pubsub#title": "Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d"
}

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

2020-09-28 22:59:52 | [Mutex] waiting for: [received:nodes:d821608e-6cbc-45f8-8f46-4cf7d83719ec:localhost]

2020-09-28 22:59:52 | [Mutex] received everything.

2020-09-28 22:59:52 | [Mutex] isItemNotified: received:node:d821608e-6cbc-45f8-8f46-4cf7d83719ec:localhost:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d :: true

createSubnodes 1.025s
2020-09-28 22:59:52 |

2020-09-28 22:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:52 | ------------------------------------

2020-09-28 22:59:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8eb27d31-c444-4cfd-8ee1-ccf45489babe",
    "pubsub#title": "Node 8eb27d31-c444-4cfd-8ee1-ccf45489babe"
}

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

2020-09-28 22:59:53 | [Mutex] waiting for: [received:nodes:b1baa0c3-74b5-4fb1-aa29-da04cb16623a:localhost]

2020-09-28 22:59:53 | [Mutex] waiting for: [received:nodes:b1baa0c3-74b5-4fb1-aa29-da04cb16623a:localhost]

2020-09-28 22:59:53 | [Mutex] received everything.

2020-09-28 22:59:53 | [Mutex] isItemNotified: received:node:b1baa0c3-74b5-4fb1-aa29-da04cb16623a:localhost:node-8eb27d31-c444-4cfd-8ee1-ccf45489babe:Node 8eb27d31-c444-4cfd-8ee1-ccf45489babe :: true

deleteNodes 1.036s
2020-09-28 22:59:58 |

2020-09-28 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:58 | ------------------------------------

2020-09-28 22:59:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8eb27d31-c444-4cfd-8ee1-ccf45489babe"
}

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

2020-09-28 22:59:59 | [Mutex] waiting for: [received:nodes:0530a0ae-866a-4594-8a92-0d09513b3f0b:localhost]

2020-09-28 22:59:59 | [Mutex] waiting for: [received:nodes:0530a0ae-866a-4594-8a92-0d09513b3f0b:localhost]

2020-09-28 22:59:59 | [Mutex] received everything.

2020-09-28 22:59:59 | [Mutex] isItemNotified: received:node:0530a0ae-866a-4594-8a92-0d09513b3f0b:localhost:node-8eb27d31-c444-4cfd-8ee1-ccf45489babe:Node 8eb27d31-c444-4cfd-8ee1-ccf45489babe :: false

deleteSubnodes 1.026s
2020-09-28 22:59:56 |

2020-09-28 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:56 | ------------------------------------

2020-09-28 22:59:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d"
}

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

2020-09-28 22:59:58 | [Mutex] waiting for: [received:nodes:090f98f3-21ac-4c92-a77c-7847f66b1eb4:localhost]

2020-09-28 22:59:58 | [Mutex] received everything.

2020-09-28 22:59:58 | [Mutex] isItemNotified: received:node:090f98f3-21ac-4c92-a77c-7847f66b1eb4:localhost:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d :: false

2020-09-28 22:59:58 | [Mutex] waiting for: [received:nodes:664239c5-4d1b-4ec2-9357-4487e385998f:localhost]

2020-09-28 22:59:58 | [Mutex] received everything.

2020-09-28 22:59:58 | [Mutex] isItemNotified: received:node:664239c5-4d1b-4ec2-9357-4487e385998f:localhost:node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d:Node b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d :: false

publishItemsToNodes 0.047s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

2020-09-28 22:59:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "entry": "<test>item-590e38ac-4943-4fce-9b52-80c531bb6088</test>",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088"
}

2020-09-28 22:59:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088"
}

2020-09-28 22:59:55 | [Mutex] waiting for: [published:item:notifieditem-590e38ac-4943-4fce-9b52-80c531bb6088:admin@test-domain.com]

2020-09-28 22:59:55 | [Mutex] received everything.

2020-09-28 22:59:55 | [Mutex] isItemNotified: published:item:notifieditem-590e38ac-4943-4fce-9b52-80c531bb6088:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

2020-09-28 22:59:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088"
}

2020-09-28 22:59:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088"
}

2020-09-28 22:59:55 | [Mutex] received everything.

2020-09-28 22:59:55 | [Mutex] isItemNotified: retracted:item:notifieditem-590e38ac-4943-4fce-9b52-80c531bb6088:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

2020-09-28 22:59:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088"
}

2020-09-28 22:59:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "item-id": "item-590e38ac-4943-4fce-9b52-80c531bb6088",
    "item": [
        "<item id=\"item-590e38ac-4943-4fce-9b52-80c531bb6088\"><test>item-590e38ac-4943-4fce-9b52-80c531bb6088</test></item>"
    ]
}

2020-09-28 22:59:55 | [Mutex] notify: [retrieved:item:item-590e38ac-4943-4fce-9b52-80c531bb6088:payload-matches:true:localhost]

2020-09-28 22:59:55 | [Mutex] received everything.

2020-09-28 22:59:55 | [Mutex] isItemNotified: retrieved:item:item-590e38ac-4943-4fce-9b52-80c531bb6088:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

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

2020-09-28 22:59:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8eb27d31-c444-4cfd-8ee1-ccf45489babe",
        "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

2020-09-28 22:59:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d)"
}

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

subscribeNodes 1.013s
2020-09-28 22:59:54 |

2020-09-28 22:59:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:54 | ------------------------------------

2020-09-28 22:59:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.068s
2020-09-28 22:59:55 |

2020-09-28 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 22:59:55 | ------------------------------------

2020-09-28 22:59:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b2ddedb2-2f88-4b27-9c1b-b9e1f99ea46d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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