Generated by TestNG with ReportNG at 22:50 PDT on Friday 02 October 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.047s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2020-10-02 23:06:17 |

2020-10-02 23:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:17 | ------------------------------------

2020-10-02 23:06:17 | [Mutex] waiting for: [configured:node:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8]

2020-10-02 23:06:17 | [Mutex] received everything.

2020-10-02 23:06:17 | [Mutex] isItemNotified: configured:node:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8 :: true

2020-10-02 23:06:18 | [Mutex] waiting for: [received:nodes:02773d25-f996-42e7-8c4c-6fd064df7aa2:localhost]

2020-10-02 23:06:19 | [Mutex] waiting for: [received:nodes:02773d25-f996-42e7-8c4c-6fd064df7aa2:localhost]

2020-10-02 23:06:19 | [Mutex] received everything.

2020-10-02 23:06:19 | [Mutex] isItemNotified: received:node:02773d25-f996-42e7-8c4c-6fd064df7aa2:localhost:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:Node a07bd59e-cef5-466e-9781-0ced35ab70c8 :: true

2020-10-02 23:06:19 | [Mutex] waiting for: [received:nodes:89388775-28ef-44fd-8c0a-e675c6efead4:localhost]

2020-10-02 23:06:19 | [Mutex] received everything.

2020-10-02 23:06:19 | [Mutex] isItemNotified: received:node:89388775-28ef-44fd-8c0a-e675c6efead4:localhost:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:Node a07bd59e-cef5-466e-9781-0ced35ab70c8 :: false

createNodes 1.630s
2020-10-02 23:06:15 |

2020-10-02 23:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:15 | ------------------------------------

2020-10-02 23:06: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-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "pubsub#title": "Node a07bd59e-cef5-466e-9781-0ced35ab70c8"
}

2020-10-02 23:06:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 23:06:16 | [Mutex] waiting for: [received:nodes:1f3d3875-ae29-482b-8fe3-f9e01cba5fe0:localhost]

2020-10-02 23:06:16 | [Mutex] waiting for: [received:nodes:1f3d3875-ae29-482b-8fe3-f9e01cba5fe0:localhost]

2020-10-02 23:06:16 | [Mutex] received everything.

2020-10-02 23:06:16 | [Mutex] isItemNotified: received:node:1f3d3875-ae29-482b-8fe3-f9e01cba5fe0:localhost:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:Node a07bd59e-cef5-466e-9781-0ced35ab70c8 :: true

createSubnodes 1.027s
2020-10-02 23:06:16 |

2020-10-02 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:16 | ------------------------------------

2020-10-02 23:06: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-e48dcf87-fb7f-4687-bd92-84e541b4f7f8",
    "pubsub#title": "Node e48dcf87-fb7f-4687-bd92-84e541b4f7f8"
}

2020-10-02 23:06:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 23:06:17 | [Mutex] waiting for: [received:nodes:2de0c0f3-88c5-488d-94f8-d5076edc1914:localhost]

2020-10-02 23:06:17 | [Mutex] waiting for: [received:nodes:2de0c0f3-88c5-488d-94f8-d5076edc1914:localhost]

2020-10-02 23:06:17 | [Mutex] received everything.

2020-10-02 23:06:17 | [Mutex] isItemNotified: received:node:2de0c0f3-88c5-488d-94f8-d5076edc1914:localhost:node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8:Node e48dcf87-fb7f-4687-bd92-84e541b4f7f8 :: true

deleteNodes 1.016s
2020-10-02 23:06:22 |

2020-10-02 23:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:22 | ------------------------------------

2020-10-02 23:06:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8"
}

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

2020-10-02 23:06:23 | [Mutex] waiting for: [received:nodes:586d7ade-0514-42ff-9264-0d4f044b43c6:localhost]

2020-10-02 23:06:23 | [Mutex] received everything.

2020-10-02 23:06:23 | [Mutex] isItemNotified: received:node:586d7ade-0514-42ff-9264-0d4f044b43c6:localhost:node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8:Node e48dcf87-fb7f-4687-bd92-84e541b4f7f8 :: false

deleteSubnodes 1.030s
2020-10-02 23:06:21 |

2020-10-02 23:06:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:21 | ------------------------------------

2020-10-02 23:06:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8"
}

2020-10-02 23:06:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 23:06:22 | [Mutex] waiting for: [received:nodes:640909b7-a40f-4cee-a37f-a45ce306ca60:localhost]

2020-10-02 23:06:22 | [Mutex] waiting for: [received:nodes:640909b7-a40f-4cee-a37f-a45ce306ca60:localhost]

2020-10-02 23:06:22 | [Mutex] received everything.

2020-10-02 23:06:22 | [Mutex] isItemNotified: received:node:640909b7-a40f-4cee-a37f-a45ce306ca60:localhost:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:Node a07bd59e-cef5-466e-9781-0ced35ab70c8 :: false

2020-10-02 23:06:22 | [Mutex] waiting for: [received:nodes:06512fac-f9f3-4126-bd6e-40e76c2e70c4:localhost]

2020-10-02 23:06:22 | [Mutex] received everything.

2020-10-02 23:06:22 | [Mutex] isItemNotified: received:node:06512fac-f9f3-4126-bd6e-40e76c2e70c4:localhost:node-a07bd59e-cef5-466e-9781-0ced35ab70c8:Node a07bd59e-cef5-466e-9781-0ced35ab70c8 :: false

publishItemsToNodes 0.039s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "entry": "<test>item-19a664ae-c3eb-450d-8267-80ce56295885</test>",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885"
}

2020-10-02 23:06:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885"
}

2020-10-02 23:06:20 | [Mutex] waiting for: [published:item:notifieditem-19a664ae-c3eb-450d-8267-80ce56295885:admin@test-domain.com]

2020-10-02 23:06:20 | [Mutex] received everything.

2020-10-02 23:06:20 | [Mutex] isItemNotified: published:item:notifieditem-19a664ae-c3eb-450d-8267-80ce56295885:admin@test-domain.com :: true

retractItemsFromNodes 0.108s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885"
}

2020-10-02 23:06:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885"
}

2020-10-02 23:06:20 | [Mutex] received everything.

2020-10-02 23:06:20 | [Mutex] isItemNotified: retracted:item:notifieditem-19a664ae-c3eb-450d-8267-80ce56295885:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885"
}

2020-10-02 23:06:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "item-id": "item-19a664ae-c3eb-450d-8267-80ce56295885",
    "item": [
        "<item id=\"item-19a664ae-c3eb-450d-8267-80ce56295885\"><test>item-19a664ae-c3eb-450d-8267-80ce56295885</test></item>"
    ]
}

2020-10-02 23:06:20 | [Mutex] notify: [retrieved:item:item-19a664ae-c3eb-450d-8267-80ce56295885:payload-matches:true:localhost]

2020-10-02 23:06:20 | [Mutex] received everything.

2020-10-02 23:06:20 | [Mutex] isItemNotified: retrieved:item:item-19a664ae-c3eb-450d-8267-80ce56295885:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-02 23:06:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
        "node-e48dcf87-fb7f-4687-bd92-84e541b4f7f8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a07bd59e-cef5-466e-9781-0ced35ab70c8)"
}

2020-10-02 23:06:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-10-02 23:06:19 |

2020-10-02 23:06:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:19 | ------------------------------------

2020-10-02 23:06:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-02 23:06:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-10-02 23:06:20 |

2020-10-02 23:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 23:06:20 | ------------------------------------

2020-10-02 23:06:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a07bd59e-cef5-466e-9781-0ced35ab70c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-02 23:06:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}