Generated by TestNG with ReportNG at 22:51 PDT on Wednesday 29 June 2022
root@ed1b7dd8a1b3 / 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.737s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.138s
2022-06-29 23:05:19 |

2022-06-29 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:19 | ------------------------------------

2022-06-29 23:05:19 | [Mutex] waiting for: [configured:node:node-b1ec2a97-223d-49e2-b59a-450a4703891e:node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04]

2022-06-29 23:05:19 | [Mutex] received everything.

2022-06-29 23:05:19 | [Mutex] isItemNotified: configured:node:node-b1ec2a97-223d-49e2-b59a-450a4703891e:node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04 :: true

2022-06-29 23:05:20 | [Mutex] waiting for: [received:nodes:9dd12201-8a3a-4b7d-9318-5a240c332e8b:localhost]

2022-06-29 23:05:20 | [Mutex] received everything.

2022-06-29 23:05:20 | [Mutex] isItemNotified: received:node:9dd12201-8a3a-4b7d-9318-5a240c332e8b:localhost:node-b1ec2a97-223d-49e2-b59a-450a4703891e:Node b1ec2a97-223d-49e2-b59a-450a4703891e :: true

2022-06-29 23:05:20 | [Mutex] waiting for: [received:nodes:4ed42ab6-8dd1-4cec-8fc8-6d1dc369614e:localhost]

2022-06-29 23:05:20 | [Mutex] received everything.

2022-06-29 23:05:20 | [Mutex] isItemNotified: received:node:4ed42ab6-8dd1-4cec-8fc8-6d1dc369614e:localhost:node-b1ec2a97-223d-49e2-b59a-450a4703891e:Node b1ec2a97-223d-49e2-b59a-450a4703891e :: false

createNodes 1.635s
2022-06-29 23:05:16 |

2022-06-29 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:16 | ------------------------------------

2022-06-29 23:05:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "pubsub#title": "Node b1ec2a97-223d-49e2-b59a-450a4703891e"
}

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

2022-06-29 23:05:18 | [Mutex] waiting for: [received:nodes:cac96486-1e2c-46e5-aa69-5aded1d85fe3:localhost]

2022-06-29 23:05:18 | [Mutex] waiting for: [received:nodes:cac96486-1e2c-46e5-aa69-5aded1d85fe3:localhost]

2022-06-29 23:05:18 | [Mutex] received everything.

2022-06-29 23:05:18 | [Mutex] isItemNotified: received:node:cac96486-1e2c-46e5-aa69-5aded1d85fe3:localhost:node-b1ec2a97-223d-49e2-b59a-450a4703891e:Node b1ec2a97-223d-49e2-b59a-450a4703891e :: true

createSubnodes 1.030s
2022-06-29 23:05:18 |

2022-06-29 23:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:18 | ------------------------------------

2022-06-29 23:05:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04",
    "pubsub#title": "Node 6c6a7a69-4f8a-4d93-986c-cd2308ea8f04"
}

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

2022-06-29 23:05:19 | [Mutex] waiting for: [received:nodes:f72b23aa-3c00-4b7e-a364-dbe092d3dfd5:localhost]

2022-06-29 23:05:19 | [Mutex] received everything.

2022-06-29 23:05:19 | [Mutex] isItemNotified: received:node:f72b23aa-3c00-4b7e-a364-dbe092d3dfd5:localhost:node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04:Node 6c6a7a69-4f8a-4d93-986c-cd2308ea8f04 :: true

deleteNodes 1.017s
2022-06-29 23:05:24 |

2022-06-29 23:05:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:24 | ------------------------------------

2022-06-29 23:05:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04"
}

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

2022-06-29 23:05:25 | [Mutex] waiting for: [received:nodes:8d680c0f-eb33-49a1-a9ad-af3cbcb9e703:localhost]

2022-06-29 23:05:25 | [Mutex] waiting for: [received:nodes:8d680c0f-eb33-49a1-a9ad-af3cbcb9e703:localhost]

2022-06-29 23:05:25 | [Mutex] waiting for: [received:nodes:8d680c0f-eb33-49a1-a9ad-af3cbcb9e703:localhost]

2022-06-29 23:05:25 | [Mutex] received everything.

