Generated by TestNG with ReportNG at 21:50 PST on Monday 30 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.936s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.183s
2020-11-30 22:05:34 |

2020-11-30 22:05:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:34 | ------------------------------------

2020-11-30 22:05:34 | [Mutex] waiting for: [configured:node:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369]

2020-11-30 22:05:34 | [Mutex] received everything.

2020-11-30 22:05:34 | [Mutex] isItemNotified: configured:node:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369 :: true

2020-11-30 22:05:35 | [Mutex] waiting for: [received:nodes:e61b67bd-310a-4dc0-ac73-de3201f44acf:localhost]

2020-11-30 22:05:35 | [Mutex] received everything.

2020-11-30 22:05:35 | [Mutex] isItemNotified: received:node:e61b67bd-310a-4dc0-ac73-de3201f44acf:localhost:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad :: true

2020-11-30 22:05:35 | [Mutex] waiting for: [received:nodes:de9aef15-f36f-4965-9aaa-695f9f9bdc9f:localhost]

2020-11-30 22:05:35 | [Mutex] received everything.

2020-11-30 22:05:35 | [Mutex] isItemNotified: received:node:de9aef15-f36f-4965-9aaa-695f9f9bdc9f:localhost:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad :: false

createNodes 1.544s
2020-11-30 22:05:31 |

2020-11-30 22:05:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:31 | ------------------------------------

2020-11-30 22:05:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "pubsub#title": "Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad"
}

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

2020-11-30 22:05:33 | [Mutex] waiting for: [received:nodes:059cd41d-4fc2-4936-abb3-9b3434fc6f62:localhost]

2020-11-30 22:05:33 | [Mutex] received everything.

2020-11-30 22:05:33 | [Mutex] isItemNotified: received:node:059cd41d-4fc2-4936-abb3-9b3434fc6f62:localhost:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad :: true

createSubnodes 1.029s
2020-11-30 22:05:33 |

2020-11-30 22:05:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:33 | ------------------------------------

2020-11-30 22:05:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369",
    "pubsub#title": "Node a3b1c9d4-0b70-4a05-ab22-33618f4cc369"
}

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

2020-11-30 22:05:34 | [Mutex] waiting for: [received:nodes:529c5280-e06d-4424-8d7c-34314eefc4c6:localhost]

2020-11-30 22:05:34 | [Mutex] received everything.

2020-11-30 22:05:34 | [Mutex] isItemNotified: received:node:529c5280-e06d-4424-8d7c-34314eefc4c6:localhost:node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369:Node a3b1c9d4-0b70-4a05-ab22-33618f4cc369 :: true

deleteNodes 1.028s
2020-11-30 22:05:38 |

2020-11-30 22:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:38 | ------------------------------------

2020-11-30 22:05:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369"
}

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

2020-11-30 22:05:39 | [Mutex] waiting for: [received:nodes:4786846b-89bb-46b5-b850-744bc353c46d:localhost]

2020-11-30 22:05:39 | [Mutex] waiting for: [received:nodes:4786846b-89bb-46b5-b850-744bc353c46d:localhost]

2020-11-30 22:05:39 | [Mutex] received everything.

2020-11-30 22:05:39 | [Mutex] isItemNotified: received:node:4786846b-89bb-46b5-b850-744bc353c46d:localhost:node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369:Node a3b1c9d4-0b70-4a05-ab22-33618f4cc369 :: false

deleteSubnodes 1.025s
2020-11-30 22:05:37 |

2020-11-30 22:05:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:37 | ------------------------------------

2020-11-30 22:05:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad"
}

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

2020-11-30 22:05:38 | [Mutex] waiting for: [received:nodes:23ed8b79-120b-41ee-be2a-fdd15544c233:localhost]

2020-11-30 22:05:38 | [Mutex] waiting for: [received:nodes:23ed8b79-120b-41ee-be2a-fdd15544c233:localhost]

2020-11-30 22:05:38 | [Mutex] received everything.

2020-11-30 22:05:38 | [Mutex] isItemNotified: received:node:23ed8b79-120b-41ee-be2a-fdd15544c233:localhost:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad :: false

2020-11-30 22:05:38 | [Mutex] waiting for: [received:nodes:47ee1868-f050-485d-b380-279760a10973:localhost]

2020-11-30 22:05:38 | [Mutex] received everything.

2020-11-30 22:05:38 | [Mutex] isItemNotified: received:node:47ee1868-f050-485d-b380-279760a10973:localhost:node-2af66f63-0ff6-416e-98d5-2133c3fb3dad:Node 2af66f63-0ff6-416e-98d5-2133c3fb3dad :: false

publishItemsToNodes 0.043s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

2020-11-30 22:05:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "entry": "<test>item-98f0696e-5bb0-4b73-bc92-dcc007ac316e</test>",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e"
}

2020-11-30 22:05:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e"
}

2020-11-30 22:05:36 | [Mutex] waiting for: [published:item:notifieditem-98f0696e-5bb0-4b73-bc92-dcc007ac316e:admin@test-domain.com]

2020-11-30 22:05:36 | [Mutex] received everything.

2020-11-30 22:05:36 | [Mutex] isItemNotified: published:item:notifieditem-98f0696e-5bb0-4b73-bc92-dcc007ac316e:admin@test-domain.com :: true

retractItemsFromNodes 0.092s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

2020-11-30 22:05:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e"
}

2020-11-30 22:05:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e"
}

2020-11-30 22:05:36 | [Mutex] received everything.

2020-11-30 22:05:36 | [Mutex] isItemNotified: retracted:item:notifieditem-98f0696e-5bb0-4b73-bc92-dcc007ac316e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.043s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

2020-11-30 22:05:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e"
}

2020-11-30 22:05:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "item-id": "item-98f0696e-5bb0-4b73-bc92-dcc007ac316e",
    "item": [
        "<item id=\"item-98f0696e-5bb0-4b73-bc92-dcc007ac316e\"><test>item-98f0696e-5bb0-4b73-bc92-dcc007ac316e</test></item>"
    ]
}

2020-11-30 22:05:36 | [Mutex] notify: [retrieved:item:item-98f0696e-5bb0-4b73-bc92-dcc007ac316e:payload-matches:true:localhost]

2020-11-30 22:05:36 | [Mutex] received everything.

2020-11-30 22:05:36 | [Mutex] isItemNotified: retrieved:item:item-98f0696e-5bb0-4b73-bc92-dcc007ac316e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

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

2020-11-30 22:05:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
        "node-a3b1c9d4-0b70-4a05-ab22-33618f4cc369"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

2020-11-30 22:05:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2af66f63-0ff6-416e-98d5-2133c3fb3dad)"
}

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

subscribeNodes 1.020s
2020-11-30 22:05:35 |

2020-11-30 22:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:35 | ------------------------------------

2020-11-30 22:05:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-11-30 22:05:36 |

2020-11-30 22:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:05:36 | ------------------------------------

2020-11-30 22:05:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2af66f63-0ff6-416e-98d5-2133c3fb3dad",
    "jids": [
        "admin@test-domain.com"
    ]
}

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