Generated by TestNG with ReportNG at 16:57 PDT on Wednesday 26 August 2020
root@18d694fe8e0a / 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.925s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2020-08-26 17:14:46 |

2020-08-26 17:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:46 | ------------------------------------

2020-08-26 17:14:46 | [Mutex] waiting for: [configured:node:node-30ce9797-38d7-49cb-970e-8033390e6576:node-ec408543-6409-4790-bfde-074573bad70c]

2020-08-26 17:14:46 | [Mutex] received everything.

2020-08-26 17:14:46 | [Mutex] isItemNotified: configured:node:node-30ce9797-38d7-49cb-970e-8033390e6576:node-ec408543-6409-4790-bfde-074573bad70c :: true

2020-08-26 17:14:47 | [Mutex] waiting for: [received:nodes:3bec6325-9d9a-439d-a814-3efc572761a6:localhost]

2020-08-26 17:14:47 | [Mutex] received everything.

2020-08-26 17:14:47 | [Mutex] isItemNotified: received:node:3bec6325-9d9a-439d-a814-3efc572761a6:localhost:node-30ce9797-38d7-49cb-970e-8033390e6576:Node 30ce9797-38d7-49cb-970e-8033390e6576 :: true

2020-08-26 17:14:47 | [Mutex] waiting for: [received:nodes:ccdf67fb-02ec-4d55-b0c0-6d37d5697dd4:localhost]

2020-08-26 17:14:47 | [Mutex] waiting for: [received:nodes:ccdf67fb-02ec-4d55-b0c0-6d37d5697dd4:localhost]

2020-08-26 17:14:47 | [Mutex] received everything.

2020-08-26 17:14:47 | [Mutex] isItemNotified: received:node:ccdf67fb-02ec-4d55-b0c0-6d37d5697dd4:localhost:node-30ce9797-38d7-49cb-970e-8033390e6576:Node 30ce9797-38d7-49cb-970e-8033390e6576 :: false

createNodes 1.508s
2020-08-26 17:14:43 |

2020-08-26 17:14:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:43 | ------------------------------------

2020-08-26 17:14:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "pubsub#title": "Node 30ce9797-38d7-49cb-970e-8033390e6576"
}

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

2020-08-26 17:14:45 | [Mutex] waiting for: [received:nodes:c3e7cd90-2118-4eba-9097-74fe334594e5:localhost]

2020-08-26 17:14:45 | [Mutex] waiting for: [received:nodes:c3e7cd90-2118-4eba-9097-74fe334594e5:localhost]

2020-08-26 17:14:45 | [Mutex] received everything.

2020-08-26 17:14:45 | [Mutex] isItemNotified: received:node:c3e7cd90-2118-4eba-9097-74fe334594e5:localhost:node-30ce9797-38d7-49cb-970e-8033390e6576:Node 30ce9797-38d7-49cb-970e-8033390e6576 :: true

createSubnodes 1.024s
2020-08-26 17:14:45 |

2020-08-26 17:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:45 | ------------------------------------

2020-08-26 17:14:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ec408543-6409-4790-bfde-074573bad70c",
    "pubsub#title": "Node ec408543-6409-4790-bfde-074573bad70c"
}

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

2020-08-26 17:14:46 | [Mutex] waiting for: [received:nodes:dae3cd32-6c03-4f84-b931-0171a6d57bfb:localhost]

2020-08-26 17:14:46 | [Mutex] waiting for: [received:nodes:dae3cd32-6c03-4f84-b931-0171a6d57bfb:localhost]

2020-08-26 17:14:46 | [Mutex] received everything.

2020-08-26 17:14:46 | [Mutex] isItemNotified: received:node:dae3cd32-6c03-4f84-b931-0171a6d57bfb:localhost:node-ec408543-6409-4790-bfde-074573bad70c:Node ec408543-6409-4790-bfde-074573bad70c :: true

deleteNodes 1.022s
2020-08-26 17:14:50 |

2020-08-26 17:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:50 | ------------------------------------

