Generated by TestNG with ReportNG at 22:57 PDT on Sunday 06 September 2020
root@3ee9c8e1f047 / 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.110s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2020-09-06 23:12:06 |

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

2020-09-06 23:12:06 | ------------------------------------

2020-09-06 23:12:06 | [Mutex] waiting for: [configured:node:node-06d19f7b-3d92-4332-b12d-e418250723d2:node-16c0baa6-aa1f-4f77-bc66-105d86374a88]

2020-09-06 23:12:06 | [Mutex] received everything.

2020-09-06 23:12:06 | [Mutex] isItemNotified: configured:node:node-06d19f7b-3d92-4332-b12d-e418250723d2:node-16c0baa6-aa1f-4f77-bc66-105d86374a88 :: true

2020-09-06 23:12:07 | [Mutex] waiting for: [received:nodes:34760507-df8e-4bc4-94e7-686febf1acf6:localhost]

2020-09-06 23:12:07 | [Mutex] received everything.

2020-09-06 23:12:07 | [Mutex] isItemNotified: received:node:34760507-df8e-4bc4-94e7-686febf1acf6:localhost:node-06d19f7b-3d92-4332-b12d-e418250723d2:Node 06d19f7b-3d92-4332-b12d-e418250723d2 :: true

2020-09-06 23:12:07 | [Mutex] waiting for: [received:nodes:f91e3ff9-c634-4af2-aa3b-56939fa628ab:localhost]

2020-09-06 23:12:07 | [Mutex] received everything.

2020-09-06 23:12:07 | [Mutex] isItemNotified: received:node:f91e3ff9-c634-4af2-aa3b-56939fa628ab:localhost:node-06d19f7b-3d92-4332-b12d-e418250723d2:Node 06d19f7b-3d92-4332-b12d-e418250723d2 :: false

createNodes 1.738s
2020-09-06 23:12:03 |

2020-09-06 23:12:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:03 | ------------------------------------

2020-09-06 23:12:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "pubsub#title": "Node 06d19f7b-3d92-4332-b12d-e418250723d2"
}

2020-09-06 23:12:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-06 23:12:05 | [Mutex] waiting for: [received:nodes:f0200fa9-7b89-4a9a-b47e-ff7204f11b2b:localhost]

2020-09-06 23:12:05 | [Mutex] received everything.

2020-09-06 23:12:05 | [Mutex] isItemNotified: received:node:f0200fa9-7b89-4a9a-b47e-ff7204f11b2b:localhost:node-06d19f7b-3d92-4332-b12d-e418250723d2:Node 06d19f7b-3d92-4332-b12d-e418250723d2 :: true

createSubnodes 1.045s
2020-09-06 23:12:05 |

2020-09-06 23:12:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:05 | ------------------------------------

2020-09-06 23:12:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-16c0baa6-aa1f-4f77-bc66-105d86374a88",
    "pubsub#title": "Node 16c0baa6-aa1f-4f77-bc66-105d86374a88"
}

2020-09-06 23:12:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-06 23:12:06 | [Mutex] waiting for: [received:nodes:1461d398-e02a-4770-b702-e7de1a1cc48b:localhost]

2020-09-06 23:12:06 | [Mutex] received everything.

2020-09-06 23:12:06 | [Mutex] isItemNotified: received:node:1461d398-e02a-4770-b702-e7de1a1cc48b:localhost:node-16c0baa6-aa1f-4f77-bc66-105d86374a88:Node 16c0baa6-aa1f-4f77-bc66-105d86374a88 :: true

deleteNodes 1.022s
2020-09-06 23:12:11 |

2020-09-06 23:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:11 | ------------------------------------

2020-09-06 23:12:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-16c0baa6-aa1f-4f77-bc66-105d86374a88"
}

2020-09-06 23:12:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-06 23:12:12 | [Mutex] waiting for: [received:nodes:3236052b-d05f-4056-ada1-37d4176fb42a:localhost]

2020-09-06 23:12:12 | [Mutex] received everything.

2020-09-06 23:12:12 | [Mutex] isItemNotified: received:node:3236052b-d05f-4056-ada1-37d4176fb42a:localhost:node-16c0baa6-aa1f-4f77-bc66-105d86374a88:Node 16c0baa6-aa1f-4f77-bc66-105d86374a88 :: false

