Generated by TestNG with ReportNG at 23:10 PDT on Wednesday 23 September 2020
root@d2a27fcc5bc3 / 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 : 9.133s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2020-09-23 23:25:11 |

2020-09-23 23:25:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:11 | ------------------------------------

2020-09-23 23:25:11 | [Mutex] waiting for: [configured:node:node-3ffa6200-cf22-478a-8767-e18bea46b533:node-20f3d563-a25b-43e2-b143-2462e45b88de]

2020-09-23 23:25:11 | [Mutex] received everything.

2020-09-23 23:25:11 | [Mutex] isItemNotified: configured:node:node-3ffa6200-cf22-478a-8767-e18bea46b533:node-20f3d563-a25b-43e2-b143-2462e45b88de :: true

2020-09-23 23:25:12 | [Mutex] waiting for: [received:nodes:13885dc6-beb0-47d4-9d70-67a9224954b7:localhost]

2020-09-23 23:25:12 | [Mutex] received everything.

2020-09-23 23:25:12 | [Mutex] isItemNotified: received:node:13885dc6-beb0-47d4-9d70-67a9224954b7:localhost:node-3ffa6200-cf22-478a-8767-e18bea46b533:Node 3ffa6200-cf22-478a-8767-e18bea46b533 :: true

2020-09-23 23:25:12 | [Mutex] waiting for: [received:nodes:e307446a-c526-43f9-9beb-bee55f7c9853:localhost]

2020-09-23 23:25:12 | [Mutex] received everything.

2020-09-23 23:25:12 | [Mutex] isItemNotified: received:node:e307446a-c526-43f9-9beb-bee55f7c9853:localhost:node-3ffa6200-cf22-478a-8767-e18bea46b533:Node 3ffa6200-cf22-478a-8767-e18bea46b533 :: false

createNodes 1.675s
2020-09-23 23:25:08 |

2020-09-23 23:25:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:08 | ------------------------------------

2020-09-23 23:25: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-3ffa6200-cf22-478a-8767-e18bea46b533",
    "pubsub#title": "Node 3ffa6200-cf22-478a-8767-e18bea46b533"
}

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

2020-09-23 23:25:09 | [Mutex] waiting for: [received:nodes:392608c2-2df6-4c2d-9649-6166934e3d96:localhost]

2020-09-23 23:25:09 | [Mutex] waiting for: [received:nodes:392608c2-2df6-4c2d-9649-6166934e3d96:localhost]

2020-09-23 23:25:09 | [Mutex] waiting for: [received:nodes:392608c2-2df6-4c2d-9649-6166934e3d96:localhost]

2020-09-23 23:25:09 | [Mutex] received everything.

2020-09-23 23:25:09 | [Mutex] isItemNotified: received:node:392608c2-2df6-4c2d-9649-6166934e3d96:localhost:node-3ffa6200-cf22-478a-8767-e18bea46b533:Node 3ffa6200-cf22-478a-8767-e18bea46b533 :: true

createSubnodes 1.036s
2020-09-23 23:25:09 |

2020-09-23 23:25:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:09 | ------------------------------------

2020-09-23 23:25: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-20f3d563-a25b-43e2-b143-2462e45b88de",
    "pubsub#title": "Node 20f3d563-a25b-43e2-b143-2462e45b88de"
}

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

2020-09-23 23:25:10 | [Mutex] waiting for: [received:nodes:a03d1675-8ecc-4cfd-bee4-4e11198fed31:localhost]

2020-09-23 23:25:11 | [Mutex] received everything.

2020-09-23 23:25:11 | [Mutex] isItemNotified: received:node:a03d1675-8ecc-4cfd-bee4-4e11198fed31:localhost:node-20f3d563-a25b-43e2-b143-2462e45b88de:Node 20f3d563-a25b-43e2-b143-2462e45b88de :: true

deleteNodes 1.019s
2020-09-23 23:25:15 |

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

2020-09-23 23:25:15 | ------------------------------------

2020-09-23 23:25:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20f3d563-a25b-43e2-b143-2462e45b88de"
}

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

2020-09-23 23:25:16 | [Mutex] waiting for: [received:nodes:3e8cc9b1-d32b-4682-87c5-24e1c5995eba:localhost]

