Generated by TestNG with ReportNG at 22:18 PDT on Tuesday 20 October 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.383s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2020-10-20 22:33:22 |

2020-10-20 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:22 | ------------------------------------

2020-10-20 22:33:22 | [Mutex] waiting for: [configured:node:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:node-7a475bc4-cba5-4b08-8986-f2ecb02ece21]

2020-10-20 22:33:23 | [Mutex] received everything.

2020-10-20 22:33:23 | [Mutex] isItemNotified: configured:node:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:node-7a475bc4-cba5-4b08-8986-f2ecb02ece21 :: true

2020-10-20 22:33:24 | [Mutex] waiting for: [received:nodes:d3e0c2b4-ac82-4fb6-aced-800a6bb53f3c:localhost]

2020-10-20 22:33:24 | [Mutex] received everything.

2020-10-20 22:33:24 | [Mutex] isItemNotified: received:node:d3e0c2b4-ac82-4fb6-aced-800a6bb53f3c:localhost:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3 :: true

2020-10-20 22:33:24 | [Mutex] waiting for: [received:nodes:4b762cbc-2ae9-454b-8c1c-c1b584ebf6c0:localhost]

2020-10-20 22:33:24 | [Mutex] waiting for: [received:nodes:4b762cbc-2ae9-454b-8c1c-c1b584ebf6c0:localhost]

2020-10-20 22:33:24 | [Mutex] received everything.

2020-10-20 22:33:24 | [Mutex] isItemNotified: received:node:4b762cbc-2ae9-454b-8c1c-c1b584ebf6c0:localhost:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3 :: false

createNodes 1.840s
2020-10-20 22:33:20 |

2020-10-20 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:20 | ------------------------------------

2020-10-20 22:33:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "pubsub#title": "Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3"
}

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

2020-10-20 22:33:21 | [Mutex] waiting for: [received:nodes:90a3eda2-d05f-4a41-b9e5-1fd2e4d8f811:localhost]

2020-10-20 22:33:21 | [Mutex] received everything.

2020-10-20 22:33:21 | [Mutex] isItemNotified: received:node:90a3eda2-d05f-4a41-b9e5-1fd2e4d8f811:localhost:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3 :: true

createSubnodes 1.030s
2020-10-20 22:33:21 |

2020-10-20 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:21 | ------------------------------------

2020-10-20 22:33:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7a475bc4-cba5-4b08-8986-f2ecb02ece21",
    "pubsub#title": "Node 7a475bc4-cba5-4b08-8986-f2ecb02ece21"
}

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

2020-10-20 22:33:22 | [Mutex] waiting for: [received:nodes:e5ced01e-ff96-4086-9866-4017b685bd29:localhost]

2020-10-20 22:33:22 | [Mutex] received everything.

2020-10-20 22:33:22 | [Mutex] isItemNotified: received:node:e5ced01e-ff96-4086-9866-4017b685bd29:localhost:node-7a475bc4-cba5-4b08-8986-f2ecb02ece21:Node 7a475bc4-cba5-4b08-8986-f2ecb02ece21 :: true

deleteNodes 1.022s
2020-10-20 22:33:27 |

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

2020-10-20 22:33:27 | ------------------------------------

2020-10-20 22:33:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a475bc4-cba5-4b08-8986-f2ecb02ece21"
}

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

2020-10-20 22:33:28 | [Mutex] waiting for: [received:nodes:3b376612-a4e6-46b8-894c-96cc71ef1563:localhost]

2020-10-20 22:33:28 | [Mutex] waiting for: [received:nodes:3b376612-a4e6-46b8-894c-96cc71ef1563:localhost]

2020-10-20 22:33:28 | [Mutex] waiting for: [received:nodes:3b376612-a4e6-46b8-894c-96cc71ef1563:localhost]

2020-10-20 22:33:28 | [Mutex] received everything.

2020-10-20 22:33:28 | [Mutex] isItemNotified: received:node:3b376612-a4e6-46b8-894c-96cc71ef1563:localhost:node-7a475bc4-cba5-4b08-8986-f2ecb02ece21:Node 7a475bc4-cba5-4b08-8986-f2ecb02ece21 :: false

deleteSubnodes 1.032s
2020-10-20 22:33:26 |

2020-10-20 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:26 | ------------------------------------

2020-10-20 22:33:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3"
}

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

2020-10-20 22:33:27 | [Mutex] waiting for: [received:nodes:965f4518-4c0f-4487-8f4a-67fa40343640:localhost]

2020-10-20 22:33:27 | [Mutex] waiting for: [received:nodes:965f4518-4c0f-4487-8f4a-67fa40343640:localhost]

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

2020-10-20 22:33:27 | [Mutex] isItemNotified: received:node:965f4518-4c0f-4487-8f4a-67fa40343640:localhost:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3 :: false

2020-10-20 22:33:27 | [Mutex] waiting for: [received:nodes:2bbee8ea-8a11-486f-8ccc-5fd5ad633095:localhost]

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

2020-10-20 22:33:27 | [Mutex] isItemNotified: received:node:2bbee8ea-8a11-486f-8ccc-5fd5ad633095:localhost:node-6526f7ee-86d8-429c-96e8-7c63095a4ec3:Node 6526f7ee-86d8-429c-96e8-7c63095a4ec3 :: false

publishItemsToNodes 0.105s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

2020-10-20 22:33:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "entry": "<test>item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6</test>",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6"
}

2020-10-20 22:33:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6"
}

2020-10-20 22:33:25 | [Mutex] waiting for: [published:item:notifieditem-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:admin@test-domain.com]

2020-10-20 22:33:25 | [Mutex] received everything.

2020-10-20 22:33:25 | [Mutex] isItemNotified: published:item:notifieditem-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

2020-10-20 22:33:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6"
}

2020-10-20 22:33:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6"
}

2020-10-20 22:33:25 | [Mutex] waiting for: [retracted:item:notifieditem-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:admin@test-domain.com]

2020-10-20 22:33:25 | [Mutex] received everything.

2020-10-20 22:33:25 | [Mutex] isItemNotified: retracted:item:notifieditem-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

2020-10-20 22:33:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6"
}

2020-10-20 22:33:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "item-id": "item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6",
    "item": [
        "<item id=\"item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6\"><test>item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6</test></item>"
    ]
}

2020-10-20 22:33:25 | [Mutex] notify: [retrieved:item:item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:payload-matches:true:localhost]

2020-10-20 22:33:25 | [Mutex] received everything.

2020-10-20 22:33:25 | [Mutex] isItemNotified: retrieved:item:item-fb48df24-4bf2-49f8-96b0-c3d05b9562e6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

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

2020-10-20 22:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7a475bc4-cba5-4b08-8986-f2ecb02ece21",
        "test",
        "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

2020-10-20 22:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6526f7ee-86d8-429c-96e8-7c63095a4ec3)"
}

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

subscribeNodes 1.011s
2020-10-20 22:33:24 |

2020-10-20 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:24 | ------------------------------------

2020-10-20 22:33:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.143s
2020-10-20 22:33:25 |

2020-10-20 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 22:33:25 | ------------------------------------

2020-10-20 22:33:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6526f7ee-86d8-429c-96e8-7c63095a4ec3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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