Generated by TestNG with ReportNG at 21:42 PST on Monday 23 November 2020
root@87f6aca6b6f2 / 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.021s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-11-23 21:57:14 |

2020-11-23 21:57:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:14 | ------------------------------------

2020-11-23 21:57:15 | [Mutex] waiting for: [configured:node:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:node-b3ff0277-0436-4c0e-8d15-828c3e17669e]

2020-11-23 21:57:15 | [Mutex] received everything.

2020-11-23 21:57:15 | [Mutex] isItemNotified: configured:node:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:node-b3ff0277-0436-4c0e-8d15-828c3e17669e :: true

2020-11-23 21:57:16 | [Mutex] waiting for: [received:nodes:e4426362-9041-4e51-a93b-79c7346480e0:localhost]

2020-11-23 21:57:16 | [Mutex] waiting for: [received:nodes:e4426362-9041-4e51-a93b-79c7346480e0:localhost]

2020-11-23 21:57:16 | [Mutex] received everything.

2020-11-23 21:57:16 | [Mutex] isItemNotified: received:node:e4426362-9041-4e51-a93b-79c7346480e0:localhost:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010 :: true

2020-11-23 21:57:16 | [Mutex] waiting for: [received:nodes:092a7d1e-c128-438a-93e6-ff8cf2bcb2e4:localhost]

2020-11-23 21:57:16 | [Mutex] waiting for: [received:nodes:092a7d1e-c128-438a-93e6-ff8cf2bcb2e4:localhost]

2020-11-23 21:57:16 | [Mutex] waiting for: [received:nodes:092a7d1e-c128-438a-93e6-ff8cf2bcb2e4:localhost]

2020-11-23 21:57:16 | [Mutex] received everything.

2020-11-23 21:57:16 | [Mutex] isItemNotified: received:node:092a7d1e-c128-438a-93e6-ff8cf2bcb2e4:localhost:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010 :: false

createNodes 1.602s
2020-11-23 21:57:12 |

2020-11-23 21:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:12 | ------------------------------------

2020-11-23 21:57:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "pubsub#title": "Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010"
}

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

2020-11-23 21:57:13 | [Mutex] waiting for: [received:nodes:ded36713-372d-4087-9742-ae19bb2dffdb:localhost]

2020-11-23 21:57:13 | [Mutex] received everything.

2020-11-23 21:57:13 | [Mutex] isItemNotified: received:node:ded36713-372d-4087-9742-ae19bb2dffdb:localhost:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010 :: true

createSubnodes 1.035s
2020-11-23 21:57:13 |

2020-11-23 21:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:13 | ------------------------------------

2020-11-23 21:57:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b3ff0277-0436-4c0e-8d15-828c3e17669e",
    "pubsub#title": "Node b3ff0277-0436-4c0e-8d15-828c3e17669e"
}

2020-11-23 21:57:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:57:14 | [Mutex] waiting for: [received:nodes:81fac0bb-d364-499b-a18c-d25bc12b11d4:localhost]

2020-11-23 21:57:14 | [Mutex] waiting for: [received:nodes:81fac0bb-d364-499b-a18c-d25bc12b11d4:localhost]

2020-11-23 21:57:14 | [Mutex] received everything.

2020-11-23 21:57:14 | [Mutex] isItemNotified: received:node:81fac0bb-d364-499b-a18c-d25bc12b11d4:localhost:node-b3ff0277-0436-4c0e-8d15-828c3e17669e:Node b3ff0277-0436-4c0e-8d15-828c3e17669e :: true

deleteNodes 1.030s
2020-11-23 21:57:19 |

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

2020-11-23 21:57:19 | ------------------------------------

2020-11-23 21:57:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3ff0277-0436-4c0e-8d15-828c3e17669e"
}

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

2020-11-23 21:57:20 | [Mutex] waiting for: [received:nodes:95ef1a6b-e8d0-472f-a2db-36a2926904f0:localhost]

