Generated by TestNG with ReportNG at 21:17 PST on Sunday 17 January 2021
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.920s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.033s
2021-01-17 21:32:18 |

2021-01-17 21:32:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:18 | ------------------------------------

2021-01-17 21:32:18 | [Mutex] waiting for: [configured:node:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:node-5b52cca7-5000-4f3a-be66-d91292cc2b13]

2021-01-17 21:32:18 | [Mutex] received everything.

2021-01-17 21:32:18 | [Mutex] isItemNotified: configured:node:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:node-5b52cca7-5000-4f3a-be66-d91292cc2b13 :: true

2021-01-17 21:32:19 | [Mutex] waiting for: [received:nodes:f062b917-5526-4e90-a895-3bab1fb87db2:localhost]

2021-01-17 21:32:19 | [Mutex] received everything.

2021-01-17 21:32:19 | [Mutex] isItemNotified: received:node:f062b917-5526-4e90-a895-3bab1fb87db2:localhost:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4 :: true

2021-01-17 21:32:19 | [Mutex] waiting for: [received:nodes:d0e07d9e-9377-4cbd-a29f-14d3d6d7d6d9:localhost]

2021-01-17 21:32:19 | [Mutex] received everything.

2021-01-17 21:32:19 | [Mutex] isItemNotified: received:node:d0e07d9e-9377-4cbd-a29f-14d3d6d7d6d9:localhost:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4 :: false

createNodes 1.614s
2021-01-17 21:32:15 |

2021-01-17 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:15 | ------------------------------------

2021-01-17 21:32:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "pubsub#title": "Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4"
}

2021-01-17 21:32:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:32:17 | [Mutex] waiting for: [received:nodes:9d5679f5-c47c-44f0-bb35-0ba74ba87437:localhost]

2021-01-17 21:32:17 | [Mutex] waiting for: [received:nodes:9d5679f5-c47c-44f0-bb35-0ba74ba87437:localhost]

2021-01-17 21:32:17 | [Mutex] received everything.

2021-01-17 21:32:17 | [Mutex] isItemNotified: received:node:9d5679f5-c47c-44f0-bb35-0ba74ba87437:localhost:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4 :: true

createSubnodes 1.024s
2021-01-17 21:32:17 |

2021-01-17 21:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:17 | ------------------------------------

2021-01-17 21:32:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5b52cca7-5000-4f3a-be66-d91292cc2b13",
    "pubsub#title": "Node 5b52cca7-5000-4f3a-be66-d91292cc2b13"
}

2021-01-17 21:32:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:32:18 | [Mutex] waiting for: [received:nodes:df7822c6-98ee-496a-84eb-bea296bc2a0a:localhost]

2021-01-17 21:32:18 | [Mutex] received everything.

2021-01-17 21:32:18 | [Mutex] isItemNotified: received:node:df7822c6-98ee-496a-84eb-bea296bc2a0a:localhost:node-5b52cca7-5000-4f3a-be66-d91292cc2b13:Node 5b52cca7-5000-4f3a-be66-d91292cc2b13 :: true

deleteNodes 1.026s
2021-01-17 21:32:22 |

2021-01-17 21:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:22 | ------------------------------------

2021-01-17 21:32:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5b52cca7-5000-4f3a-be66-d91292cc2b13"
}

2021-01-17 21:32:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:32:23 | [Mutex] waiting for: [received:nodes:fc9e245a-c13b-4fef-acc2-0b840cc9f0e2:localhost]

2021-01-17 21:32:23 | [Mutex] received everything.

2021-01-17 21:32:23 | [Mutex] isItemNotified: received:node:fc9e245a-c13b-4fef-acc2-0b840cc9f0e2:localhost:node-5b52cca7-5000-4f3a-be66-d91292cc2b13:Node 5b52cca7-5000-4f3a-be66-d91292cc2b13 :: false

deleteSubnodes 1.026s
2021-01-17 21:32:21 |

2021-01-17 21:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:21 | ------------------------------------

2021-01-17 21:32:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4"
}

2021-01-17 21:32:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:32:22 | [Mutex] waiting for: [received:nodes:000ee53d-149a-4765-8b52-bdbf127811e0:localhost]

2021-01-17 21:32:22 | [Mutex] received everything.

2021-01-17 21:32:22 | [Mutex] isItemNotified: received:node:000ee53d-149a-4765-8b52-bdbf127811e0:localhost:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4 :: false

2021-01-17 21:32:22 | [Mutex] waiting for: [received:nodes:752143c3-fa3a-427a-8887-02b8783f85bd:localhost]

2021-01-17 21:32:22 | [Mutex] received everything.

2021-01-17 21:32:22 | [Mutex] isItemNotified: received:node:752143c3-fa3a-427a-8887-02b8783f85bd:localhost:node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4:Node 2b2cd5a5-9520-4045-af9a-1cf2f62a29a4 :: false

publishItemsToNodes 0.032s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "entry": "<test>item-67c7a845-52d2-443b-98b5-763317839999</test>",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999"
}

2021-01-17 21:32:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999"
}

2021-01-17 21:32:20 | [Mutex] waiting for: [published:item:notifieditem-67c7a845-52d2-443b-98b5-763317839999:admin@test-domain.com]

2021-01-17 21:32:20 | [Mutex] received everything.

2021-01-17 21:32:20 | [Mutex] isItemNotified: published:item:notifieditem-67c7a845-52d2-443b-98b5-763317839999:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999"
}

2021-01-17 21:32:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999"
}

2021-01-17 21:32:20 | [Mutex] waiting for: [retracted:item:notifieditem-67c7a845-52d2-443b-98b5-763317839999:admin@test-domain.com]

2021-01-17 21:32:20 | [Mutex] received everything.

2021-01-17 21:32:20 | [Mutex] isItemNotified: retracted:item:notifieditem-67c7a845-52d2-443b-98b5-763317839999:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999"
}

2021-01-17 21:32:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "item-id": "item-67c7a845-52d2-443b-98b5-763317839999",
    "item": [
        "<item id=\"item-67c7a845-52d2-443b-98b5-763317839999\"><test>item-67c7a845-52d2-443b-98b5-763317839999</test></item>"
    ]
}

2021-01-17 21:32:20 | [Mutex] notify: [retrieved:item:item-67c7a845-52d2-443b-98b5-763317839999:payload-matches:true:localhost]

2021-01-17 21:32:20 | [Mutex] received everything.

2021-01-17 21:32:20 | [Mutex] isItemNotified: retrieved:item:item-67c7a845-52d2-443b-98b5-763317839999:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.078s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-17 21:32:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
        "test",
        "node-5b52cca7-5000-4f3a-be66-d91292cc2b13"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4)"
}

2021-01-17 21:32:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2021-01-17 21:32:19 |

2021-01-17 21:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:19 | ------------------------------------

2021-01-17 21:32:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-17 21:32:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2021-01-17 21:32:20 |

2021-01-17 21:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:32:20 | ------------------------------------

2021-01-17 21:32:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2b2cd5a5-9520-4045-af9a-1cf2f62a29a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-17 21:32:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}