Generated by TestNG with ReportNG at 04:11 PST on Thursday 24 November 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.547s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-11-24 04:27:34 |

2022-11-24 04:27:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:34 | ------------------------------------

2022-11-24 04:27:34 | [Mutex] waiting for: [configured:node:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:node-6edeeb8c-5efa-4c97-b458-c7300cda5acb]

2022-11-24 04:27:34 | [Mutex] received everything.

2022-11-24 04:27:34 | [Mutex] isItemNotified: configured:node:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:node-6edeeb8c-5efa-4c97-b458-c7300cda5acb :: true

2022-11-24 04:27:35 | [Mutex] waiting for: [received:nodes:a9741c07-7082-4aa3-be4b-8a01ab5e367b:localhost]

2022-11-24 04:27:35 | [Mutex] received everything.

2022-11-24 04:27:35 | [Mutex] isItemNotified: received:node:a9741c07-7082-4aa3-be4b-8a01ab5e367b:localhost:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:Node a33b2b56-cab9-462a-996c-3f545a5cb22a :: true

2022-11-24 04:27:35 | [Mutex] waiting for: [received:nodes:5cdd527a-24ef-40d3-94c4-b50f26e4bde4:localhost]

2022-11-24 04:27:35 | [Mutex] waiting for: [received:nodes:5cdd527a-24ef-40d3-94c4-b50f26e4bde4:localhost]

2022-11-24 04:27:35 | [Mutex] waiting for: [received:nodes:5cdd527a-24ef-40d3-94c4-b50f26e4bde4:localhost]

2022-11-24 04:27:35 | [Mutex] waiting for: [received:nodes:5cdd527a-24ef-40d3-94c4-b50f26e4bde4:localhost]

2022-11-24 04:27:35 | [Mutex] received everything.

2022-11-24 04:27:35 | [Mutex] isItemNotified: received:node:5cdd527a-24ef-40d3-94c4-b50f26e4bde4:localhost:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:Node a33b2b56-cab9-462a-996c-3f545a5cb22a :: false

createNodes 1.514s
2022-11-24 04:27:31 |

2022-11-24 04:27:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:31 | ------------------------------------

2022-11-24 04:27:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "pubsub#title": "Node a33b2b56-cab9-462a-996c-3f545a5cb22a"
}

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

2022-11-24 04:27:33 | [Mutex] waiting for: [received:nodes:f5d7a9f3-67c4-430c-bc52-dbca5ede46f1:localhost]

2022-11-24 04:27:33 | [Mutex] waiting for: [received:nodes:f5d7a9f3-67c4-430c-bc52-dbca5ede46f1:localhost]

2022-11-24 04:27:33 | [Mutex] waiting for: [received:nodes:f5d7a9f3-67c4-430c-bc52-dbca5ede46f1:localhost]

2022-11-24 04:27:33 | [Mutex] waiting for: [received:nodes:f5d7a9f3-67c4-430c-bc52-dbca5ede46f1:localhost]

2022-11-24 04:27:33 | [Mutex] received everything.

2022-11-24 04:27:33 | [Mutex] isItemNotified: received:node:f5d7a9f3-67c4-430c-bc52-dbca5ede46f1:localhost:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:Node a33b2b56-cab9-462a-996c-3f545a5cb22a :: true

createSubnodes 1.021s
2022-11-24 04:27:33 |

2022-11-24 04:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:33 | ------------------------------------

2022-11-24 04:27:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6edeeb8c-5efa-4c97-b458-c7300cda5acb",
    "pubsub#title": "Node 6edeeb8c-5efa-4c97-b458-c7300cda5acb"
}

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

2022-11-24 04:27:34 | [Mutex] waiting for: [received:nodes:4fa1cfcd-40bd-4adf-b9cc-68abda6e17d2:localhost]

2022-11-24 04:27:34 | [Mutex] received everything.

2022-11-24 04:27:34 | [Mutex] isItemNotified: received:node:4fa1cfcd-40bd-4adf-b9cc-68abda6e17d2:localhost:node-6edeeb8c-5efa-4c97-b458-c7300cda5acb:Node 6edeeb8c-5efa-4c97-b458-c7300cda5acb :: true

deleteNodes 1.020s
2022-11-24 04:27:38 |

2022-11-24 04:27:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:38 | ------------------------------------

