Generated by TestNG with ReportNG at 22:22 PDT on Sunday 08 May 2022
root@21fb2cc9076b / 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.666s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-05-08 22:36:56 |

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

2022-05-08 22:36:56 | ------------------------------------

2022-05-08 22:36:56 | [Mutex] waiting for: [configured:node:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81]

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

2022-05-08 22:36:56 | [Mutex] isItemNotified: configured:node:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81 :: true

2022-05-08 22:36:57 | [Mutex] waiting for: [received:nodes:2ed2bcce-baa4-40e3-b23f-7e0d4b606a4b:localhost]

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

2022-05-08 22:36:57 | [Mutex] isItemNotified: received:node:2ed2bcce-baa4-40e3-b23f-7e0d4b606a4b:localhost:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5 :: true

2022-05-08 22:36:57 | [Mutex] waiting for: [received:nodes:bab5e5f8-3ef2-47e7-b0af-40f274865a90:localhost]

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

2022-05-08 22:36:57 | [Mutex] isItemNotified: received:node:bab5e5f8-3ef2-47e7-b0af-40f274865a90:localhost:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5 :: false

createNodes 1.553s
2022-05-08 22:36:53 |

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

2022-05-08 22:36:53 | ------------------------------------

2022-05-08 22:36:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "pubsub#title": "Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5"
}

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

2022-05-08 22:36:55 | [Mutex] waiting for: [received:nodes:e4d5492a-68d3-4c68-a063-8d4baea03a19:localhost]

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

2022-05-08 22:36:55 | [Mutex] isItemNotified: received:node:e4d5492a-68d3-4c68-a063-8d4baea03a19:localhost:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5 :: true

createSubnodes 1.023s
2022-05-08 22:36:55 |

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

2022-05-08 22:36:55 | ------------------------------------

2022-05-08 22:36:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81",
    "pubsub#title": "Node 74bb26fb-9f4c-42d5-ae16-b7e05a15ce81"
}

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

2022-05-08 22:36:56 | [Mutex] waiting for: [received:nodes:56363766-df3e-475a-bd28-091602e4e6b7:localhost]

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

2022-05-08 22:36:56 | [Mutex] isItemNotified: received:node:56363766-df3e-475a-bd28-091602e4e6b7:localhost:node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81:Node 74bb26fb-9f4c-42d5-ae16-b7e05a15ce81 :: true

deleteNodes 1.023s
2022-05-08 22:37:00 |

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

2022-05-08 22:37:00 | ------------------------------------

2022-05-08 22:37:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81"
}

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

2022-05-08 22:37:01 | [Mutex] waiting for: [received:nodes:64cf352b-6af3-49e8-8661-51f1483d2df3:localhost]

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

2022-05-08 22:37:01 | [Mutex] isItemNotified: received:node:64cf352b-6af3-49e8-8661-51f1483d2df3:localhost:node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81:Node 74bb26fb-9f4c-42d5-ae16-b7e05a15ce81 :: false

deleteSubnodes 1.027s
2022-05-08 22:36:59 |

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

2022-05-08 22:36:59 | ------------------------------------

2022-05-08 22:36:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5"
}

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

2022-05-08 22:37:00 | [Mutex] waiting for: [received:nodes:5f4a4246-3292-4fb6-a7e1-e6ed0f31c230:localhost]

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

2022-05-08 22:37:00 | [Mutex] isItemNotified: received:node:5f4a4246-3292-4fb6-a7e1-e6ed0f31c230:localhost:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5 :: false

2022-05-08 22:37:00 | [Mutex] waiting for: [received:nodes:b9e7f4b9-a09a-48e3-98cf-d889e3588d04:localhost]

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

2022-05-08 22:37:00 | [Mutex] isItemNotified: received:node:b9e7f4b9-a09a-48e3-98cf-d889e3588d04:localhost:node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5:Node 3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5 :: false

publishItemsToNodes 0.055s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

2022-05-08 22:36:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "entry": "<test>item-f9736323-e4df-48cb-a77c-9fd46bec3217</test>",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217"
}

2022-05-08 22:36:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217"
}

2022-05-08 22:36:58 | [Mutex] waiting for: [published:item:notifieditem-f9736323-e4df-48cb-a77c-9fd46bec3217:admin@test-domain.com]

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

2022-05-08 22:36:58 | [Mutex] isItemNotified: published:item:notifieditem-f9736323-e4df-48cb-a77c-9fd46bec3217:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

2022-05-08 22:36:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217"
}

2022-05-08 22:36:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217"
}

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

2022-05-08 22:36:58 | [Mutex] isItemNotified: retracted:item:notifieditem-f9736323-e4df-48cb-a77c-9fd46bec3217:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

2022-05-08 22:36:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217"
}

2022-05-08 22:36:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "item-id": "item-f9736323-e4df-48cb-a77c-9fd46bec3217",
    "item": [
        "<item id=\"item-f9736323-e4df-48cb-a77c-9fd46bec3217\"><test>item-f9736323-e4df-48cb-a77c-9fd46bec3217</test></item>"
    ]
}

2022-05-08 22:36:58 | [Mutex] notify: [retrieved:item:item-f9736323-e4df-48cb-a77c-9fd46bec3217:payload-matches:true:localhost]

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

2022-05-08 22:36:58 | [Mutex] isItemNotified: retrieved:item:item-f9736323-e4df-48cb-a77c-9fd46bec3217:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

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

2022-05-08 22:36:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-74bb26fb-9f4c-42d5-ae16-b7e05a15ce81",
        "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

2022-05-08 22:36:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5)"
}

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

subscribeNodes 1.011s
2022-05-08 22:36:57 |

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

2022-05-08 22:36:57 | ------------------------------------

2022-05-08 22:36:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-05-08 22:36:58 |

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

2022-05-08 22:36:58 | ------------------------------------

2022-05-08 22:36:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ec5b3fa-37ca-4ac6-a248-5710fa7b8ac5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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