Generated by TestNG with ReportNG at 23:12 PDT on Sunday 23 October 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.578s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.030s
2022-10-23 23:34:04 |

2022-10-23 23:34:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:34:04 | ------------------------------------

2022-10-23 23:34:04 | [Mutex] waiting for: [configured:node:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a]

2022-10-23 23:34:04 | [Mutex] received everything.

2022-10-23 23:34:04 | [Mutex] isItemNotified: configured:node:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a :: true

2022-10-23 23:34:05 | [Mutex] waiting for: [received:nodes:67f260fb-9311-4f82-aca3-87c13e9e467a:localhost]

2022-10-23 23:34:05 | [Mutex] received everything.

2022-10-23 23:34:05 | [Mutex] isItemNotified: received:node:67f260fb-9311-4f82-aca3-87c13e9e467a:localhost:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286 :: true

2022-10-23 23:34:05 | [Mutex] waiting for: [received:nodes:3c0b5885-7597-4813-ba66-f0d4ce42af99:localhost]

2022-10-23 23:34:05 | [Mutex] received everything.

2022-10-23 23:34:05 | [Mutex] isItemNotified: received:node:3c0b5885-7597-4813-ba66-f0d4ce42af99:localhost:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286 :: false

createNodes 1.563s
2022-10-23 23:34:01 |

2022-10-23 23:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:34:01 | ------------------------------------

2022-10-23 23:34:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "pubsub#title": "Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286"
}

2022-10-23 23:34:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:34:03 | [Mutex] waiting for: [received:nodes:7073c7c0-b76b-497c-93a1-1f901fb50159:localhost]

2022-10-23 23:34:03 | [Mutex] waiting for: [received:nodes:7073c7c0-b76b-497c-93a1-1f901fb50159:localhost]

2022-10-23 23:34:03 | [Mutex] waiting for: [received:nodes:7073c7c0-b76b-497c-93a1-1f901fb50159:localhost]

2022-10-23 23:34:03 | [Mutex] received everything.

2022-10-23 23:34:03 | [Mutex] isItemNotified: received:node:7073c7c0-b76b-497c-93a1-1f901fb50159:localhost:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286 :: true

createSubnodes 1.022s
2022-10-23 23:34:03 |

2022-10-23 23:34:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:34:03 | ------------------------------------

2022-10-23 23:34:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a",
    "pubsub#title": "Node da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a"
}

2022-10-23 23:34:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:34:04 | [Mutex] waiting for: [received:nodes:d3256c4f-5a54-488d-9848-dee2f94f18d3:localhost]

2022-10-23 23:34:04 | [Mutex] waiting for: [received:nodes:d3256c4f-5a54-488d-9848-dee2f94f18d3:localhost]

2022-10-23 23:34:04 | [Mutex] received everything.

2022-10-23 23:34:04 | [Mutex] isItemNotified: received:node:d3256c4f-5a54-488d-9848-dee2f94f18d3:localhost:node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a:Node da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a :: true

deleteNodes 1.023s
2022-10-23 23:34:08 |

2022-10-23 23:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:34:08 | ------------------------------------

2022-10-23 23:34:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a"
}

2022-10-23 23:34:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:34:09 | [Mutex] waiting for: [received:nodes:8b87f3f5-0fc0-4339-a5a0-3c0b88dd62e2:localhost]

2022-10-23 23:34:09 | [Mutex] received everything.

2022-10-23 23:34:09 | [Mutex] isItemNotified: received:node:8b87f3f5-0fc0-4339-a5a0-3c0b88dd62e2:localhost:node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a:Node da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a :: false

deleteSubnodes 1.073s
2022-10-23 23:34:07 |

2022-10-23 23:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:34:07 | ------------------------------------

2022-10-23 23:34:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286"
}

2022-10-23 23:34:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:34:08 | [Mutex] waiting for: [received:nodes:704cd883-6e19-45e2-bdfa-25c604912f88:localhost]

2022-10-23 23:34:08 | [Mutex] received everything.

2022-10-23 23:34:08 | [Mutex] isItemNotified: received:node:704cd883-6e19-45e2-bdfa-25c604912f88:localhost:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286 :: false

2022-10-23 23:34:08 | [Mutex] waiting for: [received:nodes:cac0fede-357a-4b8f-b6dc-2d74d9f4791c:localhost]

2022-10-23 23:34:08 | [Mutex] received everything.

2022-10-23 23:34:08 | [Mutex] isItemNotified: received:node:cac0fede-357a-4b8f-b6dc-2d74d9f4791c:localhost:node-9ece6ce3-acd0-4814-b98b-7ff5079fc286:Node 9ece6ce3-acd0-4814-b98b-7ff5079fc286 :: false

publishItemsToNodes 0.031s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

2022-10-23 23:34:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "entry": "<test>item-7004e1c1-5a1f-43b7-a456-5a818b712cf8</test>",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8"
}

2022-10-23 23:34:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8"
}

2022-10-23 23:34:06 | [Mutex] waiting for: [published:item:notifieditem-7004e1c1-5a1f-43b7-a456-5a818b712cf8:admin@test-domain.com]

2022-10-23 23:34:06 | [Mutex] received everything.

2022-10-23 23:34:06 | [Mutex] isItemNotified: published:item:notifieditem-7004e1c1-5a1f-43b7-a456-5a818b712cf8:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

2022-10-23 23:34:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8"
}

2022-10-23 23:34:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8"
}

2022-10-23 23:34:06 | [Mutex] received everything.

2022-10-23 23:34:06 | [Mutex] isItemNotified: retracted:item:notifieditem-7004e1c1-5a1f-43b7-a456-5a818b712cf8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

2022-10-23 23:34:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8"
}

2022-10-23 23:34:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "item-id": "item-7004e1c1-5a1f-43b7-a456-5a818b712cf8",
    "item": [
        "<item id=\"item-7004e1c1-5a1f-43b7-a456-5a818b712cf8\"><test>item-7004e1c1-5a1f-43b7-a456-5a818b712cf8</test></item>"
    ]
}

2022-10-23 23:34:06 | [Mutex] notify: [retrieved:item:item-7004e1c1-5a1f-43b7-a456-5a818b712cf8:payload-matches:true:localhost]

2022-10-23 23:34:06 | [Mutex] received everything.

2022-10-23 23:34:06 | [Mutex] isItemNotified: retrieved:item:item-7004e1c1-5a1f-43b7-a456-5a818b712cf8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

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

2022-10-23 23:34:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
        "node-da4b2c46-8fc7-49f3-bb8a-0af9e600aa0a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

2022-10-23 23:34:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9ece6ce3-acd0-4814-b98b-7ff5079fc286)"
}

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

subscribeNodes 1.009s
2022-10-23 23:34:05 |

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

2022-10-23 23:34:05 | ------------------------------------

2022-10-23 23:34:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.070s
2022-10-23 23:34:06 |

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

2022-10-23 23:34:06 | ------------------------------------

2022-10-23 23:34:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9ece6ce3-acd0-4814-b98b-7ff5079fc286",
    "jids": [
        "admin@test-domain.com"
    ]
}

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