Generated by TestNG with ReportNG at 22:19 PDT on Sunday 14 August 2022
root@f9c07ffec79b / 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.682s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-08-14 22:33:12 |

2022-08-14 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:12 | ------------------------------------

2022-08-14 22:33:12 | [Mutex] waiting for: [configured:node:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:node-f63c63a1-e308-49d8-82ea-61c2a3298e7f]

2022-08-14 22:33:12 | [Mutex] received everything.

2022-08-14 22:33:12 | [Mutex] isItemNotified: configured:node:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:node-f63c63a1-e308-49d8-82ea-61c2a3298e7f :: true

2022-08-14 22:33:13 | [Mutex] waiting for: [received:nodes:b95675a8-fbb6-4f92-8933-c52d69911974:localhost]

2022-08-14 22:33:13 | [Mutex] received everything.

2022-08-14 22:33:13 | [Mutex] isItemNotified: received:node:b95675a8-fbb6-4f92-8933-c52d69911974:localhost:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:Node bea94e2b-2023-466d-8962-6716d6fbe7e3 :: true

2022-08-14 22:33:13 | [Mutex] waiting for: [received:nodes:29c41356-a350-40f5-b992-162e7dc2f88d:localhost]

2022-08-14 22:33:13 | [Mutex] received everything.

2022-08-14 22:33:13 | [Mutex] isItemNotified: received:node:29c41356-a350-40f5-b992-162e7dc2f88d:localhost:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:Node bea94e2b-2023-466d-8962-6716d6fbe7e3 :: false

createNodes 1.622s
2022-08-14 22:33:09 |

2022-08-14 22:33:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:09 | ------------------------------------

2022-08-14 22:33:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "pubsub#title": "Node bea94e2b-2023-466d-8962-6716d6fbe7e3"
}

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

2022-08-14 22:33:11 | [Mutex] waiting for: [received:nodes:e1d47f51-2527-4f55-bcee-24b02311bb5c:localhost]

2022-08-14 22:33:11 | [Mutex] received everything.

2022-08-14 22:33:11 | [Mutex] isItemNotified: received:node:e1d47f51-2527-4f55-bcee-24b02311bb5c:localhost:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:Node bea94e2b-2023-466d-8962-6716d6fbe7e3 :: true

createSubnodes 1.021s
2022-08-14 22:33:11 |

2022-08-14 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:11 | ------------------------------------

2022-08-14 22:33:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f63c63a1-e308-49d8-82ea-61c2a3298e7f",
    "pubsub#title": "Node f63c63a1-e308-49d8-82ea-61c2a3298e7f"
}

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

2022-08-14 22:33:12 | [Mutex] waiting for: [received:nodes:6da105ac-72ca-4e4a-b3c3-92b364f39b0a:localhost]

2022-08-14 22:33:12 | [Mutex] received everything.

2022-08-14 22:33:12 | [Mutex] isItemNotified: received:node:6da105ac-72ca-4e4a-b3c3-92b364f39b0a:localhost:node-f63c63a1-e308-49d8-82ea-61c2a3298e7f:Node f63c63a1-e308-49d8-82ea-61c2a3298e7f :: true

deleteNodes 1.023s
2022-08-14 22:33:16 |

2022-08-14 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:16 | ------------------------------------

2022-08-14 22:33:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f63c63a1-e308-49d8-82ea-61c2a3298e7f"
}

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

2022-08-14 22:33:17 | [Mutex] waiting for: [received:nodes:8035be26-a109-42b1-803d-ed0c0799604b:localhost]

2022-08-14 22:33:17 | [Mutex] waiting for: [received:nodes:8035be26-a109-42b1-803d-ed0c0799604b:localhost]

2022-08-14 22:33:17 | [Mutex] received everything.

2022-08-14 22:33:17 | [Mutex] isItemNotified: received:node:8035be26-a109-42b1-803d-ed0c0799604b:localhost:node-f63c63a1-e308-49d8-82ea-61c2a3298e7f:Node f63c63a1-e308-49d8-82ea-61c2a3298e7f :: false

deleteSubnodes 1.024s
2022-08-14 22:33:15 |

2022-08-14 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:15 | ------------------------------------

2022-08-14 22:33:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3"
}

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

2022-08-14 22:33:16 | [Mutex] waiting for: [received:nodes:9d496810-f94b-483a-ae86-c3bde1cfd583:localhost]

2022-08-14 22:33:16 | [Mutex] received everything.

2022-08-14 22:33:16 | [Mutex] isItemNotified: received:node:9d496810-f94b-483a-ae86-c3bde1cfd583:localhost:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:Node bea94e2b-2023-466d-8962-6716d6fbe7e3 :: false

2022-08-14 22:33:16 | [Mutex] waiting for: [received:nodes:84c6aa10-6ed1-4981-8017-ba536d78aaa3:localhost]

2022-08-14 22:33:16 | [Mutex] received everything.

2022-08-14 22:33:16 | [Mutex] isItemNotified: received:node:84c6aa10-6ed1-4981-8017-ba536d78aaa3:localhost:node-bea94e2b-2023-466d-8962-6716d6fbe7e3:Node bea94e2b-2023-466d-8962-6716d6fbe7e3 :: false

publishItemsToNodes 0.092s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

2022-08-14 22:33:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "entry": "<test>item-27e72265-b157-48b9-9e67-10383109ff37</test>",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37"
}

2022-08-14 22:33:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37"
}

2022-08-14 22:33:14 | [Mutex] waiting for: [published:item:notifieditem-27e72265-b157-48b9-9e67-10383109ff37:admin@test-domain.com]

2022-08-14 22:33:14 | [Mutex] received everything.

2022-08-14 22:33:14 | [Mutex] isItemNotified: published:item:notifieditem-27e72265-b157-48b9-9e67-10383109ff37:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

2022-08-14 22:33:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37"
}

2022-08-14 22:33:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37"
}

2022-08-14 22:33:14 | [Mutex] received everything.

2022-08-14 22:33:14 | [Mutex] isItemNotified: retracted:item:notifieditem-27e72265-b157-48b9-9e67-10383109ff37:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

2022-08-14 22:33:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37"
}

2022-08-14 22:33:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "item-id": "item-27e72265-b157-48b9-9e67-10383109ff37",
    "item": [
        "<item id=\"item-27e72265-b157-48b9-9e67-10383109ff37\"><test>item-27e72265-b157-48b9-9e67-10383109ff37</test></item>"
    ]
}

2022-08-14 22:33:14 | [Mutex] notify: [retrieved:item:item-27e72265-b157-48b9-9e67-10383109ff37:payload-matches:true:localhost]

2022-08-14 22:33:14 | [Mutex] received everything.

2022-08-14 22:33:14 | [Mutex] isItemNotified: retrieved:item:item-27e72265-b157-48b9-9e67-10383109ff37:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

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

2022-08-14 22:33:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f63c63a1-e308-49d8-82ea-61c2a3298e7f",
        "test",
        "node-bea94e2b-2023-466d-8962-6716d6fbe7e3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

2022-08-14 22:33:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bea94e2b-2023-466d-8962-6716d6fbe7e3)"
}

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

subscribeNodes 1.009s
2022-08-14 22:33:13 |

2022-08-14 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:13 | ------------------------------------

2022-08-14 22:33:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.084s
2022-08-14 22:33:14 |

2022-08-14 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:14 | ------------------------------------

2022-08-14 22:33:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bea94e2b-2023-466d-8962-6716d6fbe7e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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