Generated by TestNG with ReportNG at 22:50 PDT on Monday 27 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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 : 8.601s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-06-27 23:04:13 |

2022-06-27 23:04:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:13 | ------------------------------------

2022-06-27 23:04:13 | [Mutex] waiting for: [configured:node:node-4b13a797-57a3-40f9-85f7-9b4b96397477:node-b05e85c8-a854-4171-8af8-149f4a207ce3]

2022-06-27 23:04:13 | [Mutex] received everything.

2022-06-27 23:04:13 | [Mutex] isItemNotified: configured:node:node-4b13a797-57a3-40f9-85f7-9b4b96397477:node-b05e85c8-a854-4171-8af8-149f4a207ce3 :: true

2022-06-27 23:04:14 | [Mutex] waiting for: [received:nodes:9fc17bb2-c3ea-4f18-a3fb-0425b3405de0:localhost]

2022-06-27 23:04:14 | [Mutex] received everything.

2022-06-27 23:04:14 | [Mutex] isItemNotified: received:node:9fc17bb2-c3ea-4f18-a3fb-0425b3405de0:localhost:node-4b13a797-57a3-40f9-85f7-9b4b96397477:Node 4b13a797-57a3-40f9-85f7-9b4b96397477 :: true

2022-06-27 23:04:14 | [Mutex] waiting for: [received:nodes:c973d763-68fa-4738-9866-8737f3aa6249:localhost]

2022-06-27 23:04:14 | [Mutex] received everything.

2022-06-27 23:04:14 | [Mutex] isItemNotified: received:node:c973d763-68fa-4738-9866-8737f3aa6249:localhost:node-4b13a797-57a3-40f9-85f7-9b4b96397477:Node 4b13a797-57a3-40f9-85f7-9b4b96397477 :: false

createNodes 1.613s
2022-06-27 23:04:10 |

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

2022-06-27 23:04:10 | ------------------------------------

2022-06-27 23:04:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "pubsub#title": "Node 4b13a797-57a3-40f9-85f7-9b4b96397477"
}

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

2022-06-27 23:04:12 | [Mutex] waiting for: [received:nodes:8c43e880-0b11-4674-9336-1438d3630b22:localhost]

2022-06-27 23:04:12 | [Mutex] received everything.

2022-06-27 23:04:12 | [Mutex] isItemNotified: received:node:8c43e880-0b11-4674-9336-1438d3630b22:localhost:node-4b13a797-57a3-40f9-85f7-9b4b96397477:Node 4b13a797-57a3-40f9-85f7-9b4b96397477 :: true

createSubnodes 1.020s
2022-06-27 23:04:12 |

2022-06-27 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:12 | ------------------------------------

2022-06-27 23:04:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b05e85c8-a854-4171-8af8-149f4a207ce3",
    "pubsub#title": "Node b05e85c8-a854-4171-8af8-149f4a207ce3"
}

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

2022-06-27 23:04:13 | [Mutex] waiting for: [received:nodes:ea4b85f1-e368-42ce-a9c1-17b01413111b:localhost]

2022-06-27 23:04:13 | [Mutex] received everything.

2022-06-27 23:04:13 | [Mutex] isItemNotified: received:node:ea4b85f1-e368-42ce-a9c1-17b01413111b:localhost:node-b05e85c8-a854-4171-8af8-149f4a207ce3:Node b05e85c8-a854-4171-8af8-149f4a207ce3 :: true

deleteNodes 1.018s
2022-06-27 23:04:17 |

2022-06-27 23:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:17 | ------------------------------------

2022-06-27 23:04:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b05e85c8-a854-4171-8af8-149f4a207ce3"
}

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

2022-06-27 23:04:18 | [Mutex] waiting for: [received:nodes:89409f95-4d66-4860-9ce6-db685dd4785f:localhost]

2022-06-27 23:04:18 | [Mutex] waiting for: [received:nodes:89409f95-4d66-4860-9ce6-db685dd4785f:localhost]

