Generated by TestNG with ReportNG at 22:26 PDT on Tuesday 25 May 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 : 8.960s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.152s
2021-05-25 22:42:33 |

2021-05-25 22:42:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:33 | ------------------------------------

2021-05-25 22:42:33 | [Mutex] waiting for: [configured:node:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76]

2021-05-25 22:42:33 | [Mutex] received everything.

2021-05-25 22:42:33 | [Mutex] isItemNotified: configured:node:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76 :: true

2021-05-25 22:42:34 | [Mutex] waiting for: [received:nodes:236b1e16-42f4-495a-be2c-977d9bf2f97f:localhost]

2021-05-25 22:42:34 | [Mutex] received everything.

2021-05-25 22:42:34 | [Mutex] isItemNotified: received:node:236b1e16-42f4-495a-be2c-977d9bf2f97f:localhost:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5 :: true

2021-05-25 22:42:34 | [Mutex] waiting for: [received:nodes:de0695e4-b069-4589-a804-07806be25c81:localhost]

2021-05-25 22:42:34 | [Mutex] received everything.

2021-05-25 22:42:34 | [Mutex] isItemNotified: received:node:de0695e4-b069-4589-a804-07806be25c81:localhost:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5 :: false

createNodes 1.666s
2021-05-25 22:42:31 |

2021-05-25 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:31 | ------------------------------------

2021-05-25 22:42:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "pubsub#title": "Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5"
}

2021-05-25 22:42:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:42:32 | [Mutex] waiting for: [received:nodes:a1d3a68f-187c-4a0e-afa4-43f866bb6a4c:localhost]

2021-05-25 22:42:32 | [Mutex] received everything.

2021-05-25 22:42:32 | [Mutex] isItemNotified: received:node:a1d3a68f-187c-4a0e-afa4-43f866bb6a4c:localhost:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5 :: true

createSubnodes 1.027s
2021-05-25 22:42:32 |

2021-05-25 22:42:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:32 | ------------------------------------

2021-05-25 22:42:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76",
    "pubsub#title": "Node 661d1ec1-f301-4c55-a98f-5e8a3b5ceb76"
}

2021-05-25 22:42:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:42:33 | [Mutex] waiting for: [received:nodes:864ed9ba-808e-49f6-9fdd-700a5a045be2:localhost]

2021-05-25 22:42:33 | [Mutex] received everything.

2021-05-25 22:42:33 | [Mutex] isItemNotified: received:node:864ed9ba-808e-49f6-9fdd-700a5a045be2:localhost:node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76:Node 661d1ec1-f301-4c55-a98f-5e8a3b5ceb76 :: true

deleteNodes 1.023s
2021-05-25 22:42:38 |

2021-05-25 22:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:38 | ------------------------------------

2021-05-25 22:42:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76"
}

2021-05-25 22:42:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:42:39 | [Mutex] waiting for: [received:nodes:622d963e-f017-4a41-b241-afa73d0b6dce:localhost]

2021-05-25 22:42:39 | [Mutex] waiting for: [received:nodes:622d963e-f017-4a41-b241-afa73d0b6dce:localhost]

2021-05-25 22:42:39 | [Mutex] received everything.

2021-05-25 22:42:39 | [Mutex] isItemNotified: received:node:622d963e-f017-4a41-b241-afa73d0b6dce:localhost:node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76:Node 661d1ec1-f301-4c55-a98f-5e8a3b5ceb76 :: false

deleteSubnodes 1.028s
2021-05-25 22:42:37 |

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

2021-05-25 22:42:37 | ------------------------------------

2021-05-25 22:42:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5"
}

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

2021-05-25 22:42:38 | [Mutex] waiting for: [received:nodes:2274238f-b8d6-400f-a807-05094d3add89:localhost]

2021-05-25 22:42:38 | [Mutex] waiting for: [received:nodes:2274238f-b8d6-400f-a807-05094d3add89:localhost]

2021-05-25 22:42:38 | [Mutex] received everything.

2021-05-25 22:42:38 | [Mutex] isItemNotified: received:node:2274238f-b8d6-400f-a807-05094d3add89:localhost:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5 :: false

2021-05-25 22:42:38 | [Mutex] waiting for: [received:nodes:4190744d-c43c-4242-96c1-0593cceb7bef:localhost]

2021-05-25 22:42:38 | [Mutex] received everything.

2021-05-25 22:42:38 | [Mutex] isItemNotified: received:node:4190744d-c43c-4242-96c1-0593cceb7bef:localhost:node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5:Node 3ccb9ac2-22a2-4314-8422-54c4a66d6fe5 :: false

publishItemsToNodes 0.036s
2021-05-25 22:42:35 |

2021-05-25 22:42:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:35 | ------------------------------------

2021-05-25 22:42:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "entry": "<test>item-956db2ed-34b7-4524-ba27-3735f38fb488</test>",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488"
}

2021-05-25 22:42:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488"
}

2021-05-25 22:42:35 | [Mutex] waiting for: [published:item:notifieditem-956db2ed-34b7-4524-ba27-3735f38fb488:admin@test-domain.com]

2021-05-25 22:42:35 | [Mutex] received everything.

2021-05-25 22:42:35 | [Mutex] isItemNotified: published:item:notifieditem-956db2ed-34b7-4524-ba27-3735f38fb488:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-05-25 22:42:36 |

2021-05-25 22:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:36 | ------------------------------------

2021-05-25 22:42:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488"
}

2021-05-25 22:42:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488"
}

2021-05-25 22:42:36 | [Mutex] received everything.

2021-05-25 22:42:36 | [Mutex] isItemNotified: retracted:item:notifieditem-956db2ed-34b7-4524-ba27-3735f38fb488:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-05-25 22:42:35 |

2021-05-25 22:42:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:35 | ------------------------------------

2021-05-25 22:42:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488"
}

2021-05-25 22:42:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "item-id": "item-956db2ed-34b7-4524-ba27-3735f38fb488",
    "item": [
        "<item id=\"item-956db2ed-34b7-4524-ba27-3735f38fb488\"><test>item-956db2ed-34b7-4524-ba27-3735f38fb488</test></item>"
    ]
}

2021-05-25 22:42:36 | [Mutex] notify: [retrieved:item:item-956db2ed-34b7-4524-ba27-3735f38fb488:payload-matches:true:localhost]

2021-05-25 22:42:36 | [Mutex] received everything.

2021-05-25 22:42:36 | [Mutex] isItemNotified: retrieved:item:item-956db2ed-34b7-4524-ba27-3735f38fb488:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-25 22:42:36 |

2021-05-25 22:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:36 | ------------------------------------

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

2021-05-25 22:42:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-661d1ec1-f301-4c55-a98f-5e8a3b5ceb76",
        "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-25 22:42:36 |

2021-05-25 22:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:36 | ------------------------------------

2021-05-25 22:42:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5)"
}

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

subscribeNodes 1.012s
2021-05-25 22:42:34 |

2021-05-25 22:42:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:34 | ------------------------------------

2021-05-25 22:42:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2021-05-25 22:42:36 |

2021-05-25 22:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:42:36 | ------------------------------------

2021-05-25 22:42:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ccb9ac2-22a2-4314-8422-54c4a66d6fe5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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