Generated by TestNG with ReportNG at 23:01 PDT on Monday 21 September 2020
root@b34f6c1e9012 / 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.203s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-09-21 23:15:04 |

2020-09-21 23:15:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:04 | ------------------------------------

2020-09-21 23:15:04 | [Mutex] waiting for: [configured:node:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:node-7a7d7803-d063-477b-88a9-37b864db82bb]

2020-09-21 23:15:04 | [Mutex] received everything.

2020-09-21 23:15:04 | [Mutex] isItemNotified: configured:node:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:node-7a7d7803-d063-477b-88a9-37b864db82bb :: true

2020-09-21 23:15:05 | [Mutex] waiting for: [received:nodes:5a1558fb-a5b0-46ca-b42c-0c756dd2958b:localhost]

2020-09-21 23:15:05 | [Mutex] received everything.

2020-09-21 23:15:05 | [Mutex] isItemNotified: received:node:5a1558fb-a5b0-46ca-b42c-0c756dd2958b:localhost:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067 :: true

2020-09-21 23:15:05 | [Mutex] waiting for: [received:nodes:f6b261ea-ca80-4cb3-94a7-4505ef63884b:localhost]

2020-09-21 23:15:05 | [Mutex] waiting for: [received:nodes:f6b261ea-ca80-4cb3-94a7-4505ef63884b:localhost]

2020-09-21 23:15:05 | [Mutex] received everything.

2020-09-21 23:15:05 | [Mutex] isItemNotified: received:node:f6b261ea-ca80-4cb3-94a7-4505ef63884b:localhost:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067 :: false

createNodes 1.784s
2020-09-21 23:15:01 |

2020-09-21 23:15:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:01 | ------------------------------------

2020-09-21 23:15: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-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "pubsub#title": "Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067"
}

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

2020-09-21 23:15:03 | [Mutex] waiting for: [received:nodes:858f21d4-7ddf-495f-b51b-93a59a9761d5:localhost]

2020-09-21 23:15:03 | [Mutex] received everything.

2020-09-21 23:15:03 | [Mutex] isItemNotified: received:node:858f21d4-7ddf-495f-b51b-93a59a9761d5:localhost:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067 :: true

createSubnodes 1.031s
2020-09-21 23:15:03 |

2020-09-21 23:15:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:03 | ------------------------------------

2020-09-21 23:15: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-7a7d7803-d063-477b-88a9-37b864db82bb",
    "pubsub#title": "Node 7a7d7803-d063-477b-88a9-37b864db82bb"
}

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

2020-09-21 23:15:04 | [Mutex] waiting for: [received:nodes:35fbb832-673c-4d46-a2a5-f0164fdb6205:localhost]

2020-09-21 23:15:04 | [Mutex] received everything.

2020-09-21 23:15:04 | [Mutex] isItemNotified: received:node:35fbb832-673c-4d46-a2a5-f0164fdb6205:localhost:node-7a7d7803-d063-477b-88a9-37b864db82bb:Node 7a7d7803-d063-477b-88a9-37b864db82bb :: true

deleteNodes 1.024s
2020-09-21 23:15:09 |

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

2020-09-21 23:15:09 | ------------------------------------

2020-09-21 23:15:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a7d7803-d063-477b-88a9-37b864db82bb"
}

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

2020-09-21 23:15:10 | [Mutex] waiting for: [received:nodes:81b6d64b-110a-487e-b40e-4d89e072ff56:localhost]

2020-09-21 23:15:10 | [Mutex] received everything.

2020-09-21 23:15:10 | [Mutex] isItemNotified: received:node:81b6d64b-110a-487e-b40e-4d89e072ff56:localhost:node-7a7d7803-d063-477b-88a9-37b864db82bb:Node 7a7d7803-d063-477b-88a9-37b864db82bb :: false

deleteSubnodes 1.031s
2020-09-21 23:15:08 |

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

2020-09-21 23:15:08 | ------------------------------------

2020-09-21 23:15:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067"
}

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

2020-09-21 23:15:09 | [Mutex] waiting for: [received:nodes:c5b57f4c-58c7-4629-9c68-552fb146c99c:localhost]

2020-09-21 23:15:09 | [Mutex] received everything.

2020-09-21 23:15:09 | [Mutex] isItemNotified: received:node:c5b57f4c-58c7-4629-9c68-552fb146c99c:localhost:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067 :: false

2020-09-21 23:15:09 | [Mutex] waiting for: [received:nodes:3838f855-0730-4ccc-a889-54ce35317f91:localhost]

2020-09-21 23:15:09 | [Mutex] received everything.

2020-09-21 23:15:09 | [Mutex] isItemNotified: received:node:3838f855-0730-4ccc-a889-54ce35317f91:localhost:node-17bd35c0-ebc2-491d-8ab5-b0e31a858067:Node 17bd35c0-ebc2-491d-8ab5-b0e31a858067 :: false

publishItemsToNodes 0.043s
2020-09-21 23:15:06 |

2020-09-21 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:06 | ------------------------------------

2020-09-21 23:15:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "entry": "<test>item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38</test>",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38"
}

2020-09-21 23:15:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38"
}

2020-09-21 23:15:06 | [Mutex] waiting for: [published:item:notifieditem-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38:admin@test-domain.com]

2020-09-21 23:15:06 | [Mutex] received everything.

2020-09-21 23:15:06 | [Mutex] isItemNotified: published:item:notifieditem-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38:admin@test-domain.com :: true

retractItemsFromNodes 0.116s
2020-09-21 23:15:07 |

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

2020-09-21 23:15:07 | ------------------------------------

2020-09-21 23:15:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38"
}

2020-09-21 23:15:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38"
}

2020-09-21 23:15:07 | [Mutex] received everything.

2020-09-21 23:15:07 | [Mutex] isItemNotified: retracted:item:notifieditem-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-09-21 23:15:06 |

2020-09-21 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:06 | ------------------------------------

2020-09-21 23:15:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38"
}

2020-09-21 23:15:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "item-id": "item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38",
    "item": [
        "<item id=\"item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38\"><test>item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38</test></item>"
    ]
}

2020-09-21 23:15:06 | [Mutex] notify: [retrieved:item:item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38:payload-matches:true:localhost]

2020-09-21 23:15:06 | [Mutex] received everything.

2020-09-21 23:15:06 | [Mutex] isItemNotified: retrieved:item:item-6c7b2adf-1778-47e0-8f70-f2f4c8b96b38:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2020-09-21 23:15:06 |

2020-09-21 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:15:06 | ------------------------------------

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

2020-09-21 23:15:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7a7d7803-d063-477b-88a9-37b864db82bb",
        "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-21 23:15:07 |

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

2020-09-21 23:15:07 | ------------------------------------

2020-09-21 23:15:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-17bd35c0-ebc2-491d-8ab5-b0e31a858067)"
}

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

subscribeNodes 1.019s
2020-09-21 23:15:05 |

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

2020-09-21 23:15:05 | ------------------------------------

2020-09-21 23:15:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-09-21 23:15:07 |

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

2020-09-21 23:15:07 | ------------------------------------

2020-09-21 23:15:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-17bd35c0-ebc2-491d-8ab5-b0e31a858067",
    "jids": [
        "admin@test-domain.com"
    ]
}

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