Generated by TestNG with ReportNG at 15:32 PST on Friday 24 February 2023
root@ed1b7dd8a1b3 / 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.562s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.081s
2023-02-24 15:46:29 |

2023-02-24 15:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:29 | ------------------------------------

2023-02-24 15:46:29 | [Mutex] waiting for: [configured:node:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c]

2023-02-24 15:46:29 | [Mutex] received everything.

2023-02-24 15:46:29 | [Mutex] isItemNotified: configured:node:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c :: true

2023-02-24 15:46:30 | [Mutex] waiting for: [received:nodes:758d1634-473f-45b9-b8c5-274e94958ae4:localhost]

2023-02-24 15:46:30 | [Mutex] received everything.

2023-02-24 15:46:30 | [Mutex] isItemNotified: received:node:758d1634-473f-45b9-b8c5-274e94958ae4:localhost:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64 :: true

2023-02-24 15:46:30 | [Mutex] waiting for: [received:nodes:a33c9856-0c48-464c-a89c-ef0594b42ad9:localhost]

2023-02-24 15:46:30 | [Mutex] waiting for: [received:nodes:a33c9856-0c48-464c-a89c-ef0594b42ad9:localhost]

2023-02-24 15:46:30 | [Mutex] waiting for: [received:nodes:a33c9856-0c48-464c-a89c-ef0594b42ad9:localhost]

2023-02-24 15:46:30 | [Mutex] received everything.

2023-02-24 15:46:30 | [Mutex] isItemNotified: received:node:a33c9856-0c48-464c-a89c-ef0594b42ad9:localhost:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64 :: false

createNodes 1.542s
2023-02-24 15:46:26 |

2023-02-24 15:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:26 | ------------------------------------

2023-02-24 15:46:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "pubsub#title": "Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64"
}

2023-02-24 15:46:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:46:27 | [Mutex] waiting for: [received:nodes:9ed888a4-43dc-4cb3-9bc0-4350d5708934:localhost]

2023-02-24 15:46:27 | [Mutex] waiting for: [received:nodes:9ed888a4-43dc-4cb3-9bc0-4350d5708934:localhost]

2023-02-24 15:46:27 | [Mutex] received everything.

2023-02-24 15:46:27 | [Mutex] isItemNotified: received:node:9ed888a4-43dc-4cb3-9bc0-4350d5708934:localhost:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64 :: true

createSubnodes 1.032s
2023-02-24 15:46:27 |

2023-02-24 15:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:27 | ------------------------------------

2023-02-24 15:46:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c",
    "pubsub#title": "Node 5d566fa3-c4d4-40f4-91e1-f5a795775f1c"
}

2023-02-24 15:46:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:46:29 | [Mutex] waiting for: [received:nodes:56aec4ff-7320-45e7-86e8-52b593a3e2ef:localhost]

2023-02-24 15:46:29 | [Mutex] waiting for: [received:nodes:56aec4ff-7320-45e7-86e8-52b593a3e2ef:localhost]

2023-02-24 15:46:29 | [Mutex] waiting for: [received:nodes:56aec4ff-7320-45e7-86e8-52b593a3e2ef:localhost]

2023-02-24 15:46:29 | [Mutex] waiting for: [received:nodes:56aec4ff-7320-45e7-86e8-52b593a3e2ef:localhost]

2023-02-24 15:46:29 | [Mutex] received everything.

2023-02-24 15:46:29 | [Mutex] isItemNotified: received:node:56aec4ff-7320-45e7-86e8-52b593a3e2ef:localhost:node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c:Node 5d566fa3-c4d4-40f4-91e1-f5a795775f1c :: true

deleteNodes 1.034s
2023-02-24 15:46:33 |

2023-02-24 15:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:33 | ------------------------------------

2023-02-24 15:46:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c"
}

2023-02-24 15:46:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:46:34 | [Mutex] waiting for: [received:nodes:000592e9-2ec6-4354-a8ca-2e956a6daa97:localhost]

2023-02-24 15:46:34 | [Mutex] waiting for: [received:nodes:000592e9-2ec6-4354-a8ca-2e956a6daa97:localhost]