deleteSubnodes 1.030s
2020-09-06 23:12:10 |

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

2020-09-06 23:12:10 | ------------------------------------

2020-09-06 23:12:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2"
}

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

2020-09-06 23:12:11 | [Mutex] waiting for: [received:nodes:3069fd62-6c35-4b1e-993c-26707692396b:localhost]

2020-09-06 23:12:11 | [Mutex] waiting for: [received:nodes:3069fd62-6c35-4b1e-993c-26707692396b:localhost]

2020-09-06 23:12:11 | [Mutex] waiting for: [received:nodes:3069fd62-6c35-4b1e-993c-26707692396b:localhost]

2020-09-06 23:12:11 | [Mutex] received everything.

2020-09-06 23:12:11 | [Mutex] isItemNotified: received:node:3069fd62-6c35-4b1e-993c-26707692396b:localhost:node-06d19f7b-3d92-4332-b12d-e418250723d2:Node 06d19f7b-3d92-4332-b12d-e418250723d2 :: false

2020-09-06 23:12:11 | [Mutex] waiting for: [received:nodes:a41d0fbb-80d5-4d39-ae50-330925ad2474:localhost]

2020-09-06 23:12:11 | [Mutex] received everything.

2020-09-06 23:12:11 | [Mutex] isItemNotified: received:node:a41d0fbb-80d5-4d39-ae50-330925ad2474:localhost:node-06d19f7b-3d92-4332-b12d-e418250723d2:Node 06d19f7b-3d92-4332-b12d-e418250723d2 :: false

publishItemsToNodes 0.043s
2020-09-06 23:12:08 |

2020-09-06 23:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:08 | ------------------------------------

2020-09-06 23:12:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "entry": "<test>item-142f26ba-8233-45a5-8bf0-a81788de7297</test>",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297"
}

2020-09-06 23:12:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297"
}

2020-09-06 23:12:08 | [Mutex] waiting for: [published:item:notifieditem-142f26ba-8233-45a5-8bf0-a81788de7297:admin@test-domain.com]

2020-09-06 23:12:08 | [Mutex] received everything.

2020-09-06 23:12:08 | [Mutex] isItemNotified: published:item:notifieditem-142f26ba-8233-45a5-8bf0-a81788de7297:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-09-06 23:12:08 |

2020-09-06 23:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:08 | ------------------------------------

2020-09-06 23:12:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297"
}

2020-09-06 23:12:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297"
}

2020-09-06 23:12:09 | [Mutex] received everything.

2020-09-06 23:12:09 | [Mutex] isItemNotified: retracted:item:notifieditem-142f26ba-8233-45a5-8bf0-a81788de7297:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2020-09-06 23:12:08 |

2020-09-06 23:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:08 | ------------------------------------

2020-09-06 23:12:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297"
}

2020-09-06 23:12:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "item-id": "item-142f26ba-8233-45a5-8bf0-a81788de7297",
    "item": [
        "<item id=\"item-142f26ba-8233-45a5-8bf0-a81788de7297\"><test>item-142f26ba-8233-45a5-8bf0-a81788de7297</test></item>"
    ]
}

2020-09-06 23:12:08 | [Mutex] notify: [retrieved:item:item-142f26ba-8233-45a5-8bf0-a81788de7297:payload-matches:true:localhost]

2020-09-06 23:12:08 | [Mutex] received everything.

2020-09-06 23:12:08 | [Mutex] isItemNotified: retrieved:item:item-142f26ba-8233-45a5-8bf0-a81788de7297:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-06 23:12:08 |

2020-09-06 23:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:08 | ------------------------------------

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

2020-09-06 23:12:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-06d19f7b-3d92-4332-b12d-e418250723d2",
        "test",
        "node-16c0baa6-aa1f-4f77-bc66-105d86374a88"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-06 23:12:08 |

2020-09-06 23:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:08 | ------------------------------------

2020-09-06 23:12:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-06d19f7b-3d92-4332-b12d-e418250723d2)"
}

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

subscribeNodes 1.015s
2020-09-06 23:12:07 |

2020-09-06 23:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-06 23:12:07 | ------------------------------------

2020-09-06 23:12:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-06 23:12:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2020-09-06 23:12:09 |

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

2020-09-06 23:12:09 | ------------------------------------

2020-09-06 23:12:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-06d19f7b-3d92-4332-b12d-e418250723d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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