Generated by TestNG with ReportNG at 22:53 PDT on Sunday 22 May 2022
root@61c39d2ed70d / 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.658s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-05-22 23:08:22 |

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

2022-05-22 23:08:22 | ------------------------------------

2022-05-22 23:08:22 | [Mutex] waiting for: [configured:node:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3]

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

2022-05-22 23:08:22 | [Mutex] isItemNotified: configured:node:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3 :: true

2022-05-22 23:08:23 | [Mutex] waiting for: [received:nodes:bc7e18d9-c0b1-4276-91cf-e88ee1ddd675:localhost]

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

2022-05-22 23:08:23 | [Mutex] isItemNotified: received:node:bc7e18d9-c0b1-4276-91cf-e88ee1ddd675:localhost:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:Node bcffd464-0f73-47ed-a3e0-ad4468e07bde :: true

2022-05-22 23:08:23 | [Mutex] waiting for: [received:nodes:455d70b2-ceda-438e-b4ad-f73f9f9e1f01:localhost]

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

2022-05-22 23:08:23 | [Mutex] isItemNotified: received:node:455d70b2-ceda-438e-b4ad-f73f9f9e1f01:localhost:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:Node bcffd464-0f73-47ed-a3e0-ad4468e07bde :: false

createNodes 1.591s
2022-05-22 23:08:19 |

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

2022-05-22 23:08:19 | ------------------------------------

2022-05-22 23:08:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "pubsub#title": "Node bcffd464-0f73-47ed-a3e0-ad4468e07bde"
}

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

2022-05-22 23:08:21 | [Mutex] waiting for: [received:nodes:1355c199-87a4-4693-b738-ad62a64db74d:localhost]

2022-05-22 23:08:21 | [Mutex] waiting for: [received:nodes:1355c199-87a4-4693-b738-ad62a64db74d:localhost]

2022-05-22 23:08:21 | [Mutex] received everything.

2022-05-22 23:08:21 | [Mutex] isItemNotified: received:node:1355c199-87a4-4693-b738-ad62a64db74d:localhost:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:Node bcffd464-0f73-47ed-a3e0-ad4468e07bde :: true

createSubnodes 1.024s
2022-05-22 23:08:21 |

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

2022-05-22 23:08:21 | ------------------------------------

2022-05-22 23:08:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3",
    "pubsub#title": "Node d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3"
}

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

2022-05-22 23:08:22 | [Mutex] waiting for: [received:nodes:3256dbc3-e23c-4c3e-890f-2243390438c4:localhost]

2022-05-22 23:08:22 | [Mutex] waiting for: [received:nodes:3256dbc3-e23c-4c3e-890f-2243390438c4:localhost]

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

2022-05-22 23:08:22 | [Mutex] isItemNotified: received:node:3256dbc3-e23c-4c3e-890f-2243390438c4:localhost:node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3:Node d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3 :: true

deleteNodes 1.025s
2022-05-22 23:08:26 |

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

2022-05-22 23:08:26 | ------------------------------------

2022-05-22 23:08:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3"
}

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

2022-05-22 23:08:27 | [Mutex] waiting for: [received:nodes:56783652-b6e5-41d1-8765-58cbbaa6320c:localhost]

2022-05-22 23:08:27 | [Mutex] received everything.

2022-05-22 23:08:27 | [Mutex] isItemNotified: received:node:56783652-b6e5-41d1-8765-58cbbaa6320c:localhost:node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3:Node d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3 :: false

deleteSubnodes 1.027s
2022-05-22 23:08:25 |

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

2022-05-22 23:08:25 | ------------------------------------

2022-05-22 23:08:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde"
}

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

2022-05-22 23:08:26 | [Mutex] waiting for: [received:nodes:ab3e084b-c703-49a7-90d3-42c77b9d356c:localhost]

2022-05-22 23:08:26 | [Mutex] received everything.

2022-05-22 23:08:26 | [Mutex] isItemNotified: received:node:ab3e084b-c703-49a7-90d3-42c77b9d356c:localhost:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:Node bcffd464-0f73-47ed-a3e0-ad4468e07bde :: false

2022-05-22 23:08:26 | [Mutex] waiting for: [received:nodes:0a9a1ca9-d447-426d-94a5-2e696a17128c:localhost]

2022-05-22 23:08:26 | [Mutex] received everything.

2022-05-22 23:08:26 | [Mutex] isItemNotified: received:node:0a9a1ca9-d447-426d-94a5-2e696a17128c:localhost:node-bcffd464-0f73-47ed-a3e0-ad4468e07bde:Node bcffd464-0f73-47ed-a3e0-ad4468e07bde :: false

publishItemsToNodes 0.062s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

2022-05-22 23:08:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "entry": "<test>item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab</test>",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab"
}

2022-05-22 23:08:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab"
}

2022-05-22 23:08:24 | [Mutex] waiting for: [published:item:notifieditem-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:admin@test-domain.com]

2022-05-22 23:08:24 | [Mutex] received everything.

2022-05-22 23:08:24 | [Mutex] isItemNotified: published:item:notifieditem-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:admin@test-domain.com :: true

retractItemsFromNodes 0.124s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

2022-05-22 23:08:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab"
}

2022-05-22 23:08:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab"
}

2022-05-22 23:08:24 | [Mutex] waiting for: [retracted:item:notifieditem-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:admin@test-domain.com]

2022-05-22 23:08:24 | [Mutex] received everything.

2022-05-22 23:08:24 | [Mutex] isItemNotified: retracted:item:notifieditem-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

2022-05-22 23:08:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab"
}

2022-05-22 23:08:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "item-id": "item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab",
    "item": [
        "<item id=\"item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab\"><test>item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab</test></item>"
    ]
}

2022-05-22 23:08:24 | [Mutex] notify: [retrieved:item:item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:payload-matches:true:localhost]

2022-05-22 23:08:24 | [Mutex] received everything.

2022-05-22 23:08:24 | [Mutex] isItemNotified: retrieved:item:item-ded4ffc4-5409-4ad8-9e36-4923e700a8ab:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.077s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

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

2022-05-22 23:08:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
        "node-d3b69381-5d4f-4ef4-aad4-03d5ae75b5e3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.054s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

2022-05-22 23:08:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bcffd464-0f73-47ed-a3e0-ad4468e07bde)"
}

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

subscribeNodes 1.011s
2022-05-22 23:08:23 |

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

2022-05-22 23:08:23 | ------------------------------------

2022-05-22 23:08:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.035s
2022-05-22 23:08:24 |

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

2022-05-22 23:08:24 | ------------------------------------

2022-05-22 23:08:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bcffd464-0f73-47ed-a3e0-ad4468e07bde",
    "jids": [
        "admin@test-domain.com"
    ]
}

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