Generated by TestNG with ReportNG at 23:43 PDT on Thursday 27 August 2020
root@18d694fe8e0a / 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.988s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.082s
2020-08-28 00:00:20 |

2020-08-28 00:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:20 | ------------------------------------

2020-08-28 00:00:20 | [Mutex] waiting for: [configured:node:node-bf97d99d-a38d-4394-8064-e7a9138a9162:node-f83dd72b-5d40-4c95-a781-afbcf4e42acd]

2020-08-28 00:00:20 | [Mutex] received everything.

2020-08-28 00:00:20 | [Mutex] isItemNotified: configured:node:node-bf97d99d-a38d-4394-8064-e7a9138a9162:node-f83dd72b-5d40-4c95-a781-afbcf4e42acd :: true

2020-08-28 00:00:21 | [Mutex] waiting for: [received:nodes:af234a2f-07a9-4016-811a-165eef5835f7:localhost]

2020-08-28 00:00:21 | [Mutex] received everything.

2020-08-28 00:00:21 | [Mutex] isItemNotified: received:node:af234a2f-07a9-4016-811a-165eef5835f7:localhost:node-bf97d99d-a38d-4394-8064-e7a9138a9162:Node bf97d99d-a38d-4394-8064-e7a9138a9162 :: true

2020-08-28 00:00:21 | [Mutex] waiting for: [received:nodes:1f24f150-a78f-4791-b3ba-aaab1fe9a72f:localhost]

2020-08-28 00:00:21 | [Mutex] received everything.

2020-08-28 00:00:21 | [Mutex] isItemNotified: received:node:1f24f150-a78f-4791-b3ba-aaab1fe9a72f:localhost:node-bf97d99d-a38d-4394-8064-e7a9138a9162:Node bf97d99d-a38d-4394-8064-e7a9138a9162 :: false

createNodes 1.636s
2020-08-28 00:00:17 |

2020-08-28 00:00:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:17 | ------------------------------------

2020-08-28 00:00:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "pubsub#title": "Node bf97d99d-a38d-4394-8064-e7a9138a9162"
}

2020-08-28 00:00:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-28 00:00:19 | [Mutex] waiting for: [received:nodes:88ee22d4-d625-4471-a1c1-130f03e74a7c:localhost]

2020-08-28 00:00:19 | [Mutex] received everything.

2020-08-28 00:00:19 | [Mutex] isItemNotified: received:node:88ee22d4-d625-4471-a1c1-130f03e74a7c:localhost:node-bf97d99d-a38d-4394-8064-e7a9138a9162:Node bf97d99d-a38d-4394-8064-e7a9138a9162 :: true

createSubnodes 1.025s
2020-08-28 00:00:19 |

2020-08-28 00:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:19 | ------------------------------------

2020-08-28 00:00:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f83dd72b-5d40-4c95-a781-afbcf4e42acd",
    "pubsub#title": "Node f83dd72b-5d40-4c95-a781-afbcf4e42acd"
}

2020-08-28 00:00:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-28 00:00:20 | [Mutex] waiting for: [received:nodes:aecc646a-3c0e-49be-bf46-1759ea083463:localhost]

2020-08-28 00:00:20 | [Mutex] received everything.

2020-08-28 00:00:20 | [Mutex] isItemNotified: received:node:aecc646a-3c0e-49be-bf46-1759ea083463:localhost:node-f83dd72b-5d40-4c95-a781-afbcf4e42acd:Node f83dd72b-5d40-4c95-a781-afbcf4e42acd :: true

deleteNodes 1.035s
2020-08-28 00:00:24 |

2020-08-28 00:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:24 | ------------------------------------

2020-08-28 00:00:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f83dd72b-5d40-4c95-a781-afbcf4e42acd"
}

2020-08-28 00:00:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-28 00:00:25 | [Mutex] waiting for: [received:nodes:3aa624f8-6b0b-400b-9bdd-e26b32f3cf89:localhost]

2020-08-28 00:00:25 | [Mutex] waiting for: [received:nodes:3aa624f8-6b0b-400b-9bdd-e26b32f3cf89:localhost]

