Generated by TestNG with ReportNG at 22:51 PDT on Monday 05 October 2020
root@eaa73862192b / 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.036s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2020-10-05 23:07:47 |

2020-10-05 23:07:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:47 | ------------------------------------

2020-10-05 23:07:47 | [Mutex] waiting for: [configured:node:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf]

2020-10-05 23:07:47 | [Mutex] received everything.

2020-10-05 23:07:47 | [Mutex] isItemNotified: configured:node:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf :: true

2020-10-05 23:07:48 | [Mutex] waiting for: [received:nodes:23dbff47-c0b4-4580-9179-f5e5042c9763:localhost]

2020-10-05 23:07:48 | [Mutex] received everything.

2020-10-05 23:07:48 | [Mutex] isItemNotified: received:node:23dbff47-c0b4-4580-9179-f5e5042c9763:localhost:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:Node fab1c483-4138-4651-8d6f-9a4d9dad9aca :: true

2020-10-05 23:07:48 | [Mutex] waiting for: [received:nodes:2c6110d6-fe48-4d40-a538-f724edc7084c:localhost]

2020-10-05 23:07:48 | [Mutex] received everything.

2020-10-05 23:07:48 | [Mutex] isItemNotified: received:node:2c6110d6-fe48-4d40-a538-f724edc7084c:localhost:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:Node fab1c483-4138-4651-8d6f-9a4d9dad9aca :: false

createNodes 1.660s
2020-10-05 23:07:44 |

2020-10-05 23:07:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:44 | ------------------------------------

2020-10-05 23:07:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "pubsub#title": "Node fab1c483-4138-4651-8d6f-9a4d9dad9aca"
}

2020-10-05 23:07:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 23:07:46 | [Mutex] waiting for: [received:nodes:5a772ce5-8c60-4518-9648-142013e12a26:localhost]

2020-10-05 23:07:46 | [Mutex] received everything.

2020-10-05 23:07:46 | [Mutex] isItemNotified: received:node:5a772ce5-8c60-4518-9648-142013e12a26:localhost:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:Node fab1c483-4138-4651-8d6f-9a4d9dad9aca :: true

createSubnodes 1.036s
2020-10-05 23:07:46 |

2020-10-05 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:46 | ------------------------------------

2020-10-05 23:07:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf",
    "pubsub#title": "Node dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf"
}

2020-10-05 23:07:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 23:07:47 | [Mutex] waiting for: [received:nodes:39ec3dca-0c2b-40b4-808d-f35cd8c82bc6:localhost]

2020-10-05 23:07:47 | [Mutex] waiting for: [received:nodes:39ec3dca-0c2b-40b4-808d-f35cd8c82bc6:localhost]

2020-10-05 23:07:47 | [Mutex] received everything.

2020-10-05 23:07:47 | [Mutex] isItemNotified: received:node:39ec3dca-0c2b-40b4-808d-f35cd8c82bc6:localhost:node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf:Node dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf :: true

deleteNodes 1.026s
2020-10-05 23:07:51 |

2020-10-05 23:07:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:51 | ------------------------------------

2020-10-05 23:07:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf"
}

2020-10-05 23:07:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 23:07:52 | [Mutex] waiting for: [received:nodes:52d9a623-f5fe-4236-a7d7-55c8ce697900:localhost]

2020-10-05 23:07:52 | [Mutex] received everything.

2020-10-05 23:07:52 | [Mutex] isItemNotified: received:node:52d9a623-f5fe-4236-a7d7-55c8ce697900:localhost:node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf:Node dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf :: false

deleteSubnodes 1.048s
2020-10-05 23:07:50 |

2020-10-05 23:07:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:50 | ------------------------------------

2020-10-05 23:07:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca"
}

2020-10-05 23:07:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 23:07:51 | [Mutex] waiting for: [received:nodes:e6019346-ce59-4c5c-97aa-d295233625f4:localhost]

2020-10-05 23:07:51 | [Mutex] received everything.

2020-10-05 23:07:51 | [Mutex] isItemNotified: received:node:e6019346-ce59-4c5c-97aa-d295233625f4:localhost:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:Node fab1c483-4138-4651-8d6f-9a4d9dad9aca :: false

2020-10-05 23:07:51 | [Mutex] waiting for: [received:nodes:649e7605-fe7d-4180-852f-7998939aad7f:localhost]

2020-10-05 23:07:51 | [Mutex] received everything.

2020-10-05 23:07:51 | [Mutex] isItemNotified: received:node:649e7605-fe7d-4180-852f-7998939aad7f:localhost:node-fab1c483-4138-4651-8d6f-9a4d9dad9aca:Node fab1c483-4138-4651-8d6f-9a4d9dad9aca :: false

publishItemsToNodes 0.029s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "entry": "<test>item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7</test>",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7"
}

2020-10-05 23:07:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7"
}

2020-10-05 23:07:49 | [Mutex] waiting for: [published:item:notifieditem-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7:admin@test-domain.com]

2020-10-05 23:07:49 | [Mutex] received everything.

2020-10-05 23:07:49 | [Mutex] isItemNotified: published:item:notifieditem-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7"
}

2020-10-05 23:07:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7"
}

2020-10-05 23:07:49 | [Mutex] received everything.

2020-10-05 23:07:49 | [Mutex] isItemNotified: retracted:item:notifieditem-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7"
}

2020-10-05 23:07:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "item-id": "item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7",
    "item": [
        "<item id=\"item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7\"><test>item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7</test></item>"
    ]
}

2020-10-05 23:07:49 | [Mutex] notify: [retrieved:item:item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7:payload-matches:true:localhost]

2020-10-05 23:07:49 | [Mutex] received everything.

2020-10-05 23:07:49 | [Mutex] isItemNotified: retrieved:item:item-6a1497c3-5d33-4daf-a0a5-9f88c9bd74a7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-05 23:07:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
        "node-dfc64a2d-cf71-4aab-9036-4c3a1bbb16cf",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fab1c483-4138-4651-8d6f-9a4d9dad9aca)"
}

2020-10-05 23:07:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-10-05 23:07:48 |

2020-10-05 23:07:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:48 | ------------------------------------

2020-10-05 23:07:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-05 23:07:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-10-05 23:07:49 |

2020-10-05 23:07:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 23:07:49 | ------------------------------------

2020-10-05 23:07:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fab1c483-4138-4651-8d6f-9a4d9dad9aca",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-05 23:07:49 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}