2022-11-24 04:27:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6edeeb8c-5efa-4c97-b458-c7300cda5acb"
}

2022-11-24 04:27:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:27:39 | [Mutex] waiting for: [received:nodes:ff37557b-b2e7-4bf5-8240-6e9c18357ada:localhost]

2022-11-24 04:27:39 | [Mutex] received everything.

2022-11-24 04:27:39 | [Mutex] isItemNotified: received:node:ff37557b-b2e7-4bf5-8240-6e9c18357ada:localhost:node-6edeeb8c-5efa-4c97-b458-c7300cda5acb:Node 6edeeb8c-5efa-4c97-b458-c7300cda5acb :: false

deleteSubnodes 1.032s
2022-11-24 04:27:37 |

2022-11-24 04:27:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:37 | ------------------------------------

2022-11-24 04:27:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a"
}

2022-11-24 04:27:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 04:27:38 | [Mutex] waiting for: [received:nodes:0638e1ae-1aa9-4837-b95e-6aaf2267e8ce:localhost]

2022-11-24 04:27:38 | [Mutex] waiting for: [received:nodes:0638e1ae-1aa9-4837-b95e-6aaf2267e8ce:localhost]

2022-11-24 04:27:38 | [Mutex] received everything.

2022-11-24 04:27:38 | [Mutex] isItemNotified: received:node:0638e1ae-1aa9-4837-b95e-6aaf2267e8ce:localhost:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:Node a33b2b56-cab9-462a-996c-3f545a5cb22a :: false

2022-11-24 04:27:38 | [Mutex] waiting for: [received:nodes:9b3e874a-9eae-4bf6-95ee-a84dade2f45d:localhost]

2022-11-24 04:27:38 | [Mutex] received everything.

2022-11-24 04:27:38 | [Mutex] isItemNotified: received:node:9b3e874a-9eae-4bf6-95ee-a84dade2f45d:localhost:node-a33b2b56-cab9-462a-996c-3f545a5cb22a:Node a33b2b56-cab9-462a-996c-3f545a5cb22a :: false

publishItemsToNodes 0.102s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "entry": "<test>item-0532ede8-47fb-4477-816d-9d58475be196</test>",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196"
}

2022-11-24 04:27:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196"
}

2022-11-24 04:27:36 | [Mutex] waiting for: [published:item:notifieditem-0532ede8-47fb-4477-816d-9d58475be196:admin@test-domain.com]

2022-11-24 04:27:36 | [Mutex] received everything.

2022-11-24 04:27:36 | [Mutex] isItemNotified: published:item:notifieditem-0532ede8-47fb-4477-816d-9d58475be196:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196"
}

2022-11-24 04:27:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196"
}

2022-11-24 04:27:36 | [Mutex] received everything.

2022-11-24 04:27:36 | [Mutex] isItemNotified: retracted:item:notifieditem-0532ede8-47fb-4477-816d-9d58475be196:admin@test-domain.com :: true

retrieveItemsFromNodes 0.013s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196"
}

2022-11-24 04:27:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "item-id": "item-0532ede8-47fb-4477-816d-9d58475be196",
    "item": [
        "<item id=\"item-0532ede8-47fb-4477-816d-9d58475be196\"><test>item-0532ede8-47fb-4477-816d-9d58475be196</test></item>"
    ]
}

2022-11-24 04:27:36 | [Mutex] notify: [retrieved:item:item-0532ede8-47fb-4477-816d-9d58475be196:payload-matches:true:localhost]

2022-11-24 04:27:36 | [Mutex] received everything.

2022-11-24 04:27:36 | [Mutex] isItemNotified: retrieved:item:item-0532ede8-47fb-4477-816d-9d58475be196:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 04:27:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
        "node-6edeeb8c-5efa-4c97-b458-c7300cda5acb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a33b2b56-cab9-462a-996c-3f545a5cb22a)"
}

2022-11-24 04:27:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-11-24 04:27:35 |

2022-11-24 04:27:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:35 | ------------------------------------

2022-11-24 04:27:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 04:27:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.080s
2022-11-24 04:27:36 |

2022-11-24 04:27:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 04:27:36 | ------------------------------------

2022-11-24 04:27:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a33b2b56-cab9-462a-996c-3f545a5cb22a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 04:27:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}