Generated by TestNG with ReportNG at 21:47 PST on Tuesday 10 January 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.572s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2023-01-10 22:08:52 |

2023-01-10 22:08:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:52 | ------------------------------------

2023-01-10 22:08:52 | [Mutex] waiting for: [configured:node:node-c4a2b1fc-1559-4954-8499-a90771c960a3:node-87da9a22-9f70-4fac-84ec-3146bc1eff5f]

2023-01-10 22:08:52 | [Mutex] received everything.

2023-01-10 22:08:52 | [Mutex] isItemNotified: configured:node:node-c4a2b1fc-1559-4954-8499-a90771c960a3:node-87da9a22-9f70-4fac-84ec-3146bc1eff5f :: true

2023-01-10 22:08:53 | [Mutex] waiting for: [received:nodes:770c4c84-af35-426c-a647-fcffcfdc1e29:localhost]

2023-01-10 22:08:53 | [Mutex] received everything.

2023-01-10 22:08:53 | [Mutex] isItemNotified: received:node:770c4c84-af35-426c-a647-fcffcfdc1e29:localhost:node-c4a2b1fc-1559-4954-8499-a90771c960a3:Node c4a2b1fc-1559-4954-8499-a90771c960a3 :: true

2023-01-10 22:08:53 | [Mutex] waiting for: [received:nodes:dfc954c4-1b1a-4e28-aae6-7c090367ad06:localhost]

2023-01-10 22:08:53 | [Mutex] waiting for: [received:nodes:dfc954c4-1b1a-4e28-aae6-7c090367ad06:localhost]

2023-01-10 22:08:53 | [Mutex] waiting for: [received:nodes:dfc954c4-1b1a-4e28-aae6-7c090367ad06:localhost]

2023-01-10 22:08:53 | [Mutex] waiting for: [received:nodes:dfc954c4-1b1a-4e28-aae6-7c090367ad06:localhost]

2023-01-10 22:08:53 | [Mutex] received everything.

2023-01-10 22:08:53 | [Mutex] isItemNotified: received:node:dfc954c4-1b1a-4e28-aae6-7c090367ad06:localhost:node-c4a2b1fc-1559-4954-8499-a90771c960a3:Node c4a2b1fc-1559-4954-8499-a90771c960a3 :: false

createNodes 1.562s
2023-01-10 22:08:49 |

2023-01-10 22:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:49 | ------------------------------------

2023-01-10 22:08:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "pubsub#title": "Node c4a2b1fc-1559-4954-8499-a90771c960a3"
}

2023-01-10 22:08:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 22:08:51 | [Mutex] waiting for: [received:nodes:157260a5-6dc7-4bc8-8f33-a359a565d6c6:localhost]

2023-01-10 22:08:51 | [Mutex] waiting for: [received:nodes:157260a5-6dc7-4bc8-8f33-a359a565d6c6:localhost]

2023-01-10 22:08:51 | [Mutex] waiting for: [received:nodes:157260a5-6dc7-4bc8-8f33-a359a565d6c6:localhost]

2023-01-10 22:08:51 | [Mutex] waiting for: [received:nodes:157260a5-6dc7-4bc8-8f33-a359a565d6c6:localhost]

2023-01-10 22:08:51 | [Mutex] received everything.

2023-01-10 22:08:51 | [Mutex] isItemNotified: received:node:157260a5-6dc7-4bc8-8f33-a359a565d6c6:localhost:node-c4a2b1fc-1559-4954-8499-a90771c960a3:Node c4a2b1fc-1559-4954-8499-a90771c960a3 :: true

createSubnodes 1.019s
2023-01-10 22:08:51 |

2023-01-10 22:08:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:51 | ------------------------------------

2023-01-10 22:08:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-87da9a22-9f70-4fac-84ec-3146bc1eff5f",
    "pubsub#title": "Node 87da9a22-9f70-4fac-84ec-3146bc1eff5f"
}

2023-01-10 22:08:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 22:08:52 | [Mutex] waiting for: [received:nodes:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost]

2023-01-10 22:08:52 | [Mutex] waiting for: [received:nodes:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost]

2023-01-10 22:08:52 | [Mutex] waiting for: [received:nodes:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost]

2023-01-10 22:08:52 | [Mutex] waiting for: [received:nodes:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost]

2023-01-10 22:08:52 | [Mutex] waiting for: [received:nodes:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost]

2023-01-10 22:08:52 | [Mutex] received everything.

2023-01-10 22:08:52 | [Mutex] isItemNotified: received:node:6c8ad7d1-0b00-4d5e-8b38-122ec5ef1814:localhost:node-87da9a22-9f70-4fac-84ec-3146bc1eff5f:Node 87da9a22-9f70-4fac-84ec-3146bc1eff5f :: true

