Generated by TestNG with ReportNG at 22:23 PDT on Thursday 29 April 2021
root@f29ef40080b5 / 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.864s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2021-04-29 22:37:53 |

2021-04-29 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:53 | ------------------------------------

2021-04-29 22:37:53 | [Mutex] waiting for: [configured:node:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:node-f7dd6d1c-abde-4bd3-b648-9f37a1922008]

2021-04-29 22:37:53 | [Mutex] received everything.

2021-04-29 22:37:53 | [Mutex] isItemNotified: configured:node:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:node-f7dd6d1c-abde-4bd3-b648-9f37a1922008 :: true

2021-04-29 22:37:54 | [Mutex] waiting for: [received:nodes:e6139927-443e-454b-9854-534f4f20aff3:localhost]

2021-04-29 22:37:54 | [Mutex] waiting for: [received:nodes:e6139927-443e-454b-9854-534f4f20aff3:localhost]

2021-04-29 22:37:54 | [Mutex] received everything.

2021-04-29 22:37:54 | [Mutex] isItemNotified: received:node:e6139927-443e-454b-9854-534f4f20aff3:localhost:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c :: true

2021-04-29 22:37:54 | [Mutex] waiting for: [received:nodes:592bdc48-73d6-4b2c-801b-5b991bb6e506:localhost]

2021-04-29 22:37:54 | [Mutex] waiting for: [received:nodes:592bdc48-73d6-4b2c-801b-5b991bb6e506:localhost]

2021-04-29 22:37:54 | [Mutex] received everything.

2021-04-29 22:37:54 | [Mutex] isItemNotified: received:node:592bdc48-73d6-4b2c-801b-5b991bb6e506:localhost:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c :: false

createNodes 1.519s
2021-04-29 22:37:51 |

2021-04-29 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:51 | ------------------------------------

2021-04-29 22:37:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "pubsub#title": "Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c"
}

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

2021-04-29 22:37:52 | [Mutex] waiting for: [received:nodes:1d5ff3fd-b45d-496a-9235-8f22e541b22c:localhost]

2021-04-29 22:37:52 | [Mutex] received everything.

2021-04-29 22:37:52 | [Mutex] isItemNotified: received:node:1d5ff3fd-b45d-496a-9235-8f22e541b22c:localhost:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c :: true

createSubnodes 1.020s
2021-04-29 22:37:52 |

2021-04-29 22:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:52 | ------------------------------------

2021-04-29 22:37:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f7dd6d1c-abde-4bd3-b648-9f37a1922008",
    "pubsub#title": "Node f7dd6d1c-abde-4bd3-b648-9f37a1922008"
}

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

2021-04-29 22:37:53 | [Mutex] waiting for: [received:nodes:a86b7cb4-f69f-4300-950d-af5b8d4c2698:localhost]

2021-04-29 22:37:53 | [Mutex] received everything.

2021-04-29 22:37:53 | [Mutex] isItemNotified: received:node:a86b7cb4-f69f-4300-950d-af5b8d4c2698:localhost:node-f7dd6d1c-abde-4bd3-b648-9f37a1922008:Node f7dd6d1c-abde-4bd3-b648-9f37a1922008 :: true

deleteNodes 1.024s
2021-04-29 22:37:58 |

2021-04-29 22:37:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:58 | ------------------------------------

2021-04-29 22:37:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f7dd6d1c-abde-4bd3-b648-9f37a1922008"
}

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

2021-04-29 22:37:59 | [Mutex] waiting for: [received:nodes:48fc7733-6391-4e0c-8453-5291ab2f2193:localhost]

2021-04-29 22:37:59 | [Mutex] received everything.

2021-04-29 22:37:59 | [Mutex] isItemNotified: received:node:48fc7733-6391-4e0c-8453-5291ab2f2193:localhost:node-f7dd6d1c-abde-4bd3-b648-9f37a1922008:Node f7dd6d1c-abde-4bd3-b648-9f37a1922008 :: false

deleteSubnodes 1.029s
2021-04-29 22:37:57 |

2021-04-29 22:37:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:57 | ------------------------------------

2021-04-29 22:37:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c"
}

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

2021-04-29 22:37:58 | [Mutex] waiting for: [received:nodes:2d177671-0da6-4356-8fad-a92d67df80d6:localhost]

2021-04-29 22:37:58 | [Mutex] received everything.

2021-04-29 22:37:58 | [Mutex] isItemNotified: received:node:2d177671-0da6-4356-8fad-a92d67df80d6:localhost:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c :: false

2021-04-29 22:37:58 | [Mutex] waiting for: [received:nodes:ecff4467-59eb-4c02-a8a8-d02d35c8ae3b:localhost]

2021-04-29 22:37:58 | [Mutex] received everything.

2021-04-29 22:37:58 | [Mutex] isItemNotified: received:node:ecff4467-59eb-4c02-a8a8-d02d35c8ae3b:localhost:node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c:Node cc171c5d-8bd3-40d3-8cd0-65e0680d580c :: false

publishItemsToNodes 0.052s
2021-04-29 22:37:55 |

2021-04-29 22:37:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:55 | ------------------------------------

2021-04-29 22:37:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "entry": "<test>item-9a24afee-39fa-455a-b767-968f5a348e8c</test>",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c"
}

2021-04-29 22:37:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c"
}

2021-04-29 22:37:56 | [Mutex] received everything.

2021-04-29 22:37:56 | [Mutex] isItemNotified: published:item:notifieditem-9a24afee-39fa-455a-b767-968f5a348e8c:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-04-29 22:37:56 |

2021-04-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:56 | ------------------------------------

2021-04-29 22:37:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c"
}

2021-04-29 22:37:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c"
}

2021-04-29 22:37:56 | [Mutex] received everything.

2021-04-29 22:37:56 | [Mutex] isItemNotified: retracted:item:notifieditem-9a24afee-39fa-455a-b767-968f5a348e8c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2021-04-29 22:37:56 |

2021-04-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:56 | ------------------------------------

2021-04-29 22:37:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c"
}

2021-04-29 22:37:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "item-id": "item-9a24afee-39fa-455a-b767-968f5a348e8c",
    "item": [
        "<item id=\"item-9a24afee-39fa-455a-b767-968f5a348e8c\"><test>item-9a24afee-39fa-455a-b767-968f5a348e8c</test></item>"
    ]
}

2021-04-29 22:37:56 | [Mutex] notify: [retrieved:item:item-9a24afee-39fa-455a-b767-968f5a348e8c:payload-matches:true:localhost]

2021-04-29 22:37:56 | [Mutex] received everything.

2021-04-29 22:37:56 | [Mutex] isItemNotified: retrieved:item:item-9a24afee-39fa-455a-b767-968f5a348e8c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-04-29 22:37:56 |

2021-04-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:56 | ------------------------------------

2021-04-29 22:37:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-29 22:37:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
        "node-f7dd6d1c-abde-4bd3-b648-9f37a1922008"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-04-29 22:37:56 |

2021-04-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:56 | ------------------------------------

2021-04-29 22:37:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c)"
}

2021-04-29 22:37:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-04-29 22:37:54 |

2021-04-29 22:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:54 | ------------------------------------

2021-04-29 22:37:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 22:37:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-04-29 22:37:56 |

2021-04-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 22:37:56 | ------------------------------------

2021-04-29 22:37:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cc171c5d-8bd3-40d3-8cd0-65e0680d580c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 22:37:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}