2020-11-23 21:57:20 | [Mutex] waiting for: [received:nodes:95ef1a6b-e8d0-472f-a2db-36a2926904f0:localhost]

2020-11-23 21:57:20 | [Mutex] received everything.

2020-11-23 21:57:20 | [Mutex] isItemNotified: received:node:95ef1a6b-e8d0-472f-a2db-36a2926904f0:localhost:node-b3ff0277-0436-4c0e-8d15-828c3e17669e:Node b3ff0277-0436-4c0e-8d15-828c3e17669e :: false

deleteSubnodes 1.040s
2020-11-23 21:57:18 |

2020-11-23 21:57:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:18 | ------------------------------------

2020-11-23 21:57:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010"
}

2020-11-23 21:57:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:57:19 | [Mutex] waiting for: [received:nodes:a1a4dffc-ad63-4508-a696-462d3b204e72:localhost]

2020-11-23 21:57:19 | [Mutex] waiting for: [received:nodes:a1a4dffc-ad63-4508-a696-462d3b204e72:localhost]

2020-11-23 21:57:19 | [Mutex] received everything.

2020-11-23 21:57:19 | [Mutex] isItemNotified: received:node:a1a4dffc-ad63-4508-a696-462d3b204e72:localhost:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010 :: false

2020-11-23 21:57:19 | [Mutex] waiting for: [received:nodes:06a5ade4-f597-402f-aa6c-b47fc5e6569f:localhost]

2020-11-23 21:57:19 | [Mutex] received everything.

2020-11-23 21:57:19 | [Mutex] isItemNotified: received:node:06a5ade4-f597-402f-aa6c-b47fc5e6569f:localhost:node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010:Node 6d2cbc7b-dcec-4cb2-b701-592c3ae7a010 :: false

publishItemsToNodes 0.049s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "entry": "<test>item-d245948b-d5a0-43dc-926b-cdc289567e2d</test>",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d"
}

2020-11-23 21:57:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d"
}

2020-11-23 21:57:17 | [Mutex] waiting for: [published:item:notifieditem-d245948b-d5a0-43dc-926b-cdc289567e2d:admin@test-domain.com]

2020-11-23 21:57:17 | [Mutex] received everything.

2020-11-23 21:57:17 | [Mutex] isItemNotified: published:item:notifieditem-d245948b-d5a0-43dc-926b-cdc289567e2d:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d"
}

2020-11-23 21:57:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d"
}

2020-11-23 21:57:17 | [Mutex] received everything.

2020-11-23 21:57:17 | [Mutex] isItemNotified: retracted:item:notifieditem-d245948b-d5a0-43dc-926b-cdc289567e2d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d"
}

2020-11-23 21:57:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "item-id": "item-d245948b-d5a0-43dc-926b-cdc289567e2d",
    "item": [
        "<item id=\"item-d245948b-d5a0-43dc-926b-cdc289567e2d\"><test>item-d245948b-d5a0-43dc-926b-cdc289567e2d</test></item>"
    ]
}

2020-11-23 21:57:17 | [Mutex] notify: [retrieved:item:item-d245948b-d5a0-43dc-926b-cdc289567e2d:payload-matches:true:localhost]

2020-11-23 21:57:17 | [Mutex] received everything.

2020-11-23 21:57:17 | [Mutex] isItemNotified: retrieved:item:item-d245948b-d5a0-43dc-926b-cdc289567e2d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-23 21:57:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b3ff0277-0436-4c0e-8d15-828c3e17669e",
        "test",
        "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010"
    ]
}

retrieveUserSubscriptionsWithRegex 0.054s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010)"
}

2020-11-23 21:57:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-11-23 21:57:16 |

2020-11-23 21:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:16 | ------------------------------------

2020-11-23 21:57:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-23 21:57:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2020-11-23 21:57:17 |

2020-11-23 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:57:17 | ------------------------------------

2020-11-23 21:57:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6d2cbc7b-dcec-4cb2-b701-592c3ae7a010",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-23 21:57:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}