Generated by TestNG with ReportNG at 22:16 PDT on Wednesday 24 May 2023
root@1512af24e4a5 / Java 17.0.6 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.468s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2023-05-24 22:30:52 |

2023-05-24 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:52 | ------------------------------------

2023-05-24 22:30:52 | [Mutex] waiting for: [configured:node:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:node-44ff6716-8ecc-4822-b678-ab91e5e19b55]

2023-05-24 22:30:52 | [Mutex] received everything.

2023-05-24 22:30:52 | [Mutex] isItemNotified: configured:node:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:node-44ff6716-8ecc-4822-b678-ab91e5e19b55 :: true

2023-05-24 22:30:53 | [Mutex] waiting for: [received:nodes:9bcf3ef4-a7c1-480b-ace7-8f53c204fb57:localhost]

2023-05-24 22:30:53 | [Mutex] received everything.

2023-05-24 22:30:53 | [Mutex] isItemNotified: received:node:9bcf3ef4-a7c1-480b-ace7-8f53c204fb57:localhost:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:Node e1596195-4c52-4ff4-91d5-6a8f9e75726f :: true

2023-05-24 22:30:53 | [Mutex] waiting for: [received:nodes:5846d7b5-5f59-47e6-9dff-364663b4bfb2:localhost]

2023-05-24 22:30:53 | [Mutex] waiting for: [received:nodes:5846d7b5-5f59-47e6-9dff-364663b4bfb2:localhost]

2023-05-24 22:30:53 | [Mutex] received everything.

2023-05-24 22:30:53 | [Mutex] isItemNotified: received:node:5846d7b5-5f59-47e6-9dff-364663b4bfb2:localhost:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:Node e1596195-4c52-4ff4-91d5-6a8f9e75726f :: false

createNodes 1.554s
2023-05-24 22:30:49 |

2023-05-24 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:49 | ------------------------------------

2023-05-24 22:30:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "pubsub#title": "Node e1596195-4c52-4ff4-91d5-6a8f9e75726f"
}

2023-05-24 22:30:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:30:51 | [Mutex] waiting for: [received:nodes:012ef61f-f384-4431-93b1-973391b64316:localhost]

2023-05-24 22:30:51 | [Mutex] waiting for: [received:nodes:012ef61f-f384-4431-93b1-973391b64316:localhost]

2023-05-24 22:30:51 | [Mutex] waiting for: [received:nodes:012ef61f-f384-4431-93b1-973391b64316:localhost]

2023-05-24 22:30:51 | [Mutex] waiting for: [received:nodes:012ef61f-f384-4431-93b1-973391b64316:localhost]

2023-05-24 22:30:51 | [Mutex] received everything.

2023-05-24 22:30:51 | [Mutex] isItemNotified: received:node:012ef61f-f384-4431-93b1-973391b64316:localhost:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:Node e1596195-4c52-4ff4-91d5-6a8f9e75726f :: true

createSubnodes 1.020s
2023-05-24 22:30:51 |

2023-05-24 22:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:51 | ------------------------------------

2023-05-24 22:30:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-44ff6716-8ecc-4822-b678-ab91e5e19b55",
    "pubsub#title": "Node 44ff6716-8ecc-4822-b678-ab91e5e19b55"
}

2023-05-24 22:30:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:30:52 | [Mutex] waiting for: [received:nodes:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost]

2023-05-24 22:30:52 | [Mutex] waiting for: [received:nodes:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost]

2023-05-24 22:30:52 | [Mutex] waiting for: [received:nodes:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost]

2023-05-24 22:30:52 | [Mutex] waiting for: [received:nodes:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost]

2023-05-24 22:30:52 | [Mutex] waiting for: [received:nodes:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost]

2023-05-24 22:30:52 | [Mutex] received everything.

2023-05-24 22:30:52 | [Mutex] isItemNotified: received:node:da2cefe2-c6b1-4c45-9fb7-84a2b779a2c7:localhost:node-44ff6716-8ecc-4822-b678-ab91e5e19b55:Node 44ff6716-8ecc-4822-b678-ab91e5e19b55 :: true

deleteNodes 1.019s
2023-05-24 22:30:56 |

2023-05-24 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:56 | ------------------------------------

2023-05-24 22:30:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-44ff6716-8ecc-4822-b678-ab91e5e19b55"
}

2023-05-24 22:30:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:30:57 | [Mutex] waiting for: [received:nodes:9069adef-b4a7-4e77-b450-e0d028180dcb:localhost]

