Generated by TestNG with ReportNG at 22:31 PDT on Wednesday 26 August 2020
root@729cee58eda8 / 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.096s
2020-08-26 22:49:07 |

2020-08-26 22:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:07 | ------------------------------------

2020-08-26 22:49:07 | [Mutex] waiting for: [configured:node:node-682e2846-2b43-46ec-be2d-4e771be50baa:node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0]

2020-08-26 22:49:07 | [Mutex] received everything.

2020-08-26 22:49:07 | [Mutex] isItemNotified: configured:node:node-682e2846-2b43-46ec-be2d-4e771be50baa:node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0 :: true

2020-08-26 22:49:08 | [Mutex] waiting for: [received:nodes:228e0e4a-5dc6-4044-a448-d83fed73db44:localhost]

2020-08-26 22:49:08 | [Mutex] received everything.

2020-08-26 22:49:08 | [Mutex] isItemNotified: received:node:228e0e4a-5dc6-4044-a448-d83fed73db44:localhost:node-682e2846-2b43-46ec-be2d-4e771be50baa:Node 682e2846-2b43-46ec-be2d-4e771be50baa :: true

2020-08-26 22:49:08 | [Mutex] waiting for: [received:nodes:2508804c-9ef0-4b76-ae0c-8d8f88df3793:localhost]

2020-08-26 22:49:08 | [Mutex] waiting for: [received:nodes:2508804c-9ef0-4b76-ae0c-8d8f88df3793:localhost]

2020-08-26 22:49:08 | [Mutex] received everything.

2020-08-26 22:49:08 | [Mutex] isItemNotified: received:node:2508804c-9ef0-4b76-ae0c-8d8f88df3793:localhost:node-682e2846-2b43-46ec-be2d-4e771be50baa:Node 682e2846-2b43-46ec-be2d-4e771be50baa :: false

createNodes 1.628s
2020-08-26 22:49:04 |

2020-08-26 22:49:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:04 | ------------------------------------

2020-08-26 22:49:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "pubsub#title": "Node 682e2846-2b43-46ec-be2d-4e771be50baa"
}

2020-08-26 22:49:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:49:06 | [Mutex] waiting for: [received:nodes:8c8c98de-2086-4495-8e84-5ceb70b94866:localhost]

2020-08-26 22:49:06 | [Mutex] received everything.

2020-08-26 22:49:06 | [Mutex] isItemNotified: received:node:8c8c98de-2086-4495-8e84-5ceb70b94866:localhost:node-682e2846-2b43-46ec-be2d-4e771be50baa:Node 682e2846-2b43-46ec-be2d-4e771be50baa :: true

createSubnodes 1.027s
2020-08-26 22:49:06 |

2020-08-26 22:49:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:06 | ------------------------------------

2020-08-26 22:49:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0",
    "pubsub#title": "Node fe99dc16-0065-4edd-9f28-5ae1a016e7a0"
}

2020-08-26 22:49:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:49:07 | [Mutex] waiting for: [received:nodes:d22b4334-94bd-4ce0-8018-d892197ad4df:localhost]

2020-08-26 22:49:07 | [Mutex] received everything.

2020-08-26 22:49:07 | [Mutex] isItemNotified: received:node:d22b4334-94bd-4ce0-8018-d892197ad4df:localhost:node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0:Node fe99dc16-0065-4edd-9f28-5ae1a016e7a0 :: true

deleteNodes 1.018s
2020-08-26 22:49:11 |

2020-08-26 22:49:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:11 | ------------------------------------

2020-08-26 22:49:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0"
}

2020-08-26 22:49:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:49:12 | [Mutex] waiting for: [received:nodes:5d755f1c-fa10-4e34-a401-343f9e95d249:localhost]

2020-08-26 22:49:12 | [Mutex] received everything.

2020-08-26 22:49:12 | [Mutex] isItemNotified: received:node:5d755f1c-fa10-4e34-a401-343f9e95d249:localhost:node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0:Node fe99dc16-0065-4edd-9f28-5ae1a016e7a0 :: false

deleteSubnodes 1.029s
2020-08-26 22:49:10 |

2020-08-26 22:49:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:10 | ------------------------------------

2020-08-26 22:49:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa"
}

2020-08-26 22:49:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:49:11 | [Mutex] waiting for: [received:nodes:123d1018-f07f-4d11-8344-5e91e425de2a:localhost]

2020-08-26 22:49:11 | [Mutex] received everything.

2020-08-26 22:49:11 | [Mutex] isItemNotified: received:node:123d1018-f07f-4d11-8344-5e91e425de2a:localhost:node-682e2846-2b43-46ec-be2d-4e771be50baa:Node 682e2846-2b43-46ec-be2d-4e771be50baa :: false

2020-08-26 22:49:11 | [Mutex] waiting for: [received:nodes:844aa6ce-f5b2-4328-b360-2a31706eae6e:localhost]

2020-08-26 22:49:11 | [Mutex] received everything.

2020-08-26 22:49:11 | [Mutex] isItemNotified: received:node:844aa6ce-f5b2-4328-b360-2a31706eae6e:localhost:node-682e2846-2b43-46ec-be2d-4e771be50baa:Node 682e2846-2b43-46ec-be2d-4e771be50baa :: false

publishItemsToNodes 0.056s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

2020-08-26 22:49:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "entry": "<test>item-821aca5b-84b5-448b-8389-ce6df21a544e</test>",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e"
}

2020-08-26 22:49:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e"
}

2020-08-26 22:49:09 | [Mutex] waiting for: [published:item:notifieditem-821aca5b-84b5-448b-8389-ce6df21a544e:admin@test-domain.com]

2020-08-26 22:49:09 | [Mutex] received everything.

2020-08-26 22:49:09 | [Mutex] isItemNotified: published:item:notifieditem-821aca5b-84b5-448b-8389-ce6df21a544e:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

2020-08-26 22:49:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e"
}

2020-08-26 22:49:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e"
}

2020-08-26 22:49:09 | [Mutex] received everything.

2020-08-26 22:49:09 | [Mutex] isItemNotified: retracted:item:notifieditem-821aca5b-84b5-448b-8389-ce6df21a544e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

2020-08-26 22:49:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e"
}

2020-08-26 22:49:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "item-id": "item-821aca5b-84b5-448b-8389-ce6df21a544e",
    "item": [
        "<item id=\"item-821aca5b-84b5-448b-8389-ce6df21a544e\"><test>item-821aca5b-84b5-448b-8389-ce6df21a544e</test></item>"
    ]
}

2020-08-26 22:49:09 | [Mutex] notify: [retrieved:item:item-821aca5b-84b5-448b-8389-ce6df21a544e:payload-matches:true:localhost]

2020-08-26 22:49:09 | [Mutex] received everything.

2020-08-26 22:49:09 | [Mutex] isItemNotified: retrieved:item:item-821aca5b-84b5-448b-8389-ce6df21a544e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.064s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

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

2020-08-26 22:49:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fe99dc16-0065-4edd-9f28-5ae1a016e7a0",
        "node-682e2846-2b43-46ec-be2d-4e771be50baa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

2020-08-26 22:49:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-682e2846-2b43-46ec-be2d-4e771be50baa)"
}

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

subscribeNodes 1.013s
2020-08-26 22:49:08 |

2020-08-26 22:49:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:08 | ------------------------------------

2020-08-26 22:49:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 22:49:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-08-26 22:49:09 |

2020-08-26 22:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:49:09 | ------------------------------------

2020-08-26 22:49:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-682e2846-2b43-46ec-be2d-4e771be50baa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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