Generated by TestNG with ReportNG at 22:18 PDT on Sunday 17 July 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.776s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-07-17 22:32:10 |

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

2022-07-17 22:32:10 | ------------------------------------

2022-07-17 22:32:10 | [Mutex] waiting for: [configured:node:node-d0597a35-9556-40df-816c-7a81053983dc:node-178bbbe3-1f79-4568-a0a2-661df4d3217b]

2022-07-17 22:32:10 | [Mutex] received everything.

2022-07-17 22:32:10 | [Mutex] isItemNotified: configured:node:node-d0597a35-9556-40df-816c-7a81053983dc:node-178bbbe3-1f79-4568-a0a2-661df4d3217b :: true

2022-07-17 22:32:11 | [Mutex] waiting for: [received:nodes:364b1b9a-859d-4b08-99f7-a7c4537f53c1:localhost]

2022-07-17 22:32:11 | [Mutex] received everything.

2022-07-17 22:32:11 | [Mutex] isItemNotified: received:node:364b1b9a-859d-4b08-99f7-a7c4537f53c1:localhost:node-d0597a35-9556-40df-816c-7a81053983dc:Node d0597a35-9556-40df-816c-7a81053983dc :: true

2022-07-17 22:32:11 | [Mutex] waiting for: [received:nodes:cdb47207-a376-43cb-a751-4d961c5cf4e6:localhost]

2022-07-17 22:32:11 | [Mutex] received everything.

2022-07-17 22:32:11 | [Mutex] isItemNotified: received:node:cdb47207-a376-43cb-a751-4d961c5cf4e6:localhost:node-d0597a35-9556-40df-816c-7a81053983dc:Node d0597a35-9556-40df-816c-7a81053983dc :: false

createNodes 1.585s
2022-07-17 22:32:08 |

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

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

2022-07-17 22:32:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "pubsub#title": "Node d0597a35-9556-40df-816c-7a81053983dc"
}

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

2022-07-17 22:32:09 | [Mutex] waiting for: [received:nodes:d2c6129e-cd97-44b2-be5d-4a22177f26bf:localhost]

2022-07-17 22:32:09 | [Mutex] received everything.

2022-07-17 22:32:09 | [Mutex] isItemNotified: received:node:d2c6129e-cd97-44b2-be5d-4a22177f26bf:localhost:node-d0597a35-9556-40df-816c-7a81053983dc:Node d0597a35-9556-40df-816c-7a81053983dc :: true

createSubnodes 1.023s
2022-07-17 22:32:09 |

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

2022-07-17 22:32:09 | ------------------------------------

2022-07-17 22:32:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-178bbbe3-1f79-4568-a0a2-661df4d3217b",
    "pubsub#title": "Node 178bbbe3-1f79-4568-a0a2-661df4d3217b"
}

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

2022-07-17 22:32:10 | [Mutex] waiting for: [received:nodes:7d3d711a-a33d-4d3d-a770-0e6f92a51afe:localhost]

2022-07-17 22:32:10 | [Mutex] waiting for: [received:nodes:7d3d711a-a33d-4d3d-a770-0e6f92a51afe:localhost]

2022-07-17 22:32:10 | [Mutex] received everything.

2022-07-17 22:32:10 | [Mutex] isItemNotified: received:node:7d3d711a-a33d-4d3d-a770-0e6f92a51afe:localhost:node-178bbbe3-1f79-4568-a0a2-661df4d3217b:Node 178bbbe3-1f79-4568-a0a2-661df4d3217b :: true

deleteNodes 1.020s
2022-07-17 22:32:15 |

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

2022-07-17 22:32:15 | ------------------------------------

2022-07-17 22:32:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-178bbbe3-1f79-4568-a0a2-661df4d3217b"
}

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

2022-07-17 22:32:16 | [Mutex] waiting for: [received:nodes:93887334-633f-493d-a08f-f2c8b1b8898f:localhost]

2022-07-17 22:32:16 | [Mutex] received everything.

2022-07-17 22:32:16 | [Mutex] isItemNotified: received:node:93887334-633f-493d-a08f-f2c8b1b8898f:localhost:node-178bbbe3-1f79-4568-a0a2-661df4d3217b:Node 178bbbe3-1f79-4568-a0a2-661df4d3217b :: false

