Generated by TestNG with ReportNG at 21:57 PST on Thursday 14 January 2021
root@87f6aca6b6f2 / 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.030s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-01-14 22:13:54 |

2021-01-14 22:13:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:54 | ------------------------------------

2021-01-14 22:13:54 | [Mutex] waiting for: [configured:node:node-5fb71b21-2200-4361-a91f-d55da8cff321:node-88db1e5c-8552-4aad-925a-cf63fb97c625]

2021-01-14 22:13:54 | [Mutex] received everything.

2021-01-14 22:13:54 | [Mutex] isItemNotified: configured:node:node-5fb71b21-2200-4361-a91f-d55da8cff321:node-88db1e5c-8552-4aad-925a-cf63fb97c625 :: true

2021-01-14 22:13:55 | [Mutex] waiting for: [received:nodes:eadd0599-3548-46dc-8c8f-661a8817c668:localhost]

2021-01-14 22:13:55 | [Mutex] received everything.

2021-01-14 22:13:55 | [Mutex] isItemNotified: received:node:eadd0599-3548-46dc-8c8f-661a8817c668:localhost:node-5fb71b21-2200-4361-a91f-d55da8cff321:Node 5fb71b21-2200-4361-a91f-d55da8cff321 :: true

2021-01-14 22:13:55 | [Mutex] waiting for: [received:nodes:6c6fe9c4-7554-4a59-bc6e-d030f6863152:localhost]

2021-01-14 22:13:55 | [Mutex] waiting for: [received:nodes:6c6fe9c4-7554-4a59-bc6e-d030f6863152:localhost]

2021-01-14 22:13:55 | [Mutex] received everything.

2021-01-14 22:13:55 | [Mutex] isItemNotified: received:node:6c6fe9c4-7554-4a59-bc6e-d030f6863152:localhost:node-5fb71b21-2200-4361-a91f-d55da8cff321:Node 5fb71b21-2200-4361-a91f-d55da8cff321 :: false

createNodes 1.500s
2021-01-14 22:13:51 |

2021-01-14 22:13:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:51 | ------------------------------------

2021-01-14 22:13:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "pubsub#title": "Node 5fb71b21-2200-4361-a91f-d55da8cff321"
}

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

2021-01-14 22:13:53 | [Mutex] waiting for: [received:nodes:966ffa35-a3c8-43af-9634-638c39346f10:localhost]

2021-01-14 22:13:53 | [Mutex] received everything.

2021-01-14 22:13:53 | [Mutex] isItemNotified: received:node:966ffa35-a3c8-43af-9634-638c39346f10:localhost:node-5fb71b21-2200-4361-a91f-d55da8cff321:Node 5fb71b21-2200-4361-a91f-d55da8cff321 :: true

createSubnodes 1.056s
2021-01-14 22:13:53 |

2021-01-14 22:13:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:53 | ------------------------------------

2021-01-14 22:13:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-88db1e5c-8552-4aad-925a-cf63fb97c625",
    "pubsub#title": "Node 88db1e5c-8552-4aad-925a-cf63fb97c625"
}

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

2021-01-14 22:13:54 | [Mutex] waiting for: [received:nodes:744a78ba-0f7e-41b5-8f4b-56493b34756b:localhost]

2021-01-14 22:13:54 | [Mutex] waiting for: [received:nodes:744a78ba-0f7e-41b5-8f4b-56493b34756b:localhost]

2021-01-14 22:13:54 | [Mutex] received everything.

2021-01-14 22:13:54 | [Mutex] isItemNotified: received:node:744a78ba-0f7e-41b5-8f4b-56493b34756b:localhost:node-88db1e5c-8552-4aad-925a-cf63fb97c625:Node 88db1e5c-8552-4aad-925a-cf63fb97c625 :: true

deleteNodes 1.030s
2021-01-14 22:13:58 |

2021-01-14 22:13:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:58 | ------------------------------------

2021-01-14 22:13:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-88db1e5c-8552-4aad-925a-cf63fb97c625"
}

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

2021-01-14 22:13:59 | [Mutex] waiting for: [received:nodes:74ca6555-ddbe-410a-bb2e-86784a8c5631:localhost]

