Generated by TestNG with ReportNG at 07:34 PDT on Friday 25 June 2021
root@785cf647a4ab / 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.966s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2021-06-25 07:48:28 |

2021-06-25 07:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:28 | ------------------------------------

2021-06-25 07:48:28 | [Mutex] waiting for: [configured:node:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:node-9665968c-7f4e-411e-ae1d-d3c814b659a8]

2021-06-25 07:48:28 | [Mutex] received everything.

2021-06-25 07:48:28 | [Mutex] isItemNotified: configured:node:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:node-9665968c-7f4e-411e-ae1d-d3c814b659a8 :: true

2021-06-25 07:48:29 | [Mutex] waiting for: [received:nodes:522b7830-ee81-4dc8-947b-2c26a2aba442:localhost]

2021-06-25 07:48:29 | [Mutex] waiting for: [received:nodes:522b7830-ee81-4dc8-947b-2c26a2aba442:localhost]

2021-06-25 07:48:29 | [Mutex] received everything.

2021-06-25 07:48:29 | [Mutex] isItemNotified: received:node:522b7830-ee81-4dc8-947b-2c26a2aba442:localhost:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690 :: true

2021-06-25 07:48:29 | [Mutex] waiting for: [received:nodes:824672e6-81c0-4ef2-8fd4-01c70524fd3c:localhost]

2021-06-25 07:48:29 | [Mutex] waiting for: [received:nodes:824672e6-81c0-4ef2-8fd4-01c70524fd3c:localhost]

2021-06-25 07:48:29 | [Mutex] received everything.

2021-06-25 07:48:29 | [Mutex] isItemNotified: received:node:824672e6-81c0-4ef2-8fd4-01c70524fd3c:localhost:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690 :: false

createNodes 1.629s
2021-06-25 07:48:26 |

2021-06-25 07:48:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:26 | ------------------------------------

2021-06-25 07:48:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "pubsub#title": "Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690"
}

2021-06-25 07:48:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:27 | [Mutex] waiting for: [received:nodes:cec17ab3-a82b-4709-83ad-1c94aab3e5a5:localhost]

2021-06-25 07:48:27 | [Mutex] received everything.

2021-06-25 07:48:27 | [Mutex] isItemNotified: received:node:cec17ab3-a82b-4709-83ad-1c94aab3e5a5:localhost:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690 :: true

createSubnodes 1.026s
2021-06-25 07:48:27 |

2021-06-25 07:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:27 | ------------------------------------

2021-06-25 07:48:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9665968c-7f4e-411e-ae1d-d3c814b659a8",
    "pubsub#title": "Node 9665968c-7f4e-411e-ae1d-d3c814b659a8"
}

2021-06-25 07:48:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:28 | [Mutex] waiting for: [received:nodes:f4e83ba0-fa02-4be6-b405-a720d5492f44:localhost]

2021-06-25 07:48:28 | [Mutex] received everything.

2021-06-25 07:48:28 | [Mutex] isItemNotified: received:node:f4e83ba0-fa02-4be6-b405-a720d5492f44:localhost:node-9665968c-7f4e-411e-ae1d-d3c814b659a8:Node 9665968c-7f4e-411e-ae1d-d3c814b659a8 :: true

deleteNodes 1.021s
2021-06-25 07:48:33 |

2021-06-25 07:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:33 | ------------------------------------

2021-06-25 07:48:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9665968c-7f4e-411e-ae1d-d3c814b659a8"
}

2021-06-25 07:48:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:34 | [Mutex] waiting for: [received:nodes:7722cb94-a888-4c7d-be1a-5e3d90d27ffc:localhost]

2021-06-25 07:48:34 | [Mutex] received everything.

2021-06-25 07:48:34 | [Mutex] isItemNotified: received:node:7722cb94-a888-4c7d-be1a-5e3d90d27ffc:localhost:node-9665968c-7f4e-411e-ae1d-d3c814b659a8:Node 9665968c-7f4e-411e-ae1d-d3c814b659a8 :: false