2022-06-29 23:05:25 | [Mutex] isItemNotified: received:node:8d680c0f-eb33-49a1-a9ad-af3cbcb9e703:localhost:node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04:Node 6c6a7a69-4f8a-4d93-986c-cd2308ea8f04 :: false

deleteSubnodes 1.026s
2022-06-29 23:05:23 |

2022-06-29 23:05:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:23 | ------------------------------------

2022-06-29 23:05:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e"
}

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

2022-06-29 23:05:24 | [Mutex] waiting for: [received:nodes:48f47bc4-3766-4da9-9da0-a41c26c7590c:localhost]

2022-06-29 23:05:24 | [Mutex] received everything.

2022-06-29 23:05:24 | [Mutex] isItemNotified: received:node:48f47bc4-3766-4da9-9da0-a41c26c7590c:localhost:node-b1ec2a97-223d-49e2-b59a-450a4703891e:Node b1ec2a97-223d-49e2-b59a-450a4703891e :: false

2022-06-29 23:05:24 | [Mutex] waiting for: [received:nodes:836567d1-3a54-44e0-b504-4963d87cb922:localhost]

2022-06-29 23:05:24 | [Mutex] received everything.

2022-06-29 23:05:24 | [Mutex] isItemNotified: received:node:836567d1-3a54-44e0-b504-4963d87cb922:localhost:node-b1ec2a97-223d-49e2-b59a-450a4703891e:Node b1ec2a97-223d-49e2-b59a-450a4703891e :: false

publishItemsToNodes 0.064s
2022-06-29 23:05:21 |

2022-06-29 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:21 | ------------------------------------

2022-06-29 23:05:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "entry": "<test>item-6beaf608-447d-485e-be02-8fc9306c2d80</test>",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80"
}

2022-06-29 23:05:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80"
}

2022-06-29 23:05:21 | [Mutex] waiting for: [published:item:notifieditem-6beaf608-447d-485e-be02-8fc9306c2d80:admin@test-domain.com]

2022-06-29 23:05:21 | [Mutex] received everything.

2022-06-29 23:05:21 | [Mutex] isItemNotified: published:item:notifieditem-6beaf608-447d-485e-be02-8fc9306c2d80:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-06-29 23:05:22 |

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

2022-06-29 23:05:22 | ------------------------------------

2022-06-29 23:05:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80"
}

2022-06-29 23:05:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80"
}

2022-06-29 23:05:22 | [Mutex] waiting for: [retracted:item:notifieditem-6beaf608-447d-485e-be02-8fc9306c2d80:admin@test-domain.com]

2022-06-29 23:05:22 | [Mutex] received everything.

2022-06-29 23:05:22 | [Mutex] isItemNotified: retracted:item:notifieditem-6beaf608-447d-485e-be02-8fc9306c2d80:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-06-29 23:05:21 |

2022-06-29 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:21 | ------------------------------------

2022-06-29 23:05:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80"
}

2022-06-29 23:05:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "item-id": "item-6beaf608-447d-485e-be02-8fc9306c2d80",
    "item": [
        "<item id=\"item-6beaf608-447d-485e-be02-8fc9306c2d80\"><test>item-6beaf608-447d-485e-be02-8fc9306c2d80</test></item>"
    ]
}

2022-06-29 23:05:21 | [Mutex] notify: [retrieved:item:item-6beaf608-447d-485e-be02-8fc9306c2d80:payload-matches:true:localhost]

2022-06-29 23:05:21 | [Mutex] received everything.

2022-06-29 23:05:21 | [Mutex] isItemNotified: retrieved:item:item-6beaf608-447d-485e-be02-8fc9306c2d80:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-29 23:05:21 |

2022-06-29 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:21 | ------------------------------------

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

2022-06-29 23:05:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
        "node-6c6a7a69-4f8a-4d93-986c-cd2308ea8f04"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-29 23:05:21 |

2022-06-29 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:21 | ------------------------------------

2022-06-29 23:05:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b1ec2a97-223d-49e2-b59a-450a4703891e)"
}

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

subscribeNodes 1.009s
2022-06-29 23:05:20 |

2022-06-29 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 23:05:20 | ------------------------------------

2022-06-29 23:05:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-06-29 23:05:22 |

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

2022-06-29 23:05:22 | ------------------------------------

2022-06-29 23:05:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b1ec2a97-223d-49e2-b59a-450a4703891e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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