Generated by TestNG with ReportNG at 21:45 PST on Sunday 14 February 2021
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.099s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2021-02-14 22:01:04 |

2021-02-14 22:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:04 | ------------------------------------

2021-02-14 22:01:04 | [Mutex] waiting for: [configured:node:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:node-6e1194ff-33c7-4803-b4a1-84c70b8158ed]

2021-02-14 22:01:04 | [Mutex] received everything.

2021-02-14 22:01:04 | [Mutex] isItemNotified: configured:node:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:node-6e1194ff-33c7-4803-b4a1-84c70b8158ed :: true

2021-02-14 22:01:05 | [Mutex] waiting for: [received:nodes:e7ef432d-c3e9-4272-b29b-ea3289f492eb:localhost]

2021-02-14 22:01:05 | [Mutex] waiting for: [received:nodes:e7ef432d-c3e9-4272-b29b-ea3289f492eb:localhost]

2021-02-14 22:01:05 | [Mutex] received everything.

2021-02-14 22:01:05 | [Mutex] isItemNotified: received:node:e7ef432d-c3e9-4272-b29b-ea3289f492eb:localhost:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:Node 295a6c1c-797b-4fcd-ba87-046fb54b5873 :: true

2021-02-14 22:01:05 | [Mutex] waiting for: [received:nodes:6bb4c122-3097-4b43-8db1-421b625118a1:localhost]

2021-02-14 22:01:05 | [Mutex] received everything.

2021-02-14 22:01:05 | [Mutex] isItemNotified: received:node:6bb4c122-3097-4b43-8db1-421b625118a1:localhost:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:Node 295a6c1c-797b-4fcd-ba87-046fb54b5873 :: false

createNodes 1.649s
2021-02-14 22:01:01 |

2021-02-14 22:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:01 | ------------------------------------

2021-02-14 22:01:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "pubsub#title": "Node 295a6c1c-797b-4fcd-ba87-046fb54b5873"
}

2021-02-14 22:01:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 22:01:03 | [Mutex] waiting for: [received:nodes:96138329-9e6d-4250-9e17-25609787930f:localhost]

2021-02-14 22:01:03 | [Mutex] received everything.

2021-02-14 22:01:03 | [Mutex] isItemNotified: received:node:96138329-9e6d-4250-9e17-25609787930f:localhost:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:Node 295a6c1c-797b-4fcd-ba87-046fb54b5873 :: true

createSubnodes 1.022s
2021-02-14 22:01:03 |

2021-02-14 22:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:03 | ------------------------------------

2021-02-14 22:01:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6e1194ff-33c7-4803-b4a1-84c70b8158ed",
    "pubsub#title": "Node 6e1194ff-33c7-4803-b4a1-84c70b8158ed"
}

2021-02-14 22:01:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 22:01:04 | [Mutex] waiting for: [received:nodes:4211b579-eb78-4d89-adf1-8e8e4a1710b2:localhost]

2021-02-14 22:01:04 | [Mutex] received everything.

2021-02-14 22:01:04 | [Mutex] isItemNotified: received:node:4211b579-eb78-4d89-adf1-8e8e4a1710b2:localhost:node-6e1194ff-33c7-4803-b4a1-84c70b8158ed:Node 6e1194ff-33c7-4803-b4a1-84c70b8158ed :: true

deleteNodes 1.022s
2021-02-14 22:01:08 |

2021-02-14 22:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:08 | ------------------------------------

2021-02-14 22:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6e1194ff-33c7-4803-b4a1-84c70b8158ed"
}

2021-02-14 22:01:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 22:01:09 | [Mutex] waiting for: [received:nodes:c324ddfc-b1f5-46c0-9c60-df8df92292b3:localhost]

2021-02-14 22:01:09 | [Mutex] waiting for: [received:nodes:c324ddfc-b1f5-46c0-9c60-df8df92292b3:localhost]

