Generated by TestNG with ReportNG at 22:25 PDT on Tuesday 27 October 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 : 9.156s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.163s
2020-10-27 22:40:39 |

2020-10-27 22:40:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:39 | ------------------------------------

2020-10-27 22:40:39 | [Mutex] waiting for: [configured:node:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:node-98409df5-e065-4bf5-9c63-fbb27be18ce8]

2020-10-27 22:40:40 | [Mutex] received everything.

2020-10-27 22:40:40 | [Mutex] isItemNotified: configured:node:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:node-98409df5-e065-4bf5-9c63-fbb27be18ce8 :: true

2020-10-27 22:40:41 | [Mutex] waiting for: [received:nodes:fc3f0559-8983-400b-8967-1bb65d857507:localhost]

2020-10-27 22:40:41 | [Mutex] received everything.

2020-10-27 22:40:41 | [Mutex] isItemNotified: received:node:fc3f0559-8983-400b-8967-1bb65d857507:localhost:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b :: true

2020-10-27 22:40:41 | [Mutex] waiting for: [received:nodes:23e7fbbb-2190-4310-a685-83d5b701036f:localhost]

2020-10-27 22:40:41 | [Mutex] received everything.

2020-10-27 22:40:41 | [Mutex] isItemNotified: received:node:23e7fbbb-2190-4310-a685-83d5b701036f:localhost:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b :: false

createNodes 1.736s
2020-10-27 22:40:37 |

2020-10-27 22:40:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:37 | ------------------------------------

2020-10-27 22:40:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "pubsub#title": "Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b"
}

2020-10-27 22:40:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:40:38 | [Mutex] waiting for: [received:nodes:e57829a7-a75a-4828-8e0f-602ea065f860:localhost]

2020-10-27 22:40:38 | [Mutex] waiting for: [received:nodes:e57829a7-a75a-4828-8e0f-602ea065f860:localhost]

2020-10-27 22:40:38 | [Mutex] received everything.

2020-10-27 22:40:38 | [Mutex] isItemNotified: received:node:e57829a7-a75a-4828-8e0f-602ea065f860:localhost:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b :: true

createSubnodes 1.026s
2020-10-27 22:40:38 |

2020-10-27 22:40:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:38 | ------------------------------------

2020-10-27 22:40:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-98409df5-e065-4bf5-9c63-fbb27be18ce8",
    "pubsub#title": "Node 98409df5-e065-4bf5-9c63-fbb27be18ce8"
}

2020-10-27 22:40:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:40:39 | [Mutex] waiting for: [received:nodes:11d0c6ea-99b1-4670-bfc2-4ce0c74c56bf:localhost]

2020-10-27 22:40:39 | [Mutex] received everything.

2020-10-27 22:40:39 | [Mutex] isItemNotified: received:node:11d0c6ea-99b1-4670-bfc2-4ce0c74c56bf:localhost:node-98409df5-e065-4bf5-9c63-fbb27be18ce8:Node 98409df5-e065-4bf5-9c63-fbb27be18ce8 :: true

deleteNodes 1.031s
2020-10-27 22:40:44 |

2020-10-27 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:44 | ------------------------------------

2020-10-27 22:40:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-98409df5-e065-4bf5-9c63-fbb27be18ce8"
}

2020-10-27 22:40:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:40:45 | [Mutex] waiting for: [received:nodes:122c448f-6715-4131-a61b-8af6eced5980:localhost]

2020-10-27 22:40:45 | [Mutex] received everything.

2020-10-27 22:40:45 | [Mutex] isItemNotified: received:node:122c448f-6715-4131-a61b-8af6eced5980:localhost:node-98409df5-e065-4bf5-9c63-fbb27be18ce8:Node 98409df5-e065-4bf5-9c63-fbb27be18ce8 :: false

deleteSubnodes 1.033s
2020-10-27 22:40:43 |

2020-10-27 22:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:43 | ------------------------------------

2020-10-27 22:40:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b"
}

2020-10-27 22:40:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:40:44 | [Mutex] waiting for: [received:nodes:b2092332-0f77-4465-ac11-833e7fcc9d23:localhost]

2020-10-27 22:40:44 | [Mutex] received everything.

2020-10-27 22:40:44 | [Mutex] isItemNotified: received:node:b2092332-0f77-4465-ac11-833e7fcc9d23:localhost:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b :: false

2020-10-27 22:40:44 | [Mutex] waiting for: [received:nodes:24baf17f-de73-4959-8794-8bd6efd97925:localhost]

2020-10-27 22:40:44 | [Mutex] received everything.

2020-10-27 22:40:44 | [Mutex] isItemNotified: received:node:24baf17f-de73-4959-8794-8bd6efd97925:localhost:node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b:Node e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b :: false

publishItemsToNodes 0.051s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "entry": "<test>item-81e0c62e-19cf-4237-93d8-70bbc02e6157</test>",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157"
}

2020-10-27 22:40:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157"
}

2020-10-27 22:40:42 | [Mutex] waiting for: [published:item:notifieditem-81e0c62e-19cf-4237-93d8-70bbc02e6157:admin@test-domain.com]

2020-10-27 22:40:42 | [Mutex] received everything.

2020-10-27 22:40:42 | [Mutex] isItemNotified: published:item:notifieditem-81e0c62e-19cf-4237-93d8-70bbc02e6157:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157"
}

2020-10-27 22:40:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157"
}

2020-10-27 22:40:42 | [Mutex] received everything.

2020-10-27 22:40:42 | [Mutex] isItemNotified: retracted:item:notifieditem-81e0c62e-19cf-4237-93d8-70bbc02e6157:admin@test-domain.com :: true

retrieveItemsFromNodes 0.106s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157"
}

2020-10-27 22:40:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "item-id": "item-81e0c62e-19cf-4237-93d8-70bbc02e6157",
    "item": [
        "<item id=\"item-81e0c62e-19cf-4237-93d8-70bbc02e6157\"><test>item-81e0c62e-19cf-4237-93d8-70bbc02e6157</test></item>"
    ]
}

2020-10-27 22:40:42 | [Mutex] notify: [retrieved:item:item-81e0c62e-19cf-4237-93d8-70bbc02e6157:payload-matches:true:localhost]

2020-10-27 22:40:42 | [Mutex] received everything.

2020-10-27 22:40:42 | [Mutex] isItemNotified: retrieved:item:item-81e0c62e-19cf-4237-93d8-70bbc02e6157:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-27 22:40:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
        "node-98409df5-e065-4bf5-9c63-fbb27be18ce8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b)"
}

2020-10-27 22:40:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-10-27 22:40:41 |

2020-10-27 22:40:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:41 | ------------------------------------

2020-10-27 22:40:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:40:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-10-27 22:40:42 |

2020-10-27 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:40:42 | ------------------------------------

2020-10-27 22:40:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e7bef8a8-8c04-4dc6-81ea-f2ba29e61e4b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:40:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}