2021-01-14 22:13:59 | [Mutex] received everything.

2021-01-14 22:13:59 | [Mutex] isItemNotified: received:node:74ca6555-ddbe-410a-bb2e-86784a8c5631:localhost:node-88db1e5c-8552-4aad-925a-cf63fb97c625:Node 88db1e5c-8552-4aad-925a-cf63fb97c625 :: false

deleteSubnodes 1.034s
2021-01-14 22:13:57 |

2021-01-14 22:13:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:57 | ------------------------------------

2021-01-14 22:13:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321"
}

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

2021-01-14 22:13:58 | [Mutex] waiting for: [received:nodes:4f40bf88-13f3-49fb-b210-eaf8274df047:localhost]

2021-01-14 22:13:58 | [Mutex] received everything.

2021-01-14 22:13:58 | [Mutex] isItemNotified: received:node:4f40bf88-13f3-49fb-b210-eaf8274df047:localhost:node-5fb71b21-2200-4361-a91f-d55da8cff321:Node 5fb71b21-2200-4361-a91f-d55da8cff321 :: false

2021-01-14 22:13:58 | [Mutex] waiting for: [received:nodes:b43b2562-cb07-4abf-a77b-d84b1b2db90a:localhost]

2021-01-14 22:13:58 | [Mutex] received everything.

2021-01-14 22:13:58 | [Mutex] isItemNotified: received:node:b43b2562-cb07-4abf-a77b-d84b1b2db90a:localhost:node-5fb71b21-2200-4361-a91f-d55da8cff321:Node 5fb71b21-2200-4361-a91f-d55da8cff321 :: false

publishItemsToNodes 0.055s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

2021-01-14 22:13:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "entry": "<test>item-0a95b772-5244-412e-a111-aa31b1c4b0d7</test>",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7"
}

2021-01-14 22:13:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7"
}

2021-01-14 22:13:56 | [Mutex] waiting for: [published:item:notifieditem-0a95b772-5244-412e-a111-aa31b1c4b0d7:admin@test-domain.com]

2021-01-14 22:13:56 | [Mutex] received everything.

2021-01-14 22:13:56 | [Mutex] isItemNotified: published:item:notifieditem-0a95b772-5244-412e-a111-aa31b1c4b0d7:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

2021-01-14 22:13:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7"
}

2021-01-14 22:13:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7"
}

2021-01-14 22:13:56 | [Mutex] received everything.

2021-01-14 22:13:56 | [Mutex] isItemNotified: retracted:item:notifieditem-0a95b772-5244-412e-a111-aa31b1c4b0d7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.033s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

2021-01-14 22:13:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7"
}

2021-01-14 22:13:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "item-id": "item-0a95b772-5244-412e-a111-aa31b1c4b0d7",
    "item": [
        "<item id=\"item-0a95b772-5244-412e-a111-aa31b1c4b0d7\"><test>item-0a95b772-5244-412e-a111-aa31b1c4b0d7</test></item>"
    ]
}

2021-01-14 22:13:56 | [Mutex] notify: [retrieved:item:item-0a95b772-5244-412e-a111-aa31b1c4b0d7:payload-matches:true:localhost]

2021-01-14 22:13:56 | [Mutex] received everything.

2021-01-14 22:13:56 | [Mutex] isItemNotified: retrieved:item:item-0a95b772-5244-412e-a111-aa31b1c4b0d7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.081s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

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

2021-01-14 22:13:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5fb71b21-2200-4361-a91f-d55da8cff321",
        "node-88db1e5c-8552-4aad-925a-cf63fb97c625"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

2021-01-14 22:13:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5fb71b21-2200-4361-a91f-d55da8cff321)"
}

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

subscribeNodes 1.014s
2021-01-14 22:13:55 |

2021-01-14 22:13:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:55 | ------------------------------------

2021-01-14 22:13:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.126s
2021-01-14 22:13:56 |

2021-01-14 22:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:13:56 | ------------------------------------

2021-01-14 22:13:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5fb71b21-2200-4361-a91f-d55da8cff321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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