Generated by TestNG with ReportNG at 22:30 PDT on Thursday 23 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.661s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-06-23 22:45:58 |

2022-06-23 22:45:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:45:58 | ------------------------------------

2022-06-23 22:45:58 | [Mutex] waiting for: [configured:node:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:node-44660c37-22f4-4537-838d-165abeb8e117]

2022-06-23 22:45:58 | [Mutex] received everything.

2022-06-23 22:45:58 | [Mutex] isItemNotified: configured:node:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:node-44660c37-22f4-4537-838d-165abeb8e117 :: true

2022-06-23 22:45:59 | [Mutex] waiting for: [received:nodes:a66390ed-86f6-4db9-84b2-028f5436dbad:localhost]

2022-06-23 22:45:59 | [Mutex] received everything.

2022-06-23 22:45:59 | [Mutex] isItemNotified: received:node:a66390ed-86f6-4db9-84b2-028f5436dbad:localhost:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:Node 55cad820-2ff0-4b94-84e7-69bda352e3e3 :: true

2022-06-23 22:45:59 | [Mutex] waiting for: [received:nodes:9732bacf-fceb-4118-a2f0-c6bc4027b8be:localhost]

2022-06-23 22:45:59 | [Mutex] received everything.

2022-06-23 22:45:59 | [Mutex] isItemNotified: received:node:9732bacf-fceb-4118-a2f0-c6bc4027b8be:localhost:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:Node 55cad820-2ff0-4b94-84e7-69bda352e3e3 :: false

createNodes 1.548s
2022-06-23 22:45:56 |

2022-06-23 22:45:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:45:56 | ------------------------------------

2022-06-23 22:45:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "pubsub#title": "Node 55cad820-2ff0-4b94-84e7-69bda352e3e3"
}

2022-06-23 22:45:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-23 22:45:57 | [Mutex] waiting for: [received:nodes:a367b4a1-18de-4787-a519-4f7d931ca22f:localhost]

2022-06-23 22:45:57 | [Mutex] received everything.

2022-06-23 22:45:57 | [Mutex] isItemNotified: received:node:a367b4a1-18de-4787-a519-4f7d931ca22f:localhost:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:Node 55cad820-2ff0-4b94-84e7-69bda352e3e3 :: true

createSubnodes 1.021s
2022-06-23 22:45:57 |

2022-06-23 22:45:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:45:57 | ------------------------------------

2022-06-23 22:45:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-44660c37-22f4-4537-838d-165abeb8e117",
    "pubsub#title": "Node 44660c37-22f4-4537-838d-165abeb8e117"
}

2022-06-23 22:45:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-23 22:45:58 | [Mutex] waiting for: [received:nodes:d6a44532-7e27-4f73-bb04-5003dbca0bc8:localhost]

2022-06-23 22:45:58 | [Mutex] received everything.

2022-06-23 22:45:58 | [Mutex] isItemNotified: received:node:d6a44532-7e27-4f73-bb04-5003dbca0bc8:localhost:node-44660c37-22f4-4537-838d-165abeb8e117:Node 44660c37-22f4-4537-838d-165abeb8e117 :: true

deleteNodes 1.026s
2022-06-23 22:46:03 |

2022-06-23 22:46:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:03 | ------------------------------------

2022-06-23 22:46:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-44660c37-22f4-4537-838d-165abeb8e117"
}

2022-06-23 22:46:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-23 22:46:04 | [Mutex] waiting for: [received:nodes:811e69be-d88e-47a2-bdc8-700786a59161:localhost]

2022-06-23 22:46:04 | [Mutex] waiting for: [received:nodes:811e69be-d88e-47a2-bdc8-700786a59161:localhost]

2022-06-23 22:46:04 | [Mutex] received everything.

2022-06-23 22:46:04 | [Mutex] isItemNotified: received:node:811e69be-d88e-47a2-bdc8-700786a59161:localhost:node-44660c37-22f4-4537-838d-165abeb8e117:Node 44660c37-22f4-4537-838d-165abeb8e117 :: false

deleteSubnodes 1.023s
2022-06-23 22:46:02 |

2022-06-23 22:46:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:02 | ------------------------------------

2022-06-23 22:46:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3"
}

