Generated by TestNG with ReportNG at 22:45 PDT on Thursday 01 October 2020
root@43fec6d4badf / 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.200s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2020-10-01 23:01:04 |

2020-10-01 23:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:04 | ------------------------------------

2020-10-01 23:01:04 | [Mutex] waiting for: [configured:node:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d]

2020-10-01 23:01:04 | [Mutex] received everything.

2020-10-01 23:01:04 | [Mutex] isItemNotified: configured:node:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d :: true

2020-10-01 23:01:05 | [Mutex] waiting for: [received:nodes:2d8dbf17-1656-4b96-bf61-82b0682a51bf:localhost]

2020-10-01 23:01:05 | [Mutex] received everything.

2020-10-01 23:01:05 | [Mutex] isItemNotified: received:node:2d8dbf17-1656-4b96-bf61-82b0682a51bf:localhost:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44 :: true

2020-10-01 23:01:05 | [Mutex] waiting for: [received:nodes:e34a1147-6055-4c66-a9a2-270eb560938d:localhost]

2020-10-01 23:01:05 | [Mutex] received everything.

2020-10-01 23:01:05 | [Mutex] isItemNotified: received:node:e34a1147-6055-4c66-a9a2-270eb560938d:localhost:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44 :: false

createNodes 1.882s
2020-10-01 23:01:01 |

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

2020-10-01 23:01:01 | ------------------------------------

2020-10-01 23:01:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "pubsub#title": "Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44"
}

2020-10-01 23:01:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-01 23:01:02 | [Mutex] waiting for: [received:nodes:6ec52747-6eca-4ad3-87c8-354565fc6821:localhost]

2020-10-01 23:01:03 | [Mutex] received everything.

2020-10-01 23:01:03 | [Mutex] isItemNotified: received:node:6ec52747-6eca-4ad3-87c8-354565fc6821:localhost:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44 :: true

createSubnodes 1.023s
2020-10-01 23:01:03 |

2020-10-01 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:03 | ------------------------------------

2020-10-01 23:01: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-3cc9cb46-aaea-45b8-a32d-97ad0417c41d",
    "pubsub#title": "Node 3cc9cb46-aaea-45b8-a32d-97ad0417c41d"
}

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

2020-10-01 23:01:04 | [Mutex] waiting for: [received:nodes:d58f9766-fb4f-481b-b456-587a86a24c97:localhost]

2020-10-01 23:01:04 | [Mutex] received everything.

2020-10-01 23:01:04 | [Mutex] isItemNotified: received:node:d58f9766-fb4f-481b-b456-587a86a24c97:localhost:node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d:Node 3cc9cb46-aaea-45b8-a32d-97ad0417c41d :: true

deleteNodes 1.025s
2020-10-01 23:01:08 |

2020-10-01 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:08 | ------------------------------------

2020-10-01 23:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d"
}

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

2020-10-01 23:01:09 | [Mutex] waiting for: [received:nodes:8a4aa774-62df-46fb-b2c2-66f71deab8b8:localhost]

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

2020-10-01 23:01:09 | [Mutex] isItemNotified: received:node:8a4aa774-62df-46fb-b2c2-66f71deab8b8:localhost:node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d:Node 3cc9cb46-aaea-45b8-a32d-97ad0417c41d :: false

deleteSubnodes 1.025s
2020-10-01 23:01:07 |

2020-10-01 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:07 | ------------------------------------

2020-10-01 23:01:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44"
}

2020-10-01 23:01:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-01 23:01:08 | [Mutex] waiting for: [received:nodes:2cb5951f-ff26-43a9-bd8b-468f8cd94036:localhost]

2020-10-01 23:01:08 | [Mutex] waiting for: [received:nodes:2cb5951f-ff26-43a9-bd8b-468f8cd94036:localhost]

2020-10-01 23:01:08 | [Mutex] waiting for: [received:nodes:2cb5951f-ff26-43a9-bd8b-468f8cd94036:localhost]

2020-10-01 23:01:08 | [Mutex] received everything.

2020-10-01 23:01:08 | [Mutex] isItemNotified: received:node:2cb5951f-ff26-43a9-bd8b-468f8cd94036:localhost:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44 :: false

2020-10-01 23:01:08 | [Mutex] waiting for: [received:nodes:2c788d34-b3aa-48ec-b10f-b068cfaad7ae:localhost]

2020-10-01 23:01:08 | [Mutex] received everything.

2020-10-01 23:01:08 | [Mutex] isItemNotified: received:node:2c788d34-b3aa-48ec-b10f-b068cfaad7ae:localhost:node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44:Node 2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44 :: false

publishItemsToNodes 0.062s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

2020-10-01 23:01:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "entry": "<test>item-289549a8-753f-452a-8908-d73294eb84fc</test>",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc"
}

2020-10-01 23:01:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc"
}

2020-10-01 23:01:06 | [Mutex] waiting for: [published:item:notifieditem-289549a8-753f-452a-8908-d73294eb84fc:admin@test-domain.com]

2020-10-01 23:01:06 | [Mutex] received everything.

2020-10-01 23:01:06 | [Mutex] isItemNotified: published:item:notifieditem-289549a8-753f-452a-8908-d73294eb84fc:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

2020-10-01 23:01:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc"
}

2020-10-01 23:01:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc"
}

2020-10-01 23:01:06 | [Mutex] received everything.

2020-10-01 23:01:06 | [Mutex] isItemNotified: retracted:item:notifieditem-289549a8-753f-452a-8908-d73294eb84fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

2020-10-01 23:01:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc"
}

2020-10-01 23:01:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "item-id": "item-289549a8-753f-452a-8908-d73294eb84fc",
    "item": [
        "<item id=\"item-289549a8-753f-452a-8908-d73294eb84fc\"><test>item-289549a8-753f-452a-8908-d73294eb84fc</test></item>"
    ]
}

2020-10-01 23:01:06 | [Mutex] notify: [retrieved:item:item-289549a8-753f-452a-8908-d73294eb84fc:payload-matches:true:localhost]

2020-10-01 23:01:06 | [Mutex] received everything.

2020-10-01 23:01:06 | [Mutex] isItemNotified: retrieved:item:item-289549a8-753f-452a-8908-d73294eb84fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

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

2020-10-01 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
        "node-3cc9cb46-aaea-45b8-a32d-97ad0417c41d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

2020-10-01 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44)"
}

2020-10-01 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-10-01 23:01:05 |

2020-10-01 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:05 | ------------------------------------

2020-10-01 23:01:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2020-10-01 23:01:06 |

2020-10-01 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-01 23:01:06 | ------------------------------------

2020-10-01 23:01:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2b0dedca-b3d6-4945-b6f5-7b5c0a7cfc44",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-01 23:01:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}