Generated by TestNG with ReportNG at 21:47 PST on Thursday 19 November 2020
root@43fec6d4badf / 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.945s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2020-11-19 22:01:57 |

2020-11-19 22:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:01:57 | ------------------------------------

2020-11-19 22:01:57 | [Mutex] waiting for: [configured:node:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:node-ba417706-24a9-4077-b135-3f14fcd60e71]

2020-11-19 22:01:57 | [Mutex] received everything.

2020-11-19 22:01:57 | [Mutex] isItemNotified: configured:node:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:node-ba417706-24a9-4077-b135-3f14fcd60e71 :: true

2020-11-19 22:01:58 | [Mutex] waiting for: [received:nodes:919cc3af-2405-43cc-ba22-731c1b3f108e:localhost]

2020-11-19 22:01:58 | [Mutex] received everything.

2020-11-19 22:01:58 | [Mutex] isItemNotified: received:node:919cc3af-2405-43cc-ba22-731c1b3f108e:localhost:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc :: true

2020-11-19 22:01:58 | [Mutex] waiting for: [received:nodes:85ee6f83-7e33-4efa-970d-f19abeb25926:localhost]

2020-11-19 22:01:58 | [Mutex] received everything.

2020-11-19 22:01:58 | [Mutex] isItemNotified: received:node:85ee6f83-7e33-4efa-970d-f19abeb25926:localhost:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc :: false

createNodes 1.547s
2020-11-19 22:01:55 |

2020-11-19 22:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:01:55 | ------------------------------------

2020-11-19 22:01: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-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "pubsub#title": "Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc"
}

2020-11-19 22:01:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-19 22:01:56 | [Mutex] waiting for: [received:nodes:8f944670-1cb9-49ff-ab88-6bd0a4d8a2d3:localhost]

2020-11-19 22:01:56 | [Mutex] received everything.

2020-11-19 22:01:56 | [Mutex] isItemNotified: received:node:8f944670-1cb9-49ff-ab88-6bd0a4d8a2d3:localhost:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc :: true

createSubnodes 1.034s
2020-11-19 22:01:56 |

2020-11-19 22:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:01:56 | ------------------------------------

2020-11-19 22:01: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-ba417706-24a9-4077-b135-3f14fcd60e71",
    "pubsub#title": "Node ba417706-24a9-4077-b135-3f14fcd60e71"
}

2020-11-19 22:01:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-19 22:01:57 | [Mutex] waiting for: [received:nodes:bb3e92f5-c07c-4139-a4f2-daf255532400:localhost]

2020-11-19 22:01:57 | [Mutex] received everything.

2020-11-19 22:01:57 | [Mutex] isItemNotified: received:node:bb3e92f5-c07c-4139-a4f2-daf255532400:localhost:node-ba417706-24a9-4077-b135-3f14fcd60e71:Node ba417706-24a9-4077-b135-3f14fcd60e71 :: true

deleteNodes 1.022s
2020-11-19 22:02:02 |

2020-11-19 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:02 | ------------------------------------

2020-11-19 22:02:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ba417706-24a9-4077-b135-3f14fcd60e71"
}

2020-11-19 22:02:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-19 22:02:03 | [Mutex] waiting for: [received:nodes:c1efb434-76a0-4a2e-a2e6-dc5a34f38cd3:localhost]

2020-11-19 22:02:03 | [Mutex] waiting for: [received:nodes:c1efb434-76a0-4a2e-a2e6-dc5a34f38cd3:localhost]

2020-11-19 22:02:03 | [Mutex] received everything.

2020-11-19 22:02:03 | [Mutex] isItemNotified: received:node:c1efb434-76a0-4a2e-a2e6-dc5a34f38cd3:localhost:node-ba417706-24a9-4077-b135-3f14fcd60e71:Node ba417706-24a9-4077-b135-3f14fcd60e71 :: false

deleteSubnodes 1.028s
2020-11-19 22:02:01 |