2020-09-23 23:25:16 | [Mutex] received everything.

2020-09-23 23:25:16 | [Mutex] isItemNotified: received:node:3e8cc9b1-d32b-4682-87c5-24e1c5995eba:localhost:node-20f3d563-a25b-43e2-b143-2462e45b88de:Node 20f3d563-a25b-43e2-b143-2462e45b88de :: false

deleteSubnodes 1.024s
2020-09-23 23:25:14 |

2020-09-23 23:25:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:14 | ------------------------------------

2020-09-23 23:25:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533"
}

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

2020-09-23 23:25:15 | [Mutex] waiting for: [received:nodes:1ff4b605-4943-4d75-ab81-c762e183d213:localhost]

2020-09-23 23:25:15 | [Mutex] received everything.

2020-09-23 23:25:15 | [Mutex] isItemNotified: received:node:1ff4b605-4943-4d75-ab81-c762e183d213:localhost:node-3ffa6200-cf22-478a-8767-e18bea46b533:Node 3ffa6200-cf22-478a-8767-e18bea46b533 :: false

2020-09-23 23:25:15 | [Mutex] waiting for: [received:nodes:8d79e50e-844c-413e-a12f-48c01f18b3c3:localhost]

2020-09-23 23:25:15 | [Mutex] received everything.

2020-09-23 23:25:15 | [Mutex] isItemNotified: received:node:8d79e50e-844c-413e-a12f-48c01f18b3c3:localhost:node-3ffa6200-cf22-478a-8767-e18bea46b533:Node 3ffa6200-cf22-478a-8767-e18bea46b533 :: false

publishItemsToNodes 0.042s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

2020-09-23 23:25:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "entry": "<test>item-59a0763b-35a2-466d-8bac-a79a8527a6ff</test>",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff"
}

2020-09-23 23:25:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff"
}

2020-09-23 23:25:13 | [Mutex] waiting for: [published:item:notifieditem-59a0763b-35a2-466d-8bac-a79a8527a6ff:admin@test-domain.com]

2020-09-23 23:25:13 | [Mutex] received everything.

2020-09-23 23:25:13 | [Mutex] isItemNotified: published:item:notifieditem-59a0763b-35a2-466d-8bac-a79a8527a6ff:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

2020-09-23 23:25:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff"
}

2020-09-23 23:25:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff"
}

2020-09-23 23:25:13 | [Mutex] received everything.

2020-09-23 23:25:13 | [Mutex] isItemNotified: retracted:item:notifieditem-59a0763b-35a2-466d-8bac-a79a8527a6ff:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

2020-09-23 23:25:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff"
}

2020-09-23 23:25:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "item-id": "item-59a0763b-35a2-466d-8bac-a79a8527a6ff",
    "item": [
        "<item id=\"item-59a0763b-35a2-466d-8bac-a79a8527a6ff\"><test>item-59a0763b-35a2-466d-8bac-a79a8527a6ff</test></item>"
    ]
}

2020-09-23 23:25:13 | [Mutex] notify: [retrieved:item:item-59a0763b-35a2-466d-8bac-a79a8527a6ff:payload-matches:true:localhost]

2020-09-23 23:25:13 | [Mutex] received everything.

2020-09-23 23:25:13 | [Mutex] isItemNotified: retrieved:item:item-59a0763b-35a2-466d-8bac-a79a8527a6ff:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

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

2020-09-23 23:25:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3ffa6200-cf22-478a-8767-e18bea46b533",
        "node-20f3d563-a25b-43e2-b143-2462e45b88de"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

2020-09-23 23:25:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ffa6200-cf22-478a-8767-e18bea46b533)"
}

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

subscribeNodes 1.013s
2020-09-23 23:25:12 |

2020-09-23 23:25:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:12 | ------------------------------------

2020-09-23 23:25:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-23 23:25:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2020-09-23 23:25:13 |

2020-09-23 23:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 23:25:13 | ------------------------------------

2020-09-23 23:25:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ffa6200-cf22-478a-8767-e18bea46b533",
    "jids": [
        "admin@test-domain.com"
    ]
}

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