Generated by TestNG with ReportNG at 22:51 PDT on Monday 20 September 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.779s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2021-09-20 23:06:10 |

2021-09-20 23:06:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:10 | ------------------------------------

2021-09-20 23:06:10 | [Mutex] waiting for: [configured:node:node-cd03e4da-9c28-42a3-b643-93dff97097c3:node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14]

2021-09-20 23:06:10 | [Mutex] received everything.

2021-09-20 23:06:10 | [Mutex] isItemNotified: configured:node:node-cd03e4da-9c28-42a3-b643-93dff97097c3:node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14 :: true

2021-09-20 23:06:11 | [Mutex] waiting for: [received:nodes:31b3901d-3c9d-4ccb-af2e-e284cd950f8d:localhost]

2021-09-20 23:06:11 | [Mutex] received everything.

2021-09-20 23:06:11 | [Mutex] isItemNotified: received:node:31b3901d-3c9d-4ccb-af2e-e284cd950f8d:localhost:node-cd03e4da-9c28-42a3-b643-93dff97097c3:Node cd03e4da-9c28-42a3-b643-93dff97097c3 :: true

2021-09-20 23:06:11 | [Mutex] waiting for: [received:nodes:c83c4c3f-8611-49db-bdad-0395550dce39:localhost]

2021-09-20 23:06:11 | [Mutex] waiting for: [received:nodes:c83c4c3f-8611-49db-bdad-0395550dce39:localhost]

2021-09-20 23:06:11 | [Mutex] received everything.

2021-09-20 23:06:11 | [Mutex] isItemNotified: received:node:c83c4c3f-8611-49db-bdad-0395550dce39:localhost:node-cd03e4da-9c28-42a3-b643-93dff97097c3:Node cd03e4da-9c28-42a3-b643-93dff97097c3 :: false

createNodes 1.496s
2021-09-20 23:06:08 |

2021-09-20 23:06:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:08 | ------------------------------------

2021-09-20 23:06:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "pubsub#title": "Node cd03e4da-9c28-42a3-b643-93dff97097c3"
}

2021-09-20 23:06:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 23:06:09 | [Mutex] waiting for: [received:nodes:c184d3ce-4250-4b83-a626-15017fb810dd:localhost]

2021-09-20 23:06:09 | [Mutex] waiting for: [received:nodes:c184d3ce-4250-4b83-a626-15017fb810dd:localhost]

2021-09-20 23:06:09 | [Mutex] received everything.

2021-09-20 23:06:09 | [Mutex] isItemNotified: received:node:c184d3ce-4250-4b83-a626-15017fb810dd:localhost:node-cd03e4da-9c28-42a3-b643-93dff97097c3:Node cd03e4da-9c28-42a3-b643-93dff97097c3 :: true

createSubnodes 1.034s
2021-09-20 23:06:09 |

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

2021-09-20 23:06:09 | ------------------------------------

2021-09-20 23:06:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14",
    "pubsub#title": "Node b37a3a8a-77aa-417c-91e0-ac5954ec9e14"
}

2021-09-20 23:06:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 23:06:10 | [Mutex] waiting for: [received:nodes:767623b4-7d76-47e7-9b68-a05848e988c7:localhost]

2021-09-20 23:06:10 | [Mutex] received everything.

2021-09-20 23:06:10 | [Mutex] isItemNotified: received:node:767623b4-7d76-47e7-9b68-a05848e988c7:localhost:node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14:Node b37a3a8a-77aa-417c-91e0-ac5954ec9e14 :: true

deleteNodes 1.023s
2021-09-20 23:06:15 |

2021-09-20 23:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:15 | ------------------------------------

2021-09-20 23:06:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14"
}

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

2021-09-20 23:06:16 | [Mutex] waiting for: [received:nodes:eab86a29-d90d-4b70-abb1-20ccf00f3ffb:localhost]

2021-09-20 23:06:16 | [Mutex] received everything.

2021-09-20 23:06:16 | [Mutex] isItemNotified: received:node:eab86a29-d90d-4b70-abb1-20ccf00f3ffb:localhost:node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14:Node b37a3a8a-77aa-417c-91e0-ac5954ec9e14 :: false