2023-02-24 15:46:34 | [Mutex] waiting for: [received:nodes:000592e9-2ec6-4354-a8ca-2e956a6daa97:localhost]

2023-02-24 15:46:34 | [Mutex] received everything.

2023-02-24 15:46:34 | [Mutex] isItemNotified: received:node:000592e9-2ec6-4354-a8ca-2e956a6daa97:localhost:node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c:Node 5d566fa3-c4d4-40f4-91e1-f5a795775f1c :: false

deleteSubnodes 1.032s
2023-02-24 15:46:32 |

2023-02-24 15:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:32 | ------------------------------------

2023-02-24 15:46:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64"
}

2023-02-24 15:46:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 15:46:33 | [Mutex] waiting for: [received:nodes:4ca07c45-3100-462f-a92b-ee37a9a8b3a4:localhost]

2023-02-24 15:46:33 | [Mutex] waiting for: [received:nodes:4ca07c45-3100-462f-a92b-ee37a9a8b3a4:localhost]

2023-02-24 15:46:33 | [Mutex] waiting for: [received:nodes:4ca07c45-3100-462f-a92b-ee37a9a8b3a4:localhost]

2023-02-24 15:46:33 | [Mutex] received everything.

2023-02-24 15:46:33 | [Mutex] isItemNotified: received:node:4ca07c45-3100-462f-a92b-ee37a9a8b3a4:localhost:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64 :: false

2023-02-24 15:46:33 | [Mutex] waiting for: [received:nodes:66366c0f-07fe-4f29-aaca-8bed75774ec3:localhost]

2023-02-24 15:46:33 | [Mutex] received everything.

2023-02-24 15:46:33 | [Mutex] isItemNotified: received:node:66366c0f-07fe-4f29-aaca-8bed75774ec3:localhost:node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64:Node 3b8fd101-64c6-46dd-8e70-5867ea1e5e64 :: false

publishItemsToNodes 0.038s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "entry": "<test>item-5662f53f-601b-4285-adc1-e12d3180f5c4</test>",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4"
}

2023-02-24 15:46:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4"
}

2023-02-24 15:46:31 | [Mutex] waiting for: [published:item:notifieditem-5662f53f-601b-4285-adc1-e12d3180f5c4:admin@test-domain.com]

2023-02-24 15:46:31 | [Mutex] received everything.

2023-02-24 15:46:31 | [Mutex] isItemNotified: published:item:notifieditem-5662f53f-601b-4285-adc1-e12d3180f5c4:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4"
}

2023-02-24 15:46:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4"
}

2023-02-24 15:46:31 | [Mutex] received everything.

2023-02-24 15:46:31 | [Mutex] isItemNotified: retracted:item:notifieditem-5662f53f-601b-4285-adc1-e12d3180f5c4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4"
}

2023-02-24 15:46:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "item-id": "item-5662f53f-601b-4285-adc1-e12d3180f5c4",
    "item": [
        "<item id=\"item-5662f53f-601b-4285-adc1-e12d3180f5c4\"><test>item-5662f53f-601b-4285-adc1-e12d3180f5c4</test></item>"
    ]
}

2023-02-24 15:46:31 | [Mutex] notify: [retrieved:item:item-5662f53f-601b-4285-adc1-e12d3180f5c4:payload-matches:true:localhost]

2023-02-24 15:46:31 | [Mutex] received everything.

2023-02-24 15:46:31 | [Mutex] isItemNotified: retrieved:item:item-5662f53f-601b-4285-adc1-e12d3180f5c4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-24 15:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
        "node-5d566fa3-c4d4-40f4-91e1-f5a795775f1c",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64)"
}

2023-02-24 15:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-02-24 15:46:30 |

2023-02-24 15:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:30 | ------------------------------------

2023-02-24 15:46:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:46:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-02-24 15:46:31 |

2023-02-24 15:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 15:46:31 | ------------------------------------

2023-02-24 15:46:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3b8fd101-64c6-46dd-8e70-5867ea1e5e64",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 15:46:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}