Generated by TestNG with ReportNG at 21:40 PST on Wednesday 18 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.327s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.128s
2020-11-18 21:55:40 |

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

2020-11-18 21:55:40 | ------------------------------------

2020-11-18 21:55:40 | [Mutex] waiting for: [configured:node:node-3a9c1675-1364-490c-9073-8a317657b6f1:node-19b9d807-486e-4ab3-afb2-b56ea172d5dd]

2020-11-18 21:55:41 | [Mutex] received everything.

2020-11-18 21:55:41 | [Mutex] isItemNotified: configured:node:node-3a9c1675-1364-490c-9073-8a317657b6f1:node-19b9d807-486e-4ab3-afb2-b56ea172d5dd :: true

2020-11-18 21:55:42 | [Mutex] waiting for: [received:nodes:5025653f-50fe-4812-aaa1-2409898d974d:localhost]

2020-11-18 21:55:42 | [Mutex] waiting for: [received:nodes:5025653f-50fe-4812-aaa1-2409898d974d:localhost]

2020-11-18 21:55:42 | [Mutex] received everything.

2020-11-18 21:55:42 | [Mutex] isItemNotified: received:node:5025653f-50fe-4812-aaa1-2409898d974d:localhost:node-3a9c1675-1364-490c-9073-8a317657b6f1:Node 3a9c1675-1364-490c-9073-8a317657b6f1 :: true

2020-11-18 21:55:42 | [Mutex] waiting for: [received:nodes:70e7b60e-3b19-4f48-81b3-968885966bd6:localhost]

2020-11-18 21:55:42 | [Mutex] waiting for: [received:nodes:70e7b60e-3b19-4f48-81b3-968885966bd6:localhost]

2020-11-18 21:55:42 | [Mutex] received everything.

2020-11-18 21:55:42 | [Mutex] isItemNotified: received:node:70e7b60e-3b19-4f48-81b3-968885966bd6:localhost:node-3a9c1675-1364-490c-9073-8a317657b6f1:Node 3a9c1675-1364-490c-9073-8a317657b6f1 :: false

createNodes 1.769s
2020-11-18 21:55:38 |

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

2020-11-18 21:55:38 | ------------------------------------

2020-11-18 21:55:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "pubsub#title": "Node 3a9c1675-1364-490c-9073-8a317657b6f1"
}

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

2020-11-18 21:55:39 | [Mutex] waiting for: [received:nodes:6340113b-f711-447a-93b7-6a15a71b335c:localhost]

2020-11-18 21:55:39 | [Mutex] waiting for: [received:nodes:6340113b-f711-447a-93b7-6a15a71b335c:localhost]

2020-11-18 21:55:39 | [Mutex] received everything.

2020-11-18 21:55:39 | [Mutex] isItemNotified: received:node:6340113b-f711-447a-93b7-6a15a71b335c:localhost:node-3a9c1675-1364-490c-9073-8a317657b6f1:Node 3a9c1675-1364-490c-9073-8a317657b6f1 :: true

createSubnodes 1.035s
2020-11-18 21:55:39 |

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

2020-11-18 21:55:39 | ------------------------------------

2020-11-18 21:55:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-19b9d807-486e-4ab3-afb2-b56ea172d5dd",
    "pubsub#title": "Node 19b9d807-486e-4ab3-afb2-b56ea172d5dd"
}

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

2020-11-18 21:55:40 | [Mutex] waiting for: [received:nodes:b812f689-4867-48e1-ab44-9e5a7e825cb3:localhost]

2020-11-18 21:55:40 | [Mutex] waiting for: [received:nodes:b812f689-4867-48e1-ab44-9e5a7e825cb3:localhost]

2020-11-18 21:55:40 | [Mutex] received everything.

2020-11-18 21:55:40 | [Mutex] isItemNotified: received:node:b812f689-4867-48e1-ab44-9e5a7e825cb3:localhost:node-19b9d807-486e-4ab3-afb2-b56ea172d5dd:Node 19b9d807-486e-4ab3-afb2-b56ea172d5dd :: true

deleteNodes 1.028s
2020-11-18 21:55:45 |

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

2020-11-18 21:55:45 | ------------------------------------

2020-11-18 21:55:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19b9d807-486e-4ab3-afb2-b56ea172d5dd"
}

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

2020-11-18 21:55:46 | [Mutex] waiting for: [received:nodes:edf2fdea-692d-4982-9d43-fc24cf591881:localhost]