deleteNodes 1.021s
2023-01-10 22:08:56 |

2023-01-10 22:08:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:56 | ------------------------------------

2023-01-10 22:08:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-87da9a22-9f70-4fac-84ec-3146bc1eff5f"
}

2023-01-10 22:08:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 22:08:57 | [Mutex] waiting for: [received:nodes:7de001ed-4f7d-4875-b5cc-055e07f639ef:localhost]

2023-01-10 22:08:57 | [Mutex] waiting for: [received:nodes:7de001ed-4f7d-4875-b5cc-055e07f639ef:localhost]

2023-01-10 22:08:57 | [Mutex] received everything.

2023-01-10 22:08:57 | [Mutex] isItemNotified: received:node:7de001ed-4f7d-4875-b5cc-055e07f639ef:localhost:node-87da9a22-9f70-4fac-84ec-3146bc1eff5f:Node 87da9a22-9f70-4fac-84ec-3146bc1eff5f :: false

deleteSubnodes 1.023s
2023-01-10 22:08:55 |

2023-01-10 22:08:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:55 | ------------------------------------

2023-01-10 22:08:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3"
}

2023-01-10 22:08:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 22:08:56 | [Mutex] waiting for: [received:nodes:4d29663d-fe69-405a-bb2e-1789f535439b:localhost]

2023-01-10 22:08:56 | [Mutex] waiting for: [received:nodes:4d29663d-fe69-405a-bb2e-1789f535439b:localhost]

2023-01-10 22:08:56 | [Mutex] waiting for: [received:nodes:4d29663d-fe69-405a-bb2e-1789f535439b:localhost]

2023-01-10 22:08:56 | [Mutex] received everything.

2023-01-10 22:08:56 | [Mutex] isItemNotified: received:node:4d29663d-fe69-405a-bb2e-1789f535439b:localhost:node-c4a2b1fc-1559-4954-8499-a90771c960a3:Node c4a2b1fc-1559-4954-8499-a90771c960a3 :: false

2023-01-10 22:08:56 | [Mutex] waiting for: [received:nodes:6ad22342-98e9-40a6-b7f7-675c0300658d:localhost]

2023-01-10 22:08:56 | [Mutex] received everything.

2023-01-10 22:08:56 | [Mutex] isItemNotified: received:node:6ad22342-98e9-40a6-b7f7-675c0300658d:localhost:node-c4a2b1fc-1559-4954-8499-a90771c960a3:Node c4a2b1fc-1559-4954-8499-a90771c960a3 :: false

publishItemsToNodes 0.044s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "entry": "<test>item-d9b171d6-f14b-45df-ac28-6d7286c69144</test>",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144"
}

2023-01-10 22:08:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144"
}

2023-01-10 22:08:54 | [Mutex] waiting for: [published:item:notifieditem-d9b171d6-f14b-45df-ac28-6d7286c69144:admin@test-domain.com]

2023-01-10 22:08:54 | [Mutex] received everything.

2023-01-10 22:08:54 | [Mutex] isItemNotified: published:item:notifieditem-d9b171d6-f14b-45df-ac28-6d7286c69144:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144"
}

2023-01-10 22:08:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144"
}

2023-01-10 22:08:54 | [Mutex] received everything.

2023-01-10 22:08:54 | [Mutex] isItemNotified: retracted:item:notifieditem-d9b171d6-f14b-45df-ac28-6d7286c69144:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144"
}

2023-01-10 22:08:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "item-id": "item-d9b171d6-f14b-45df-ac28-6d7286c69144",
    "item": [
        "<item id=\"item-d9b171d6-f14b-45df-ac28-6d7286c69144\"><test>item-d9b171d6-f14b-45df-ac28-6d7286c69144</test></item>"
    ]
}

2023-01-10 22:08:54 | [Mutex] notify: [retrieved:item:item-d9b171d6-f14b-45df-ac28-6d7286c69144:payload-matches:true:localhost]

2023-01-10 22:08:54 | [Mutex] received everything.

2023-01-10 22:08:54 | [Mutex] isItemNotified: retrieved:item:item-d9b171d6-f14b-45df-ac28-6d7286c69144:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-01-10 22:08:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-87da9a22-9f70-4fac-84ec-3146bc1eff5f",
        "test",
        "node-c4a2b1fc-1559-4954-8499-a90771c960a3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c4a2b1fc-1559-4954-8499-a90771c960a3)"
}

2023-01-10 22:08:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.007s
2023-01-10 22:08:53 |

2023-01-10 22:08:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:53 | ------------------------------------

2023-01-10 22:08:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 22:08:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-01-10 22:08:54 |

2023-01-10 22:08:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 22:08:54 | ------------------------------------

2023-01-10 22:08:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c4a2b1fc-1559-4954-8499-a90771c960a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 22:08:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}