Generated by TestNG with ReportNG at 05:51 PDT on Tuesday 12 July 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.748s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-07-12 06:05:19 |

2022-07-12 06:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:19 | ------------------------------------

2022-07-12 06:05:19 | [Mutex] waiting for: [configured:node:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:node-eb0898da-33d8-4733-a2f3-d67885cc2585]

2022-07-12 06:05:19 | [Mutex] received everything.

2022-07-12 06:05:19 | [Mutex] isItemNotified: configured:node:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:node-eb0898da-33d8-4733-a2f3-d67885cc2585 :: true

2022-07-12 06:05:20 | [Mutex] waiting for: [received:nodes:3530b9cc-2454-42cf-b7f3-03c77817d34d:localhost]

2022-07-12 06:05:20 | [Mutex] received everything.

2022-07-12 06:05:20 | [Mutex] isItemNotified: received:node:3530b9cc-2454-42cf-b7f3-03c77817d34d:localhost:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:Node e125bf1c-f19f-4edc-a106-ec3f20f24d06 :: true

2022-07-12 06:05:20 | [Mutex] waiting for: [received:nodes:e399e0fc-cd17-4325-a565-07a02688fb4e:localhost]

2022-07-12 06:05:20 | [Mutex] received everything.

2022-07-12 06:05:20 | [Mutex] isItemNotified: received:node:e399e0fc-cd17-4325-a565-07a02688fb4e:localhost:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:Node e125bf1c-f19f-4edc-a106-ec3f20f24d06 :: false

createNodes 1.558s
2022-07-12 06:05:17 |

2022-07-12 06:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:17 | ------------------------------------

2022-07-12 06:05:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "pubsub#title": "Node e125bf1c-f19f-4edc-a106-ec3f20f24d06"
}

2022-07-12 06:05:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:05:18 | [Mutex] waiting for: [received:nodes:ed33e133-adda-4244-96f2-e5792875d7bb:localhost]

2022-07-12 06:05:18 | [Mutex] waiting for: [received:nodes:ed33e133-adda-4244-96f2-e5792875d7bb:localhost]

2022-07-12 06:05:18 | [Mutex] received everything.

2022-07-12 06:05:18 | [Mutex] isItemNotified: received:node:ed33e133-adda-4244-96f2-e5792875d7bb:localhost:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:Node e125bf1c-f19f-4edc-a106-ec3f20f24d06 :: true

createSubnodes 1.025s
2022-07-12 06:05:18 |

2022-07-12 06:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:18 | ------------------------------------

2022-07-12 06:05:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eb0898da-33d8-4733-a2f3-d67885cc2585",
    "pubsub#title": "Node eb0898da-33d8-4733-a2f3-d67885cc2585"
}

2022-07-12 06:05:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:05:19 | [Mutex] waiting for: [received:nodes:cd749be9-d95f-4777-875b-769e97dfe684:localhost]

2022-07-12 06:05:19 | [Mutex] received everything.

2022-07-12 06:05:19 | [Mutex] isItemNotified: received:node:cd749be9-d95f-4777-875b-769e97dfe684:localhost:node-eb0898da-33d8-4733-a2f3-d67885cc2585:Node eb0898da-33d8-4733-a2f3-d67885cc2585 :: true

deleteNodes 1.021s
2022-07-12 06:05:24 |

2022-07-12 06:05:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:24 | ------------------------------------

2022-07-12 06:05:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eb0898da-33d8-4733-a2f3-d67885cc2585"
}

2022-07-12 06:05:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 06:05:25 | [Mutex] waiting for: [received:nodes:004fb49c-d447-4ff2-81e5-961cbbc4d0a1:localhost]

2022-07-12 06:05:25 | [Mutex] waiting for: [received:nodes:004fb49c-d447-4ff2-81e5-961cbbc4d0a1:localhost]

2022-07-12 06:05:25 | [Mutex] received everything.

2022-07-12 06:05:25 | [Mutex] isItemNotified: received:node:004fb49c-d447-4ff2-81e5-961cbbc4d0a1:localhost:node-eb0898da-33d8-4733-a2f3-d67885cc2585:Node eb0898da-33d8-4733-a2f3-d67885cc2585 :: false

