Generated by TestNG with ReportNG at 22:50 PDT on Monday 05 September 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.548s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-09-05 23:05:18 |

2022-09-05 23:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:18 | ------------------------------------

2022-09-05 23:05:18 | [Mutex] waiting for: [configured:node:node-f5a81322-51d3-4696-be0e-c7450e69729d:node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77]

2022-09-05 23:05:18 | [Mutex] received everything.

2022-09-05 23:05:18 | [Mutex] isItemNotified: configured:node:node-f5a81322-51d3-4696-be0e-c7450e69729d:node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77 :: true

2022-09-05 23:05:19 | [Mutex] waiting for: [received:nodes:35b5d919-f0ff-4849-b750-1c676810c805:localhost]

2022-09-05 23:05:19 | [Mutex] received everything.

2022-09-05 23:05:19 | [Mutex] isItemNotified: received:node:35b5d919-f0ff-4849-b750-1c676810c805:localhost:node-f5a81322-51d3-4696-be0e-c7450e69729d:Node f5a81322-51d3-4696-be0e-c7450e69729d :: true

2022-09-05 23:05:19 | [Mutex] waiting for: [received:nodes:c4192269-f9ac-4728-a8ff-9d0c2930ee25:localhost]

2022-09-05 23:05:19 | [Mutex] received everything.

2022-09-05 23:05:19 | [Mutex] isItemNotified: received:node:c4192269-f9ac-4728-a8ff-9d0c2930ee25:localhost:node-f5a81322-51d3-4696-be0e-c7450e69729d:Node f5a81322-51d3-4696-be0e-c7450e69729d :: false

createNodes 1.516s
2022-09-05 23:05:15 |

2022-09-05 23:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:15 | ------------------------------------

2022-09-05 23:05:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "pubsub#title": "Node f5a81322-51d3-4696-be0e-c7450e69729d"
}

2022-09-05 23:05:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 23:05:17 | [Mutex] waiting for: [received:nodes:629744ab-0170-40e8-9c5f-03cc17b333ae:localhost]

2022-09-05 23:05:17 | [Mutex] waiting for: [received:nodes:629744ab-0170-40e8-9c5f-03cc17b333ae:localhost]

2022-09-05 23:05:17 | [Mutex] waiting for: [received:nodes:629744ab-0170-40e8-9c5f-03cc17b333ae:localhost]

2022-09-05 23:05:17 | [Mutex] received everything.

2022-09-05 23:05:17 | [Mutex] isItemNotified: received:node:629744ab-0170-40e8-9c5f-03cc17b333ae:localhost:node-f5a81322-51d3-4696-be0e-c7450e69729d:Node f5a81322-51d3-4696-be0e-c7450e69729d :: true

createSubnodes 1.032s
2022-09-05 23:05:17 |

2022-09-05 23:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:17 | ------------------------------------

2022-09-05 23:05:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77",
    "pubsub#title": "Node d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77"
}

2022-09-05 23:05:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 23:05:18 | [Mutex] waiting for: [received:nodes:5207380c-b55d-4ae9-b815-137bd33e4ae9:localhost]

2022-09-05 23:05:18 | [Mutex] received everything.

2022-09-05 23:05:18 | [Mutex] isItemNotified: received:node:5207380c-b55d-4ae9-b815-137bd33e4ae9:localhost:node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77:Node d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77 :: true

deleteNodes 1.022s
2022-09-05 23:05:22 |

2022-09-05 23:05:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:22 | ------------------------------------

2022-09-05 23:05:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77"
}

2022-09-05 23:05:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 23:05:23 | [Mutex] waiting for: [received:nodes:ac55a1ff-6713-4a5b-836c-3fe821e30f93:localhost]

2022-09-05 23:05:23 | [Mutex] waiting for: [received:nodes:ac55a1ff-6713-4a5b-836c-3fe821e30f93:localhost]

2022-09-05 23:05:23 | [Mutex] waiting for: [received:nodes:ac55a1ff-6713-4a5b-836c-3fe821e30f93:localhost]

2022-09-05 23:05:23 | [Mutex] received everything.

2022-09-05 23:05:23 | [Mutex] isItemNotified: received:node:ac55a1ff-6713-4a5b-836c-3fe821e30f93:localhost:node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77:Node d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77 :: false