deleteSubnodes 1.031s
2022-07-17 22:32:14 |

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

2022-07-17 22:32:14 | ------------------------------------

2022-07-17 22:32:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc"
}

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

2022-07-17 22:32:15 | [Mutex] waiting for: [received:nodes:dd99519c-a6bb-46d8-94dc-9c173f15bb04:localhost]

2022-07-17 22:32:15 | [Mutex] received everything.

2022-07-17 22:32:15 | [Mutex] isItemNotified: received:node:dd99519c-a6bb-46d8-94dc-9c173f15bb04:localhost:node-d0597a35-9556-40df-816c-7a81053983dc:Node d0597a35-9556-40df-816c-7a81053983dc :: false

2022-07-17 22:32:15 | [Mutex] waiting for: [received:nodes:af33c95e-4481-4f0d-b690-e62d1b82f884:localhost]

2022-07-17 22:32:15 | [Mutex] received everything.

2022-07-17 22:32:15 | [Mutex] isItemNotified: received:node:af33c95e-4481-4f0d-b690-e62d1b82f884:localhost:node-d0597a35-9556-40df-816c-7a81053983dc:Node d0597a35-9556-40df-816c-7a81053983dc :: false

publishItemsToNodes 0.084s
2022-07-17 22:32:12 |

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

2022-07-17 22:32:12 | ------------------------------------

2022-07-17 22:32:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "entry": "<test>item-2323eadf-e313-4a03-98d3-98f23b2d0229</test>",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229"
}

2022-07-17 22:32:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229"
}

2022-07-17 22:32:12 | [Mutex] waiting for: [published:item:notifieditem-2323eadf-e313-4a03-98d3-98f23b2d0229:admin@test-domain.com]

2022-07-17 22:32:12 | [Mutex] received everything.

2022-07-17 22:32:12 | [Mutex] isItemNotified: published:item:notifieditem-2323eadf-e313-4a03-98d3-98f23b2d0229:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-07-17 22:32:13 |

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

2022-07-17 22:32:13 | ------------------------------------

2022-07-17 22:32:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229"
}

2022-07-17 22:32:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229"
}

2022-07-17 22:32:13 | [Mutex] received everything.

2022-07-17 22:32:13 | [Mutex] isItemNotified: retracted:item:notifieditem-2323eadf-e313-4a03-98d3-98f23b2d0229:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2022-07-17 22:32:12 |

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

2022-07-17 22:32:12 | ------------------------------------

2022-07-17 22:32:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229"
}

2022-07-17 22:32:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "item-id": "item-2323eadf-e313-4a03-98d3-98f23b2d0229",
    "item": [
        "<item id=\"item-2323eadf-e313-4a03-98d3-98f23b2d0229\"><test>item-2323eadf-e313-4a03-98d3-98f23b2d0229</test></item>"
    ]
}

2022-07-17 22:32:12 | [Mutex] notify: [retrieved:item:item-2323eadf-e313-4a03-98d3-98f23b2d0229:payload-matches:true:localhost]

2022-07-17 22:32:12 | [Mutex] received everything.

2022-07-17 22:32:12 | [Mutex] isItemNotified: retrieved:item:item-2323eadf-e313-4a03-98d3-98f23b2d0229:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-17 22:32:12 |

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

2022-07-17 22:32:12 | ------------------------------------

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

2022-07-17 22:32:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-178bbbe3-1f79-4568-a0a2-661df4d3217b",
        "node-d0597a35-9556-40df-816c-7a81053983dc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-07-17 22:32:13 |

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

2022-07-17 22:32:13 | ------------------------------------

2022-07-17 22:32:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d0597a35-9556-40df-816c-7a81053983dc)"
}

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

subscribeNodes 1.011s
2022-07-17 22:32:11 |

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

2022-07-17 22:32:11 | ------------------------------------

2022-07-17 22:32:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.050s
2022-07-17 22:32:13 |

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

2022-07-17 22:32:13 | ------------------------------------

2022-07-17 22:32:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d0597a35-9556-40df-816c-7a81053983dc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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