2023-05-24 22:30:57 | [Mutex] waiting for: [received:nodes:9069adef-b4a7-4e77-b450-e0d028180dcb:localhost]

2023-05-24 22:30:57 | [Mutex] waiting for: [received:nodes:9069adef-b4a7-4e77-b450-e0d028180dcb:localhost]

2023-05-24 22:30:57 | [Mutex] received everything.

2023-05-24 22:30:57 | [Mutex] isItemNotified: received:node:9069adef-b4a7-4e77-b450-e0d028180dcb:localhost:node-44ff6716-8ecc-4822-b678-ab91e5e19b55:Node 44ff6716-8ecc-4822-b678-ab91e5e19b55 :: false

deleteSubnodes 1.021s
2023-05-24 22:30:55 |

2023-05-24 22:30:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:55 | ------------------------------------

2023-05-24 22:30:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f"
}

2023-05-24 22:30:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:30:56 | [Mutex] waiting for: [received:nodes:d95b8000-4be8-406c-9077-66918bad1eb4:localhost]

2023-05-24 22:30:56 | [Mutex] waiting for: [received:nodes:d95b8000-4be8-406c-9077-66918bad1eb4:localhost]

2023-05-24 22:30:56 | [Mutex] waiting for: [received:nodes:d95b8000-4be8-406c-9077-66918bad1eb4:localhost]

2023-05-24 22:30:56 | [Mutex] waiting for: [received:nodes:d95b8000-4be8-406c-9077-66918bad1eb4:localhost]

2023-05-24 22:30:56 | [Mutex] received everything.

2023-05-24 22:30:56 | [Mutex] isItemNotified: received:node:d95b8000-4be8-406c-9077-66918bad1eb4:localhost:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:Node e1596195-4c52-4ff4-91d5-6a8f9e75726f :: false

2023-05-24 22:30:56 | [Mutex] waiting for: [received:nodes:53542dea-1461-4900-8c28-1420389e52e5:localhost]

2023-05-24 22:30:56 | [Mutex] received everything.

2023-05-24 22:30:56 | [Mutex] isItemNotified: received:node:53542dea-1461-4900-8c28-1420389e52e5:localhost:node-e1596195-4c52-4ff4-91d5-6a8f9e75726f:Node e1596195-4c52-4ff4-91d5-6a8f9e75726f :: false

publishItemsToNodes 0.048s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "entry": "<test>item-c74bf487-edb8-4781-be50-287f6320184f</test>",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f"
}

2023-05-24 22:30:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f"
}

2023-05-24 22:30:54 | [Mutex] waiting for: [published:item:notifieditem-c74bf487-edb8-4781-be50-287f6320184f:admin@test-domain.com]

2023-05-24 22:30:54 | [Mutex] received everything.

2023-05-24 22:30:54 | [Mutex] isItemNotified: published:item:notifieditem-c74bf487-edb8-4781-be50-287f6320184f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f"
}

2023-05-24 22:30:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f"
}

2023-05-24 22:30:54 | [Mutex] received everything.

2023-05-24 22:30:54 | [Mutex] isItemNotified: retracted:item:notifieditem-c74bf487-edb8-4781-be50-287f6320184f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.050s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f"
}

2023-05-24 22:30:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "item-id": "item-c74bf487-edb8-4781-be50-287f6320184f",
    "item": [
        "<item id=\"item-c74bf487-edb8-4781-be50-287f6320184f\"><test>item-c74bf487-edb8-4781-be50-287f6320184f</test></item>"
    ]
}

2023-05-24 22:30:54 | [Mutex] notify: [retrieved:item:item-c74bf487-edb8-4781-be50-287f6320184f:payload-matches:true:localhost]

2023-05-24 22:30:54 | [Mutex] received everything.

2023-05-24 22:30:54 | [Mutex] isItemNotified: retrieved:item:item-c74bf487-edb8-4781-be50-287f6320184f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-24 22:30:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
        "test",
        "node-44ff6716-8ecc-4822-b678-ab91e5e19b55"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e1596195-4c52-4ff4-91d5-6a8f9e75726f)"
}

2023-05-24 22:30:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-05-24 22:30:53 |

2023-05-24 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:53 | ------------------------------------

2023-05-24 22:30:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-24 22:30:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2023-05-24 22:30:54 |

2023-05-24 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:30:54 | ------------------------------------

2023-05-24 22:30:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e1596195-4c52-4ff4-91d5-6a8f9e75726f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-24 22:30:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}