Generated by TestNG with ReportNG at 21:19 PST on Thursday 17 February 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 9.141s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.158s
2022-02-17 21:34:44 |

2022-02-17 21:34:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:44 | ------------------------------------

2022-02-17 21:34:44 | [Mutex] waiting for: [configured:node:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:node-a5a3e14c-c862-4e53-a144-ed7d090f03fd]

2022-02-17 21:34:44 | [Mutex] received everything.

2022-02-17 21:34:44 | [Mutex] isItemNotified: configured:node:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:node-a5a3e14c-c862-4e53-a144-ed7d090f03fd :: true

2022-02-17 21:34:45 | [Mutex] waiting for: [received:nodes:ab258700-5140-4287-8a2b-eccb4ef45462:localhost]

2022-02-17 21:34:45 | [Mutex] received everything.

2022-02-17 21:34:45 | [Mutex] isItemNotified: received:node:ab258700-5140-4287-8a2b-eccb4ef45462:localhost:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:Node 0f5fde3d-caa9-4261-8768-f101f6f69b72 :: true

2022-02-17 21:34:45 | [Mutex] waiting for: [received:nodes:2041c159-caee-40f5-8fe2-ed45d3373dea:localhost]

2022-02-17 21:34:45 | [Mutex] waiting for: [received:nodes:2041c159-caee-40f5-8fe2-ed45d3373dea:localhost]

2022-02-17 21:34:45 | [Mutex] received everything.

2022-02-17 21:34:45 | [Mutex] isItemNotified: received:node:2041c159-caee-40f5-8fe2-ed45d3373dea:localhost:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:Node 0f5fde3d-caa9-4261-8768-f101f6f69b72 :: false

createNodes 1.680s
2022-02-17 21:34:41 |

2022-02-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:41 | ------------------------------------

2022-02-17 21:34:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "pubsub#title": "Node 0f5fde3d-caa9-4261-8768-f101f6f69b72"
}

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

2022-02-17 21:34:43 | [Mutex] waiting for: [received:nodes:a6f6ce57-3e2c-4087-bf41-3bdb0e6200eb:localhost]

2022-02-17 21:34:43 | [Mutex] received everything.

2022-02-17 21:34:43 | [Mutex] isItemNotified: received:node:a6f6ce57-3e2c-4087-bf41-3bdb0e6200eb:localhost:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:Node 0f5fde3d-caa9-4261-8768-f101f6f69b72 :: true

createSubnodes 1.035s
2022-02-17 21:34:43 |

2022-02-17 21:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:43 | ------------------------------------

2022-02-17 21:34:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a5a3e14c-c862-4e53-a144-ed7d090f03fd",
    "pubsub#title": "Node a5a3e14c-c862-4e53-a144-ed7d090f03fd"
}

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

2022-02-17 21:34:44 | [Mutex] waiting for: [received:nodes:2331941b-18aa-48e0-ab10-6b23a299f070:localhost]

2022-02-17 21:34:44 | [Mutex] received everything.

2022-02-17 21:34:44 | [Mutex] isItemNotified: received:node:2331941b-18aa-48e0-ab10-6b23a299f070:localhost:node-a5a3e14c-c862-4e53-a144-ed7d090f03fd:Node a5a3e14c-c862-4e53-a144-ed7d090f03fd :: true

deleteNodes 1.025s
2022-02-17 21:34:48 |

2022-02-17 21:34:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:48 | ------------------------------------

2022-02-17 21:34:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a5a3e14c-c862-4e53-a144-ed7d090f03fd"
}

2022-02-17 21:34:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:34:49 | [Mutex] waiting for: [received:nodes:c323762d-0b8a-4de4-99d5-6be0a202e8cb:localhost]

2022-02-17 21:34:49 | [Mutex] waiting for: [received:nodes:c323762d-0b8a-4de4-99d5-6be0a202e8cb:localhost]

2022-02-17 21:34:49 | [Mutex] received everything.

