Generated by TestNG with ReportNG at 22:17 PDT on Friday 08 July 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.855s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-07-08 22:32:03 |

2022-07-08 22:32:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:03 | ------------------------------------

2022-07-08 22:32:03 | [Mutex] waiting for: [configured:node:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:node-5387be91-b7f3-4606-8ee5-29e0585e267d]

2022-07-08 22:32:03 | [Mutex] received everything.

2022-07-08 22:32:03 | [Mutex] isItemNotified: configured:node:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:node-5387be91-b7f3-4606-8ee5-29e0585e267d :: true

2022-07-08 22:32:04 | [Mutex] waiting for: [received:nodes:b20732c5-a2ac-4b4d-a8d5-1132f82c353e:localhost]

2022-07-08 22:32:04 | [Mutex] received everything.

2022-07-08 22:32:04 | [Mutex] isItemNotified: received:node:b20732c5-a2ac-4b4d-a8d5-1132f82c353e:localhost:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:Node 64e5117b-000c-4fb4-a299-f5535f3c35c4 :: true

2022-07-08 22:32:04 | [Mutex] waiting for: [received:nodes:313d161b-4f0a-4f43-b61d-2f6b8464578d:localhost]

2022-07-08 22:32:04 | [Mutex] received everything.

2022-07-08 22:32:04 | [Mutex] isItemNotified: received:node:313d161b-4f0a-4f43-b61d-2f6b8464578d:localhost:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:Node 64e5117b-000c-4fb4-a299-f5535f3c35c4 :: false

createNodes 1.767s
2022-07-08 22:32:00 |

2022-07-08 22:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:00 | ------------------------------------

2022-07-08 22:32:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "pubsub#title": "Node 64e5117b-000c-4fb4-a299-f5535f3c35c4"
}

2022-07-08 22:32:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 22:32:02 | [Mutex] waiting for: [received:nodes:42479a4d-ee1e-4667-9257-e9b2e8c101cf:localhost]

2022-07-08 22:32:02 | [Mutex] received everything.

2022-07-08 22:32:02 | [Mutex] isItemNotified: received:node:42479a4d-ee1e-4667-9257-e9b2e8c101cf:localhost:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:Node 64e5117b-000c-4fb4-a299-f5535f3c35c4 :: true

createSubnodes 1.025s
2022-07-08 22:32:02 |

2022-07-08 22:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:02 | ------------------------------------

2022-07-08 22:32:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5387be91-b7f3-4606-8ee5-29e0585e267d",
    "pubsub#title": "Node 5387be91-b7f3-4606-8ee5-29e0585e267d"
}

2022-07-08 22:32:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 22:32:03 | [Mutex] waiting for: [received:nodes:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost]

2022-07-08 22:32:03 | [Mutex] waiting for: [received:nodes:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost]

2022-07-08 22:32:03 | [Mutex] waiting for: [received:nodes:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost]

2022-07-08 22:32:03 | [Mutex] waiting for: [received:nodes:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost]

2022-07-08 22:32:03 | [Mutex] waiting for: [received:nodes:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost]

2022-07-08 22:32:03 | [Mutex] received everything.

2022-07-08 22:32:03 | [Mutex] isItemNotified: received:node:f0b45e91-541f-4993-9046-9d6028aa13e1:localhost:node-5387be91-b7f3-4606-8ee5-29e0585e267d:Node 5387be91-b7f3-4606-8ee5-29e0585e267d :: true

deleteNodes 1.020s
2022-07-08 22:32:07 |

2022-07-08 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:07 | ------------------------------------

2022-07-08 22:32:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5387be91-b7f3-4606-8ee5-29e0585e267d"
}

2022-07-08 22:32:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 22:32:08 | [Mutex] waiting for: [received:nodes:533a1dfb-2fb3-41da-b0df-285404ed8f3b:localhost]

2022-07-08 22:32:08 | [Mutex] received everything.

2022-07-08 22:32:08 | [Mutex] isItemNotified: received:node:533a1dfb-2fb3-41da-b0df-285404ed8f3b:localhost:node-5387be91-b7f3-4606-8ee5-29e0585e267d:Node 5387be91-b7f3-4606-8ee5-29e0585e267d :: false

deleteSubnodes 1.031s
2022-07-08 22:32:06 |

2022-07-08 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:06 | ------------------------------------

2022-07-08 22:32:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4"
}

2022-07-08 22:32:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 22:32:07 | [Mutex] waiting for: [received:nodes:b6930707-cc3f-4a71-a5c9-188d24d8e76c:localhost]

2022-07-08 22:32:07 | [Mutex] received everything.

2022-07-08 22:32:07 | [Mutex] isItemNotified: received:node:b6930707-cc3f-4a71-a5c9-188d24d8e76c:localhost:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:Node 64e5117b-000c-4fb4-a299-f5535f3c35c4 :: false

2022-07-08 22:32:07 | [Mutex] waiting for: [received:nodes:58917ece-501c-4daf-9f56-e9fbc4a6d152:localhost]

2022-07-08 22:32:07 | [Mutex] received everything.

2022-07-08 22:32:07 | [Mutex] isItemNotified: received:node:58917ece-501c-4daf-9f56-e9fbc4a6d152:localhost:node-64e5117b-000c-4fb4-a299-f5535f3c35c4:Node 64e5117b-000c-4fb4-a299-f5535f3c35c4 :: false

publishItemsToNodes 0.037s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

2022-07-08 22:32:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "entry": "<test>item-42508cb4-a36f-492e-8649-0827261be3c0</test>",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0"
}

2022-07-08 22:32:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0"
}

2022-07-08 22:32:05 | [Mutex] waiting for: [published:item:notifieditem-42508cb4-a36f-492e-8649-0827261be3c0:admin@test-domain.com]

2022-07-08 22:32:05 | [Mutex] received everything.

2022-07-08 22:32:05 | [Mutex] isItemNotified: published:item:notifieditem-42508cb4-a36f-492e-8649-0827261be3c0:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

2022-07-08 22:32:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0"
}

2022-07-08 22:32:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0"
}

2022-07-08 22:32:05 | [Mutex] received everything.

2022-07-08 22:32:05 | [Mutex] isItemNotified: retracted:item:notifieditem-42508cb4-a36f-492e-8649-0827261be3c0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

2022-07-08 22:32:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0"
}

2022-07-08 22:32:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "item-id": "item-42508cb4-a36f-492e-8649-0827261be3c0",
    "item": [
        "<item id=\"item-42508cb4-a36f-492e-8649-0827261be3c0\"><test>item-42508cb4-a36f-492e-8649-0827261be3c0</test></item>"
    ]
}

2022-07-08 22:32:05 | [Mutex] notify: [retrieved:item:item-42508cb4-a36f-492e-8649-0827261be3c0:payload-matches:true:localhost]

2022-07-08 22:32:05 | [Mutex] received everything.

2022-07-08 22:32:05 | [Mutex] isItemNotified: retrieved:item:item-42508cb4-a36f-492e-8649-0827261be3c0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

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

2022-07-08 22:32:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
        "node-5387be91-b7f3-4606-8ee5-29e0585e267d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

2022-07-08 22:32:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-64e5117b-000c-4fb4-a299-f5535f3c35c4)"
}

2022-07-08 22:32:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.020s
2022-07-08 22:32:04 |

2022-07-08 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:04 | ------------------------------------

2022-07-08 22:32:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-08 22:32:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-07-08 22:32:05 |

2022-07-08 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:32:05 | ------------------------------------

2022-07-08 22:32:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-64e5117b-000c-4fb4-a299-f5535f3c35c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-08 22:32:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}