Generated by TestNG with ReportNG at 22:13 PDT on Thursday 08 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 : 8.867s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2020-10-08 22:27:46 |

2020-10-08 22:27:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:46 | ------------------------------------

2020-10-08 22:27:46 | [Mutex] waiting for: [configured:node:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:node-f77a4cd3-9c42-4f90-96df-c3a12bc13202]

2020-10-08 22:27:46 | [Mutex] received everything.

2020-10-08 22:27:46 | [Mutex] isItemNotified: configured:node:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:node-f77a4cd3-9c42-4f90-96df-c3a12bc13202 :: true

2020-10-08 22:27:47 | [Mutex] waiting for: [received:nodes:0271caa3-c1ad-4a63-ba24-69d7939f49bb:localhost]

2020-10-08 22:27:47 | [Mutex] received everything.

2020-10-08 22:27:47 | [Mutex] isItemNotified: received:node:0271caa3-c1ad-4a63-ba24-69d7939f49bb:localhost:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:Node 062d84c3-62ce-4640-959a-b9ef6ef955f1 :: true

2020-10-08 22:27:47 | [Mutex] waiting for: [received:nodes:36e8ab6e-2966-4fcd-a6e8-2acd196c076f:localhost]

2020-10-08 22:27:47 | [Mutex] received everything.

2020-10-08 22:27:47 | [Mutex] isItemNotified: received:node:36e8ab6e-2966-4fcd-a6e8-2acd196c076f:localhost:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:Node 062d84c3-62ce-4640-959a-b9ef6ef955f1 :: false

createNodes 1.547s
2020-10-08 22:27:43 |

2020-10-08 22:27:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:43 | ------------------------------------

2020-10-08 22:27: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-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "pubsub#title": "Node 062d84c3-62ce-4640-959a-b9ef6ef955f1"
}

2020-10-08 22:27:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-08 22:27:45 | [Mutex] waiting for: [received:nodes:5df6ddda-3383-451d-bea1-089b49ed9ce0:localhost]

2020-10-08 22:27:45 | [Mutex] received everything.

2020-10-08 22:27:45 | [Mutex] isItemNotified: received:node:5df6ddda-3383-451d-bea1-089b49ed9ce0:localhost:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:Node 062d84c3-62ce-4640-959a-b9ef6ef955f1 :: true

createSubnodes 1.030s
2020-10-08 22:27:45 |

2020-10-08 22:27:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:45 | ------------------------------------

2020-10-08 22:27:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f77a4cd3-9c42-4f90-96df-c3a12bc13202",
    "pubsub#title": "Node f77a4cd3-9c42-4f90-96df-c3a12bc13202"
}

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

2020-10-08 22:27:46 | [Mutex] waiting for: [received:nodes:38f9c0f0-ed93-4ec3-b303-9048c89f09bc:localhost]

2020-10-08 22:27:46 | [Mutex] waiting for: [received:nodes:38f9c0f0-ed93-4ec3-b303-9048c89f09bc:localhost]

2020-10-08 22:27:46 | [Mutex] waiting for: [received:nodes:38f9c0f0-ed93-4ec3-b303-9048c89f09bc:localhost]

2020-10-08 22:27:46 | [Mutex] received everything.

2020-10-08 22:27:46 | [Mutex] isItemNotified: received:node:38f9c0f0-ed93-4ec3-b303-9048c89f09bc:localhost:node-f77a4cd3-9c42-4f90-96df-c3a12bc13202:Node f77a4cd3-9c42-4f90-96df-c3a12bc13202 :: true

deleteNodes 1.021s
2020-10-08 22:27:51 |

2020-10-08 22:27:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:51 | ------------------------------------

2020-10-08 22:27:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f77a4cd3-9c42-4f90-96df-c3a12bc13202"
}

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

2020-10-08 22:27:52 | [Mutex] waiting for: [received:nodes:ca1ec4e4-b1d1-4702-a07b-63d30481469f:localhost]

2020-10-08 22:27:52 | [Mutex] received everything.

2020-10-08 22:27:52 | [Mutex] isItemNotified: received:node:ca1ec4e4-b1d1-4702-a07b-63d30481469f:localhost:node-f77a4cd3-9c42-4f90-96df-c3a12bc13202:Node f77a4cd3-9c42-4f90-96df-c3a12bc13202 :: false

deleteSubnodes 1.025s
2020-10-08 22:27:50 |

2020-10-08 22:27:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:50 | ------------------------------------

2020-10-08 22:27:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1"
}

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

2020-10-08 22:27:51 | [Mutex] waiting for: [received:nodes:1489ca7e-c8cb-4c24-a530-cc86bd162fd7:localhost]

2020-10-08 22:27:51 | [Mutex] received everything.

2020-10-08 22:27:51 | [Mutex] isItemNotified: received:node:1489ca7e-c8cb-4c24-a530-cc86bd162fd7:localhost:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:Node 062d84c3-62ce-4640-959a-b9ef6ef955f1 :: false

2020-10-08 22:27:51 | [Mutex] waiting for: [received:nodes:315ff365-b54a-4cb9-84d5-c2f97153c95a:localhost]

2020-10-08 22:27:51 | [Mutex] received everything.

2020-10-08 22:27:51 | [Mutex] isItemNotified: received:node:315ff365-b54a-4cb9-84d5-c2f97153c95a:localhost:node-062d84c3-62ce-4640-959a-b9ef6ef955f1:Node 062d84c3-62ce-4640-959a-b9ef6ef955f1 :: false

publishItemsToNodes 0.058s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "entry": "<test>item-8c08d16e-df1c-4315-a083-28482f40ec40</test>",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40"
}

2020-10-08 22:27:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40"
}

2020-10-08 22:27:48 | [Mutex] waiting for: [published:item:notifieditem-8c08d16e-df1c-4315-a083-28482f40ec40:admin@test-domain.com]

2020-10-08 22:27:48 | [Mutex] received everything.

2020-10-08 22:27:48 | [Mutex] isItemNotified: published:item:notifieditem-8c08d16e-df1c-4315-a083-28482f40ec40:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40"
}

2020-10-08 22:27:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40"
}

2020-10-08 22:27:48 | [Mutex] received everything.

2020-10-08 22:27:48 | [Mutex] isItemNotified: retracted:item:notifieditem-8c08d16e-df1c-4315-a083-28482f40ec40:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40"
}

2020-10-08 22:27:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "item-id": "item-8c08d16e-df1c-4315-a083-28482f40ec40",
    "item": [
        "<item id=\"item-8c08d16e-df1c-4315-a083-28482f40ec40\"><test>item-8c08d16e-df1c-4315-a083-28482f40ec40</test></item>"
    ]
}

2020-10-08 22:27:48 | [Mutex] notify: [retrieved:item:item-8c08d16e-df1c-4315-a083-28482f40ec40:payload-matches:true:localhost]

2020-10-08 22:27:48 | [Mutex] received everything.

2020-10-08 22:27:48 | [Mutex] isItemNotified: retrieved:item:item-8c08d16e-df1c-4315-a083-28482f40ec40:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-08 22:27:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
        "node-f77a4cd3-9c42-4f90-96df-c3a12bc13202"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-062d84c3-62ce-4640-959a-b9ef6ef955f1)"
}

2020-10-08 22:27:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-10-08 22:27:47 |

2020-10-08 22:27:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:47 | ------------------------------------

2020-10-08 22:27:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-08 22:27:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-10-08 22:27:48 |

2020-10-08 22:27:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:27:48 | ------------------------------------

2020-10-08 22:27:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-062d84c3-62ce-4640-959a-b9ef6ef955f1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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