Generated by TestNG with ReportNG at 22:46 PDT on Thursday 13 May 2021
root@b2c2a8eba6e6 / 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.995s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2021-05-13 23:01:52 |

2021-05-13 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:52 | ------------------------------------

2021-05-13 23:01:52 | [Mutex] waiting for: [configured:node:node-60afb63d-dffc-4757-b762-b42dbcb204fa:node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f]

2021-05-13 23:01:52 | [Mutex] received everything.

2021-05-13 23:01:52 | [Mutex] isItemNotified: configured:node:node-60afb63d-dffc-4757-b762-b42dbcb204fa:node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f :: true

2021-05-13 23:01:53 | [Mutex] waiting for: [received:nodes:72ba4f5f-fc06-4eb9-87b6-8e0dfaf40365:localhost]

2021-05-13 23:01:53 | [Mutex] received everything.

2021-05-13 23:01:53 | [Mutex] isItemNotified: received:node:72ba4f5f-fc06-4eb9-87b6-8e0dfaf40365:localhost:node-60afb63d-dffc-4757-b762-b42dbcb204fa:Node 60afb63d-dffc-4757-b762-b42dbcb204fa :: true

2021-05-13 23:01:53 | [Mutex] waiting for: [received:nodes:b65a89d6-2f9a-435f-9ca7-078428815ae7:localhost]

2021-05-13 23:01:53 | [Mutex] received everything.

2021-05-13 23:01:53 | [Mutex] isItemNotified: received:node:b65a89d6-2f9a-435f-9ca7-078428815ae7:localhost:node-60afb63d-dffc-4757-b762-b42dbcb204fa:Node 60afb63d-dffc-4757-b762-b42dbcb204fa :: false

createNodes 1.614s
2021-05-13 23:01:49 |

2021-05-13 23:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:49 | ------------------------------------

2021-05-13 23:01:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "pubsub#title": "Node 60afb63d-dffc-4757-b762-b42dbcb204fa"
}

2021-05-13 23:01:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:01:51 | [Mutex] waiting for: [received:nodes:3f2ec040-02cd-40a0-850b-9362bee2a2f8:localhost]

2021-05-13 23:01:51 | [Mutex] received everything.

2021-05-13 23:01:51 | [Mutex] isItemNotified: received:node:3f2ec040-02cd-40a0-850b-9362bee2a2f8:localhost:node-60afb63d-dffc-4757-b762-b42dbcb204fa:Node 60afb63d-dffc-4757-b762-b42dbcb204fa :: true

createSubnodes 1.031s
2021-05-13 23:01:51 |

2021-05-13 23:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:51 | ------------------------------------

2021-05-13 23:01:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f",
    "pubsub#title": "Node cdcbb4ee-f9df-450f-9607-e25b4df0bc9f"
}

2021-05-13 23:01:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:01:52 | [Mutex] waiting for: [received:nodes:7f31a2d0-0d62-4fd0-ac0e-00dd2d8fdb7a:localhost]

2021-05-13 23:01:52 | [Mutex] received everything.

2021-05-13 23:01:52 | [Mutex] isItemNotified: received:node:7f31a2d0-0d62-4fd0-ac0e-00dd2d8fdb7a:localhost:node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f:Node cdcbb4ee-f9df-450f-9607-e25b4df0bc9f :: true

deleteNodes 1.023s
2021-05-13 23:01:56 |

2021-05-13 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:56 | ------------------------------------

2021-05-13 23:01:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f"
}

2021-05-13 23:01:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:01:57 | [Mutex] waiting for: [received:nodes:8e24ae2e-5b2d-4d82-97d6-e5e6fe13ffe9:localhost]

2021-05-13 23:01:57 | [Mutex] received everything.

2021-05-13 23:01:57 | [Mutex] isItemNotified: received:node:8e24ae2e-5b2d-4d82-97d6-e5e6fe13ffe9:localhost:node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f:Node cdcbb4ee-f9df-450f-9607-e25b4df0bc9f :: false

