Generated by TestNG with ReportNG at 22:17 PDT on Sunday 14 March 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 : 9.212s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-03-14 22:34:25 |

2021-03-14 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:25 | ------------------------------------

2021-03-14 22:34:25 | [Mutex] waiting for: [configured:node:node-4dedba25-a298-44c9-8821-b33115ccd4c3:node-14590072-f1bd-4601-9d5f-6feec91ecb66]

2021-03-14 22:34:25 | [Mutex] received everything.

2021-03-14 22:34:25 | [Mutex] isItemNotified: configured:node:node-4dedba25-a298-44c9-8821-b33115ccd4c3:node-14590072-f1bd-4601-9d5f-6feec91ecb66 :: true

2021-03-14 22:34:26 | [Mutex] waiting for: [received:nodes:89721b74-0a43-4edd-94dc-4ca4bee03f1e:localhost]

2021-03-14 22:34:26 | [Mutex] received everything.

2021-03-14 22:34:26 | [Mutex] isItemNotified: received:node:89721b74-0a43-4edd-94dc-4ca4bee03f1e:localhost:node-4dedba25-a298-44c9-8821-b33115ccd4c3:Node 4dedba25-a298-44c9-8821-b33115ccd4c3 :: true

2021-03-14 22:34:26 | [Mutex] waiting for: [received:nodes:f8b1e8ab-e743-4505-bfec-61ed1d3a0028:localhost]

2021-03-14 22:34:26 | [Mutex] received everything.

2021-03-14 22:34:26 | [Mutex] isItemNotified: received:node:f8b1e8ab-e743-4505-bfec-61ed1d3a0028:localhost:node-4dedba25-a298-44c9-8821-b33115ccd4c3:Node 4dedba25-a298-44c9-8821-b33115ccd4c3 :: false

createNodes 1.826s
2021-03-14 22:34:22 |

2021-03-14 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:22 | ------------------------------------

2021-03-14 22:34:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "pubsub#title": "Node 4dedba25-a298-44c9-8821-b33115ccd4c3"
}

2021-03-14 22:34:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-14 22:34:24 | [Mutex] waiting for: [received:nodes:01a7c55c-9ed3-4a45-b1d4-d42e71f3cb51:localhost]

2021-03-14 22:34:24 | [Mutex] waiting for: [received:nodes:01a7c55c-9ed3-4a45-b1d4-d42e71f3cb51:localhost]

2021-03-14 22:34:24 | [Mutex] received everything.

2021-03-14 22:34:24 | [Mutex] isItemNotified: received:node:01a7c55c-9ed3-4a45-b1d4-d42e71f3cb51:localhost:node-4dedba25-a298-44c9-8821-b33115ccd4c3:Node 4dedba25-a298-44c9-8821-b33115ccd4c3 :: true

createSubnodes 1.030s
2021-03-14 22:34:24 |

2021-03-14 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:24 | ------------------------------------

2021-03-14 22:34:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-14590072-f1bd-4601-9d5f-6feec91ecb66",
    "pubsub#title": "Node 14590072-f1bd-4601-9d5f-6feec91ecb66"
}

2021-03-14 22:34:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-14 22:34:25 | [Mutex] waiting for: [received:nodes:4bfcfd3e-4530-4cdc-ba01-37e2e281bb07:localhost]

2021-03-14 22:34:25 | [Mutex] received everything.

2021-03-14 22:34:25 | [Mutex] isItemNotified: received:node:4bfcfd3e-4530-4cdc-ba01-37e2e281bb07:localhost:node-14590072-f1bd-4601-9d5f-6feec91ecb66:Node 14590072-f1bd-4601-9d5f-6feec91ecb66 :: true

deleteNodes 1.024s
2021-03-14 22:34:29 |

2021-03-14 22:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:29 | ------------------------------------

2021-03-14 22:34:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-14590072-f1bd-4601-9d5f-6feec91ecb66"
}

