Generated by TestNG with ReportNG at 21:14 PST on Monday 08 March 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 : 8.894s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2021-03-08 21:28:55 |

2021-03-08 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:55 | ------------------------------------

2021-03-08 21:28:55 | [Mutex] waiting for: [configured:node:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:node-5e067766-9d1e-46fd-a016-c0371ce17cab]

2021-03-08 21:28:55 | [Mutex] received everything.

2021-03-08 21:28:55 | [Mutex] isItemNotified: configured:node:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:node-5e067766-9d1e-46fd-a016-c0371ce17cab :: true

2021-03-08 21:28:56 | [Mutex] waiting for: [received:nodes:7ce7fc0d-7afd-459e-929f-4a9a29e0c8fc:localhost]

2021-03-08 21:28:56 | [Mutex] received everything.

2021-03-08 21:28:56 | [Mutex] isItemNotified: received:node:7ce7fc0d-7afd-459e-929f-4a9a29e0c8fc:localhost:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573 :: true

2021-03-08 21:28:56 | [Mutex] waiting for: [received:nodes:4c52af6f-9e04-4802-83de-02931dcc314b:localhost]

2021-03-08 21:28:56 | [Mutex] received everything.

2021-03-08 21:28:56 | [Mutex] isItemNotified: received:node:4c52af6f-9e04-4802-83de-02931dcc314b:localhost:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573 :: false

createNodes 1.557s
2021-03-08 21:28:52 |

2021-03-08 21:28:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:52 | ------------------------------------

2021-03-08 21:28:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "pubsub#title": "Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573"
}

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

2021-03-08 21:28:54 | [Mutex] waiting for: [received:nodes:5c457173-c116-4c78-b8e3-5c5c9848ea7a:localhost]

2021-03-08 21:28:54 | [Mutex] waiting for: [received:nodes:5c457173-c116-4c78-b8e3-5c5c9848ea7a:localhost]

2021-03-08 21:28:54 | [Mutex] received everything.

2021-03-08 21:28:54 | [Mutex] isItemNotified: received:node:5c457173-c116-4c78-b8e3-5c5c9848ea7a:localhost:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573 :: true

createSubnodes 1.031s
2021-03-08 21:28:54 |

2021-03-08 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:54 | ------------------------------------

2021-03-08 21:28:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5e067766-9d1e-46fd-a016-c0371ce17cab",
    "pubsub#title": "Node 5e067766-9d1e-46fd-a016-c0371ce17cab"
}

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

2021-03-08 21:28:55 | [Mutex] waiting for: [received:nodes:2e7563a7-6239-493b-a6c2-f11c0884e478:localhost]

2021-03-08 21:28:55 | [Mutex] waiting for: [received:nodes:2e7563a7-6239-493b-a6c2-f11c0884e478:localhost]

2021-03-08 21:28:55 | [Mutex] received everything.

2021-03-08 21:28:55 | [Mutex] isItemNotified: received:node:2e7563a7-6239-493b-a6c2-f11c0884e478:localhost:node-5e067766-9d1e-46fd-a016-c0371ce17cab:Node 5e067766-9d1e-46fd-a016-c0371ce17cab :: true

deleteNodes 1.022s
2021-03-08 21:28:59 |

2021-03-08 21:28:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:59 | ------------------------------------

2021-03-08 21:28:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5e067766-9d1e-46fd-a016-c0371ce17cab"
}

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

2021-03-08 21:29:00 | [Mutex] waiting for: [received:nodes:25e8aee8-87ff-4108-ad70-53b110b8e2ab:localhost]

2021-03-08 21:29:00 | [Mutex] received everything.

2021-03-08 21:29:00 | [Mutex] isItemNotified: received:node:25e8aee8-87ff-4108-ad70-53b110b8e2ab:localhost:node-5e067766-9d1e-46fd-a016-c0371ce17cab:Node 5e067766-9d1e-46fd-a016-c0371ce17cab :: false

deleteSubnodes 1.049s
2021-03-08 21:28:58 |