2021-02-14 22:01:09 | [Mutex] waiting for: [received:nodes:c324ddfc-b1f5-46c0-9c60-df8df92292b3:localhost]

2021-02-14 22:01:09 | [Mutex] received everything.

2021-02-14 22:01:09 | [Mutex] isItemNotified: received:node:c324ddfc-b1f5-46c0-9c60-df8df92292b3:localhost:node-6e1194ff-33c7-4803-b4a1-84c70b8158ed:Node 6e1194ff-33c7-4803-b4a1-84c70b8158ed :: false

deleteSubnodes 1.024s
2021-02-14 22:01:07 |

2021-02-14 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:07 | ------------------------------------

2021-02-14 22:01:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873"
}

2021-02-14 22:01:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 22:01:08 | [Mutex] waiting for: [received:nodes:0033aad8-7567-4370-a4b8-86f512dd6e10:localhost]

2021-02-14 22:01:08 | [Mutex] received everything.

2021-02-14 22:01:08 | [Mutex] isItemNotified: received:node:0033aad8-7567-4370-a4b8-86f512dd6e10:localhost:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:Node 295a6c1c-797b-4fcd-ba87-046fb54b5873 :: false

2021-02-14 22:01:08 | [Mutex] waiting for: [received:nodes:70621abf-bd4c-401a-b037-9a558aab2645:localhost]

2021-02-14 22:01:08 | [Mutex] received everything.

2021-02-14 22:01:08 | [Mutex] isItemNotified: received:node:70621abf-bd4c-401a-b037-9a558aab2645:localhost:node-295a6c1c-797b-4fcd-ba87-046fb54b5873:Node 295a6c1c-797b-4fcd-ba87-046fb54b5873 :: false

publishItemsToNodes 0.070s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "entry": "<test>item-c06a67c0-717d-47a1-b5c6-aed910086e21</test>",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21"
}

2021-02-14 22:01:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21"
}

2021-02-14 22:01:06 | [Mutex] waiting for: [published:item:notifieditem-c06a67c0-717d-47a1-b5c6-aed910086e21:admin@test-domain.com]

2021-02-14 22:01:06 | [Mutex] received everything.

2021-02-14 22:01:06 | [Mutex] isItemNotified: published:item:notifieditem-c06a67c0-717d-47a1-b5c6-aed910086e21:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21"
}

2021-02-14 22:01:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21"
}

2021-02-14 22:01:06 | [Mutex] received everything.

2021-02-14 22:01:06 | [Mutex] isItemNotified: retracted:item:notifieditem-c06a67c0-717d-47a1-b5c6-aed910086e21:admin@test-domain.com :: true

retrieveItemsFromNodes 0.103s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21"
}

2021-02-14 22:01:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "item-id": "item-c06a67c0-717d-47a1-b5c6-aed910086e21",
    "item": [
        "<item id=\"item-c06a67c0-717d-47a1-b5c6-aed910086e21\"><test>item-c06a67c0-717d-47a1-b5c6-aed910086e21</test></item>"
    ]
}

2021-02-14 22:01:06 | [Mutex] notify: [retrieved:item:item-c06a67c0-717d-47a1-b5c6-aed910086e21:payload-matches:true:localhost]

2021-02-14 22:01:06 | [Mutex] received everything.

2021-02-14 22:01:06 | [Mutex] isItemNotified: retrieved:item:item-c06a67c0-717d-47a1-b5c6-aed910086e21:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-14 22:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
        "node-6e1194ff-33c7-4803-b4a1-84c70b8158ed"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-295a6c1c-797b-4fcd-ba87-046fb54b5873)"
}

2021-02-14 22:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-02-14 22:01:05 |

2021-02-14 22:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:05 | ------------------------------------

2021-02-14 22:01:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 22:01:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2021-02-14 22:01:06 |

2021-02-14 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 22:01:06 | ------------------------------------

2021-02-14 22:01:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-295a6c1c-797b-4fcd-ba87-046fb54b5873",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 22:01:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}