Generated by TestNG with ReportNG at 22:31 PDT on Sunday 27 August 2023
root@4cddc3fbde15 / Java 17.0.8 (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.728s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2023-08-27 22:46:27 |

2023-08-27 22:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:27 | ------------------------------------

2023-08-27 22:46:27 | [Mutex] waiting for: [configured:node:node-7fa9558c-001e-4267-be9c-e05251904b59:node-8df9b6f1-0f57-4090-9698-4d76de743d3d]

2023-08-27 22:46:27 | [Mutex] received everything.

2023-08-27 22:46:27 | [Mutex] isItemNotified: configured:node:node-7fa9558c-001e-4267-be9c-e05251904b59:node-8df9b6f1-0f57-4090-9698-4d76de743d3d :: true

2023-08-27 22:46:28 | [Mutex] waiting for: [received:nodes:24849c15-8fbc-44f2-9c25-810aa8ec675e:localhost]

2023-08-27 22:46:28 | [Mutex] received everything.

2023-08-27 22:46:28 | [Mutex] isItemNotified: received:node:24849c15-8fbc-44f2-9c25-810aa8ec675e:localhost:node-7fa9558c-001e-4267-be9c-e05251904b59:Node 7fa9558c-001e-4267-be9c-e05251904b59 :: true

2023-08-27 22:46:28 | [Mutex] waiting for: [received:nodes:9894f19e-db7b-46f6-aad3-a7011ac07a17:localhost]

2023-08-27 22:46:28 | [Mutex] waiting for: [received:nodes:9894f19e-db7b-46f6-aad3-a7011ac07a17:localhost]

2023-08-27 22:46:28 | [Mutex] waiting for: [received:nodes:9894f19e-db7b-46f6-aad3-a7011ac07a17:localhost]

2023-08-27 22:46:28 | [Mutex] waiting for: [received:nodes:9894f19e-db7b-46f6-aad3-a7011ac07a17:localhost]

2023-08-27 22:46:28 | [Mutex] received everything.

2023-08-27 22:46:28 | [Mutex] isItemNotified: received:node:9894f19e-db7b-46f6-aad3-a7011ac07a17:localhost:node-7fa9558c-001e-4267-be9c-e05251904b59:Node 7fa9558c-001e-4267-be9c-e05251904b59 :: false

createNodes 1.687s
2023-08-27 22:46:24 |

2023-08-27 22:46:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:24 | ------------------------------------

2023-08-27 22:46:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "pubsub#title": "Node 7fa9558c-001e-4267-be9c-e05251904b59"
}

2023-08-27 22:46:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 22:46:26 | [Mutex] waiting for: [received:nodes:fb891feb-462a-4495-9b87-3736a8e6b5b8:localhost]

2023-08-27 22:46:26 | [Mutex] waiting for: [received:nodes:fb891feb-462a-4495-9b87-3736a8e6b5b8:localhost]

2023-08-27 22:46:26 | [Mutex] waiting for: [received:nodes:fb891feb-462a-4495-9b87-3736a8e6b5b8:localhost]

2023-08-27 22:46:26 | [Mutex] waiting for: [received:nodes:fb891feb-462a-4495-9b87-3736a8e6b5b8:localhost]

2023-08-27 22:46:26 | [Mutex] received everything.

2023-08-27 22:46:26 | [Mutex] isItemNotified: received:node:fb891feb-462a-4495-9b87-3736a8e6b5b8:localhost:node-7fa9558c-001e-4267-be9c-e05251904b59:Node 7fa9558c-001e-4267-be9c-e05251904b59 :: true

createSubnodes 1.030s
2023-08-27 22:46:26 |

2023-08-27 22:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:26 | ------------------------------------

2023-08-27 22:46:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8df9b6f1-0f57-4090-9698-4d76de743d3d",
    "pubsub#title": "Node 8df9b6f1-0f57-4090-9698-4d76de743d3d"
}

2023-08-27 22:46:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 22:46:27 | [Mutex] waiting for: [received:nodes:49374753-b7ef-4bff-a7a5-ffb9a1d64269:localhost]

2023-08-27 22:46:27 | [Mutex] waiting for: [received:nodes:49374753-b7ef-4bff-a7a5-ffb9a1d64269:localhost]

2023-08-27 22:46:27 | [Mutex] waiting for: [received:nodes:49374753-b7ef-4bff-a7a5-ffb9a1d64269:localhost]

2023-08-27 22:46:27 | [Mutex] waiting for: [received:nodes:49374753-b7ef-4bff-a7a5-ffb9a1d64269:localhost]

2023-08-27 22:46:27 | [Mutex] received everything.

2023-08-27 22:46:27 | [Mutex] isItemNotified: received:node:49374753-b7ef-4bff-a7a5-ffb9a1d64269:localhost:node-8df9b6f1-0f57-4090-9698-4d76de743d3d:Node 8df9b6f1-0f57-4090-9698-4d76de743d3d :: true

deleteNodes 1.029s
2023-08-27 22:46:31 |

2023-08-27 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:31 | ------------------------------------

