Generated by TestNG with ReportNG at 22:16 PDT on Wednesday 26 May 2021
root@785cf647a4ab / 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.122s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.183s
2021-05-26 22:30:57 |

2021-05-26 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:57 | ------------------------------------

2021-05-26 22:30:57 | [Mutex] waiting for: [configured:node:node-449ea87c-3212-4149-b024-745e7546fc9d:node-760b89e3-edba-42b5-a5a8-08aeb5bd9599]

2021-05-26 22:30:57 | [Mutex] received everything.

2021-05-26 22:30:57 | [Mutex] isItemNotified: configured:node:node-449ea87c-3212-4149-b024-745e7546fc9d:node-760b89e3-edba-42b5-a5a8-08aeb5bd9599 :: true

2021-05-26 22:30:58 | [Mutex] waiting for: [received:nodes:9b6f8dfd-dfdb-47ec-a00b-ee6274750f56:localhost]

2021-05-26 22:30:58 | [Mutex] waiting for: [received:nodes:9b6f8dfd-dfdb-47ec-a00b-ee6274750f56:localhost]

2021-05-26 22:30:58 | [Mutex] received everything.

2021-05-26 22:30:58 | [Mutex] isItemNotified: received:node:9b6f8dfd-dfdb-47ec-a00b-ee6274750f56:localhost:node-449ea87c-3212-4149-b024-745e7546fc9d:Node 449ea87c-3212-4149-b024-745e7546fc9d :: true

2021-05-26 22:30:58 | [Mutex] waiting for: [received:nodes:e0ae2d3a-eaa9-45a4-9ceb-8020e9d4fa3a:localhost]

2021-05-26 22:30:58 | [Mutex] waiting for: [received:nodes:e0ae2d3a-eaa9-45a4-9ceb-8020e9d4fa3a:localhost]

2021-05-26 22:30:58 | [Mutex] waiting for: [received:nodes:e0ae2d3a-eaa9-45a4-9ceb-8020e9d4fa3a:localhost]

2021-05-26 22:30:58 | [Mutex] received everything.

2021-05-26 22:30:58 | [Mutex] isItemNotified: received:node:e0ae2d3a-eaa9-45a4-9ceb-8020e9d4fa3a:localhost:node-449ea87c-3212-4149-b024-745e7546fc9d:Node 449ea87c-3212-4149-b024-745e7546fc9d :: false

createNodes 1.746s
2021-05-26 22:30:54 |

2021-05-26 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:54 | ------------------------------------

2021-05-26 22:30:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "pubsub#title": "Node 449ea87c-3212-4149-b024-745e7546fc9d"
}

2021-05-26 22:30:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:30:56 | [Mutex] waiting for: [received:nodes:d2c56664-520d-482f-96f9-22cba96c6423:localhost]

2021-05-26 22:30:56 | [Mutex] waiting for: [received:nodes:d2c56664-520d-482f-96f9-22cba96c6423:localhost]

2021-05-26 22:30:56 | [Mutex] received everything.

2021-05-26 22:30:56 | [Mutex] isItemNotified: received:node:d2c56664-520d-482f-96f9-22cba96c6423:localhost:node-449ea87c-3212-4149-b024-745e7546fc9d:Node 449ea87c-3212-4149-b024-745e7546fc9d :: true

createSubnodes 1.025s
2021-05-26 22:30:56 |

2021-05-26 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:56 | ------------------------------------

2021-05-26 22:30:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-760b89e3-edba-42b5-a5a8-08aeb5bd9599",
    "pubsub#title": "Node 760b89e3-edba-42b5-a5a8-08aeb5bd9599"
}

2021-05-26 22:30:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:30:57 | [Mutex] waiting for: [received:nodes:22530a3f-90a7-449f-829d-0e1df9dbadf4:localhost]

2021-05-26 22:30:57 | [Mutex] received everything.

2021-05-26 22:30:57 | [Mutex] isItemNotified: received:node:22530a3f-90a7-449f-829d-0e1df9dbadf4:localhost:node-760b89e3-edba-42b5-a5a8-08aeb5bd9599:Node 760b89e3-edba-42b5-a5a8-08aeb5bd9599 :: true

deleteNodes 1.020s
2021-05-26 22:31:02 |

2021-05-26 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:31:02 | ------------------------------------

2021-05-26 22:31:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-760b89e3-edba-42b5-a5a8-08aeb5bd9599"
}

2021-05-26 22:31:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:31:03 | [Mutex] waiting for: [received:nodes:48078e6a-1b04-4cdf-95ac-16e12794fd2b:localhost]

2021-05-26 22:31:03 | [Mutex] received everything.

