Generated by TestNG with ReportNG at 22:47 PDT on Thursday 15 September 2022
root@7c41cec37518 / 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.643s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-09-15 23:02:49 |

2022-09-15 23:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:49 | ------------------------------------

2022-09-15 23:02:49 | [Mutex] waiting for: [configured:node:node-33780879-493c-499a-a2d0-5fa40b70a280:node-47bd461f-8718-4836-ab39-3821318113db]

2022-09-15 23:02:49 | [Mutex] received everything.

2022-09-15 23:02:49 | [Mutex] isItemNotified: configured:node:node-33780879-493c-499a-a2d0-5fa40b70a280:node-47bd461f-8718-4836-ab39-3821318113db :: true

2022-09-15 23:02:50 | [Mutex] waiting for: [received:nodes:5acc7e45-4cef-46b2-b96c-dea22f725131:localhost]

2022-09-15 23:02:50 | [Mutex] received everything.

2022-09-15 23:02:50 | [Mutex] isItemNotified: received:node:5acc7e45-4cef-46b2-b96c-dea22f725131:localhost:node-33780879-493c-499a-a2d0-5fa40b70a280:Node 33780879-493c-499a-a2d0-5fa40b70a280 :: true

2022-09-15 23:02:50 | [Mutex] waiting for: [received:nodes:76504a42-b70d-4f53-93f2-d5844c515bd1:localhost]

2022-09-15 23:02:50 | [Mutex] waiting for: [received:nodes:76504a42-b70d-4f53-93f2-d5844c515bd1:localhost]

2022-09-15 23:02:50 | [Mutex] received everything.

2022-09-15 23:02:50 | [Mutex] isItemNotified: received:node:76504a42-b70d-4f53-93f2-d5844c515bd1:localhost:node-33780879-493c-499a-a2d0-5fa40b70a280:Node 33780879-493c-499a-a2d0-5fa40b70a280 :: false

createNodes 1.631s
2022-09-15 23:02:47 |

2022-09-15 23:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:47 | ------------------------------------

2022-09-15 23:02:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "pubsub#title": "Node 33780879-493c-499a-a2d0-5fa40b70a280"
}

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

2022-09-15 23:02:48 | [Mutex] waiting for: [received:nodes:b3f57145-6208-4b62-8ee1-68e0decd1742:localhost]

2022-09-15 23:02:48 | [Mutex] waiting for: [received:nodes:b3f57145-6208-4b62-8ee1-68e0decd1742:localhost]

2022-09-15 23:02:48 | [Mutex] received everything.

2022-09-15 23:02:48 | [Mutex] isItemNotified: received:node:b3f57145-6208-4b62-8ee1-68e0decd1742:localhost:node-33780879-493c-499a-a2d0-5fa40b70a280:Node 33780879-493c-499a-a2d0-5fa40b70a280 :: true

createSubnodes 1.022s
2022-09-15 23:02:48 |

2022-09-15 23:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:48 | ------------------------------------

2022-09-15 23:02:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-47bd461f-8718-4836-ab39-3821318113db",
    "pubsub#title": "Node 47bd461f-8718-4836-ab39-3821318113db"
}

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

2022-09-15 23:02:49 | [Mutex] waiting for: [received:nodes:7641ed10-eda2-4af6-a743-a4944d384b90:localhost]

2022-09-15 23:02:49 | [Mutex] waiting for: [received:nodes:7641ed10-eda2-4af6-a743-a4944d384b90:localhost]

2022-09-15 23:02:49 | [Mutex] waiting for: [received:nodes:7641ed10-eda2-4af6-a743-a4944d384b90:localhost]

2022-09-15 23:02:49 | [Mutex] waiting for: [received:nodes:7641ed10-eda2-4af6-a743-a4944d384b90:localhost]

2022-09-15 23:02:49 | [Mutex] waiting for: [received:nodes:7641ed10-eda2-4af6-a743-a4944d384b90:localhost]

2022-09-15 23:02:49 | [Mutex] received everything.

2022-09-15 23:02:49 | [Mutex] isItemNotified: received:node:7641ed10-eda2-4af6-a743-a4944d384b90:localhost:node-47bd461f-8718-4836-ab39-3821318113db:Node 47bd461f-8718-4836-ab39-3821318113db :: true

deleteNodes 1.021s
2022-09-15 23:02:54 |

2022-09-15 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:54 | ------------------------------------

2022-09-15 23:02:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-47bd461f-8718-4836-ab39-3821318113db"
}

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

2022-09-15 23:02:55 | [Mutex] waiting for: [received:nodes:a440b401-fd5a-480e-ab9d-74a6fb531f78:localhost]

2022-09-15 23:02:55 | [Mutex] waiting for: [received:nodes:a440b401-fd5a-480e-ab9d-74a6fb531f78:localhost]

