Generated by TestNG with ReportNG at 22:20 PDT on Thursday 07 October 2021
root@f29ef40080b5 / 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.147s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2021-10-07 22:37:23 |

2021-10-07 22:37:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:23 | ------------------------------------

2021-10-07 22:37:23 | [Mutex] waiting for: [configured:node:node-4406007a-90a1-44b9-a430-0aa7ccd07184:node-b8b7efa7-131d-4e1a-adda-fd92070842e0]

2021-10-07 22:37:23 | [Mutex] received everything.

2021-10-07 22:37:23 | [Mutex] isItemNotified: configured:node:node-4406007a-90a1-44b9-a430-0aa7ccd07184:node-b8b7efa7-131d-4e1a-adda-fd92070842e0 :: true

2021-10-07 22:37:24 | [Mutex] waiting for: [received:nodes:a5085863-e6ce-4d6f-b88e-a92451df499f:localhost]

2021-10-07 22:37:24 | [Mutex] received everything.

2021-10-07 22:37:24 | [Mutex] isItemNotified: received:node:a5085863-e6ce-4d6f-b88e-a92451df499f:localhost:node-4406007a-90a1-44b9-a430-0aa7ccd07184:Node 4406007a-90a1-44b9-a430-0aa7ccd07184 :: true

2021-10-07 22:37:24 | [Mutex] waiting for: [received:nodes:63d01dc9-90f8-41ea-9e45-83b0224bd73a:localhost]

2021-10-07 22:37:24 | [Mutex] received everything.

2021-10-07 22:37:24 | [Mutex] isItemNotified: received:node:63d01dc9-90f8-41ea-9e45-83b0224bd73a:localhost:node-4406007a-90a1-44b9-a430-0aa7ccd07184:Node 4406007a-90a1-44b9-a430-0aa7ccd07184 :: false

createNodes 1.718s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "pubsub#title": "Node 4406007a-90a1-44b9-a430-0aa7ccd07184"
}

2021-10-07 22:37:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:37:22 | [Mutex] waiting for: [received:nodes:5ca6b882-7f75-434c-b7ec-ba2d2c2428ff:localhost]

2021-10-07 22:37:22 | [Mutex] received everything.

2021-10-07 22:37:22 | [Mutex] isItemNotified: received:node:5ca6b882-7f75-434c-b7ec-ba2d2c2428ff:localhost:node-4406007a-90a1-44b9-a430-0aa7ccd07184:Node 4406007a-90a1-44b9-a430-0aa7ccd07184 :: true

createSubnodes 1.037s
2021-10-07 22:37:22 |

2021-10-07 22:37:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:22 | ------------------------------------

2021-10-07 22:37:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b8b7efa7-131d-4e1a-adda-fd92070842e0",
    "pubsub#title": "Node b8b7efa7-131d-4e1a-adda-fd92070842e0"
}

2021-10-07 22:37:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:37:23 | [Mutex] waiting for: [received:nodes:13dc51de-7c96-4038-9b6d-db7413c915f0:localhost]

2021-10-07 22:37:23 | [Mutex] received everything.

2021-10-07 22:37:23 | [Mutex] isItemNotified: received:node:13dc51de-7c96-4038-9b6d-db7413c915f0:localhost:node-b8b7efa7-131d-4e1a-adda-fd92070842e0:Node b8b7efa7-131d-4e1a-adda-fd92070842e0 :: true

deleteNodes 1.023s
2021-10-07 22:37:27 |

2021-10-07 22:37:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:27 | ------------------------------------

2021-10-07 22:37:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8b7efa7-131d-4e1a-adda-fd92070842e0"
}

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

2021-10-07 22:37:28 | [Mutex] waiting for: [received:nodes:1335ca85-682f-49ec-b90b-b336e5d58d45:localhost]

2021-10-07 22:37:28 | [Mutex] received everything.