2020-08-28 00:00:25 | [Mutex] received everything.

2020-08-28 00:00:25 | [Mutex] isItemNotified: received:node:3aa624f8-6b0b-400b-9bdd-e26b32f3cf89:localhost:node-f83dd72b-5d40-4c95-a781-afbcf4e42acd:Node f83dd72b-5d40-4c95-a781-afbcf4e42acd :: false

deleteSubnodes 1.025s
2020-08-28 00:00:23 |

2020-08-28 00:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:23 | ------------------------------------

2020-08-28 00:00:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162"
}

2020-08-28 00:00:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-28 00:00:24 | [Mutex] waiting for: [received:nodes:bff2bf74-4a67-4a38-847c-e99d04d497f9:localhost]

2020-08-28 00:00:24 | [Mutex] received everything.

2020-08-28 00:00:24 | [Mutex] isItemNotified: received:node:bff2bf74-4a67-4a38-847c-e99d04d497f9:localhost:node-bf97d99d-a38d-4394-8064-e7a9138a9162:Node bf97d99d-a38d-4394-8064-e7a9138a9162 :: false

2020-08-28 00:00:24 | [Mutex] waiting for: [received:nodes:ba9a58cc-e7be-4435-86b8-5b95a45603da:localhost]

2020-08-28 00:00:24 | [Mutex] received everything.

2020-08-28 00:00:24 | [Mutex] isItemNotified: received:node:ba9a58cc-e7be-4435-86b8-5b95a45603da:localhost:node-bf97d99d-a38d-4394-8064-e7a9138a9162:Node bf97d99d-a38d-4394-8064-e7a9138a9162 :: false

publishItemsToNodes 0.047s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

2020-08-28 00:00:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "entry": "<test>item-c4fbf259-d554-4bd0-9207-657c5480dc51</test>",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51"
}

2020-08-28 00:00:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51"
}

2020-08-28 00:00:22 | [Mutex] waiting for: [published:item:notifieditem-c4fbf259-d554-4bd0-9207-657c5480dc51:admin@test-domain.com]

2020-08-28 00:00:22 | [Mutex] received everything.

2020-08-28 00:00:22 | [Mutex] isItemNotified: published:item:notifieditem-c4fbf259-d554-4bd0-9207-657c5480dc51:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

2020-08-28 00:00:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51"
}

2020-08-28 00:00:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51"
}

2020-08-28 00:00:22 | [Mutex] received everything.

2020-08-28 00:00:22 | [Mutex] isItemNotified: retracted:item:notifieditem-c4fbf259-d554-4bd0-9207-657c5480dc51:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

2020-08-28 00:00:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51"
}

2020-08-28 00:00:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "item-id": "item-c4fbf259-d554-4bd0-9207-657c5480dc51",
    "item": [
        "<item id=\"item-c4fbf259-d554-4bd0-9207-657c5480dc51\"><test>item-c4fbf259-d554-4bd0-9207-657c5480dc51</test></item>"
    ]
}

2020-08-28 00:00:22 | [Mutex] notify: [retrieved:item:item-c4fbf259-d554-4bd0-9207-657c5480dc51:payload-matches:true:localhost]

2020-08-28 00:00:22 | [Mutex] received everything.

2020-08-28 00:00:22 | [Mutex] isItemNotified: retrieved:item:item-c4fbf259-d554-4bd0-9207-657c5480dc51:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

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

2020-08-28 00:00:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
        "node-f83dd72b-5d40-4c95-a781-afbcf4e42acd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

2020-08-28 00:00:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bf97d99d-a38d-4394-8064-e7a9138a9162)"
}

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

subscribeNodes 1.009s
2020-08-28 00:00:21 |

2020-08-28 00:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:21 | ------------------------------------

2020-08-28 00:00:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-28 00:00:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-08-28 00:00:22 |

2020-08-28 00:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-28 00:00:22 | ------------------------------------

2020-08-28 00:00:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bf97d99d-a38d-4394-8064-e7a9138a9162",
    "jids": [
        "admin@test-domain.com"
    ]
}

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