Generated by TestNG with ReportNG at 22:18 PDT on Wednesday 26 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.867s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2021-05-26 22:33:39 |

2021-05-26 22:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:39 | ------------------------------------

2021-05-26 22:33:39 | [Mutex] waiting for: [configured:node:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:node-7659694a-35f2-40db-9987-cd0f71721522]

2021-05-26 22:33:39 | [Mutex] received everything.

2021-05-26 22:33:39 | [Mutex] isItemNotified: configured:node:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:node-7659694a-35f2-40db-9987-cd0f71721522 :: true

2021-05-26 22:33:40 | [Mutex] waiting for: [received:nodes:ecefbdc0-ef2a-4832-a270-50b7b71ee77f:localhost]

2021-05-26 22:33:40 | [Mutex] received everything.

2021-05-26 22:33:40 | [Mutex] isItemNotified: received:node:ecefbdc0-ef2a-4832-a270-50b7b71ee77f:localhost:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb :: true

2021-05-26 22:33:40 | [Mutex] waiting for: [received:nodes:4436dbdd-76c9-40bc-abd1-4ee62b8ef4f3:localhost]

2021-05-26 22:33:40 | [Mutex] received everything.

2021-05-26 22:33:40 | [Mutex] isItemNotified: received:node:4436dbdd-76c9-40bc-abd1-4ee62b8ef4f3:localhost:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb :: false

createNodes 1.650s
2021-05-26 22:33:36 |

2021-05-26 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:36 | ------------------------------------

2021-05-26 22:33:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "pubsub#title": "Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb"
}

2021-05-26 22:33:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:33:38 | [Mutex] waiting for: [received:nodes:9956e7f2-7102-442c-85ef-b19eea56b95e:localhost]

2021-05-26 22:33:38 | [Mutex] received everything.

2021-05-26 22:33:38 | [Mutex] isItemNotified: received:node:9956e7f2-7102-442c-85ef-b19eea56b95e:localhost:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb :: true

createSubnodes 1.027s
2021-05-26 22:33:38 |

2021-05-26 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:38 | ------------------------------------

2021-05-26 22:33:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7659694a-35f2-40db-9987-cd0f71721522",
    "pubsub#title": "Node 7659694a-35f2-40db-9987-cd0f71721522"
}

2021-05-26 22:33:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:33:39 | [Mutex] waiting for: [received:nodes:723e80bc-47e3-4aea-acbd-86660ea119dc:localhost]

2021-05-26 22:33:39 | [Mutex] received everything.

2021-05-26 22:33:39 | [Mutex] isItemNotified: received:node:723e80bc-47e3-4aea-acbd-86660ea119dc:localhost:node-7659694a-35f2-40db-9987-cd0f71721522:Node 7659694a-35f2-40db-9987-cd0f71721522 :: true

deleteNodes 1.026s
2021-05-26 22:33:43 |

2021-05-26 22:33:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:43 | ------------------------------------

2021-05-26 22:33:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7659694a-35f2-40db-9987-cd0f71721522"
}

2021-05-26 22:33:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:33:44 | [Mutex] waiting for: [received:nodes:5bb2d19c-9baf-4517-9af0-cb685e38b3c5:localhost]

2021-05-26 22:33:44 | [Mutex] received everything.

2021-05-26 22:33:44 | [Mutex] isItemNotified: received:node:5bb2d19c-9baf-4517-9af0-cb685e38b3c5:localhost:node-7659694a-35f2-40db-9987-cd0f71721522:Node 7659694a-35f2-40db-9987-cd0f71721522 :: false

deleteSubnodes 1.025s
2021-05-26 22:33:42 |

2021-05-26 22:33:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:42 | ------------------------------------

2021-05-26 22:33:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb"
}

2021-05-26 22:33:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:33:43 | [Mutex] waiting for: [received:nodes:02acd05b-6e6c-4c48-aca7-e97e2f5ed174:localhost]

2021-05-26 22:33:43 | [Mutex] waiting for: [received:nodes:02acd05b-6e6c-4c48-aca7-e97e2f5ed174:localhost]

2021-05-26 22:33:43 | [Mutex] received everything.

2021-05-26 22:33:43 | [Mutex] isItemNotified: received:node:02acd05b-6e6c-4c48-aca7-e97e2f5ed174:localhost:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb :: false

2021-05-26 22:33:43 | [Mutex] waiting for: [received:nodes:af6b9fcc-0f07-4fc0-98e7-45b3c0b171c0:localhost]

2021-05-26 22:33:43 | [Mutex] received everything.

2021-05-26 22:33:43 | [Mutex] isItemNotified: received:node:af6b9fcc-0f07-4fc0-98e7-45b3c0b171c0:localhost:node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb:Node 18415af3-f5ba-4ea7-bde6-ee2b39793ffb :: false

publishItemsToNodes 0.111s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "entry": "<test>item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0</test>",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0"
}

2021-05-26 22:33:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0"
}

2021-05-26 22:33:41 | [Mutex] waiting for: [published:item:notifieditem-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:admin@test-domain.com]

2021-05-26 22:33:41 | [Mutex] received everything.

2021-05-26 22:33:41 | [Mutex] isItemNotified: published:item:notifieditem-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0"
}

2021-05-26 22:33:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0"
}

2021-05-26 22:33:41 | [Mutex] waiting for: [retracted:item:notifieditem-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:admin@test-domain.com]

2021-05-26 22:33:41 | [Mutex] received everything.

2021-05-26 22:33:41 | [Mutex] isItemNotified: retracted:item:notifieditem-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.030s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0"
}

2021-05-26 22:33:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "item-id": "item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0",
    "item": [
        "<item id=\"item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0\"><test>item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0</test></item>"
    ]
}

2021-05-26 22:33:41 | [Mutex] notify: [retrieved:item:item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:payload-matches:true:localhost]

2021-05-26 22:33:41 | [Mutex] received everything.

2021-05-26 22:33:41 | [Mutex] isItemNotified: retrieved:item:item-f50d1776-7f1a-4acd-9a65-0a26dcc455f0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-26 22:33:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
        "node-7659694a-35f2-40db-9987-cd0f71721522"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb)"
}

2021-05-26 22:33:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-05-26 22:33:40 |

2021-05-26 22:33:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:40 | ------------------------------------

2021-05-26 22:33:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.060s
2021-05-26 22:33:41 |

2021-05-26 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:33:41 | ------------------------------------

2021-05-26 22:33:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-18415af3-f5ba-4ea7-bde6-ee2b39793ffb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-26 22:33:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}