2022-09-15 23:02:55 | [Mutex] waiting for: [received:nodes:a440b401-fd5a-480e-ab9d-74a6fb531f78:localhost]

2022-09-15 23:02:55 | [Mutex] received everything.

2022-09-15 23:02:55 | [Mutex] isItemNotified: received:node:a440b401-fd5a-480e-ab9d-74a6fb531f78:localhost:node-47bd461f-8718-4836-ab39-3821318113db:Node 47bd461f-8718-4836-ab39-3821318113db :: false

deleteSubnodes 1.027s
2022-09-15 23:02:53 |

2022-09-15 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:53 | ------------------------------------

2022-09-15 23:02:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280"
}

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

2022-09-15 23:02:54 | [Mutex] waiting for: [received:nodes:4121820d-8a77-4f82-99fe-89ce0254178e:localhost]

2022-09-15 23:02:54 | [Mutex] received everything.

2022-09-15 23:02:54 | [Mutex] isItemNotified: received:node:4121820d-8a77-4f82-99fe-89ce0254178e:localhost:node-33780879-493c-499a-a2d0-5fa40b70a280:Node 33780879-493c-499a-a2d0-5fa40b70a280 :: false

2022-09-15 23:02:54 | [Mutex] waiting for: [received:nodes:273153f8-0a02-4308-8f91-77e243ce79f7:localhost]

2022-09-15 23:02:54 | [Mutex] received everything.

2022-09-15 23:02:54 | [Mutex] isItemNotified: received:node:273153f8-0a02-4308-8f91-77e243ce79f7:localhost:node-33780879-493c-499a-a2d0-5fa40b70a280:Node 33780879-493c-499a-a2d0-5fa40b70a280 :: false

publishItemsToNodes 0.092s
2022-09-15 23:02:51 |

2022-09-15 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:51 | ------------------------------------

2022-09-15 23:02:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "entry": "<test>item-243ccf6a-620f-43d6-a810-48d5af800e2a</test>",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a"
}

2022-09-15 23:02:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a"
}

2022-09-15 23:02:51 | [Mutex] waiting for: [published:item:notifieditem-243ccf6a-620f-43d6-a810-48d5af800e2a:admin@test-domain.com]

2022-09-15 23:02:51 | [Mutex] received everything.

2022-09-15 23:02:51 | [Mutex] isItemNotified: published:item:notifieditem-243ccf6a-620f-43d6-a810-48d5af800e2a:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-09-15 23:02:52 |

2022-09-15 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:52 | ------------------------------------

2022-09-15 23:02:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a"
}

2022-09-15 23:02:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a"
}

2022-09-15 23:02:52 | [Mutex] waiting for: [retracted:item:notifieditem-243ccf6a-620f-43d6-a810-48d5af800e2a:admin@test-domain.com]

2022-09-15 23:02:52 | [Mutex] received everything.

2022-09-15 23:02:52 | [Mutex] isItemNotified: retracted:item:notifieditem-243ccf6a-620f-43d6-a810-48d5af800e2a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-09-15 23:02:51 |

2022-09-15 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:51 | ------------------------------------

2022-09-15 23:02:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a"
}

2022-09-15 23:02:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "item-id": "item-243ccf6a-620f-43d6-a810-48d5af800e2a",
    "item": [
        "<item id=\"item-243ccf6a-620f-43d6-a810-48d5af800e2a\"><test>item-243ccf6a-620f-43d6-a810-48d5af800e2a</test></item>"
    ]
}

2022-09-15 23:02:51 | [Mutex] notify: [retrieved:item:item-243ccf6a-620f-43d6-a810-48d5af800e2a:payload-matches:true:localhost]

2022-09-15 23:02:51 | [Mutex] received everything.

2022-09-15 23:02:51 | [Mutex] isItemNotified: retrieved:item:item-243ccf6a-620f-43d6-a810-48d5af800e2a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-15 23:02:51 |

2022-09-15 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:51 | ------------------------------------

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

2022-09-15 23:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-47bd461f-8718-4836-ab39-3821318113db",
        "node-33780879-493c-499a-a2d0-5fa40b70a280"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-15 23:02:52 |

2022-09-15 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:52 | ------------------------------------

2022-09-15 23:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-33780879-493c-499a-a2d0-5fa40b70a280)"
}

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

subscribeNodes 1.008s
2022-09-15 23:02:50 |

2022-09-15 23:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:50 | ------------------------------------

2022-09-15 23:02:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-09-15 23:02:52 |

2022-09-15 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 23:02:52 | ------------------------------------

2022-09-15 23:02:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-33780879-493c-499a-a2d0-5fa40b70a280",
    "jids": [
        "admin@test-domain.com"
    ]
}

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