2020-11-19 22:02:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:01 | ------------------------------------

2020-11-19 22:02:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc"
}

2020-11-19 22:02:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-19 22:02:02 | [Mutex] waiting for: [received:nodes:3412f11f-981c-447b-b231-3285adc57b2c:localhost]

2020-11-19 22:02:02 | [Mutex] waiting for: [received:nodes:3412f11f-981c-447b-b231-3285adc57b2c:localhost]

2020-11-19 22:02:02 | [Mutex] received everything.

2020-11-19 22:02:02 | [Mutex] isItemNotified: received:node:3412f11f-981c-447b-b231-3285adc57b2c:localhost:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc :: false

2020-11-19 22:02:02 | [Mutex] waiting for: [received:nodes:55986e29-d403-4c96-8998-d7544ac781cd:localhost]

2020-11-19 22:02:02 | [Mutex] received everything.

2020-11-19 22:02:02 | [Mutex] isItemNotified: received:node:55986e29-d403-4c96-8998-d7544ac781cd:localhost:node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc:Node 7e285a3f-c908-40f5-a10b-3a32bdeab1cc :: false

publishItemsToNodes 0.051s
2020-11-19 22:01:59 |

2020-11-19 22:01:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:01:59 | ------------------------------------

2020-11-19 22:01:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "entry": "<test>item-9a466180-760d-400b-824f-ba3a8d9c25c1</test>",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1"
}

2020-11-19 22:01:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1"
}

2020-11-19 22:01:59 | [Mutex] waiting for: [published:item:notifieditem-9a466180-760d-400b-824f-ba3a8d9c25c1:admin@test-domain.com]

2020-11-19 22:02:00 | [Mutex] received everything.

2020-11-19 22:02:00 | [Mutex] isItemNotified: published:item:notifieditem-9a466180-760d-400b-824f-ba3a8d9c25c1:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-11-19 22:02:00 |

2020-11-19 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:00 | ------------------------------------

2020-11-19 22:02:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1"
}

2020-11-19 22:02:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1"
}

2020-11-19 22:02:00 | [Mutex] received everything.

2020-11-19 22:02:00 | [Mutex] isItemNotified: retracted:item:notifieditem-9a466180-760d-400b-824f-ba3a8d9c25c1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.039s
2020-11-19 22:02:00 |

2020-11-19 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:00 | ------------------------------------

2020-11-19 22:02:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1"
}

2020-11-19 22:02:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "item-id": "item-9a466180-760d-400b-824f-ba3a8d9c25c1",
    "item": [
        "<item id=\"item-9a466180-760d-400b-824f-ba3a8d9c25c1\"><test>item-9a466180-760d-400b-824f-ba3a8d9c25c1</test></item>"
    ]
}

2020-11-19 22:02:00 | [Mutex] notify: [retrieved:item:item-9a466180-760d-400b-824f-ba3a8d9c25c1:payload-matches:true:localhost]

2020-11-19 22:02:00 | [Mutex] received everything.

2020-11-19 22:02:00 | [Mutex] isItemNotified: retrieved:item:item-9a466180-760d-400b-824f-ba3a8d9c25c1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.070s
2020-11-19 22:02:00 |

2020-11-19 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:00 | ------------------------------------

2020-11-19 22:02:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-19 22:02:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ba417706-24a9-4077-b135-3f14fcd60e71",
        "test",
        "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-19 22:02:00 |

2020-11-19 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:00 | ------------------------------------

2020-11-19 22:02:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc)"
}

2020-11-19 22:02:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-11-19 22:01:58 |

2020-11-19 22:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:01:58 | ------------------------------------

2020-11-19 22:01:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-19 22:01:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-11-19 22:02:00 |

2020-11-19 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-19 22:02:00 | ------------------------------------

2020-11-19 22:02:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7e285a3f-c908-40f5-a10b-3a32bdeab1cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-19 22:02:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}