2022-06-27 23:04:18 | [Mutex] received everything.

2022-06-27 23:04:18 | [Mutex] isItemNotified: received:node:89409f95-4d66-4860-9ce6-db685dd4785f:localhost:node-b05e85c8-a854-4171-8af8-149f4a207ce3:Node b05e85c8-a854-4171-8af8-149f4a207ce3 :: false

deleteSubnodes 1.030s
2022-06-27 23:04:16 |

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

2022-06-27 23:04:16 | ------------------------------------

2022-06-27 23:04:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477"
}

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

2022-06-27 23:04:17 | [Mutex] waiting for: [received:nodes:614e2d45-26eb-4006-aea0-47e6703f4726:localhost]

2022-06-27 23:04:17 | [Mutex] received everything.

2022-06-27 23:04:17 | [Mutex] isItemNotified: received:node:614e2d45-26eb-4006-aea0-47e6703f4726:localhost:node-4b13a797-57a3-40f9-85f7-9b4b96397477:Node 4b13a797-57a3-40f9-85f7-9b4b96397477 :: false

2022-06-27 23:04:17 | [Mutex] waiting for: [received:nodes:ae3df505-5584-458a-a8b3-f7ab04e00773:localhost]

2022-06-27 23:04:17 | [Mutex] received everything.

2022-06-27 23:04:17 | [Mutex] isItemNotified: received:node:ae3df505-5584-458a-a8b3-f7ab04e00773:localhost:node-4b13a797-57a3-40f9-85f7-9b4b96397477:Node 4b13a797-57a3-40f9-85f7-9b4b96397477 :: false

publishItemsToNodes 0.080s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

2022-06-27 23:04:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "entry": "<test>item-1508d9e2-38e6-4ae9-a6d2-384349418371</test>",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371"
}

2022-06-27 23:04:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371"
}

2022-06-27 23:04:15 | [Mutex] waiting for: [published:item:notifieditem-1508d9e2-38e6-4ae9-a6d2-384349418371:admin@test-domain.com]

2022-06-27 23:04:15 | [Mutex] received everything.

2022-06-27 23:04:15 | [Mutex] isItemNotified: published:item:notifieditem-1508d9e2-38e6-4ae9-a6d2-384349418371:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

2022-06-27 23:04:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371"
}

2022-06-27 23:04:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371"
}

2022-06-27 23:04:15 | [Mutex] received everything.

2022-06-27 23:04:15 | [Mutex] isItemNotified: retracted:item:notifieditem-1508d9e2-38e6-4ae9-a6d2-384349418371:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

2022-06-27 23:04:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371"
}

2022-06-27 23:04:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "item-id": "item-1508d9e2-38e6-4ae9-a6d2-384349418371",
    "item": [
        "<item id=\"item-1508d9e2-38e6-4ae9-a6d2-384349418371\"><test>item-1508d9e2-38e6-4ae9-a6d2-384349418371</test></item>"
    ]
}

2022-06-27 23:04:15 | [Mutex] notify: [retrieved:item:item-1508d9e2-38e6-4ae9-a6d2-384349418371:payload-matches:true:localhost]

2022-06-27 23:04:15 | [Mutex] received everything.

2022-06-27 23:04:15 | [Mutex] isItemNotified: retrieved:item:item-1508d9e2-38e6-4ae9-a6d2-384349418371:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

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

2022-06-27 23:04:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
        "node-b05e85c8-a854-4171-8af8-149f4a207ce3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

2022-06-27 23:04:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4b13a797-57a3-40f9-85f7-9b4b96397477)"
}

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

subscribeNodes 1.010s
2022-06-27 23:04:14 |

2022-06-27 23:04:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:14 | ------------------------------------

2022-06-27 23:04:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-06-27 23:04:15 |

2022-06-27 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 23:04:15 | ------------------------------------

2022-06-27 23:04:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4b13a797-57a3-40f9-85f7-9b4b96397477",
    "jids": [
        "admin@test-domain.com"
    ]
}

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