Generated by TestNG with ReportNG at 22:42 PDT on Sunday 04 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.173s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2020-10-04 23:00:41 |

2020-10-04 23:00:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:41 | ------------------------------------

2020-10-04 23:00:41 | [Mutex] waiting for: [configured:node:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:node-b4f0714a-2c72-4d06-aa7a-9059c1b17671]

2020-10-04 23:00:41 | [Mutex] received everything.

2020-10-04 23:00:41 | [Mutex] isItemNotified: configured:node:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:node-b4f0714a-2c72-4d06-aa7a-9059c1b17671 :: true

2020-10-04 23:00:42 | [Mutex] waiting for: [received:nodes:b6f2ae7d-8b1e-43c7-b6d8-21a710bf40c8:localhost]

2020-10-04 23:00:42 | [Mutex] received everything.

2020-10-04 23:00:42 | [Mutex] isItemNotified: received:node:b6f2ae7d-8b1e-43c7-b6d8-21a710bf40c8:localhost:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:Node 85a3c926-1eda-4eac-91f2-f0d2788032b5 :: true

2020-10-04 23:00:42 | [Mutex] waiting for: [received:nodes:02a84f9a-a424-42db-b0ab-b787f8670383:localhost]

2020-10-04 23:00:42 | [Mutex] received everything.

2020-10-04 23:00:42 | [Mutex] isItemNotified: received:node:02a84f9a-a424-42db-b0ab-b787f8670383:localhost:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:Node 85a3c926-1eda-4eac-91f2-f0d2788032b5 :: false

createNodes 1.810s
2020-10-04 23:00:38 |

2020-10-04 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:38 | ------------------------------------

2020-10-04 23:00:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "pubsub#title": "Node 85a3c926-1eda-4eac-91f2-f0d2788032b5"
}

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

2020-10-04 23:00:40 | [Mutex] waiting for: [received:nodes:152bf5e8-3ba2-49b7-b863-362dd4a7bf2e:localhost]

2020-10-04 23:00:40 | [Mutex] waiting for: [received:nodes:152bf5e8-3ba2-49b7-b863-362dd4a7bf2e:localhost]

2020-10-04 23:00:40 | [Mutex] received everything.

2020-10-04 23:00:40 | [Mutex] isItemNotified: received:node:152bf5e8-3ba2-49b7-b863-362dd4a7bf2e:localhost:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:Node 85a3c926-1eda-4eac-91f2-f0d2788032b5 :: true

createSubnodes 1.026s
2020-10-04 23:00:40 |

2020-10-04 23:00:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:40 | ------------------------------------

2020-10-04 23:00:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b4f0714a-2c72-4d06-aa7a-9059c1b17671",
    "pubsub#title": "Node b4f0714a-2c72-4d06-aa7a-9059c1b17671"
}

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

2020-10-04 23:00:41 | [Mutex] waiting for: [received:nodes:770f1a7c-60b9-46c6-a56e-51cb24421d7e:localhost]

2020-10-04 23:00:41 | [Mutex] received everything.

2020-10-04 23:00:41 | [Mutex] isItemNotified: received:node:770f1a7c-60b9-46c6-a56e-51cb24421d7e:localhost:node-b4f0714a-2c72-4d06-aa7a-9059c1b17671:Node b4f0714a-2c72-4d06-aa7a-9059c1b17671 :: true

deleteNodes 1.033s
2020-10-04 23:00:46 |

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

2020-10-04 23:00:46 | ------------------------------------

2020-10-04 23:00:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b4f0714a-2c72-4d06-aa7a-9059c1b17671"
}

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

2020-10-04 23:00:47 | [Mutex] waiting for: [received:nodes:189c3fef-8264-43f8-af5b-690810252633:localhost]

2020-10-04 23:00:47 | [Mutex] received everything.

2020-10-04 23:00:47 | [Mutex] isItemNotified: received:node:189c3fef-8264-43f8-af5b-690810252633:localhost:node-b4f0714a-2c72-4d06-aa7a-9059c1b17671:Node b4f0714a-2c72-4d06-aa7a-9059c1b17671 :: false

deleteSubnodes 1.025s
2020-10-04 23:00:44 |

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

2020-10-04 23:00:44 | ------------------------------------

2020-10-04 23:00:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5"
}

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

2020-10-04 23:00:46 | [Mutex] waiting for: [received:nodes:9b7291b3-0063-491b-970c-7d810d68bd41:localhost]

2020-10-04 23:00:46 | [Mutex] received everything.

2020-10-04 23:00:46 | [Mutex] isItemNotified: received:node:9b7291b3-0063-491b-970c-7d810d68bd41:localhost:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:Node 85a3c926-1eda-4eac-91f2-f0d2788032b5 :: false

2020-10-04 23:00:46 | [Mutex] waiting for: [received:nodes:ea5a726f-7da6-4e46-a28c-7b9fdc3c1149:localhost]

2020-10-04 23:00:46 | [Mutex] received everything.

2020-10-04 23:00:46 | [Mutex] isItemNotified: received:node:ea5a726f-7da6-4e46-a28c-7b9fdc3c1149:localhost:node-85a3c926-1eda-4eac-91f2-f0d2788032b5:Node 85a3c926-1eda-4eac-91f2-f0d2788032b5 :: false

publishItemsToNodes 0.067s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

2020-10-04 23:00:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "entry": "<test>item-f38ce289-14c1-4d24-922a-a0c49de7122d</test>",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d"
}

2020-10-04 23:00:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d"
}

2020-10-04 23:00:43 | [Mutex] received everything.

2020-10-04 23:00:43 | [Mutex] isItemNotified: published:item:notifieditem-f38ce289-14c1-4d24-922a-a0c49de7122d:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

2020-10-04 23:00:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d"
}

2020-10-04 23:00:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d"
}

2020-10-04 23:00:43 | [Mutex] received everything.

2020-10-04 23:00:43 | [Mutex] isItemNotified: retracted:item:notifieditem-f38ce289-14c1-4d24-922a-a0c49de7122d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

2020-10-04 23:00:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d"
}

2020-10-04 23:00:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "item-id": "item-f38ce289-14c1-4d24-922a-a0c49de7122d",
    "item": [
        "<item id=\"item-f38ce289-14c1-4d24-922a-a0c49de7122d\"><test>item-f38ce289-14c1-4d24-922a-a0c49de7122d</test></item>"
    ]
}

2020-10-04 23:00:43 | [Mutex] notify: [retrieved:item:item-f38ce289-14c1-4d24-922a-a0c49de7122d:payload-matches:true:localhost]

2020-10-04 23:00:43 | [Mutex] received everything.

2020-10-04 23:00:43 | [Mutex] isItemNotified: retrieved:item:item-f38ce289-14c1-4d24-922a-a0c49de7122d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

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

2020-10-04 23:00:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
        "node-b4f0714a-2c72-4d06-aa7a-9059c1b17671"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

2020-10-04 23:00:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-85a3c926-1eda-4eac-91f2-f0d2788032b5)"
}

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

subscribeNodes 1.011s
2020-10-04 23:00:42 |

2020-10-04 23:00:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:42 | ------------------------------------

2020-10-04 23:00:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-10-04 23:00:43 |

2020-10-04 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 23:00:43 | ------------------------------------

2020-10-04 23:00:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-85a3c926-1eda-4eac-91f2-f0d2788032b5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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