Generated by TestNG with ReportNG at 22:26 PDT on Sunday 21 March 2021
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.350s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-03-21 22:44:15 |

2021-03-21 22:44:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:15 | ------------------------------------

2021-03-21 22:44:15 | [Mutex] waiting for: [configured:node:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:node-92187382-d324-4248-9556-c3941ec08d00]

2021-03-21 22:44:16 | [Mutex] received everything.

2021-03-21 22:44:16 | [Mutex] isItemNotified: configured:node:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:node-92187382-d324-4248-9556-c3941ec08d00 :: true

2021-03-21 22:44:17 | [Mutex] waiting for: [received:nodes:7e84c679-d4a0-4ab6-a132-dcf17a8a26d2:localhost]

2021-03-21 22:44:17 | [Mutex] received everything.

2021-03-21 22:44:17 | [Mutex] isItemNotified: received:node:7e84c679-d4a0-4ab6-a132-dcf17a8a26d2:localhost:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69 :: true

2021-03-21 22:44:17 | [Mutex] waiting for: [received:nodes:a9f6c1ac-3b9d-42a0-afe7-c805c9119479:localhost]

2021-03-21 22:44:17 | [Mutex] waiting for: [received:nodes:a9f6c1ac-3b9d-42a0-afe7-c805c9119479:localhost]

2021-03-21 22:44:17 | [Mutex] waiting for: [received:nodes:a9f6c1ac-3b9d-42a0-afe7-c805c9119479:localhost]

2021-03-21 22:44:17 | [Mutex] received everything.

2021-03-21 22:44:17 | [Mutex] isItemNotified: received:node:a9f6c1ac-3b9d-42a0-afe7-c805c9119479:localhost:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69 :: false

createNodes 1.933s
2021-03-21 22:44:13 |

2021-03-21 22:44:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:13 | ------------------------------------

2021-03-21 22:44:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "pubsub#title": "Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69"
}

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

2021-03-21 22:44:14 | [Mutex] waiting for: [received:nodes:b2b80ee8-dd09-4fdb-9619-e5955f29b331:localhost]

2021-03-21 22:44:14 | [Mutex] received everything.

2021-03-21 22:44:14 | [Mutex] isItemNotified: received:node:b2b80ee8-dd09-4fdb-9619-e5955f29b331:localhost:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69 :: true

createSubnodes 1.029s
2021-03-21 22:44:14 |

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

2021-03-21 22:44:14 | ------------------------------------

2021-03-21 22:44:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-92187382-d324-4248-9556-c3941ec08d00",
    "pubsub#title": "Node 92187382-d324-4248-9556-c3941ec08d00"
}

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

2021-03-21 22:44:15 | [Mutex] waiting for: [received:nodes:b39bed23-9f1f-4b23-bdce-e89e31f9aa46:localhost]

2021-03-21 22:44:15 | [Mutex] received everything.

2021-03-21 22:44:15 | [Mutex] isItemNotified: received:node:b39bed23-9f1f-4b23-bdce-e89e31f9aa46:localhost:node-92187382-d324-4248-9556-c3941ec08d00:Node 92187382-d324-4248-9556-c3941ec08d00 :: true

deleteNodes 1.021s
2021-03-21 22:44:20 |

2021-03-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:20 | ------------------------------------

2021-03-21 22:44:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-92187382-d324-4248-9556-c3941ec08d00"
}

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

2021-03-21 22:44:21 | [Mutex] waiting for: [received:nodes:f0d78eb0-14b6-4a1b-812c-8d6c26ae8a91:localhost]

2021-03-21 22:44:21 | [Mutex] received everything.

2021-03-21 22:44:21 | [Mutex] isItemNotified: received:node:f0d78eb0-14b6-4a1b-812c-8d6c26ae8a91:localhost:node-92187382-d324-4248-9556-c3941ec08d00:Node 92187382-d324-4248-9556-c3941ec08d00 :: false

deleteSubnodes 1.038s
2021-03-21 22:44:19 |

2021-03-21 22:44:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:19 | ------------------------------------

2021-03-21 22:44:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69"
}

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

2021-03-21 22:44:20 | [Mutex] waiting for: [received:nodes:9066defd-6912-47db-89c1-12852f3ca956:localhost]

2021-03-21 22:44:20 | [Mutex] waiting for: [received:nodes:9066defd-6912-47db-89c1-12852f3ca956:localhost]

2021-03-21 22:44:20 | [Mutex] received everything.

2021-03-21 22:44:20 | [Mutex] isItemNotified: received:node:9066defd-6912-47db-89c1-12852f3ca956:localhost:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69 :: false

2021-03-21 22:44:20 | [Mutex] waiting for: [received:nodes:653cb4db-b7c5-4e8e-9e67-7fcd12b4477d:localhost]

2021-03-21 22:44:20 | [Mutex] received everything.

2021-03-21 22:44:20 | [Mutex] isItemNotified: received:node:653cb4db-b7c5-4e8e-9e67-7fcd12b4477d:localhost:node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69:Node 49ebafb5-bf1e-4e8c-aec6-886d034b3b69 :: false

publishItemsToNodes 0.056s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

2021-03-21 22:44:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "entry": "<test>item-010a5469-e3df-4801-a4b9-7dac696ef8f8</test>",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8"
}

2021-03-21 22:44:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8"
}

2021-03-21 22:44:18 | [Mutex] received everything.

2021-03-21 22:44:18 | [Mutex] isItemNotified: published:item:notifieditem-010a5469-e3df-4801-a4b9-7dac696ef8f8:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

2021-03-21 22:44:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8"
}

2021-03-21 22:44:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8"
}

2021-03-21 22:44:18 | [Mutex] received everything.

2021-03-21 22:44:18 | [Mutex] isItemNotified: retracted:item:notifieditem-010a5469-e3df-4801-a4b9-7dac696ef8f8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

2021-03-21 22:44:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8"
}

2021-03-21 22:44:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "item-id": "item-010a5469-e3df-4801-a4b9-7dac696ef8f8",
    "item": [
        "<item id=\"item-010a5469-e3df-4801-a4b9-7dac696ef8f8\"><test>item-010a5469-e3df-4801-a4b9-7dac696ef8f8</test></item>"
    ]
}

2021-03-21 22:44:18 | [Mutex] notify: [retrieved:item:item-010a5469-e3df-4801-a4b9-7dac696ef8f8:payload-matches:true:localhost]

2021-03-21 22:44:18 | [Mutex] received everything.

2021-03-21 22:44:18 | [Mutex] isItemNotified: retrieved:item:item-010a5469-e3df-4801-a4b9-7dac696ef8f8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

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

2021-03-21 22:44:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-92187382-d324-4248-9556-c3941ec08d00",
        "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

2021-03-21 22:44:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69)"
}

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

subscribeNodes 1.012s
2021-03-21 22:44:17 |

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

2021-03-21 22:44:17 | ------------------------------------

2021-03-21 22:44:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.080s
2021-03-21 22:44:18 |

2021-03-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:44:18 | ------------------------------------

2021-03-21 22:44:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-49ebafb5-bf1e-4e8c-aec6-886d034b3b69",
    "jids": [
        "admin@test-domain.com"
    ]
}

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