Generated by TestNG with ReportNG at 21:41 PST on Tuesday 29 December 2020
root@eaa73862192b / 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.204s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2020-12-29 21:58:46 |

2020-12-29 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:46 | ------------------------------------

2020-12-29 21:58:46 | [Mutex] waiting for: [configured:node:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:node-b192bc39-ed95-4eab-9d28-04c108815d48]

2020-12-29 21:58:46 | [Mutex] received everything.

2020-12-29 21:58:46 | [Mutex] isItemNotified: configured:node:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:node-b192bc39-ed95-4eab-9d28-04c108815d48 :: true

2020-12-29 21:58:47 | [Mutex] waiting for: [received:nodes:4b6120a8-f522-48ce-a6d2-ee4a117aba9e:localhost]

2020-12-29 21:58:47 | [Mutex] received everything.

2020-12-29 21:58:47 | [Mutex] isItemNotified: received:node:4b6120a8-f522-48ce-a6d2-ee4a117aba9e:localhost:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:Node a1f5e965-c550-43cb-9fdc-bf44652cdc81 :: true

2020-12-29 21:58:47 | [Mutex] waiting for: [received:nodes:852bf6ec-6704-4572-8356-3528e06862b0:localhost]

2020-12-29 21:58:47 | [Mutex] waiting for: [received:nodes:852bf6ec-6704-4572-8356-3528e06862b0:localhost]

2020-12-29 21:58:47 | [Mutex] waiting for: [received:nodes:852bf6ec-6704-4572-8356-3528e06862b0:localhost]

2020-12-29 21:58:47 | [Mutex] received everything.

2020-12-29 21:58:47 | [Mutex] isItemNotified: received:node:852bf6ec-6704-4572-8356-3528e06862b0:localhost:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:Node a1f5e965-c550-43cb-9fdc-bf44652cdc81 :: false

createNodes 1.764s
2020-12-29 21:58:43 |

2020-12-29 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:43 | ------------------------------------

2020-12-29 21:58:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "pubsub#title": "Node a1f5e965-c550-43cb-9fdc-bf44652cdc81"
}

2020-12-29 21:58:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:58:45 | [Mutex] waiting for: [received:nodes:d0d9a5d9-fdf9-43ce-8388-80439043a40f:localhost]

2020-12-29 21:58:45 | [Mutex] received everything.

2020-12-29 21:58:45 | [Mutex] isItemNotified: received:node:d0d9a5d9-fdf9-43ce-8388-80439043a40f:localhost:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:Node a1f5e965-c550-43cb-9fdc-bf44652cdc81 :: true

createSubnodes 1.030s
2020-12-29 21:58:45 |

2020-12-29 21:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:45 | ------------------------------------

2020-12-29 21:58:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b192bc39-ed95-4eab-9d28-04c108815d48",
    "pubsub#title": "Node b192bc39-ed95-4eab-9d28-04c108815d48"
}

2020-12-29 21:58:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:58:46 | [Mutex] waiting for: [received:nodes:6fbf8d9b-cf89-410c-aaec-e52a7031c89b:localhost]

2020-12-29 21:58:46 | [Mutex] received everything.

2020-12-29 21:58:46 | [Mutex] isItemNotified: received:node:6fbf8d9b-cf89-410c-aaec-e52a7031c89b:localhost:node-b192bc39-ed95-4eab-9d28-04c108815d48:Node b192bc39-ed95-4eab-9d28-04c108815d48 :: true

deleteNodes 1.027s
2020-12-29 21:58:51 |

2020-12-29 21:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:51 | ------------------------------------

2020-12-29 21:58:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b192bc39-ed95-4eab-9d28-04c108815d48"
}

2020-12-29 21:58:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:58:52 | [Mutex] waiting for: [received:nodes:6ee3d680-07f8-4d85-a37d-e05628b04042:localhost]

2020-12-29 21:58:52 | [Mutex] received everything.

2020-12-29 21:58:52 | [Mutex] isItemNotified: received:node:6ee3d680-07f8-4d85-a37d-e05628b04042:localhost:node-b192bc39-ed95-4eab-9d28-04c108815d48:Node b192bc39-ed95-4eab-9d28-04c108815d48 :: false