2021-10-07 22:37:28 | [Mutex] isItemNotified: received:node:1335ca85-682f-49ec-b90b-b336e5d58d45:localhost:node-b8b7efa7-131d-4e1a-adda-fd92070842e0:Node b8b7efa7-131d-4e1a-adda-fd92070842e0 :: false

deleteSubnodes 1.072s
2021-10-07 22:37:26 |

2021-10-07 22:37:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:26 | ------------------------------------

2021-10-07 22:37:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184"
}

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

2021-10-07 22:37:27 | [Mutex] waiting for: [received:nodes:e7f17ed2-c4c0-42df-9863-3beeae11fdbe:localhost]

2021-10-07 22:37:27 | [Mutex] received everything.

2021-10-07 22:37:27 | [Mutex] isItemNotified: received:node:e7f17ed2-c4c0-42df-9863-3beeae11fdbe:localhost:node-4406007a-90a1-44b9-a430-0aa7ccd07184:Node 4406007a-90a1-44b9-a430-0aa7ccd07184 :: false

2021-10-07 22:37:27 | [Mutex] waiting for: [received:nodes:3a3ac5df-f24b-4978-b9db-1c9fb56744e4:localhost]

2021-10-07 22:37:27 | [Mutex] received everything.

2021-10-07 22:37:27 | [Mutex] isItemNotified: received:node:3a3ac5df-f24b-4978-b9db-1c9fb56744e4:localhost:node-4406007a-90a1-44b9-a430-0aa7ccd07184:Node 4406007a-90a1-44b9-a430-0aa7ccd07184 :: false

publishItemsToNodes 0.052s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "entry": "<test>item-bf182573-ddf2-459d-a371-5ddacdfa9fbb</test>",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb"
}

2021-10-07 22:37:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb"
}

2021-10-07 22:37:25 | [Mutex] waiting for: [published:item:notifieditem-bf182573-ddf2-459d-a371-5ddacdfa9fbb:admin@test-domain.com]

2021-10-07 22:37:25 | [Mutex] received everything.

2021-10-07 22:37:25 | [Mutex] isItemNotified: published:item:notifieditem-bf182573-ddf2-459d-a371-5ddacdfa9fbb:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb"
}

2021-10-07 22:37:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb"
}

2021-10-07 22:37:25 | [Mutex] waiting for: [retracted:item:notifieditem-bf182573-ddf2-459d-a371-5ddacdfa9fbb:admin@test-domain.com]

2021-10-07 22:37:25 | [Mutex] received everything.

2021-10-07 22:37:25 | [Mutex] isItemNotified: retracted:item:notifieditem-bf182573-ddf2-459d-a371-5ddacdfa9fbb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb"
}

2021-10-07 22:37:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "item-id": "item-bf182573-ddf2-459d-a371-5ddacdfa9fbb",
    "item": [
        "<item id=\"item-bf182573-ddf2-459d-a371-5ddacdfa9fbb\"><test>item-bf182573-ddf2-459d-a371-5ddacdfa9fbb</test></item>"
    ]
}

2021-10-07 22:37:25 | [Mutex] notify: [retrieved:item:item-bf182573-ddf2-459d-a371-5ddacdfa9fbb:payload-matches:true:localhost]

2021-10-07 22:37:25 | [Mutex] received everything.

2021-10-07 22:37:25 | [Mutex] isItemNotified: retrieved:item:item-bf182573-ddf2-459d-a371-5ddacdfa9fbb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-07 22:37:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
        "node-b8b7efa7-131d-4e1a-adda-fd92070842e0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4406007a-90a1-44b9-a430-0aa7ccd07184)"
}

2021-10-07 22:37:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-10-07 22:37:24 |

2021-10-07 22:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:24 | ------------------------------------

2021-10-07 22:37:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:37:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.065s
2021-10-07 22:37:25 |

2021-10-07 22:37:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:25 | ------------------------------------

2021-10-07 22:37:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4406007a-90a1-44b9-a430-0aa7ccd07184",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:37:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}