2021-03-14 22:34:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-14 22:34:30 | [Mutex] waiting for: [received:nodes:e169200f-f7d6-4ca6-8db6-e7c59046b73a:localhost]

2021-03-14 22:34:30 | [Mutex] received everything.

2021-03-14 22:34:30 | [Mutex] isItemNotified: received:node:e169200f-f7d6-4ca6-8db6-e7c59046b73a:localhost:node-14590072-f1bd-4601-9d5f-6feec91ecb66:Node 14590072-f1bd-4601-9d5f-6feec91ecb66 :: false

deleteSubnodes 1.031s
2021-03-14 22:34:28 |

2021-03-14 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:28 | ------------------------------------

2021-03-14 22:34:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3"
}

2021-03-14 22:34:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-14 22:34:29 | [Mutex] waiting for: [received:nodes:d1967c10-7873-401f-85c8-c05992ec0e8f:localhost]

2021-03-14 22:34:29 | [Mutex] received everything.

2021-03-14 22:34:29 | [Mutex] isItemNotified: received:node:d1967c10-7873-401f-85c8-c05992ec0e8f:localhost:node-4dedba25-a298-44c9-8821-b33115ccd4c3:Node 4dedba25-a298-44c9-8821-b33115ccd4c3 :: false

2021-03-14 22:34:29 | [Mutex] waiting for: [received:nodes:f5e4b748-8552-4164-9487-6eb8d058e5e5:localhost]

2021-03-14 22:34:29 | [Mutex] received everything.

2021-03-14 22:34:29 | [Mutex] isItemNotified: received:node:f5e4b748-8552-4164-9487-6eb8d058e5e5:localhost:node-4dedba25-a298-44c9-8821-b33115ccd4c3:Node 4dedba25-a298-44c9-8821-b33115ccd4c3 :: false

publishItemsToNodes 0.051s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "entry": "<test>item-f6e19611-5115-4543-a42d-2c2433355309</test>",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309"
}

2021-03-14 22:34:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309"
}

2021-03-14 22:34:27 | [Mutex] waiting for: [published:item:notifieditem-f6e19611-5115-4543-a42d-2c2433355309:admin@test-domain.com]

2021-03-14 22:34:27 | [Mutex] received everything.

2021-03-14 22:34:27 | [Mutex] isItemNotified: published:item:notifieditem-f6e19611-5115-4543-a42d-2c2433355309:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309"
}

2021-03-14 22:34:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309"
}

2021-03-14 22:34:27 | [Mutex] received everything.

2021-03-14 22:34:27 | [Mutex] isItemNotified: retracted:item:notifieditem-f6e19611-5115-4543-a42d-2c2433355309:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309"
}

2021-03-14 22:34:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "item-id": "item-f6e19611-5115-4543-a42d-2c2433355309",
    "item": [
        "<item id=\"item-f6e19611-5115-4543-a42d-2c2433355309\"><test>item-f6e19611-5115-4543-a42d-2c2433355309</test></item>"
    ]
}

2021-03-14 22:34:27 | [Mutex] notify: [retrieved:item:item-f6e19611-5115-4543-a42d-2c2433355309:payload-matches:true:localhost]

2021-03-14 22:34:27 | [Mutex] received everything.

2021-03-14 22:34:27 | [Mutex] isItemNotified: retrieved:item:item-f6e19611-5115-4543-a42d-2c2433355309:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-14 22:34:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-14590072-f1bd-4601-9d5f-6feec91ecb66",
        "node-4dedba25-a298-44c9-8821-b33115ccd4c3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4dedba25-a298-44c9-8821-b33115ccd4c3)"
}

2021-03-14 22:34:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-03-14 22:34:26 |

2021-03-14 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:26 | ------------------------------------

2021-03-14 22:34:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-14 22:34:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.092s
2021-03-14 22:34:27 |

2021-03-14 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 22:34:27 | ------------------------------------

2021-03-14 22:34:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4dedba25-a298-44c9-8821-b33115ccd4c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-14 22:34:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}