deleteSubnodes 1.034s
2020-12-29 21:58:50 |

2020-12-29 21:58:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:50 | ------------------------------------

2020-12-29 21:58:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81"
}

2020-12-29 21:58:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:58:51 | [Mutex] waiting for: [received:nodes:afdef934-d35b-4b7a-96e9-b7e1a5429cd2:localhost]

2020-12-29 21:58:51 | [Mutex] received everything.

2020-12-29 21:58:51 | [Mutex] isItemNotified: received:node:afdef934-d35b-4b7a-96e9-b7e1a5429cd2:localhost:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:Node a1f5e965-c550-43cb-9fdc-bf44652cdc81 :: false

2020-12-29 21:58:51 | [Mutex] waiting for: [received:nodes:35a637b0-6f61-4fbc-a9ce-5c2c93fad6d0:localhost]

2020-12-29 21:58:51 | [Mutex] received everything.

2020-12-29 21:58:51 | [Mutex] isItemNotified: received:node:35a637b0-6f61-4fbc-a9ce-5c2c93fad6d0:localhost:node-a1f5e965-c550-43cb-9fdc-bf44652cdc81:Node a1f5e965-c550-43cb-9fdc-bf44652cdc81 :: false

publishItemsToNodes 0.051s
2020-12-29 21:58:48 |

2020-12-29 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:48 | ------------------------------------

2020-12-29 21:58:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "entry": "<test>item-c581ae36-0ab2-440c-9bec-0db9c707e38e</test>",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e"
}

2020-12-29 21:58:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e"
}

2020-12-29 21:58:48 | [Mutex] waiting for: [published:item:notifieditem-c581ae36-0ab2-440c-9bec-0db9c707e38e:admin@test-domain.com]

2020-12-29 21:58:48 | [Mutex] received everything.

2020-12-29 21:58:48 | [Mutex] isItemNotified: published:item:notifieditem-c581ae36-0ab2-440c-9bec-0db9c707e38e:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2020-12-29 21:58:48 |

2020-12-29 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:48 | ------------------------------------

2020-12-29 21:58:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e"
}

2020-12-29 21:58:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e"
}

2020-12-29 21:58:49 | [Mutex] waiting for: [retracted:item:notifieditem-c581ae36-0ab2-440c-9bec-0db9c707e38e:admin@test-domain.com]

2020-12-29 21:58:49 | [Mutex] received everything.

2020-12-29 21:58:49 | [Mutex] isItemNotified: retracted:item:notifieditem-c581ae36-0ab2-440c-9bec-0db9c707e38e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.119s
2020-12-29 21:58:48 |

2020-12-29 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:48 | ------------------------------------

2020-12-29 21:58:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e"
}

2020-12-29 21:58:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "item-id": "item-c581ae36-0ab2-440c-9bec-0db9c707e38e",
    "item": [
        "<item id=\"item-c581ae36-0ab2-440c-9bec-0db9c707e38e\"><test>item-c581ae36-0ab2-440c-9bec-0db9c707e38e</test></item>"
    ]
}

2020-12-29 21:58:48 | [Mutex] notify: [retrieved:item:item-c581ae36-0ab2-440c-9bec-0db9c707e38e:payload-matches:true:localhost]

2020-12-29 21:58:48 | [Mutex] received everything.

2020-12-29 21:58:48 | [Mutex] isItemNotified: retrieved:item:item-c581ae36-0ab2-440c-9bec-0db9c707e38e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-12-29 21:58:48 |

2020-12-29 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:48 | ------------------------------------

2020-12-29 21:58:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-29 21:58:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b192bc39-ed95-4eab-9d28-04c108815d48",
        "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-12-29 21:58:48 |

2020-12-29 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:48 | ------------------------------------

2020-12-29 21:58:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a1f5e965-c550-43cb-9fdc-bf44652cdc81)"
}

2020-12-29 21:58:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-12-29 21:58:47 |

2020-12-29 21:58:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:47 | ------------------------------------

2020-12-29 21:58:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:58:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-12-29 21:58:49 |

2020-12-29 21:58:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:58:49 | ------------------------------------

2020-12-29 21:58:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a1f5e965-c550-43cb-9fdc-bf44652cdc81",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:58:49 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}