Generated by TestNG with ReportNG at 22:50 PDT on Friday 02 October 2020
root@43fec6d4badf / 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.266s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2020-10-02 23:05:13 |

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

2020-10-02 23:05:13 | ------------------------------------

2020-10-02 23:05:13 | [Mutex] waiting for: [configured:node:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:node-69ad4458-021f-48a5-abfb-7758e6296232]

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

2020-10-02 23:05:13 | [Mutex] isItemNotified: configured:node:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:node-69ad4458-021f-48a5-abfb-7758e6296232 :: true

2020-10-02 23:05:14 | [Mutex] waiting for: [received:nodes:8d92b0cf-6de7-4829-bcea-5c5359d067cd:localhost]

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

2020-10-02 23:05:14 | [Mutex] isItemNotified: received:node:8d92b0cf-6de7-4829-bcea-5c5359d067cd:localhost:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0 :: true

2020-10-02 23:05:14 | [Mutex] waiting for: [received:nodes:4ab64de3-511c-4867-9a67-a2bed09521a0:localhost]

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

2020-10-02 23:05:14 | [Mutex] isItemNotified: received:node:4ab64de3-511c-4867-9a67-a2bed09521a0:localhost:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0 :: false

createNodes 1.800s
2020-10-02 23:05:10 |

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

2020-10-02 23:05:10 | ------------------------------------

2020-10-02 23:05:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "pubsub#title": "Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0"
}

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

2020-10-02 23:05:12 | [Mutex] waiting for: [received:nodes:ffa6ff0f-99ca-4356-8e80-b4c00565a34f:localhost]

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

2020-10-02 23:05:12 | [Mutex] isItemNotified: received:node:ffa6ff0f-99ca-4356-8e80-b4c00565a34f:localhost:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0 :: true

createSubnodes 1.038s
2020-10-02 23:05:12 |

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

2020-10-02 23:05:12 | ------------------------------------

2020-10-02 23:05:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-69ad4458-021f-48a5-abfb-7758e6296232",
    "pubsub#title": "Node 69ad4458-021f-48a5-abfb-7758e6296232"
}

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

2020-10-02 23:05:13 | [Mutex] waiting for: [received:nodes:2bc4d70d-1dfc-4987-ace3-2c9ff8b60abd:localhost]

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

2020-10-02 23:05:13 | [Mutex] isItemNotified: received:node:2bc4d70d-1dfc-4987-ace3-2c9ff8b60abd:localhost:node-69ad4458-021f-48a5-abfb-7758e6296232:Node 69ad4458-021f-48a5-abfb-7758e6296232 :: true

deleteNodes 1.024s
2020-10-02 23:05:18 |

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

2020-10-02 23:05:18 | ------------------------------------

2020-10-02 23:05:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69ad4458-021f-48a5-abfb-7758e6296232"
}

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

2020-10-02 23:05:19 | [Mutex] waiting for: [received:nodes:7857f82d-654f-4cbc-89c3-706e6f537f82:localhost]

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

2020-10-02 23:05:19 | [Mutex] isItemNotified: received:node:7857f82d-654f-4cbc-89c3-706e6f537f82:localhost:node-69ad4458-021f-48a5-abfb-7758e6296232:Node 69ad4458-021f-48a5-abfb-7758e6296232 :: false

deleteSubnodes 1.029s
2020-10-02 23:05:17 |

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

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

2020-10-02 23:05:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0"
}

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

2020-10-02 23:05:18 | [Mutex] waiting for: [received:nodes:7c8f8d32-cb9c-4e66-a65f-d4b52d32ad56:localhost]

2020-10-02 23:05:18 | [Mutex] waiting for: [received:nodes:7c8f8d32-cb9c-4e66-a65f-d4b52d32ad56:localhost]

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

2020-10-02 23:05:18 | [Mutex] isItemNotified: received:node:7c8f8d32-cb9c-4e66-a65f-d4b52d32ad56:localhost:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0 :: false

2020-10-02 23:05:18 | [Mutex] waiting for: [received:nodes:acf8007d-6518-45e3-88fd-1dfa1f8f2826:localhost]

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

2020-10-02 23:05:18 | [Mutex] isItemNotified: received:node:acf8007d-6518-45e3-88fd-1dfa1f8f2826:localhost:node-4360ad94-9339-426d-8dc3-d0e0f2570fa0:Node 4360ad94-9339-426d-8dc3-d0e0f2570fa0 :: false

publishItemsToNodes 0.038s
2020-10-02 23:05:15 |

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

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

2020-10-02 23:05:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "entry": "<test>item-18191ccb-c49f-4359-82a1-dda9b834c760</test>",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760"
}

2020-10-02 23:05:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760"
}

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

2020-10-02 23:05:15 | [Mutex] isItemNotified: published:item:notifieditem-18191ccb-c49f-4359-82a1-dda9b834c760:admin@test-domain.com :: true

retractItemsFromNodes 0.099s
2020-10-02 23:05:15 |

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

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

2020-10-02 23:05:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760"
}

2020-10-02 23:05:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760"
}

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

2020-10-02 23:05:15 | [Mutex] isItemNotified: retracted:item:notifieditem-18191ccb-c49f-4359-82a1-dda9b834c760:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2020-10-02 23:05:15 |

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

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

2020-10-02 23:05:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760"
}

2020-10-02 23:05:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "item-id": "item-18191ccb-c49f-4359-82a1-dda9b834c760",
    "item": [
        "<item id=\"item-18191ccb-c49f-4359-82a1-dda9b834c760\"><test>item-18191ccb-c49f-4359-82a1-dda9b834c760</test></item>"
    ]
}

2020-10-02 23:05:15 | [Mutex] notify: [retrieved:item:item-18191ccb-c49f-4359-82a1-dda9b834c760:payload-matches:true:localhost]

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

2020-10-02 23:05:15 | [Mutex] isItemNotified: retrieved:item:item-18191ccb-c49f-4359-82a1-dda9b834c760:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-10-02 23:05:15 |

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

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

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

2020-10-02 23:05:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
        "node-69ad4458-021f-48a5-abfb-7758e6296232"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-02 23:05:15 |

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

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

2020-10-02 23:05:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4360ad94-9339-426d-8dc3-d0e0f2570fa0)"
}

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

subscribeNodes 1.015s
2020-10-02 23:05:14 |

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

2020-10-02 23:05:14 | ------------------------------------

2020-10-02 23:05:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-10-02 23:05:15 |

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

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

2020-10-02 23:05:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4360ad94-9339-426d-8dc3-d0e0f2570fa0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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