2021-05-26 22:31:03 | [Mutex] isItemNotified: received:node:48078e6a-1b04-4cdf-95ac-16e12794fd2b:localhost:node-760b89e3-edba-42b5-a5a8-08aeb5bd9599:Node 760b89e3-edba-42b5-a5a8-08aeb5bd9599 :: false

deleteSubnodes 1.031s
2021-05-26 22:31:01 |

2021-05-26 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:31:01 | ------------------------------------

2021-05-26 22:31:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d"
}

2021-05-26 22:31:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 22:31:02 | [Mutex] waiting for: [received:nodes:29b24b30-6bfa-4271-9592-1faf74ff0d12:localhost]

2021-05-26 22:31:02 | [Mutex] waiting for: [received:nodes:29b24b30-6bfa-4271-9592-1faf74ff0d12:localhost]

2021-05-26 22:31:02 | [Mutex] waiting for: [received:nodes:29b24b30-6bfa-4271-9592-1faf74ff0d12:localhost]

2021-05-26 22:31:02 | [Mutex] received everything.

2021-05-26 22:31:02 | [Mutex] isItemNotified: received:node:29b24b30-6bfa-4271-9592-1faf74ff0d12:localhost:node-449ea87c-3212-4149-b024-745e7546fc9d:Node 449ea87c-3212-4149-b024-745e7546fc9d :: false

2021-05-26 22:31:02 | [Mutex] waiting for: [received:nodes:691d19c0-29bf-4692-a45f-3ab657a8a7ac:localhost]

2021-05-26 22:31:02 | [Mutex] received everything.

2021-05-26 22:31:02 | [Mutex] isItemNotified: received:node:691d19c0-29bf-4692-a45f-3ab657a8a7ac:localhost:node-449ea87c-3212-4149-b024-745e7546fc9d:Node 449ea87c-3212-4149-b024-745e7546fc9d :: false

publishItemsToNodes 0.035s
2021-05-26 22:30:59 |

2021-05-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:59 | ------------------------------------

2021-05-26 22:30:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "entry": "<test>item-6807571b-69f6-47ea-a4b7-095a513a3f25</test>",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25"
}

2021-05-26 22:30:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25"
}

2021-05-26 22:30:59 | [Mutex] waiting for: [published:item:notifieditem-6807571b-69f6-47ea-a4b7-095a513a3f25:admin@test-domain.com]

2021-05-26 22:30:59 | [Mutex] received everything.

2021-05-26 22:30:59 | [Mutex] isItemNotified: published:item:notifieditem-6807571b-69f6-47ea-a4b7-095a513a3f25:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2021-05-26 22:31:00 |

2021-05-26 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:31:00 | ------------------------------------

2021-05-26 22:31:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25"
}

2021-05-26 22:31:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25"
}

2021-05-26 22:31:00 | [Mutex] waiting for: [retracted:item:notifieditem-6807571b-69f6-47ea-a4b7-095a513a3f25:admin@test-domain.com]

2021-05-26 22:31:00 | [Mutex] received everything.

2021-05-26 22:31:00 | [Mutex] isItemNotified: retracted:item:notifieditem-6807571b-69f6-47ea-a4b7-095a513a3f25:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-05-26 22:30:59 |

2021-05-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:59 | ------------------------------------

2021-05-26 22:30:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25"
}

2021-05-26 22:30:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "item-id": "item-6807571b-69f6-47ea-a4b7-095a513a3f25",
    "item": [
        "<item id=\"item-6807571b-69f6-47ea-a4b7-095a513a3f25\"><test>item-6807571b-69f6-47ea-a4b7-095a513a3f25</test></item>"
    ]
}

2021-05-26 22:30:59 | [Mutex] notify: [retrieved:item:item-6807571b-69f6-47ea-a4b7-095a513a3f25:payload-matches:true:localhost]

2021-05-26 22:30:59 | [Mutex] received everything.

2021-05-26 22:30:59 | [Mutex] isItemNotified: retrieved:item:item-6807571b-69f6-47ea-a4b7-095a513a3f25:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-26 22:30:59 |

2021-05-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:59 | ------------------------------------

2021-05-26 22:30:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-26 22:30:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-449ea87c-3212-4149-b024-745e7546fc9d",
        "node-760b89e3-edba-42b5-a5a8-08aeb5bd9599"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-26 22:30:59 |

2021-05-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:59 | ------------------------------------

2021-05-26 22:30:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-449ea87c-3212-4149-b024-745e7546fc9d)"
}

2021-05-26 22:31:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-05-26 22:30:58 |

2021-05-26 22:30:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:30:58 | ------------------------------------

2021-05-26 22:30:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-26 22:30:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2021-05-26 22:31:00 |

2021-05-26 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:31:00 | ------------------------------------

2021-05-26 22:31:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-449ea87c-3212-4149-b024-745e7546fc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-26 22:31:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}