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

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.128s
2021-03-14 23:02:16 |

2021-03-14 23:02:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:16 | ------------------------------------

2021-03-14 23:02:16 | [Mutex] waiting for: [configured:node:node-8001bb6a-88db-40a1-8f18-e59712fccc82:node-c7b839a9-8a8d-40eb-8639-953b5c6731a9]

2021-03-14 23:02:16 | [Mutex] received everything.

2021-03-14 23:02:16 | [Mutex] isItemNotified: configured:node:node-8001bb6a-88db-40a1-8f18-e59712fccc82:node-c7b839a9-8a8d-40eb-8639-953b5c6731a9 :: true

2021-03-14 23:02:17 | [Mutex] waiting for: [received:nodes:619195fb-cdff-4361-830b-46f439cdb715:localhost]

2021-03-14 23:02:17 | [Mutex] received everything.

2021-03-14 23:02:17 | [Mutex] isItemNotified: received:node:619195fb-cdff-4361-830b-46f439cdb715:localhost:node-8001bb6a-88db-40a1-8f18-e59712fccc82:Node 8001bb6a-88db-40a1-8f18-e59712fccc82 :: true

2021-03-14 23:02:17 | [Mutex] waiting for: [received:nodes:ecf05b27-2d84-4baf-85ed-195e0f128f12:localhost]

2021-03-14 23:02:17 | [Mutex] waiting for: [received:nodes:ecf05b27-2d84-4baf-85ed-195e0f128f12:localhost]

2021-03-14 23:02:17 | [Mutex] received everything.

2021-03-14 23:02:17 | [Mutex] isItemNotified: received:node:ecf05b27-2d84-4baf-85ed-195e0f128f12:localhost:node-8001bb6a-88db-40a1-8f18-e59712fccc82:Node 8001bb6a-88db-40a1-8f18-e59712fccc82 :: false

createNodes 1.638s
2021-03-14 23:02:13 |

2021-03-14 23:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:13 | ------------------------------------

2021-03-14 23:02:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "pubsub#title": "Node 8001bb6a-88db-40a1-8f18-e59712fccc82"
}

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

2021-03-14 23:02:15 | [Mutex] waiting for: [received:nodes:d98dfd47-b7f3-400f-9df0-86275f813493:localhost]

2021-03-14 23:02:15 | [Mutex] received everything.

2021-03-14 23:02:15 | [Mutex] isItemNotified: received:node:d98dfd47-b7f3-400f-9df0-86275f813493:localhost:node-8001bb6a-88db-40a1-8f18-e59712fccc82:Node 8001bb6a-88db-40a1-8f18-e59712fccc82 :: true

createSubnodes 1.028s
2021-03-14 23:02:15 |

2021-03-14 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:15 | ------------------------------------

2021-03-14 23:02:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c7b839a9-8a8d-40eb-8639-953b5c6731a9",
    "pubsub#title": "Node c7b839a9-8a8d-40eb-8639-953b5c6731a9"
}

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

2021-03-14 23:02:16 | [Mutex] waiting for: [received:nodes:d3e38fc0-db7f-4536-a49d-8a41005b6ca4:localhost]

2021-03-14 23:02:16 | [Mutex] received everything.

2021-03-14 23:02:16 | [Mutex] isItemNotified: received:node:d3e38fc0-db7f-4536-a49d-8a41005b6ca4:localhost:node-c7b839a9-8a8d-40eb-8639-953b5c6731a9:Node c7b839a9-8a8d-40eb-8639-953b5c6731a9 :: true

deleteNodes 1.020s
2021-03-14 23:02:20 |

2021-03-14 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:20 | ------------------------------------

2021-03-14 23:02:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c7b839a9-8a8d-40eb-8639-953b5c6731a9"
}

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

2021-03-14 23:02:21 | [Mutex] waiting for: [received:nodes:33931ab3-23a2-4992-a6ad-06d7e131a4e7:localhost]

2021-03-14 23:02:21 | [Mutex] received everything.