deleteSubnodes 1.040s
2021-06-25 07:48:32 |

2021-06-25 07:48:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:32 | ------------------------------------

2021-06-25 07:48:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690"
}

2021-06-25 07:48:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:33 | [Mutex] waiting for: [received:nodes:21c906c2-da71-4e6b-84fd-9bace3b166f9:localhost]

2021-06-25 07:48:33 | [Mutex] received everything.

2021-06-25 07:48:33 | [Mutex] isItemNotified: received:node:21c906c2-da71-4e6b-84fd-9bace3b166f9:localhost:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690 :: false

2021-06-25 07:48:33 | [Mutex] waiting for: [received:nodes:4115bccb-5254-4428-869e-58ef12a90dae:localhost]

2021-06-25 07:48:33 | [Mutex] received everything.

2021-06-25 07:48:33 | [Mutex] isItemNotified: received:node:4115bccb-5254-4428-869e-58ef12a90dae:localhost:node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690:Node 8fc4a520-3553-4801-8ae6-cd9f4f5fa690 :: false

publishItemsToNodes 0.103s
2021-06-25 07:48:30 |

2021-06-25 07:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:30 | ------------------------------------

2021-06-25 07:48:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "entry": "<test>item-cee0c049-4185-4f4b-97ed-99ab33f586a4</test>",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4"
}

2021-06-25 07:48:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4"
}

2021-06-25 07:48:30 | [Mutex] waiting for: [published:item:notifieditem-cee0c049-4185-4f4b-97ed-99ab33f586a4:admin@test-domain.com]

2021-06-25 07:48:30 | [Mutex] received everything.

2021-06-25 07:48:30 | [Mutex] isItemNotified: published:item:notifieditem-cee0c049-4185-4f4b-97ed-99ab33f586a4:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-06-25 07:48:31 |

2021-06-25 07:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:31 | ------------------------------------

2021-06-25 07:48:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4"
}

2021-06-25 07:48:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4"
}

2021-06-25 07:48:31 | [Mutex] received everything.

2021-06-25 07:48:31 | [Mutex] isItemNotified: retracted:item:notifieditem-cee0c049-4185-4f4b-97ed-99ab33f586a4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2021-06-25 07:48:30 |

2021-06-25 07:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:30 | ------------------------------------

2021-06-25 07:48:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4"
}

2021-06-25 07:48:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "item-id": "item-cee0c049-4185-4f4b-97ed-99ab33f586a4",
    "item": [
        "<item id=\"item-cee0c049-4185-4f4b-97ed-99ab33f586a4\"><test>item-cee0c049-4185-4f4b-97ed-99ab33f586a4</test></item>"
    ]
}

2021-06-25 07:48:30 | [Mutex] notify: [retrieved:item:item-cee0c049-4185-4f4b-97ed-99ab33f586a4:payload-matches:true:localhost]

2021-06-25 07:48:30 | [Mutex] received everything.

2021-06-25 07:48:30 | [Mutex] isItemNotified: retrieved:item:item-cee0c049-4185-4f4b-97ed-99ab33f586a4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2021-06-25 07:48:30 |

2021-06-25 07:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:30 | ------------------------------------

2021-06-25 07:48:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-25 07:48:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
        "node-9665968c-7f4e-411e-ae1d-d3c814b659a8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-06-25 07:48:31 |

2021-06-25 07:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:31 | ------------------------------------

2021-06-25 07:48:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690)"
}

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

subscribeNodes 1.016s
2021-06-25 07:48:29 |

2021-06-25 07:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:29 | ------------------------------------

2021-06-25 07:48:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-25 07:48:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.081s
2021-06-25 07:48:31 |

2021-06-25 07:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:31 | ------------------------------------

2021-06-25 07:48:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8fc4a520-3553-4801-8ae6-cd9f4f5fa690",
    "jids": [
        "admin@test-domain.com"
    ]
}

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