Generated by TestNG with ReportNG at 22:19 PDT on Wednesday 17 August 2022
root@f9c07ffec79b / Java 17.0.2 (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.648s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-08-17 22:33:28 |

2022-08-17 22:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:28 | ------------------------------------

2022-08-17 22:33:28 | [Mutex] waiting for: [configured:node:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:node-ac17b387-dbb0-470b-be1a-4153818e6873]

2022-08-17 22:33:28 | [Mutex] received everything.

2022-08-17 22:33:28 | [Mutex] isItemNotified: configured:node:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:node-ac17b387-dbb0-470b-be1a-4153818e6873 :: true

2022-08-17 22:33:29 | [Mutex] waiting for: [received:nodes:c6c2a4fa-41f9-4067-a67a-0d1aca5af0f6:localhost]

2022-08-17 22:33:29 | [Mutex] received everything.

2022-08-17 22:33:29 | [Mutex] isItemNotified: received:node:c6c2a4fa-41f9-4067-a67a-0d1aca5af0f6:localhost:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:Node 8f884250-c56f-4cb2-8061-49a2b40adcc8 :: true

2022-08-17 22:33:29 | [Mutex] waiting for: [received:nodes:c9431821-a1e6-41a1-9797-eff3af45ca77:localhost]

2022-08-17 22:33:29 | [Mutex] waiting for: [received:nodes:c9431821-a1e6-41a1-9797-eff3af45ca77:localhost]

2022-08-17 22:33:29 | [Mutex] received everything.

2022-08-17 22:33:29 | [Mutex] isItemNotified: received:node:c9431821-a1e6-41a1-9797-eff3af45ca77:localhost:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:Node 8f884250-c56f-4cb2-8061-49a2b40adcc8 :: false

createNodes 1.574s
2022-08-17 22:33:25 |

2022-08-17 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:25 | ------------------------------------

2022-08-17 22:33: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-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "pubsub#title": "Node 8f884250-c56f-4cb2-8061-49a2b40adcc8"
}

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

2022-08-17 22:33:27 | [Mutex] waiting for: [received:nodes:8fddcc87-45d0-4c3b-ac28-6d9adc61c963:localhost]

2022-08-17 22:33:27 | [Mutex] received everything.

2022-08-17 22:33:27 | [Mutex] isItemNotified: received:node:8fddcc87-45d0-4c3b-ac28-6d9adc61c963:localhost:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:Node 8f884250-c56f-4cb2-8061-49a2b40adcc8 :: true

createSubnodes 1.032s
2022-08-17 22:33:27 |

2022-08-17 22:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:27 | ------------------------------------

2022-08-17 22:33: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-ac17b387-dbb0-470b-be1a-4153818e6873",
    "pubsub#title": "Node ac17b387-dbb0-470b-be1a-4153818e6873"
}

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

2022-08-17 22:33:28 | [Mutex] waiting for: [received:nodes:cfa9cb3c-89f3-4cf2-b1d9-0527f63f88cd:localhost]

2022-08-17 22:33:28 | [Mutex] waiting for: [received:nodes:cfa9cb3c-89f3-4cf2-b1d9-0527f63f88cd:localhost]

2022-08-17 22:33:28 | [Mutex] received everything.

2022-08-17 22:33:28 | [Mutex] isItemNotified: received:node:cfa9cb3c-89f3-4cf2-b1d9-0527f63f88cd:localhost:node-ac17b387-dbb0-470b-be1a-4153818e6873:Node ac17b387-dbb0-470b-be1a-4153818e6873 :: true

deleteNodes 1.036s
2022-08-17 22:33:32 |

2022-08-17 22:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:32 | ------------------------------------

2022-08-17 22:33:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac17b387-dbb0-470b-be1a-4153818e6873"
}

2022-08-17 22:33:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-17 22:33:33 | [Mutex] waiting for: [received:nodes:4d91db2e-b2b0-45ff-ae91-4d37b2195fc1:localhost]