deleteSubnodes 1.025s
2022-09-05 23:05:21 |

2022-09-05 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:21 | ------------------------------------

2022-09-05 23:05:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d"
}

2022-09-05 23:05:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 23:05:22 | [Mutex] waiting for: [received:nodes:02636c0b-5f80-4f3a-a059-1e4cb0ec204e:localhost]

2022-09-05 23:05:22 | [Mutex] waiting for: [received:nodes:02636c0b-5f80-4f3a-a059-1e4cb0ec204e:localhost]

2022-09-05 23:05:22 | [Mutex] received everything.

2022-09-05 23:05:22 | [Mutex] isItemNotified: received:node:02636c0b-5f80-4f3a-a059-1e4cb0ec204e:localhost:node-f5a81322-51d3-4696-be0e-c7450e69729d:Node f5a81322-51d3-4696-be0e-c7450e69729d :: false

2022-09-05 23:05:22 | [Mutex] waiting for: [received:nodes:bfca8472-91c5-42eb-8f00-346a7355b9cf:localhost]

2022-09-05 23:05:22 | [Mutex] received everything.

2022-09-05 23:05:22 | [Mutex] isItemNotified: received:node:bfca8472-91c5-42eb-8f00-346a7355b9cf:localhost:node-f5a81322-51d3-4696-be0e-c7450e69729d:Node f5a81322-51d3-4696-be0e-c7450e69729d :: false

publishItemsToNodes 0.090s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

2022-09-05 23:05:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "entry": "<test>item-23a18b72-fce5-485d-a2a0-264ca8fe0640</test>",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640"
}

2022-09-05 23:05:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640"
}

2022-09-05 23:05:20 | [Mutex] waiting for: [published:item:notifieditem-23a18b72-fce5-485d-a2a0-264ca8fe0640:admin@test-domain.com]

2022-09-05 23:05:20 | [Mutex] received everything.

2022-09-05 23:05:20 | [Mutex] isItemNotified: published:item:notifieditem-23a18b72-fce5-485d-a2a0-264ca8fe0640:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

2022-09-05 23:05:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640"
}

2022-09-05 23:05:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640"
}

2022-09-05 23:05:20 | [Mutex] waiting for: [retracted:item:notifieditem-23a18b72-fce5-485d-a2a0-264ca8fe0640:admin@test-domain.com]

2022-09-05 23:05:20 | [Mutex] received everything.

2022-09-05 23:05:20 | [Mutex] isItemNotified: retracted:item:notifieditem-23a18b72-fce5-485d-a2a0-264ca8fe0640:admin@test-domain.com :: true

retrieveItemsFromNodes 0.012s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

2022-09-05 23:05:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640"
}

2022-09-05 23:05:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "item-id": "item-23a18b72-fce5-485d-a2a0-264ca8fe0640",
    "item": [
        "<item id=\"item-23a18b72-fce5-485d-a2a0-264ca8fe0640\"><test>item-23a18b72-fce5-485d-a2a0-264ca8fe0640</test></item>"
    ]
}

2022-09-05 23:05:20 | [Mutex] notify: [retrieved:item:item-23a18b72-fce5-485d-a2a0-264ca8fe0640:payload-matches:true:localhost]

2022-09-05 23:05:20 | [Mutex] received everything.

2022-09-05 23:05:20 | [Mutex] isItemNotified: retrieved:item:item-23a18b72-fce5-485d-a2a0-264ca8fe0640:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

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

2022-09-05 23:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d2f49f1d-829a-4a8d-bc2a-2a2dadb88b77",
        "test",
        "node-f5a81322-51d3-4696-be0e-c7450e69729d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

2022-09-05 23:05:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f5a81322-51d3-4696-be0e-c7450e69729d)"
}

2022-09-05 23:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-05 23:05:19 |

2022-09-05 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:19 | ------------------------------------

2022-09-05 23:05:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-05 23:05:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-09-05 23:05:20 |

2022-09-05 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 23:05:20 | ------------------------------------

2022-09-05 23:05:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f5a81322-51d3-4696-be0e-c7450e69729d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-05 23:05:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}