Generated by TestNG with ReportNG at 04:16 PDT on Tuesday 25 October 2022
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.634s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.176s
2022-10-25 04:32:43 |

2022-10-25 04:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:43 | ------------------------------------

2022-10-25 04:32:43 | [Mutex] waiting for: [configured:node:node-83deabbe-15a3-495f-8246-b60e33349e39:node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b]

2022-10-25 04:32:43 | [Mutex] received everything.

2022-10-25 04:32:43 | [Mutex] isItemNotified: configured:node:node-83deabbe-15a3-495f-8246-b60e33349e39:node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b :: true

2022-10-25 04:32:44 | [Mutex] waiting for: [received:nodes:347421f1-3c32-4bc9-ae92-70607ae7797d:localhost]

2022-10-25 04:32:44 | [Mutex] received everything.

2022-10-25 04:32:44 | [Mutex] isItemNotified: received:node:347421f1-3c32-4bc9-ae92-70607ae7797d:localhost:node-83deabbe-15a3-495f-8246-b60e33349e39:Node 83deabbe-15a3-495f-8246-b60e33349e39 :: true

2022-10-25 04:32:44 | [Mutex] waiting for: [received:nodes:5eaeb9a9-e4c5-4045-8cd2-19430f7d730b:localhost]

2022-10-25 04:32:44 | [Mutex] received everything.

2022-10-25 04:32:44 | [Mutex] isItemNotified: received:node:5eaeb9a9-e4c5-4045-8cd2-19430f7d730b:localhost:node-83deabbe-15a3-495f-8246-b60e33349e39:Node 83deabbe-15a3-495f-8246-b60e33349e39 :: false

createNodes 1.514s
2022-10-25 04:32:41 |

2022-10-25 04:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:41 | ------------------------------------

2022-10-25 04:32:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "pubsub#title": "Node 83deabbe-15a3-495f-8246-b60e33349e39"
}

2022-10-25 04:32:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:32:42 | [Mutex] waiting for: [received:nodes:14f64fbd-270e-4039-83fe-35ad9abe561e:localhost]

2022-10-25 04:32:42 | [Mutex] received everything.

2022-10-25 04:32:42 | [Mutex] isItemNotified: received:node:14f64fbd-270e-4039-83fe-35ad9abe561e:localhost:node-83deabbe-15a3-495f-8246-b60e33349e39:Node 83deabbe-15a3-495f-8246-b60e33349e39 :: true

createSubnodes 1.030s
2022-10-25 04:32:42 |

2022-10-25 04:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:42 | ------------------------------------

2022-10-25 04:32:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b",
    "pubsub#title": "Node de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b"
}

2022-10-25 04:32:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:32:43 | [Mutex] waiting for: [received:nodes:1781c194-0da1-4317-8f5e-313396687be4:localhost]

2022-10-25 04:32:43 | [Mutex] received everything.

2022-10-25 04:32:43 | [Mutex] isItemNotified: received:node:1781c194-0da1-4317-8f5e-313396687be4:localhost:node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b:Node de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b :: true

deleteNodes 1.020s
2022-10-25 04:32:48 |

2022-10-25 04:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:48 | ------------------------------------

2022-10-25 04:32:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b"
}

2022-10-25 04:32:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:32:49 | [Mutex] waiting for: [received:nodes:5c19276a-3737-4cf9-acf9-94fceb8802ac:localhost]

2022-10-25 04:32:49 | [Mutex] received everything.

2022-10-25 04:32:49 | [Mutex] isItemNotified: received:node:5c19276a-3737-4cf9-acf9-94fceb8802ac:localhost:node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b:Node de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b :: false

deleteSubnodes 1.026s
2022-10-25 04:32:47 |

2022-10-25 04:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:47 | ------------------------------------

2022-10-25 04:32:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39"
}

2022-10-25 04:32:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-25 04:32:48 | [Mutex] waiting for: [received:nodes:fd16e3be-a8f6-4303-8e6b-7853deadb3c4:localhost]

2022-10-25 04:32:48 | [Mutex] waiting for: [received:nodes:fd16e3be-a8f6-4303-8e6b-7853deadb3c4:localhost]

2022-10-25 04:32:48 | [Mutex] received everything.

2022-10-25 04:32:48 | [Mutex] isItemNotified: received:node:fd16e3be-a8f6-4303-8e6b-7853deadb3c4:localhost:node-83deabbe-15a3-495f-8246-b60e33349e39:Node 83deabbe-15a3-495f-8246-b60e33349e39 :: false

2022-10-25 04:32:48 | [Mutex] waiting for: [received:nodes:0f235ba8-ef19-45f7-aa09-267f514f4fb5:localhost]

2022-10-25 04:32:48 | [Mutex] received everything.

2022-10-25 04:32:48 | [Mutex] isItemNotified: received:node:0f235ba8-ef19-45f7-aa09-267f514f4fb5:localhost:node-83deabbe-15a3-495f-8246-b60e33349e39:Node 83deabbe-15a3-495f-8246-b60e33349e39 :: false

publishItemsToNodes 0.051s
2022-10-25 04:32:45 |

2022-10-25 04:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:45 | ------------------------------------

2022-10-25 04:32:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "entry": "<test>item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48</test>",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48"
}

2022-10-25 04:32:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48"
}

2022-10-25 04:32:45 | [Mutex] received everything.

2022-10-25 04:32:45 | [Mutex] isItemNotified: published:item:notifieditem-cfae2d0e-2c00-4c34-a7a5-cd8113165e48:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-10-25 04:32:46 |

2022-10-25 04:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:46 | ------------------------------------

2022-10-25 04:32:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48"
}

2022-10-25 04:32:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48"
}

2022-10-25 04:32:46 | [Mutex] received everything.

2022-10-25 04:32:46 | [Mutex] isItemNotified: retracted:item:notifieditem-cfae2d0e-2c00-4c34-a7a5-cd8113165e48:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-10-25 04:32:45 |

2022-10-25 04:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:45 | ------------------------------------

2022-10-25 04:32:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48"
}

2022-10-25 04:32:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "item-id": "item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48",
    "item": [
        "<item id=\"item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48\"><test>item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48</test></item>"
    ]
}

2022-10-25 04:32:46 | [Mutex] notify: [retrieved:item:item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48:payload-matches:true:localhost]

2022-10-25 04:32:46 | [Mutex] received everything.

2022-10-25 04:32:46 | [Mutex] isItemNotified: retrieved:item:item-cfae2d0e-2c00-4c34-a7a5-cd8113165e48:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-25 04:32:46 |

2022-10-25 04:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:46 | ------------------------------------

2022-10-25 04:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-25 04:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-83deabbe-15a3-495f-8246-b60e33349e39",
        "node-de8c3cc9-ec5c-4ff4-afdf-84f5ae2e9f5b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-10-25 04:32:46 |

2022-10-25 04:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:46 | ------------------------------------

2022-10-25 04:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-83deabbe-15a3-495f-8246-b60e33349e39)"
}

2022-10-25 04:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-10-25 04:32:44 |

2022-10-25 04:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:44 | ------------------------------------

2022-10-25 04:32:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-25 04:32:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-10-25 04:32:46 |

2022-10-25 04:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-25 04:32:46 | ------------------------------------

2022-10-25 04:32:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-83deabbe-15a3-495f-8246-b60e33349e39",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-25 04:32:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}