2023-08-27 22:46:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8df9b6f1-0f57-4090-9698-4d76de743d3d"
}

2023-08-27 22:46:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 22:46:32 | [Mutex] waiting for: [received:nodes:c0a31c9a-96e9-4edd-903a-56bd8717e9f4:localhost]

2023-08-27 22:46:32 | [Mutex] waiting for: [received:nodes:c0a31c9a-96e9-4edd-903a-56bd8717e9f4:localhost]

2023-08-27 22:46:32 | [Mutex] waiting for: [received:nodes:c0a31c9a-96e9-4edd-903a-56bd8717e9f4:localhost]

2023-08-27 22:46:32 | [Mutex] waiting for: [received:nodes:c0a31c9a-96e9-4edd-903a-56bd8717e9f4:localhost]

2023-08-27 22:46:32 | [Mutex] received everything.

2023-08-27 22:46:32 | [Mutex] isItemNotified: received:node:c0a31c9a-96e9-4edd-903a-56bd8717e9f4:localhost:node-8df9b6f1-0f57-4090-9698-4d76de743d3d:Node 8df9b6f1-0f57-4090-9698-4d76de743d3d :: false

deleteSubnodes 1.028s
2023-08-27 22:46:30 |

2023-08-27 22:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:30 | ------------------------------------

2023-08-27 22:46:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59"
}

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

2023-08-27 22:46:31 | [Mutex] waiting for: [received:nodes:5905c4c3-f576-4371-8d2b-fbfafbf4da75:localhost]

2023-08-27 22:46:31 | [Mutex] waiting for: [received:nodes:5905c4c3-f576-4371-8d2b-fbfafbf4da75:localhost]

2023-08-27 22:46:31 | [Mutex] waiting for: [received:nodes:5905c4c3-f576-4371-8d2b-fbfafbf4da75:localhost]

2023-08-27 22:46:31 | [Mutex] waiting for: [received:nodes:5905c4c3-f576-4371-8d2b-fbfafbf4da75:localhost]

2023-08-27 22:46:31 | [Mutex] received everything.

2023-08-27 22:46:31 | [Mutex] isItemNotified: received:node:5905c4c3-f576-4371-8d2b-fbfafbf4da75:localhost:node-7fa9558c-001e-4267-be9c-e05251904b59:Node 7fa9558c-001e-4267-be9c-e05251904b59 :: false

2023-08-27 22:46:31 | [Mutex] waiting for: [received:nodes:ba4d7834-f068-484b-8940-bdcd966da61d:localhost]

2023-08-27 22:46:31 | [Mutex] received everything.

2023-08-27 22:46:31 | [Mutex] isItemNotified: received:node:ba4d7834-f068-484b-8940-bdcd966da61d:localhost:node-7fa9558c-001e-4267-be9c-e05251904b59:Node 7fa9558c-001e-4267-be9c-e05251904b59 :: false

publishItemsToNodes 0.048s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "entry": "<test>item-021be604-005f-4e40-8935-dfa9429820a0</test>",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0"
}

2023-08-27 22:46:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0"
}

2023-08-27 22:46:29 | [Mutex] waiting for: [published:item:notifieditem-021be604-005f-4e40-8935-dfa9429820a0:admin@test-domain.com]

2023-08-27 22:46:29 | [Mutex] received everything.

2023-08-27 22:46:29 | [Mutex] isItemNotified: published:item:notifieditem-021be604-005f-4e40-8935-dfa9429820a0:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0"
}

2023-08-27 22:46:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0"
}

2023-08-27 22:46:29 | [Mutex] received everything.

2023-08-27 22:46:29 | [Mutex] isItemNotified: retracted:item:notifieditem-021be604-005f-4e40-8935-dfa9429820a0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0"
}

2023-08-27 22:46:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "item-id": "item-021be604-005f-4e40-8935-dfa9429820a0",
    "item": [
        "<item id=\"item-021be604-005f-4e40-8935-dfa9429820a0\"><test>item-021be604-005f-4e40-8935-dfa9429820a0</test></item>"
    ]
}

2023-08-27 22:46:29 | [Mutex] notify: [retrieved:item:item-021be604-005f-4e40-8935-dfa9429820a0:payload-matches:true:localhost]

2023-08-27 22:46:29 | [Mutex] received everything.

2023-08-27 22:46:29 | [Mutex] isItemNotified: retrieved:item:item-021be604-005f-4e40-8935-dfa9429820a0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-27 22:46:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7fa9558c-001e-4267-be9c-e05251904b59",
        "node-8df9b6f1-0f57-4090-9698-4d76de743d3d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7fa9558c-001e-4267-be9c-e05251904b59)"
}

2023-08-27 22:46:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2023-08-27 22:46:28 |

2023-08-27 22:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:28 | ------------------------------------

2023-08-27 22:46:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-27 22:46:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-08-27 22:46:29 |

2023-08-27 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 22:46:29 | ------------------------------------

2023-08-27 22:46:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7fa9558c-001e-4267-be9c-e05251904b59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-27 22:46:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}