2021-03-08 21:28:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:58 | ------------------------------------

2021-03-08 21:28:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573"
}

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

2021-03-08 21:28:59 | [Mutex] waiting for: [received:nodes:f183e643-343f-4697-8c22-2969abb6771b:localhost]

2021-03-08 21:28:59 | [Mutex] waiting for: [received:nodes:f183e643-343f-4697-8c22-2969abb6771b:localhost]

2021-03-08 21:28:59 | [Mutex] waiting for: [received:nodes:f183e643-343f-4697-8c22-2969abb6771b:localhost]

2021-03-08 21:28:59 | [Mutex] received everything.

2021-03-08 21:28:59 | [Mutex] isItemNotified: received:node:f183e643-343f-4697-8c22-2969abb6771b:localhost:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573 :: false

2021-03-08 21:28:59 | [Mutex] waiting for: [received:nodes:41e1cf6b-4604-4ba8-9990-a6ab3e17f3c2:localhost]

2021-03-08 21:28:59 | [Mutex] received everything.

2021-03-08 21:28:59 | [Mutex] isItemNotified: received:node:41e1cf6b-4604-4ba8-9990-a6ab3e17f3c2:localhost:node-0f1cdd97-b06b-4aa2-ae19-26eee0824573:Node 0f1cdd97-b06b-4aa2-ae19-26eee0824573 :: false

publishItemsToNodes 0.035s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

2021-03-08 21:28:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "entry": "<test>item-12ce80e9-2a50-4d38-9faa-4afbb27d8610</test>",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610"
}

2021-03-08 21:28:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610"
}

2021-03-08 21:28:57 | [Mutex] waiting for: [published:item:notifieditem-12ce80e9-2a50-4d38-9faa-4afbb27d8610:admin@test-domain.com]

2021-03-08 21:28:57 | [Mutex] received everything.

2021-03-08 21:28:57 | [Mutex] isItemNotified: published:item:notifieditem-12ce80e9-2a50-4d38-9faa-4afbb27d8610:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

2021-03-08 21:28:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610"
}

2021-03-08 21:28:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610"
}

2021-03-08 21:28:57 | [Mutex] waiting for: [retracted:item:notifieditem-12ce80e9-2a50-4d38-9faa-4afbb27d8610:admin@test-domain.com]

2021-03-08 21:28:57 | [Mutex] received everything.

2021-03-08 21:28:57 | [Mutex] isItemNotified: retracted:item:notifieditem-12ce80e9-2a50-4d38-9faa-4afbb27d8610:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

2021-03-08 21:28:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610"
}

2021-03-08 21:28:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "item-id": "item-12ce80e9-2a50-4d38-9faa-4afbb27d8610",
    "item": [
        "<item id=\"item-12ce80e9-2a50-4d38-9faa-4afbb27d8610\"><test>item-12ce80e9-2a50-4d38-9faa-4afbb27d8610</test></item>"
    ]
}

2021-03-08 21:28:57 | [Mutex] notify: [retrieved:item:item-12ce80e9-2a50-4d38-9faa-4afbb27d8610:payload-matches:true:localhost]

2021-03-08 21:28:57 | [Mutex] received everything.

2021-03-08 21:28:57 | [Mutex] isItemNotified: retrieved:item:item-12ce80e9-2a50-4d38-9faa-4afbb27d8610:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

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

2021-03-08 21:28:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
        "test",
        "node-5e067766-9d1e-46fd-a016-c0371ce17cab"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

2021-03-08 21:28:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0f1cdd97-b06b-4aa2-ae19-26eee0824573)"
}

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

subscribeNodes 1.010s
2021-03-08 21:28:56 |

2021-03-08 21:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:56 | ------------------------------------

2021-03-08 21:28:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2021-03-08 21:28:57 |

2021-03-08 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:28:57 | ------------------------------------

2021-03-08 21:28:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0f1cdd97-b06b-4aa2-ae19-26eee0824573",
    "jids": [
        "admin@test-domain.com"
    ]
}

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