Generated by TestNG with ReportNG at 21:15 PST on Thursday 18 February 2021
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.009s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2021-02-18 21:31:04 |

2021-02-18 21:31:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:04 | ------------------------------------

2021-02-18 21:31:04 | [Mutex] waiting for: [configured:node:node-549b1150-782b-4349-a419-75747357d9a8:node-0cda6a64-a288-4e0c-9f7d-44474af10458]

2021-02-18 21:31:04 | [Mutex] received everything.

2021-02-18 21:31:04 | [Mutex] isItemNotified: configured:node:node-549b1150-782b-4349-a419-75747357d9a8:node-0cda6a64-a288-4e0c-9f7d-44474af10458 :: true

2021-02-18 21:31:05 | [Mutex] waiting for: [received:nodes:cb5d6f49-2efd-41ab-901e-bb409b5596ca:localhost]

2021-02-18 21:31:05 | [Mutex] received everything.

2021-02-18 21:31:05 | [Mutex] isItemNotified: received:node:cb5d6f49-2efd-41ab-901e-bb409b5596ca:localhost:node-549b1150-782b-4349-a419-75747357d9a8:Node 549b1150-782b-4349-a419-75747357d9a8 :: true

2021-02-18 21:31:05 | [Mutex] waiting for: [received:nodes:6ef0bc4c-5882-4894-9763-1290ae8e1df2:localhost]

2021-02-18 21:31:06 | [Mutex] waiting for: [received:nodes:6ef0bc4c-5882-4894-9763-1290ae8e1df2:localhost]

2021-02-18 21:31:06 | [Mutex] waiting for: [received:nodes:6ef0bc4c-5882-4894-9763-1290ae8e1df2:localhost]

2021-02-18 21:31:06 | [Mutex] received everything.

2021-02-18 21:31:06 | [Mutex] isItemNotified: received:node:6ef0bc4c-5882-4894-9763-1290ae8e1df2:localhost:node-549b1150-782b-4349-a419-75747357d9a8:Node 549b1150-782b-4349-a419-75747357d9a8 :: false

createNodes 1.579s
2021-02-18 21:31:02 |

2021-02-18 21:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:02 | ------------------------------------

2021-02-18 21:31:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "pubsub#title": "Node 549b1150-782b-4349-a419-75747357d9a8"
}

2021-02-18 21:31:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:03 | [Mutex] waiting for: [received:nodes:3229e05c-6add-4b02-a4a9-ec25c9aecf4d:localhost]

2021-02-18 21:31:03 | [Mutex] received everything.

2021-02-18 21:31:03 | [Mutex] isItemNotified: received:node:3229e05c-6add-4b02-a4a9-ec25c9aecf4d:localhost:node-549b1150-782b-4349-a419-75747357d9a8:Node 549b1150-782b-4349-a419-75747357d9a8 :: true

createSubnodes 1.028s
2021-02-18 21:31:03 |

2021-02-18 21:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:03 | ------------------------------------

2021-02-18 21:31: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-0cda6a64-a288-4e0c-9f7d-44474af10458",
    "pubsub#title": "Node 0cda6a64-a288-4e0c-9f7d-44474af10458"
}

2021-02-18 21:31:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:04 | [Mutex] waiting for: [received:nodes:dbebd738-c6c0-4725-88ff-1aa1ce62083e:localhost]

2021-02-18 21:31:04 | [Mutex] received everything.

2021-02-18 21:31:04 | [Mutex] isItemNotified: received:node:dbebd738-c6c0-4725-88ff-1aa1ce62083e:localhost:node-0cda6a64-a288-4e0c-9f7d-44474af10458:Node 0cda6a64-a288-4e0c-9f7d-44474af10458 :: true

deleteNodes 1.026s
2021-02-18 21:31:09 |

2021-02-18 21:31:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:09 | ------------------------------------

2021-02-18 21:31:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0cda6a64-a288-4e0c-9f7d-44474af10458"
}

2021-02-18 21:31:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:10 | [Mutex] waiting for: [received:nodes:39fa6d10-7da1-4979-8fe0-d54dfa773217:localhost]

2021-02-18 21:31:10 | [Mutex] received everything.

2021-02-18 21:31:10 | [Mutex] isItemNotified: received:node:39fa6d10-7da1-4979-8fe0-d54dfa773217:localhost:node-0cda6a64-a288-4e0c-9f7d-44474af10458:Node 0cda6a64-a288-4e0c-9f7d-44474af10458 :: false

deleteSubnodes 1.028s
2021-02-18 21:31:08 |

2021-02-18 21:31:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:08 | ------------------------------------

2021-02-18 21:31:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8"
}

2021-02-18 21:31:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:09 | [Mutex] waiting for: [received:nodes:d4755336-de33-40e0-81b5-3b96baa75a9b:localhost]

2021-02-18 21:31:09 | [Mutex] received everything.

2021-02-18 21:31:09 | [Mutex] isItemNotified: received:node:d4755336-de33-40e0-81b5-3b96baa75a9b:localhost:node-549b1150-782b-4349-a419-75747357d9a8:Node 549b1150-782b-4349-a419-75747357d9a8 :: false

2021-02-18 21:31:09 | [Mutex] waiting for: [received:nodes:af9fbff8-2465-4590-b78b-8483e43ae73d:localhost]

2021-02-18 21:31:09 | [Mutex] received everything.

2021-02-18 21:31:09 | [Mutex] isItemNotified: received:node:af9fbff8-2465-4590-b78b-8483e43ae73d:localhost:node-549b1150-782b-4349-a419-75747357d9a8:Node 549b1150-782b-4349-a419-75747357d9a8 :: false

publishItemsToNodes 0.035s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "entry": "<test>item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9</test>",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9"
}

2021-02-18 21:31:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9"
}

2021-02-18 21:31:07 | [Mutex] received everything.

2021-02-18 21:31:07 | [Mutex] isItemNotified: published:item:notifieditem-365ed113-9b46-4f89-9d7a-4e0a2f4352d9:admin@test-domain.com :: true

retractItemsFromNodes 0.124s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9"
}

2021-02-18 21:31:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9"
}

2021-02-18 21:31:07 | [Mutex] received everything.

2021-02-18 21:31:07 | [Mutex] isItemNotified: retracted:item:notifieditem-365ed113-9b46-4f89-9d7a-4e0a2f4352d9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.101s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9"
}

2021-02-18 21:31:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "item-id": "item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9",
    "item": [
        "<item id=\"item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9\"><test>item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9</test></item>"
    ]
}

2021-02-18 21:31:07 | [Mutex] notify: [retrieved:item:item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9:payload-matches:true:localhost]

2021-02-18 21:31:07 | [Mutex] received everything.

2021-02-18 21:31:07 | [Mutex] isItemNotified: retrieved:item:item-365ed113-9b46-4f89-9d7a-4e0a2f4352d9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-18 21:31:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-549b1150-782b-4349-a419-75747357d9a8",
        "test",
        "node-0cda6a64-a288-4e0c-9f7d-44474af10458"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-549b1150-782b-4349-a419-75747357d9a8)"
}

2021-02-18 21:31:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-02-18 21:31:06 |

2021-02-18 21:31:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:06 | ------------------------------------

2021-02-18 21:31:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.013s
2021-02-18 21:31:07 |

2021-02-18 21:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:07 | ------------------------------------

2021-02-18 21:31:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-549b1150-782b-4349-a419-75747357d9a8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-18 21:31:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}