Generated by TestNG with ReportNG at 22:48 PDT on Sunday 07 August 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.797s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2022-08-07 23:02:35 |

2022-08-07 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:35 | ------------------------------------

2022-08-07 23:02:35 | [Mutex] waiting for: [configured:node:node-cab54a68-c0bd-4dab-b631-c48e50d14984:node-cb020c58-56a7-4b17-98f5-07e6baff1b35]

2022-08-07 23:02:35 | [Mutex] received everything.

2022-08-07 23:02:35 | [Mutex] isItemNotified: configured:node:node-cab54a68-c0bd-4dab-b631-c48e50d14984:node-cb020c58-56a7-4b17-98f5-07e6baff1b35 :: true

2022-08-07 23:02:36 | [Mutex] waiting for: [received:nodes:94096b85-5b0d-42f5-bd28-68d71a70ab0c:localhost]

2022-08-07 23:02:36 | [Mutex] received everything.

2022-08-07 23:02:36 | [Mutex] isItemNotified: received:node:94096b85-5b0d-42f5-bd28-68d71a70ab0c:localhost:node-cab54a68-c0bd-4dab-b631-c48e50d14984:Node cab54a68-c0bd-4dab-b631-c48e50d14984 :: true

2022-08-07 23:02:36 | [Mutex] waiting for: [received:nodes:cab059c8-407a-44ab-89d6-881e087951c9:localhost]

2022-08-07 23:02:36 | [Mutex] received everything.

2022-08-07 23:02:36 | [Mutex] isItemNotified: received:node:cab059c8-407a-44ab-89d6-881e087951c9:localhost:node-cab54a68-c0bd-4dab-b631-c48e50d14984:Node cab54a68-c0bd-4dab-b631-c48e50d14984 :: false

createNodes 1.614s
2022-08-07 23:02:32 |

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

2022-08-07 23:02:32 | ------------------------------------

2022-08-07 23:02:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "pubsub#title": "Node cab54a68-c0bd-4dab-b631-c48e50d14984"
}

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

2022-08-07 23:02:34 | [Mutex] waiting for: [received:nodes:a264abe7-00cb-47d2-87bf-43613cd9b6eb:localhost]

2022-08-07 23:02:34 | [Mutex] received everything.

2022-08-07 23:02:34 | [Mutex] isItemNotified: received:node:a264abe7-00cb-47d2-87bf-43613cd9b6eb:localhost:node-cab54a68-c0bd-4dab-b631-c48e50d14984:Node cab54a68-c0bd-4dab-b631-c48e50d14984 :: true

createSubnodes 1.022s
2022-08-07 23:02:34 |

2022-08-07 23:02:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:34 | ------------------------------------

2022-08-07 23:02:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cb020c58-56a7-4b17-98f5-07e6baff1b35",
    "pubsub#title": "Node cb020c58-56a7-4b17-98f5-07e6baff1b35"
}

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

2022-08-07 23:02:35 | [Mutex] waiting for: [received:nodes:0e24ecd4-6d95-4aa1-a8de-f0c25dc26a2e:localhost]

2022-08-07 23:02:35 | [Mutex] received everything.

2022-08-07 23:02:35 | [Mutex] isItemNotified: received:node:0e24ecd4-6d95-4aa1-a8de-f0c25dc26a2e:localhost:node-cb020c58-56a7-4b17-98f5-07e6baff1b35:Node cb020c58-56a7-4b17-98f5-07e6baff1b35 :: true

deleteNodes 1.019s
2022-08-07 23:02:40 |

2022-08-07 23:02:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:40 | ------------------------------------

2022-08-07 23:02:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cb020c58-56a7-4b17-98f5-07e6baff1b35"
}

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

2022-08-07 23:02:41 | [Mutex] waiting for: [received:nodes:ad5e8416-d411-4c27-8eb1-609de1184975:localhost]

2022-08-07 23:02:41 | [Mutex] received everything.

2022-08-07 23:02:41 | [Mutex] isItemNotified: received:node:ad5e8416-d411-4c27-8eb1-609de1184975:localhost:node-cb020c58-56a7-4b17-98f5-07e6baff1b35:Node cb020c58-56a7-4b17-98f5-07e6baff1b35 :: false

