Generated by TestNG with ReportNG at 22:16 PDT on Sunday 13 June 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.171s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-06-13 22:33:36 |

2021-06-13 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:36 | ------------------------------------

2021-06-13 22:33:36 | [Mutex] waiting for: [configured:node:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:node-b75ddf92-9b25-4cf1-847d-84e44c972dac]

2021-06-13 22:33:36 | [Mutex] received everything.

2021-06-13 22:33:36 | [Mutex] isItemNotified: configured:node:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:node-b75ddf92-9b25-4cf1-847d-84e44c972dac :: true

2021-06-13 22:33:37 | [Mutex] waiting for: [received:nodes:2803c1f5-b4cb-436b-b5a7-842bd5bb23d4:localhost]

2021-06-13 22:33:37 | [Mutex] received everything.

2021-06-13 22:33:37 | [Mutex] isItemNotified: received:node:2803c1f5-b4cb-436b-b5a7-842bd5bb23d4:localhost:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9 :: true

2021-06-13 22:33:37 | [Mutex] waiting for: [received:nodes:1a2272e9-4f51-4eff-a957-8651f0d57b3b:localhost]

2021-06-13 22:33:37 | [Mutex] waiting for: [received:nodes:1a2272e9-4f51-4eff-a957-8651f0d57b3b:localhost]

2021-06-13 22:33:37 | [Mutex] received everything.

2021-06-13 22:33:37 | [Mutex] isItemNotified: received:node:1a2272e9-4f51-4eff-a957-8651f0d57b3b:localhost:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9 :: false

createNodes 1.671s
2021-06-13 22:33:33 |

2021-06-13 22:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:33 | ------------------------------------

2021-06-13 22:33:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "pubsub#title": "Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9"
}

2021-06-13 22:33:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:33:35 | [Mutex] waiting for: [received:nodes:3fc76def-749c-4857-87a0-25ac8627c3c1:localhost]

2021-06-13 22:33:35 | [Mutex] received everything.

2021-06-13 22:33:35 | [Mutex] isItemNotified: received:node:3fc76def-749c-4857-87a0-25ac8627c3c1:localhost:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9 :: true

createSubnodes 1.024s
2021-06-13 22:33:35 |

2021-06-13 22:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:35 | ------------------------------------

2021-06-13 22:33:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b75ddf92-9b25-4cf1-847d-84e44c972dac",
    "pubsub#title": "Node b75ddf92-9b25-4cf1-847d-84e44c972dac"
}

2021-06-13 22:33:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:33:36 | [Mutex] waiting for: [received:nodes:f45273a1-79c1-47ed-94e8-1e9441218b21:localhost]

2021-06-13 22:33:36 | [Mutex] received everything.

2021-06-13 22:33:36 | [Mutex] isItemNotified: received:node:f45273a1-79c1-47ed-94e8-1e9441218b21:localhost:node-b75ddf92-9b25-4cf1-847d-84e44c972dac:Node b75ddf92-9b25-4cf1-847d-84e44c972dac :: true

deleteNodes 1.020s
2021-06-13 22:33:40 |

2021-06-13 22:33:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:40 | ------------------------------------

2021-06-13 22:33:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b75ddf92-9b25-4cf1-847d-84e44c972dac"
}

2021-06-13 22:33:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:33:41 | [Mutex] waiting for: [received:nodes:fdf0806e-3e71-49b2-9c2e-b3d7d2e12ab3:localhost]

2021-06-13 22:33:41 | [Mutex] received everything.

2021-06-13 22:33:41 | [Mutex] isItemNotified: received:node:fdf0806e-3e71-49b2-9c2e-b3d7d2e12ab3:localhost:node-b75ddf92-9b25-4cf1-847d-84e44c972dac:Node b75ddf92-9b25-4cf1-847d-84e44c972dac :: false

deleteSubnodes 1.031s
2021-06-13 22:33:39 |

2021-06-13 22:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:39 | ------------------------------------

2021-06-13 22:33:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9"
}

2021-06-13 22:33:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:33:40 | [Mutex] waiting for: [received:nodes:7537afde-d00e-4de5-a34e-216fabcce531:localhost]

2021-06-13 22:33:40 | [Mutex] received everything.

2021-06-13 22:33:40 | [Mutex] isItemNotified: received:node:7537afde-d00e-4de5-a34e-216fabcce531:localhost:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9 :: false

2021-06-13 22:33:40 | [Mutex] waiting for: [received:nodes:8481daef-1e0f-4a2b-b5cb-8e3007716485:localhost]

2021-06-13 22:33:40 | [Mutex] received everything.

2021-06-13 22:33:40 | [Mutex] isItemNotified: received:node:8481daef-1e0f-4a2b-b5cb-8e3007716485:localhost:node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9:Node 4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9 :: false

publishItemsToNodes 0.039s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "entry": "<test>item-df98fe58-26d1-4e05-8b40-e3985432550a</test>",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a"
}

2021-06-13 22:33:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a"
}

2021-06-13 22:33:38 | [Mutex] waiting for: [published:item:notifieditem-df98fe58-26d1-4e05-8b40-e3985432550a:admin@test-domain.com]

2021-06-13 22:33:38 | [Mutex] received everything.

2021-06-13 22:33:38 | [Mutex] isItemNotified: published:item:notifieditem-df98fe58-26d1-4e05-8b40-e3985432550a:admin@test-domain.com :: true

retractItemsFromNodes 0.119s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a"
}

2021-06-13 22:33:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a"
}

2021-06-13 22:33:38 | [Mutex] received everything.

2021-06-13 22:33:38 | [Mutex] isItemNotified: retracted:item:notifieditem-df98fe58-26d1-4e05-8b40-e3985432550a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a"
}

2021-06-13 22:33:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "item-id": "item-df98fe58-26d1-4e05-8b40-e3985432550a",
    "item": [
        "<item id=\"item-df98fe58-26d1-4e05-8b40-e3985432550a\"><test>item-df98fe58-26d1-4e05-8b40-e3985432550a</test></item>"
    ]
}

2021-06-13 22:33:38 | [Mutex] notify: [retrieved:item:item-df98fe58-26d1-4e05-8b40-e3985432550a:payload-matches:true:localhost]

2021-06-13 22:33:38 | [Mutex] received everything.

2021-06-13 22:33:38 | [Mutex] isItemNotified: retrieved:item:item-df98fe58-26d1-4e05-8b40-e3985432550a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-13 22:33:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
        "node-b75ddf92-9b25-4cf1-847d-84e44c972dac"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9)"
}

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

subscribeNodes 1.016s
2021-06-13 22:33:37 |

2021-06-13 22:33:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:37 | ------------------------------------

2021-06-13 22:33:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-13 22:33:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-06-13 22:33:38 |

2021-06-13 22:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:33:38 | ------------------------------------

2021-06-13 22:33:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4cedf6a8-3f7b-4ea1-85ad-24f0c2b9c4f9",
    "jids": [
        "admin@test-domain.com"
    ]
}

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