Generated by TestNG with ReportNG at 21:13 PST on Sunday 03 January 2021
root@87f6aca6b6f2 / 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.246s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2021-01-03 21:29:32 |

2021-01-03 21:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:32 | ------------------------------------

2021-01-03 21:29:32 | [Mutex] waiting for: [configured:node:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:node-b90d5ff5-14b2-4f4b-9435-c020a29067f9]

2021-01-03 21:29:32 | [Mutex] received everything.

2021-01-03 21:29:32 | [Mutex] isItemNotified: configured:node:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:node-b90d5ff5-14b2-4f4b-9435-c020a29067f9 :: true

2021-01-03 21:29:33 | [Mutex] waiting for: [received:nodes:944f65f5-5e34-4a4d-b0c7-2965037ad666:localhost]

2021-01-03 21:29:33 | [Mutex] received everything.

2021-01-03 21:29:33 | [Mutex] isItemNotified: received:node:944f65f5-5e34-4a4d-b0c7-2965037ad666:localhost:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:Node aa4c8322-dc30-482b-970d-af25a7b5e87c :: true

2021-01-03 21:29:33 | [Mutex] waiting for: [received:nodes:35e2c1c2-1229-43c1-b35d-02ef8cc0a579:localhost]

2021-01-03 21:29:33 | [Mutex] received everything.

2021-01-03 21:29:33 | [Mutex] isItemNotified: received:node:35e2c1c2-1229-43c1-b35d-02ef8cc0a579:localhost:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:Node aa4c8322-dc30-482b-970d-af25a7b5e87c :: false

createNodes 1.866s
2021-01-03 21:29:29 |

2021-01-03 21:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:29 | ------------------------------------

2021-01-03 21:29:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "pubsub#title": "Node aa4c8322-dc30-482b-970d-af25a7b5e87c"
}

2021-01-03 21:29:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:29:31 | [Mutex] waiting for: [received:nodes:0adc0df1-da15-43cf-a7ab-f6b6471e3bc1:localhost]

2021-01-03 21:29:31 | [Mutex] received everything.

2021-01-03 21:29:31 | [Mutex] isItemNotified: received:node:0adc0df1-da15-43cf-a7ab-f6b6471e3bc1:localhost:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:Node aa4c8322-dc30-482b-970d-af25a7b5e87c :: true

createSubnodes 1.024s
2021-01-03 21:29:31 |

2021-01-03 21:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:31 | ------------------------------------

2021-01-03 21:29:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b90d5ff5-14b2-4f4b-9435-c020a29067f9",
    "pubsub#title": "Node b90d5ff5-14b2-4f4b-9435-c020a29067f9"
}

2021-01-03 21:29:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:29:32 | [Mutex] waiting for: [received:nodes:126dc84b-cebb-475d-8375-4badbfa68638:localhost]

2021-01-03 21:29:32 | [Mutex] received everything.

2021-01-03 21:29:32 | [Mutex] isItemNotified: received:node:126dc84b-cebb-475d-8375-4badbfa68638:localhost:node-b90d5ff5-14b2-4f4b-9435-c020a29067f9:Node b90d5ff5-14b2-4f4b-9435-c020a29067f9 :: true

deleteNodes 1.018s
2021-01-03 21:29:36 |

2021-01-03 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:36 | ------------------------------------

2021-01-03 21:29:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b90d5ff5-14b2-4f4b-9435-c020a29067f9"
}

2021-01-03 21:29:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:29:37 | [Mutex] waiting for: [received:nodes:ec0684b9-e6cb-4319-8cf8-92ad686f7bc0:localhost]

2021-01-03 21:29:37 | [Mutex] received everything.

2021-01-03 21:29:37 | [Mutex] isItemNotified: received:node:ec0684b9-e6cb-4319-8cf8-92ad686f7bc0:localhost:node-b90d5ff5-14b2-4f4b-9435-c020a29067f9:Node b90d5ff5-14b2-4f4b-9435-c020a29067f9 :: false

deleteSubnodes 1.031s
2021-01-03 21:29:35 |

2021-01-03 21:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:35 | ------------------------------------

2021-01-03 21:29:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c"
}

2021-01-03 21:29:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:29:36 | [Mutex] waiting for: [received:nodes:07a662fd-7e51-48aa-9826-08411fff664f:localhost]

2021-01-03 21:29:36 | [Mutex] received everything.

2021-01-03 21:29:36 | [Mutex] isItemNotified: received:node:07a662fd-7e51-48aa-9826-08411fff664f:localhost:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:Node aa4c8322-dc30-482b-970d-af25a7b5e87c :: false

2021-01-03 21:29:36 | [Mutex] waiting for: [received:nodes:cdec7049-e6f1-48af-9347-455c1d7b4723:localhost]

2021-01-03 21:29:36 | [Mutex] received everything.

2021-01-03 21:29:36 | [Mutex] isItemNotified: received:node:cdec7049-e6f1-48af-9347-455c1d7b4723:localhost:node-aa4c8322-dc30-482b-970d-af25a7b5e87c:Node aa4c8322-dc30-482b-970d-af25a7b5e87c :: false

publishItemsToNodes 0.072s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "entry": "<test>item-5d13b36c-be49-4e99-91ad-9e3404b3c854</test>",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854"
}

2021-01-03 21:29:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854"
}

2021-01-03 21:29:34 | [Mutex] waiting for: [published:item:notifieditem-5d13b36c-be49-4e99-91ad-9e3404b3c854:admin@test-domain.com]

2021-01-03 21:29:34 | [Mutex] received everything.

2021-01-03 21:29:34 | [Mutex] isItemNotified: published:item:notifieditem-5d13b36c-be49-4e99-91ad-9e3404b3c854:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854"
}

2021-01-03 21:29:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854"
}

2021-01-03 21:29:34 | [Mutex] received everything.

2021-01-03 21:29:34 | [Mutex] isItemNotified: retracted:item:notifieditem-5d13b36c-be49-4e99-91ad-9e3404b3c854:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854"
}

2021-01-03 21:29:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "item-id": "item-5d13b36c-be49-4e99-91ad-9e3404b3c854",
    "item": [
        "<item id=\"item-5d13b36c-be49-4e99-91ad-9e3404b3c854\"><test>item-5d13b36c-be49-4e99-91ad-9e3404b3c854</test></item>"
    ]
}

2021-01-03 21:29:34 | [Mutex] notify: [retrieved:item:item-5d13b36c-be49-4e99-91ad-9e3404b3c854:payload-matches:true:localhost]

2021-01-03 21:29:34 | [Mutex] received everything.

2021-01-03 21:29:34 | [Mutex] isItemNotified: retrieved:item:item-5d13b36c-be49-4e99-91ad-9e3404b3c854:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.112s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-03 21:29:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b90d5ff5-14b2-4f4b-9435-c020a29067f9",
        "node-aa4c8322-dc30-482b-970d-af25a7b5e87c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-aa4c8322-dc30-482b-970d-af25a7b5e87c)"
}

2021-01-03 21:29:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2021-01-03 21:29:33 |

2021-01-03 21:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:33 | ------------------------------------

2021-01-03 21:29:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-03 21:29:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.099s
2021-01-03 21:29:34 |

2021-01-03 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:29:34 | ------------------------------------

2021-01-03 21:29:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-aa4c8322-dc30-482b-970d-af25a7b5e87c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-03 21:29:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}