2020-08-26 17:14:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ec408543-6409-4790-bfde-074573bad70c"
}

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

2020-08-26 17:14:51 | [Mutex] waiting for: [received:nodes:3a81fa3f-535b-4c3b-91aa-e2fa4ea80a52:localhost]

2020-08-26 17:14:51 | [Mutex] received everything.

2020-08-26 17:14:51 | [Mutex] isItemNotified: received:node:3a81fa3f-535b-4c3b-91aa-e2fa4ea80a52:localhost:node-ec408543-6409-4790-bfde-074573bad70c:Node ec408543-6409-4790-bfde-074573bad70c :: false

deleteSubnodes 1.043s
2020-08-26 17:14:49 |

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

2020-08-26 17:14:49 | ------------------------------------

2020-08-26 17:14:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576"
}

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

2020-08-26 17:14:50 | [Mutex] waiting for: [received:nodes:34c3121c-6ce9-411f-8518-f4e86e0a0fe8:localhost]

2020-08-26 17:14:50 | [Mutex] waiting for: [received:nodes:34c3121c-6ce9-411f-8518-f4e86e0a0fe8:localhost]

2020-08-26 17:14:50 | [Mutex] received everything.

2020-08-26 17:14:50 | [Mutex] isItemNotified: received:node:34c3121c-6ce9-411f-8518-f4e86e0a0fe8:localhost:node-30ce9797-38d7-49cb-970e-8033390e6576:Node 30ce9797-38d7-49cb-970e-8033390e6576 :: false

2020-08-26 17:14:50 | [Mutex] waiting for: [received:nodes:a0e7558b-bb17-4c99-a164-7450977be088:localhost]

2020-08-26 17:14:50 | [Mutex] received everything.

2020-08-26 17:14:50 | [Mutex] isItemNotified: received:node:a0e7558b-bb17-4c99-a164-7450977be088:localhost:node-30ce9797-38d7-49cb-970e-8033390e6576:Node 30ce9797-38d7-49cb-970e-8033390e6576 :: false

publishItemsToNodes 0.057s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

2020-08-26 17:14:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "entry": "<test>item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a</test>",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a"
}

2020-08-26 17:14:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a"
}

2020-08-26 17:14:48 | [Mutex] received everything.

2020-08-26 17:14:48 | [Mutex] isItemNotified: published:item:notifieditem-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

2020-08-26 17:14:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a"
}

2020-08-26 17:14:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a"
}

2020-08-26 17:14:48 | [Mutex] waiting for: [retracted:item:notifieditem-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a:admin@test-domain.com]

2020-08-26 17:14:48 | [Mutex] received everything.

2020-08-26 17:14:48 | [Mutex] isItemNotified: retracted:item:notifieditem-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

2020-08-26 17:14:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a"
}

2020-08-26 17:14:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "item-id": "item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a",
    "item": [
        "<item id=\"item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a\"><test>item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a</test></item>"
    ]
}

2020-08-26 17:14:48 | [Mutex] notify: [retrieved:item:item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a:payload-matches:true:localhost]

2020-08-26 17:14:48 | [Mutex] received everything.

2020-08-26 17:14:48 | [Mutex] isItemNotified: retrieved:item:item-ec6c323a-1e0c-4efe-8cad-fabfc2fd415a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

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

2020-08-26 17:14:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ec408543-6409-4790-bfde-074573bad70c",
        "test",
        "node-30ce9797-38d7-49cb-970e-8033390e6576"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

2020-08-26 17:14:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-30ce9797-38d7-49cb-970e-8033390e6576)"
}

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

subscribeNodes 1.012s
2020-08-26 17:14:47 |

2020-08-26 17:14:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:47 | ------------------------------------

2020-08-26 17:14:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2020-08-26 17:14:48 |

2020-08-26 17:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 17:14:48 | ------------------------------------

2020-08-26 17:14:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-30ce9797-38d7-49cb-970e-8033390e6576",
    "jids": [
        "admin@test-domain.com"
    ]
}

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