Generated by TestNG with ReportNG at 22:30 PDT on Tuesday 15 September 2020
root@3545fe38ecd8 / 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.985s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-09-15 22:47:08 |

2020-09-15 22:47:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:08 | ------------------------------------

2020-09-15 22:47:08 | [Mutex] waiting for: [configured:node:node-18f67f38-9557-4f32-887b-ff7dee99da2e:node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe]

2020-09-15 22:47:08 | [Mutex] received everything.

2020-09-15 22:47:08 | [Mutex] isItemNotified: configured:node:node-18f67f38-9557-4f32-887b-ff7dee99da2e:node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe :: true

2020-09-15 22:47:09 | [Mutex] waiting for: [received:nodes:c5d404d3-8da9-42c9-9866-4d2c08a8b45d:localhost]

2020-09-15 22:47:09 | [Mutex] received everything.

2020-09-15 22:47:09 | [Mutex] isItemNotified: received:node:c5d404d3-8da9-42c9-9866-4d2c08a8b45d:localhost:node-18f67f38-9557-4f32-887b-ff7dee99da2e:Node 18f67f38-9557-4f32-887b-ff7dee99da2e :: true

2020-09-15 22:47:09 | [Mutex] waiting for: [received:nodes:63d2b1b3-cba8-4d12-b480-461963709084:localhost]

2020-09-15 22:47:09 | [Mutex] received everything.

2020-09-15 22:47:09 | [Mutex] isItemNotified: received:node:63d2b1b3-cba8-4d12-b480-461963709084:localhost:node-18f67f38-9557-4f32-887b-ff7dee99da2e:Node 18f67f38-9557-4f32-887b-ff7dee99da2e :: false

createNodes 1.686s
2020-09-15 22:47:05 |

2020-09-15 22:47:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:05 | ------------------------------------

2020-09-15 22:47:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "pubsub#title": "Node 18f67f38-9557-4f32-887b-ff7dee99da2e"
}

2020-09-15 22:47:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 22:47:07 | [Mutex] waiting for: [received:nodes:e8c5bdde-9fc3-4b1e-9da5-edebddff2148:localhost]

2020-09-15 22:47:07 | [Mutex] waiting for: [received:nodes:e8c5bdde-9fc3-4b1e-9da5-edebddff2148:localhost]

2020-09-15 22:47:07 | [Mutex] received everything.

2020-09-15 22:47:07 | [Mutex] isItemNotified: received:node:e8c5bdde-9fc3-4b1e-9da5-edebddff2148:localhost:node-18f67f38-9557-4f32-887b-ff7dee99da2e:Node 18f67f38-9557-4f32-887b-ff7dee99da2e :: true

createSubnodes 1.026s
2020-09-15 22:47:07 |

2020-09-15 22:47:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:07 | ------------------------------------

2020-09-15 22:47:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe",
    "pubsub#title": "Node 8388ae2b-f9f5-4ac6-beb6-f9abf351dffe"
}

2020-09-15 22:47:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 22:47:08 | [Mutex] waiting for: [received:nodes:7b0c5677-b7d5-49e2-959d-611e9bc8bc87:localhost]

2020-09-15 22:47:08 | [Mutex] received everything.

2020-09-15 22:47:08 | [Mutex] isItemNotified: received:node:7b0c5677-b7d5-49e2-959d-611e9bc8bc87:localhost:node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe:Node 8388ae2b-f9f5-4ac6-beb6-f9abf351dffe :: true

deleteNodes 1.021s
2020-09-15 22:47:12 |

2020-09-15 22:47:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:12 | ------------------------------------

2020-09-15 22:47:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe"
}

2020-09-15 22:47:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 22:47:13 | [Mutex] waiting for: [received:nodes:994ed84f-d55c-43c1-94ad-bf26d31f93dd:localhost]

2020-09-15 22:47:13 | [Mutex] received everything.

2020-09-15 22:47:13 | [Mutex] isItemNotified: received:node:994ed84f-d55c-43c1-94ad-bf26d31f93dd:localhost:node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe:Node 8388ae2b-f9f5-4ac6-beb6-f9abf351dffe :: false

deleteSubnodes 1.023s
2020-09-15 22:47:11 |

2020-09-15 22:47:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:11 | ------------------------------------

2020-09-15 22:47:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e"
}

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

2020-09-15 22:47:12 | [Mutex] waiting for: [received:nodes:a30bd15e-4bad-40e5-8e1b-cc9d35209cf0:localhost]

2020-09-15 22:47:12 | [Mutex] received everything.

2020-09-15 22:47:12 | [Mutex] isItemNotified: received:node:a30bd15e-4bad-40e5-8e1b-cc9d35209cf0:localhost:node-18f67f38-9557-4f32-887b-ff7dee99da2e:Node 18f67f38-9557-4f32-887b-ff7dee99da2e :: false

2020-09-15 22:47:12 | [Mutex] waiting for: [received:nodes:4cfc4648-e718-4ad8-b7cd-303bcc905d8a:localhost]

2020-09-15 22:47:12 | [Mutex] received everything.

2020-09-15 22:47:12 | [Mutex] isItemNotified: received:node:4cfc4648-e718-4ad8-b7cd-303bcc905d8a:localhost:node-18f67f38-9557-4f32-887b-ff7dee99da2e:Node 18f67f38-9557-4f32-887b-ff7dee99da2e :: false

publishItemsToNodes 0.032s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

2020-09-15 22:47:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "entry": "<test>item-50a4bc2c-c28b-49f4-a2f5-4010661e221e</test>",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e"
}

2020-09-15 22:47:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e"
}

2020-09-15 22:47:10 | [Mutex] received everything.

2020-09-15 22:47:10 | [Mutex] isItemNotified: published:item:notifieditem-50a4bc2c-c28b-49f4-a2f5-4010661e221e:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

2020-09-15 22:47:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e"
}

2020-09-15 22:47:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e"
}

2020-09-15 22:47:10 | [Mutex] received everything.

2020-09-15 22:47:10 | [Mutex] isItemNotified: retracted:item:notifieditem-50a4bc2c-c28b-49f4-a2f5-4010661e221e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

2020-09-15 22:47:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e"
}

2020-09-15 22:47:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "item-id": "item-50a4bc2c-c28b-49f4-a2f5-4010661e221e",
    "item": [
        "<item id=\"item-50a4bc2c-c28b-49f4-a2f5-4010661e221e\"><test>item-50a4bc2c-c28b-49f4-a2f5-4010661e221e</test></item>"
    ]
}

2020-09-15 22:47:10 | [Mutex] notify: [retrieved:item:item-50a4bc2c-c28b-49f4-a2f5-4010661e221e:payload-matches:true:localhost]

2020-09-15 22:47:10 | [Mutex] received everything.

2020-09-15 22:47:10 | [Mutex] isItemNotified: retrieved:item:item-50a4bc2c-c28b-49f4-a2f5-4010661e221e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

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

2020-09-15 22:47:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
        "node-8388ae2b-f9f5-4ac6-beb6-f9abf351dffe"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

2020-09-15 22:47:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-18f67f38-9557-4f32-887b-ff7dee99da2e)"
}

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

subscribeNodes 1.010s
2020-09-15 22:47:09 |

2020-09-15 22:47:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:09 | ------------------------------------

2020-09-15 22:47:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-15 22:47:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2020-09-15 22:47:10 |

2020-09-15 22:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 22:47:10 | ------------------------------------

2020-09-15 22:47:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-18f67f38-9557-4f32-887b-ff7dee99da2e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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