2021-03-14 23:02:21 | [Mutex] isItemNotified: received:node:33931ab3-23a2-4992-a6ad-06d7e131a4e7:localhost:node-c7b839a9-8a8d-40eb-8639-953b5c6731a9:Node c7b839a9-8a8d-40eb-8639-953b5c6731a9 :: false

deleteSubnodes 1.027s
2021-03-14 23:02:19 |

2021-03-14 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:19 | ------------------------------------

2021-03-14 23:02:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82"
}

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

2021-03-14 23:02:20 | [Mutex] waiting for: [received:nodes:1d44326d-f889-4f29-ad5c-5683e36a5307:localhost]

2021-03-14 23:02:20 | [Mutex] received everything.

2021-03-14 23:02:20 | [Mutex] isItemNotified: received:node:1d44326d-f889-4f29-ad5c-5683e36a5307:localhost:node-8001bb6a-88db-40a1-8f18-e59712fccc82:Node 8001bb6a-88db-40a1-8f18-e59712fccc82 :: false

2021-03-14 23:02:20 | [Mutex] waiting for: [received:nodes:689147a8-c506-45f1-8439-f5205d0ef93c:localhost]

2021-03-14 23:02:20 | [Mutex] received everything.

2021-03-14 23:02:20 | [Mutex] isItemNotified: received:node:689147a8-c506-45f1-8439-f5205d0ef93c:localhost:node-8001bb6a-88db-40a1-8f18-e59712fccc82:Node 8001bb6a-88db-40a1-8f18-e59712fccc82 :: false

publishItemsToNodes 0.058s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

2021-03-14 23:02:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "entry": "<test>item-f152fde1-5140-486f-90c7-44986d4b7754</test>",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754"
}

2021-03-14 23:02:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754"
}

2021-03-14 23:02:18 | [Mutex] waiting for: [published:item:notifieditem-f152fde1-5140-486f-90c7-44986d4b7754:admin@test-domain.com]

2021-03-14 23:02:18 | [Mutex] received everything.

2021-03-14 23:02:18 | [Mutex] isItemNotified: published:item:notifieditem-f152fde1-5140-486f-90c7-44986d4b7754:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

2021-03-14 23:02:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754"
}

2021-03-14 23:02:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754"
}

2021-03-14 23:02:18 | [Mutex] waiting for: [retracted:item:notifieditem-f152fde1-5140-486f-90c7-44986d4b7754:admin@test-domain.com]

2021-03-14 23:02:18 | [Mutex] received everything.

2021-03-14 23:02:18 | [Mutex] isItemNotified: retracted:item:notifieditem-f152fde1-5140-486f-90c7-44986d4b7754:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

2021-03-14 23:02:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754"
}

2021-03-14 23:02:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "item-id": "item-f152fde1-5140-486f-90c7-44986d4b7754",
    "item": [
        "<item id=\"item-f152fde1-5140-486f-90c7-44986d4b7754\"><test>item-f152fde1-5140-486f-90c7-44986d4b7754</test></item>"
    ]
}

2021-03-14 23:02:18 | [Mutex] notify: [retrieved:item:item-f152fde1-5140-486f-90c7-44986d4b7754:payload-matches:true:localhost]

2021-03-14 23:02:18 | [Mutex] received everything.

2021-03-14 23:02:18 | [Mutex] isItemNotified: retrieved:item:item-f152fde1-5140-486f-90c7-44986d4b7754:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

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

2021-03-14 23:02:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c7b839a9-8a8d-40eb-8639-953b5c6731a9",
        "test",
        "node-8001bb6a-88db-40a1-8f18-e59712fccc82"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

2021-03-14 23:02:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8001bb6a-88db-40a1-8f18-e59712fccc82)"
}

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

subscribeNodes 1.011s
2021-03-14 23:02:17 |

2021-03-14 23:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:17 | ------------------------------------

2021-03-14 23:02:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-03-14 23:02:18 |

2021-03-14 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-14 23:02:18 | ------------------------------------

2021-03-14 23:02:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8001bb6a-88db-40a1-8f18-e59712fccc82",
    "jids": [
        "admin@test-domain.com"
    ]
}

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