deleteSubnodes 1.029s
2022-08-07 23:02:39 |

2022-08-07 23:02:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:39 | ------------------------------------

2022-08-07 23:02:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984"
}

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

2022-08-07 23:02:40 | [Mutex] waiting for: [received:nodes:9c7505c1-c26b-4a05-9a89-ddd03577f910:localhost]

2022-08-07 23:02:40 | [Mutex] received everything.

2022-08-07 23:02:40 | [Mutex] isItemNotified: received:node:9c7505c1-c26b-4a05-9a89-ddd03577f910:localhost:node-cab54a68-c0bd-4dab-b631-c48e50d14984:Node cab54a68-c0bd-4dab-b631-c48e50d14984 :: false

2022-08-07 23:02:40 | [Mutex] waiting for: [received:nodes:4c248856-eb7d-4484-831b-f0969080be40:localhost]

2022-08-07 23:02:40 | [Mutex] received everything.

2022-08-07 23:02:40 | [Mutex] isItemNotified: received:node:4c248856-eb7d-4484-831b-f0969080be40:localhost:node-cab54a68-c0bd-4dab-b631-c48e50d14984:Node cab54a68-c0bd-4dab-b631-c48e50d14984 :: false

publishItemsToNodes 0.060s
2022-08-07 23:02:37 |

2022-08-07 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:37 | ------------------------------------

2022-08-07 23:02:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "entry": "<test>item-633030c9-3301-4544-9d09-9a70e65d0215</test>",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215"
}

2022-08-07 23:02:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215"
}

2022-08-07 23:02:37 | [Mutex] waiting for: [published:item:notifieditem-633030c9-3301-4544-9d09-9a70e65d0215:admin@test-domain.com]

2022-08-07 23:02:37 | [Mutex] received everything.

2022-08-07 23:02:37 | [Mutex] isItemNotified: published:item:notifieditem-633030c9-3301-4544-9d09-9a70e65d0215:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-08-07 23:02:37 |

2022-08-07 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:37 | ------------------------------------

2022-08-07 23:02:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215"
}

2022-08-07 23:02:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215"
}

2022-08-07 23:02:38 | [Mutex] received everything.

2022-08-07 23:02:38 | [Mutex] isItemNotified: retracted:item:notifieditem-633030c9-3301-4544-9d09-9a70e65d0215:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-08-07 23:02:37 |

2022-08-07 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:37 | ------------------------------------

2022-08-07 23:02:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215"
}

2022-08-07 23:02:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "item-id": "item-633030c9-3301-4544-9d09-9a70e65d0215",
    "item": [
        "<item id=\"item-633030c9-3301-4544-9d09-9a70e65d0215\"><test>item-633030c9-3301-4544-9d09-9a70e65d0215</test></item>"
    ]
}

2022-08-07 23:02:37 | [Mutex] notify: [retrieved:item:item-633030c9-3301-4544-9d09-9a70e65d0215:payload-matches:true:localhost]

2022-08-07 23:02:37 | [Mutex] received everything.

2022-08-07 23:02:37 | [Mutex] isItemNotified: retrieved:item:item-633030c9-3301-4544-9d09-9a70e65d0215:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.071s
2022-08-07 23:02:37 |

2022-08-07 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:37 | ------------------------------------

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

2022-08-07 23:02:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
        "node-cb020c58-56a7-4b17-98f5-07e6baff1b35"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-07 23:02:37 |

2022-08-07 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:37 | ------------------------------------

2022-08-07 23:02:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cab54a68-c0bd-4dab-b631-c48e50d14984)"
}

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

subscribeNodes 1.016s
2022-08-07 23:02:36 |

2022-08-07 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:36 | ------------------------------------

2022-08-07 23:02:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2022-08-07 23:02:38 |

2022-08-07 23:02:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-07 23:02:38 | ------------------------------------

2022-08-07 23:02:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cab54a68-c0bd-4dab-b631-c48e50d14984",
    "jids": [
        "admin@test-domain.com"
    ]
}

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