2022-08-17 22:33:33 | [Mutex] waiting for: [received:nodes:4d91db2e-b2b0-45ff-ae91-4d37b2195fc1:localhost]

2022-08-17 22:33:33 | [Mutex] received everything.

2022-08-17 22:33:33 | [Mutex] isItemNotified: received:node:4d91db2e-b2b0-45ff-ae91-4d37b2195fc1:localhost:node-ac17b387-dbb0-470b-be1a-4153818e6873:Node ac17b387-dbb0-470b-be1a-4153818e6873 :: false

deleteSubnodes 1.026s
2022-08-17 22:33:31 |

2022-08-17 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:31 | ------------------------------------

2022-08-17 22:33:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8"
}

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

2022-08-17 22:33:32 | [Mutex] waiting for: [received:nodes:d5808f35-c142-4069-baa4-0742e7809812:localhost]

2022-08-17 22:33:32 | [Mutex] received everything.

2022-08-17 22:33:32 | [Mutex] isItemNotified: received:node:d5808f35-c142-4069-baa4-0742e7809812:localhost:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:Node 8f884250-c56f-4cb2-8061-49a2b40adcc8 :: false

2022-08-17 22:33:32 | [Mutex] waiting for: [received:nodes:f6eca048-b44c-4a22-b11b-647ae155149c:localhost]

2022-08-17 22:33:32 | [Mutex] received everything.

2022-08-17 22:33:32 | [Mutex] isItemNotified: received:node:f6eca048-b44c-4a22-b11b-647ae155149c:localhost:node-8f884250-c56f-4cb2-8061-49a2b40adcc8:Node 8f884250-c56f-4cb2-8061-49a2b40adcc8 :: false

publishItemsToNodes 0.061s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "entry": "<test>item-9c32376b-77d0-40a6-ad49-f5abf9a35443</test>",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443"
}

2022-08-17 22:33:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443"
}

2022-08-17 22:33:30 | [Mutex] waiting for: [published:item:notifieditem-9c32376b-77d0-40a6-ad49-f5abf9a35443:admin@test-domain.com]

2022-08-17 22:33:30 | [Mutex] received everything.

2022-08-17 22:33:30 | [Mutex] isItemNotified: published:item:notifieditem-9c32376b-77d0-40a6-ad49-f5abf9a35443:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443"
}

2022-08-17 22:33:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443"
}

2022-08-17 22:33:30 | [Mutex] received everything.

2022-08-17 22:33:30 | [Mutex] isItemNotified: retracted:item:notifieditem-9c32376b-77d0-40a6-ad49-f5abf9a35443:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443"
}

2022-08-17 22:33:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "item-id": "item-9c32376b-77d0-40a6-ad49-f5abf9a35443",
    "item": [
        "<item id=\"item-9c32376b-77d0-40a6-ad49-f5abf9a35443\"><test>item-9c32376b-77d0-40a6-ad49-f5abf9a35443</test></item>"
    ]
}

2022-08-17 22:33:30 | [Mutex] notify: [retrieved:item:item-9c32376b-77d0-40a6-ad49-f5abf9a35443:payload-matches:true:localhost]

2022-08-17 22:33:30 | [Mutex] received everything.

2022-08-17 22:33:30 | [Mutex] isItemNotified: retrieved:item:item-9c32376b-77d0-40a6-ad49-f5abf9a35443:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-17 22:33:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ac17b387-dbb0-470b-be1a-4153818e6873",
        "node-8f884250-c56f-4cb2-8061-49a2b40adcc8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8f884250-c56f-4cb2-8061-49a2b40adcc8)"
}

2022-08-17 22:33:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-17 22:33:29 |

2022-08-17 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:29 | ------------------------------------

2022-08-17 22:33:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-17 22:33:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-08-17 22:33:30 |

2022-08-17 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 22:33:30 | ------------------------------------

2022-08-17 22:33:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8f884250-c56f-4cb2-8061-49a2b40adcc8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-17 22:33:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}