2022-02-17 21:34:49 | [Mutex] isItemNotified: received:node:c323762d-0b8a-4de4-99d5-6be0a202e8cb:localhost:node-a5a3e14c-c862-4e53-a144-ed7d090f03fd:Node a5a3e14c-c862-4e53-a144-ed7d090f03fd :: false

deleteSubnodes 1.034s
2022-02-17 21:34:47 |

2022-02-17 21:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:47 | ------------------------------------

2022-02-17 21:34:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72"
}

2022-02-17 21:34:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:34:48 | [Mutex] waiting for: [received:nodes:5feb05be-73b9-4b29-8fc0-a9510b9d3df3:localhost]

2022-02-17 21:34:48 | [Mutex] waiting for: [received:nodes:5feb05be-73b9-4b29-8fc0-a9510b9d3df3:localhost]

2022-02-17 21:34:48 | [Mutex] received everything.

2022-02-17 21:34:48 | [Mutex] isItemNotified: received:node:5feb05be-73b9-4b29-8fc0-a9510b9d3df3:localhost:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:Node 0f5fde3d-caa9-4261-8768-f101f6f69b72 :: false

2022-02-17 21:34:48 | [Mutex] waiting for: [received:nodes:4567c04a-8a93-42b4-be04-201b9ed7f83c:localhost]

2022-02-17 21:34:48 | [Mutex] received everything.

2022-02-17 21:34:48 | [Mutex] isItemNotified: received:node:4567c04a-8a93-42b4-be04-201b9ed7f83c:localhost:node-0f5fde3d-caa9-4261-8768-f101f6f69b72:Node 0f5fde3d-caa9-4261-8768-f101f6f69b72 :: false

publishItemsToNodes 0.051s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

2022-02-17 21:34:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "entry": "<test>item-a8321c95-6427-4fbb-91ec-2e520ded9a80</test>",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80"
}

2022-02-17 21:34:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80"
}

2022-02-17 21:34:46 | [Mutex] waiting for: [published:item:notifieditem-a8321c95-6427-4fbb-91ec-2e520ded9a80:admin@test-domain.com]

2022-02-17 21:34:46 | [Mutex] received everything.

2022-02-17 21:34:46 | [Mutex] isItemNotified: published:item:notifieditem-a8321c95-6427-4fbb-91ec-2e520ded9a80:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

2022-02-17 21:34:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80"
}

2022-02-17 21:34:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80"
}

2022-02-17 21:34:46 | [Mutex] received everything.

2022-02-17 21:34:46 | [Mutex] isItemNotified: retracted:item:notifieditem-a8321c95-6427-4fbb-91ec-2e520ded9a80:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

2022-02-17 21:34:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80"
}

2022-02-17 21:34:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "item-id": "item-a8321c95-6427-4fbb-91ec-2e520ded9a80",
    "item": [
        "<item id=\"item-a8321c95-6427-4fbb-91ec-2e520ded9a80\"><test>item-a8321c95-6427-4fbb-91ec-2e520ded9a80</test></item>"
    ]
}

2022-02-17 21:34:46 | [Mutex] notify: [retrieved:item:item-a8321c95-6427-4fbb-91ec-2e520ded9a80:payload-matches:true:localhost]

2022-02-17 21:34:46 | [Mutex] received everything.

2022-02-17 21:34:46 | [Mutex] isItemNotified: retrieved:item:item-a8321c95-6427-4fbb-91ec-2e520ded9a80:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

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

2022-02-17 21:34:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a5a3e14c-c862-4e53-a144-ed7d090f03fd",
        "test",
        "node-0f5fde3d-caa9-4261-8768-f101f6f69b72"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

2022-02-17 21:34:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0f5fde3d-caa9-4261-8768-f101f6f69b72)"
}

2022-02-17 21:34:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-17 21:34:45 |

2022-02-17 21:34:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:45 | ------------------------------------

2022-02-17 21:34:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 21:34:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2022-02-17 21:34:46 |

2022-02-17 21:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:34:46 | ------------------------------------

2022-02-17 21:34:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0f5fde3d-caa9-4261-8768-f101f6f69b72",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 21:34:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}