deleteSubnodes 1.030s
2021-05-13 23:01:55 |

2021-05-13 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:55 | ------------------------------------

2021-05-13 23:01:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa"
}

2021-05-13 23:01:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:01:56 | [Mutex] waiting for: [received:nodes:bf38fe03-25a8-48e6-8fd5-a86af3293470:localhost]

2021-05-13 23:01:56 | [Mutex] waiting for: [received:nodes:bf38fe03-25a8-48e6-8fd5-a86af3293470:localhost]

2021-05-13 23:01:56 | [Mutex] waiting for: [received:nodes:bf38fe03-25a8-48e6-8fd5-a86af3293470:localhost]

2021-05-13 23:01:56 | [Mutex] received everything.

2021-05-13 23:01:56 | [Mutex] isItemNotified: received:node:bf38fe03-25a8-48e6-8fd5-a86af3293470:localhost:node-60afb63d-dffc-4757-b762-b42dbcb204fa:Node 60afb63d-dffc-4757-b762-b42dbcb204fa :: false

2021-05-13 23:01:56 | [Mutex] waiting for: [received:nodes:93ec7b04-c5ea-43b2-92c0-476af5966466:localhost]

2021-05-13 23:01:56 | [Mutex] received everything.

2021-05-13 23:01:56 | [Mutex] isItemNotified: received:node:93ec7b04-c5ea-43b2-92c0-476af5966466:localhost:node-60afb63d-dffc-4757-b762-b42dbcb204fa:Node 60afb63d-dffc-4757-b762-b42dbcb204fa :: false

publishItemsToNodes 0.046s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "entry": "<test>item-2af09985-9d53-4588-9e6d-3737b2aaa480</test>",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480"
}

2021-05-13 23:01:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480"
}

2021-05-13 23:01:54 | [Mutex] waiting for: [published:item:notifieditem-2af09985-9d53-4588-9e6d-3737b2aaa480:admin@test-domain.com]

2021-05-13 23:01:54 | [Mutex] received everything.

2021-05-13 23:01:54 | [Mutex] isItemNotified: published:item:notifieditem-2af09985-9d53-4588-9e6d-3737b2aaa480:admin@test-domain.com :: true

retractItemsFromNodes 0.081s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480"
}

2021-05-13 23:01:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480"
}

2021-05-13 23:01:54 | [Mutex] received everything.

2021-05-13 23:01:54 | [Mutex] isItemNotified: retracted:item:notifieditem-2af09985-9d53-4588-9e6d-3737b2aaa480:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480"
}

2021-05-13 23:01:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "item-id": "item-2af09985-9d53-4588-9e6d-3737b2aaa480",
    "item": [
        "<item id=\"item-2af09985-9d53-4588-9e6d-3737b2aaa480\"><test>item-2af09985-9d53-4588-9e6d-3737b2aaa480</test></item>"
    ]
}

2021-05-13 23:01:54 | [Mutex] notify: [retrieved:item:item-2af09985-9d53-4588-9e6d-3737b2aaa480:payload-matches:true:localhost]

2021-05-13 23:01:54 | [Mutex] received everything.

2021-05-13 23:01:54 | [Mutex] isItemNotified: retrieved:item:item-2af09985-9d53-4588-9e6d-3737b2aaa480:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-13 23:01:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cdcbb4ee-f9df-450f-9607-e25b4df0bc9f",
        "test",
        "node-60afb63d-dffc-4757-b762-b42dbcb204fa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-60afb63d-dffc-4757-b762-b42dbcb204fa)"
}

2021-05-13 23:01:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-05-13 23:01:53 |

2021-05-13 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:53 | ------------------------------------

2021-05-13 23:01:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 23:01:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2021-05-13 23:01:54 |

2021-05-13 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:01:54 | ------------------------------------

2021-05-13 23:01:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-60afb63d-dffc-4757-b762-b42dbcb204fa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 23:01:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}