Generated by TestNG with ReportNG at 21:43 PST on Thursday 21 January 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 : 8.880s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-01-21 22:00:30 |

2021-01-21 22:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:30 | ------------------------------------

2021-01-21 22:00:30 | [Mutex] waiting for: [configured:node:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:node-05c78be3-c86f-4c8e-9452-3df5242ce097]

2021-01-21 22:00:30 | [Mutex] received everything.

2021-01-21 22:00:30 | [Mutex] isItemNotified: configured:node:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:node-05c78be3-c86f-4c8e-9452-3df5242ce097 :: true

2021-01-21 22:00:31 | [Mutex] waiting for: [received:nodes:d649b5a4-eeb5-4e8f-8679-a48437fc91ef:localhost]

2021-01-21 22:00:31 | [Mutex] received everything.

2021-01-21 22:00:31 | [Mutex] isItemNotified: received:node:d649b5a4-eeb5-4e8f-8679-a48437fc91ef:localhost:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb :: true

2021-01-21 22:00:31 | [Mutex] waiting for: [received:nodes:5335c8ae-d626-4f7c-a52f-54f2749f2243:localhost]

2021-01-21 22:00:31 | [Mutex] received everything.

2021-01-21 22:00:31 | [Mutex] isItemNotified: received:node:5335c8ae-d626-4f7c-a52f-54f2749f2243:localhost:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb :: false

createNodes 1.509s
2021-01-21 22:00:27 |

2021-01-21 22:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:27 | ------------------------------------

2021-01-21 22:00:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "pubsub#title": "Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb"
}

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

2021-01-21 22:00:29 | [Mutex] waiting for: [received:nodes:49a4aeec-2143-4a70-94f8-56b0cf7f1212:localhost]

2021-01-21 22:00:29 | [Mutex] received everything.

2021-01-21 22:00:29 | [Mutex] isItemNotified: received:node:49a4aeec-2143-4a70-94f8-56b0cf7f1212:localhost:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb :: true

createSubnodes 1.025s
2021-01-21 22:00:29 |

2021-01-21 22:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:29 | ------------------------------------

2021-01-21 22:00:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-05c78be3-c86f-4c8e-9452-3df5242ce097",
    "pubsub#title": "Node 05c78be3-c86f-4c8e-9452-3df5242ce097"
}

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

2021-01-21 22:00:30 | [Mutex] waiting for: [received:nodes:b56dc000-c8dd-43e3-aae3-d662915403a7:localhost]

2021-01-21 22:00:30 | [Mutex] received everything.

2021-01-21 22:00:30 | [Mutex] isItemNotified: received:node:b56dc000-c8dd-43e3-aae3-d662915403a7:localhost:node-05c78be3-c86f-4c8e-9452-3df5242ce097:Node 05c78be3-c86f-4c8e-9452-3df5242ce097 :: true

deleteNodes 1.018s
2021-01-21 22:00:34 |

2021-01-21 22:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:34 | ------------------------------------

2021-01-21 22:00:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-05c78be3-c86f-4c8e-9452-3df5242ce097"
}

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

2021-01-21 22:00:35 | [Mutex] waiting for: [received:nodes:354adba9-683e-49eb-8a59-932b6f13fe55:localhost]

2021-01-21 22:00:35 | [Mutex] received everything.

2021-01-21 22:00:35 | [Mutex] isItemNotified: received:node:354adba9-683e-49eb-8a59-932b6f13fe55:localhost:node-05c78be3-c86f-4c8e-9452-3df5242ce097:Node 05c78be3-c86f-4c8e-9452-3df5242ce097 :: false

deleteSubnodes 1.025s
2021-01-21 22:00:33 |

2021-01-21 22:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:33 | ------------------------------------

2021-01-21 22:00:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb"
}

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

2021-01-21 22:00:34 | [Mutex] waiting for: [received:nodes:0e30bac8-79e3-453c-bfe9-1f0ff4289e6a:localhost]

2021-01-21 22:00:34 | [Mutex] received everything.

2021-01-21 22:00:34 | [Mutex] isItemNotified: received:node:0e30bac8-79e3-453c-bfe9-1f0ff4289e6a:localhost:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb :: false

2021-01-21 22:00:34 | [Mutex] waiting for: [received:nodes:dc81e529-a85e-4531-9d6e-f46ed1001ffb:localhost]

2021-01-21 22:00:34 | [Mutex] received everything.

2021-01-21 22:00:34 | [Mutex] isItemNotified: received:node:dc81e529-a85e-4531-9d6e-f46ed1001ffb:localhost:node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb:Node 5fffe4f4-afac-4d15-9a23-ae04cd2efcbb :: false

publishItemsToNodes 0.043s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

2021-01-21 22:00:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "entry": "<test>item-f5f21a77-f3c7-4963-8983-402867b906b2</test>",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2"
}

2021-01-21 22:00:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2"
}

2021-01-21 22:00:32 | [Mutex] waiting for: [published:item:notifieditem-f5f21a77-f3c7-4963-8983-402867b906b2:admin@test-domain.com]

2021-01-21 22:00:32 | [Mutex] received everything.

2021-01-21 22:00:32 | [Mutex] isItemNotified: published:item:notifieditem-f5f21a77-f3c7-4963-8983-402867b906b2:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

2021-01-21 22:00:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2"
}

2021-01-21 22:00:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2"
}

2021-01-21 22:00:32 | [Mutex] received everything.

2021-01-21 22:00:32 | [Mutex] isItemNotified: retracted:item:notifieditem-f5f21a77-f3c7-4963-8983-402867b906b2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

2021-01-21 22:00:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2"
}

2021-01-21 22:00:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "item-id": "item-f5f21a77-f3c7-4963-8983-402867b906b2",
    "item": [
        "<item id=\"item-f5f21a77-f3c7-4963-8983-402867b906b2\"><test>item-f5f21a77-f3c7-4963-8983-402867b906b2</test></item>"
    ]
}

2021-01-21 22:00:32 | [Mutex] notify: [retrieved:item:item-f5f21a77-f3c7-4963-8983-402867b906b2:payload-matches:true:localhost]

2021-01-21 22:00:32 | [Mutex] received everything.

2021-01-21 22:00:32 | [Mutex] isItemNotified: retrieved:item:item-f5f21a77-f3c7-4963-8983-402867b906b2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

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

2021-01-21 22:00:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
        "node-05c78be3-c86f-4c8e-9452-3df5242ce097"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

2021-01-21 22:00:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb)"
}

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

subscribeNodes 1.014s
2021-01-21 22:00:31 |

2021-01-21 22:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:31 | ------------------------------------

2021-01-21 22:00:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.074s
2021-01-21 22:00:32 |

2021-01-21 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 22:00:32 | ------------------------------------

2021-01-21 22:00:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5fffe4f4-afac-4d15-9a23-ae04cd2efcbb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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