2022-06-23 22:46:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-23 22:46:03 | [Mutex] waiting for: [received:nodes:8814f5f5-cfce-4e0b-981e-ab855ad3181d:localhost]

2022-06-23 22:46:03 | [Mutex] waiting for: [received:nodes:8814f5f5-cfce-4e0b-981e-ab855ad3181d:localhost]

2022-06-23 22:46:03 | [Mutex] received everything.

2022-06-23 22:46:03 | [Mutex] isItemNotified: received:node:8814f5f5-cfce-4e0b-981e-ab855ad3181d:localhost:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:Node 55cad820-2ff0-4b94-84e7-69bda352e3e3 :: false

2022-06-23 22:46:03 | [Mutex] waiting for: [received:nodes:249f1efc-00de-45b2-b74f-e5f6a84a4092:localhost]

2022-06-23 22:46:03 | [Mutex] received everything.

2022-06-23 22:46:03 | [Mutex] isItemNotified: received:node:249f1efc-00de-45b2-b74f-e5f6a84a4092:localhost:node-55cad820-2ff0-4b94-84e7-69bda352e3e3:Node 55cad820-2ff0-4b94-84e7-69bda352e3e3 :: false

publishItemsToNodes 0.044s
2022-06-23 22:46:00 |

2022-06-23 22:46:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:00 | ------------------------------------

2022-06-23 22:46:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "entry": "<test>item-0a9c1fa6-2965-4db2-b000-3e33db07cfac</test>",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac"
}

2022-06-23 22:46:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac"
}

2022-06-23 22:46:00 | [Mutex] waiting for: [published:item:notifieditem-0a9c1fa6-2965-4db2-b000-3e33db07cfac:admin@test-domain.com]

2022-06-23 22:46:01 | [Mutex] received everything.

2022-06-23 22:46:01 | [Mutex] isItemNotified: published:item:notifieditem-0a9c1fa6-2965-4db2-b000-3e33db07cfac:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-06-23 22:46:01 |

2022-06-23 22:46:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:01 | ------------------------------------

2022-06-23 22:46:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac"
}

2022-06-23 22:46:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac"
}

2022-06-23 22:46:01 | [Mutex] received everything.

2022-06-23 22:46:01 | [Mutex] isItemNotified: retracted:item:notifieditem-0a9c1fa6-2965-4db2-b000-3e33db07cfac:admin@test-domain.com :: true

retrieveItemsFromNodes 0.099s
2022-06-23 22:46:01 |

2022-06-23 22:46:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:01 | ------------------------------------

2022-06-23 22:46:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac"
}

2022-06-23 22:46:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "item-id": "item-0a9c1fa6-2965-4db2-b000-3e33db07cfac",
    "item": [
        "<item id=\"item-0a9c1fa6-2965-4db2-b000-3e33db07cfac\"><test>item-0a9c1fa6-2965-4db2-b000-3e33db07cfac</test></item>"
    ]
}

2022-06-23 22:46:01 | [Mutex] notify: [retrieved:item:item-0a9c1fa6-2965-4db2-b000-3e33db07cfac:payload-matches:true:localhost]

2022-06-23 22:46:01 | [Mutex] received everything.

2022-06-23 22:46:01 | [Mutex] isItemNotified: retrieved:item:item-0a9c1fa6-2965-4db2-b000-3e33db07cfac:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-23 22:46:01 |

2022-06-23 22:46:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:01 | ------------------------------------

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

2022-06-23 22:46:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
        "node-44660c37-22f4-4537-838d-165abeb8e117"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-23 22:46:01 |

2022-06-23 22:46:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:01 | ------------------------------------

2022-06-23 22:46:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-55cad820-2ff0-4b94-84e7-69bda352e3e3)"
}

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

subscribeNodes 1.014s
2022-06-23 22:45:59 |

2022-06-23 22:45:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:45:59 | ------------------------------------

2022-06-23 22:45:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-23 22:45:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.070s
2022-06-23 22:46:01 |

2022-06-23 22:46:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-23 22:46:01 | ------------------------------------

2022-06-23 22:46:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-55cad820-2ff0-4b94-84e7-69bda352e3e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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