2020-11-18 21:55:46 | [Mutex] waiting for: [received:nodes:edf2fdea-692d-4982-9d43-fc24cf591881:localhost]

2020-11-18 21:55:46 | [Mutex] waiting for: [received:nodes:edf2fdea-692d-4982-9d43-fc24cf591881:localhost]

2020-11-18 21:55:46 | [Mutex] received everything.

2020-11-18 21:55:46 | [Mutex] isItemNotified: received:node:edf2fdea-692d-4982-9d43-fc24cf591881:localhost:node-19b9d807-486e-4ab3-afb2-b56ea172d5dd:Node 19b9d807-486e-4ab3-afb2-b56ea172d5dd :: false

deleteSubnodes 1.033s
2020-11-18 21:55:44 |

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

2020-11-18 21:55:44 | ------------------------------------

2020-11-18 21:55:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1"
}

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

2020-11-18 21:55:45 | [Mutex] waiting for: [received:nodes:79debf24-1eef-4ff1-812f-a48a6d6293b3:localhost]

2020-11-18 21:55:45 | [Mutex] waiting for: [received:nodes:79debf24-1eef-4ff1-812f-a48a6d6293b3:localhost]

2020-11-18 21:55:45 | [Mutex] received everything.

2020-11-18 21:55:45 | [Mutex] isItemNotified: received:node:79debf24-1eef-4ff1-812f-a48a6d6293b3:localhost:node-3a9c1675-1364-490c-9073-8a317657b6f1:Node 3a9c1675-1364-490c-9073-8a317657b6f1 :: false

2020-11-18 21:55:45 | [Mutex] waiting for: [received:nodes:f89393cb-8821-4819-ade1-cca1eed027ac:localhost]

2020-11-18 21:55:45 | [Mutex] received everything.

2020-11-18 21:55:45 | [Mutex] isItemNotified: received:node:f89393cb-8821-4819-ade1-cca1eed027ac:localhost:node-3a9c1675-1364-490c-9073-8a317657b6f1:Node 3a9c1675-1364-490c-9073-8a317657b6f1 :: false

publishItemsToNodes 0.059s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

2020-11-18 21:55:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "entry": "<test>item-d16897bb-e0af-4681-90af-bca6719d1de5</test>",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5"
}

2020-11-18 21:55:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5"
}

2020-11-18 21:55:43 | [Mutex] waiting for: [published:item:notifieditem-d16897bb-e0af-4681-90af-bca6719d1de5:admin@test-domain.com]

2020-11-18 21:55:43 | [Mutex] received everything.

2020-11-18 21:55:43 | [Mutex] isItemNotified: published:item:notifieditem-d16897bb-e0af-4681-90af-bca6719d1de5:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

2020-11-18 21:55:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5"
}

2020-11-18 21:55:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5"
}

2020-11-18 21:55:43 | [Mutex] received everything.

2020-11-18 21:55:43 | [Mutex] isItemNotified: retracted:item:notifieditem-d16897bb-e0af-4681-90af-bca6719d1de5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.101s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

2020-11-18 21:55:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5"
}

2020-11-18 21:55:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "item-id": "item-d16897bb-e0af-4681-90af-bca6719d1de5",
    "item": [
        "<item id=\"item-d16897bb-e0af-4681-90af-bca6719d1de5\"><test>item-d16897bb-e0af-4681-90af-bca6719d1de5</test></item>"
    ]
}

2020-11-18 21:55:43 | [Mutex] notify: [retrieved:item:item-d16897bb-e0af-4681-90af-bca6719d1de5:payload-matches:true:localhost]

2020-11-18 21:55:43 | [Mutex] received everything.

2020-11-18 21:55:43 | [Mutex] isItemNotified: retrieved:item:item-d16897bb-e0af-4681-90af-bca6719d1de5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

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

2020-11-18 21:55:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-19b9d807-486e-4ab3-afb2-b56ea172d5dd",
        "test",
        "node-3a9c1675-1364-490c-9073-8a317657b6f1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

2020-11-18 21:55:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3a9c1675-1364-490c-9073-8a317657b6f1)"
}

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

subscribeNodes 1.013s
2020-11-18 21:55:42 |

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

2020-11-18 21:55:42 | ------------------------------------

2020-11-18 21:55:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-11-18 21:55:43 |

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

2020-11-18 21:55:43 | ------------------------------------

2020-11-18 21:55:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3a9c1675-1364-490c-9073-8a317657b6f1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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