deleteSubnodes 1.026s
2022-07-12 06:05:23 |

2022-07-12 06:05:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:23 | ------------------------------------

2022-07-12 06:05:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06"
}

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

2022-07-12 06:05:24 | [Mutex] waiting for: [received:nodes:313d03cc-2ed3-4761-9138-5af76d883473:localhost]

2022-07-12 06:05:24 | [Mutex] received everything.

2022-07-12 06:05:24 | [Mutex] isItemNotified: received:node:313d03cc-2ed3-4761-9138-5af76d883473:localhost:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:Node e125bf1c-f19f-4edc-a106-ec3f20f24d06 :: false

2022-07-12 06:05:24 | [Mutex] waiting for: [received:nodes:e8b4662c-deb1-4a2a-bdae-7b85494e4e38:localhost]

2022-07-12 06:05:24 | [Mutex] received everything.

2022-07-12 06:05:24 | [Mutex] isItemNotified: received:node:e8b4662c-deb1-4a2a-bdae-7b85494e4e38:localhost:node-e125bf1c-f19f-4edc-a106-ec3f20f24d06:Node e125bf1c-f19f-4edc-a106-ec3f20f24d06 :: false

publishItemsToNodes 0.063s
2022-07-12 06:05:21 |

2022-07-12 06:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:21 | ------------------------------------

2022-07-12 06:05:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "entry": "<test>item-f048a03d-77df-48fd-af87-0c47680f7b9a</test>",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a"
}

2022-07-12 06:05:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a"
}

2022-07-12 06:05:21 | [Mutex] waiting for: [published:item:notifieditem-f048a03d-77df-48fd-af87-0c47680f7b9a:admin@test-domain.com]

2022-07-12 06:05:21 | [Mutex] received everything.

2022-07-12 06:05:21 | [Mutex] isItemNotified: published:item:notifieditem-f048a03d-77df-48fd-af87-0c47680f7b9a:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-07-12 06:05:21 |

2022-07-12 06:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:21 | ------------------------------------

2022-07-12 06:05:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a"
}

2022-07-12 06:05:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a"
}

2022-07-12 06:05:22 | [Mutex] received everything.

2022-07-12 06:05:22 | [Mutex] isItemNotified: retracted:item:notifieditem-f048a03d-77df-48fd-af87-0c47680f7b9a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2022-07-12 06:05:21 |

2022-07-12 06:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:21 | ------------------------------------

2022-07-12 06:05:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a"
}

2022-07-12 06:05:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "item-id": "item-f048a03d-77df-48fd-af87-0c47680f7b9a",
    "item": [
        "<item id=\"item-f048a03d-77df-48fd-af87-0c47680f7b9a\"><test>item-f048a03d-77df-48fd-af87-0c47680f7b9a</test></item>"
    ]
}

2022-07-12 06:05:21 | [Mutex] notify: [retrieved:item:item-f048a03d-77df-48fd-af87-0c47680f7b9a:payload-matches:true:localhost]

2022-07-12 06:05:21 | [Mutex] received everything.

2022-07-12 06:05:21 | [Mutex] isItemNotified: retrieved:item:item-f048a03d-77df-48fd-af87-0c47680f7b9a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-12 06:05:21 |

2022-07-12 06:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:21 | ------------------------------------

2022-07-12 06:05:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-12 06:05:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-eb0898da-33d8-4733-a2f3-d67885cc2585",
        "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-12 06:05:21 |

2022-07-12 06:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:21 | ------------------------------------

2022-07-12 06:05:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e125bf1c-f19f-4edc-a106-ec3f20f24d06)"
}

2022-07-12 06:05:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-07-12 06:05:20 |

2022-07-12 06:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:20 | ------------------------------------

2022-07-12 06:05:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 06:05:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-07-12 06:05:22 |

2022-07-12 06:05:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 06:05:22 | ------------------------------------

2022-07-12 06:05:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e125bf1c-f19f-4edc-a106-ec3f20f24d06",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 06:05:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}