deleteSubnodes 1.030s
2021-09-20 23:06:14 |

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

2021-09-20 23:06:14 | ------------------------------------

2021-09-20 23:06:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3"
}

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

2021-09-20 23:06:15 | [Mutex] waiting for: [received:nodes:ea208280-33dd-49d7-861e-0e700ef3e1af:localhost]

2021-09-20 23:06:15 | [Mutex] received everything.

2021-09-20 23:06:15 | [Mutex] isItemNotified: received:node:ea208280-33dd-49d7-861e-0e700ef3e1af:localhost:node-cd03e4da-9c28-42a3-b643-93dff97097c3:Node cd03e4da-9c28-42a3-b643-93dff97097c3 :: false

2021-09-20 23:06:15 | [Mutex] waiting for: [received:nodes:8581edba-1368-4f59-8d06-e52d8aa0c6b7:localhost]

2021-09-20 23:06:15 | [Mutex] received everything.

2021-09-20 23:06:15 | [Mutex] isItemNotified: received:node:8581edba-1368-4f59-8d06-e52d8aa0c6b7:localhost:node-cd03e4da-9c28-42a3-b643-93dff97097c3:Node cd03e4da-9c28-42a3-b643-93dff97097c3 :: false

publishItemsToNodes 0.027s
2021-09-20 23:06:12 |

2021-09-20 23:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:12 | ------------------------------------

2021-09-20 23:06:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "entry": "<test>item-65639bda-d9c3-4365-b3ae-77552fb71036</test>",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036"
}

2021-09-20 23:06:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036"
}

2021-09-20 23:06:12 | [Mutex] waiting for: [published:item:notifieditem-65639bda-d9c3-4365-b3ae-77552fb71036:admin@test-domain.com]

2021-09-20 23:06:12 | [Mutex] received everything.

2021-09-20 23:06:12 | [Mutex] isItemNotified: published:item:notifieditem-65639bda-d9c3-4365-b3ae-77552fb71036:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2021-09-20 23:06:13 |

2021-09-20 23:06:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:13 | ------------------------------------

2021-09-20 23:06:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036"
}

2021-09-20 23:06:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036"
}

2021-09-20 23:06:13 | [Mutex] received everything.

2021-09-20 23:06:13 | [Mutex] isItemNotified: retracted:item:notifieditem-65639bda-d9c3-4365-b3ae-77552fb71036:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2021-09-20 23:06:12 |

2021-09-20 23:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:12 | ------------------------------------

2021-09-20 23:06:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036"
}

2021-09-20 23:06:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "item-id": "item-65639bda-d9c3-4365-b3ae-77552fb71036",
    "item": [
        "<item id=\"item-65639bda-d9c3-4365-b3ae-77552fb71036\"><test>item-65639bda-d9c3-4365-b3ae-77552fb71036</test></item>"
    ]
}

2021-09-20 23:06:12 | [Mutex] notify: [retrieved:item:item-65639bda-d9c3-4365-b3ae-77552fb71036:payload-matches:true:localhost]

2021-09-20 23:06:12 | [Mutex] received everything.

2021-09-20 23:06:12 | [Mutex] isItemNotified: retrieved:item:item-65639bda-d9c3-4365-b3ae-77552fb71036:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-20 23:06:12 |

2021-09-20 23:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:12 | ------------------------------------

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

2021-09-20 23:06:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
        "test",
        "node-b37a3a8a-77aa-417c-91e0-ac5954ec9e14"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-09-20 23:06:12 |

2021-09-20 23:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:12 | ------------------------------------

2021-09-20 23:06:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cd03e4da-9c28-42a3-b643-93dff97097c3)"
}

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

subscribeNodes 1.013s
2021-09-20 23:06:11 |

2021-09-20 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:11 | ------------------------------------

2021-09-20 23:06:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 23:06:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2021-09-20 23:06:13 |

2021-09-20 23:06:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 23:06:13 | ------------------------------------

2021-09-20 23:06:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cd03e4da-9c28-42a3-b643-93dff97097c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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