Generated by TestNG with ReportNG at 22:16 PDT on Tuesday 20 June 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.659s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2023-06-20 22:30:55 |

2023-06-20 22:30:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:55 | ------------------------------------

2023-06-20 22:30:55 | [Mutex] waiting for: [configured:node:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:node-59817991-9625-429c-8cd9-78804b76f041]

2023-06-20 22:30:55 | [Mutex] received everything.

2023-06-20 22:30:55 | [Mutex] isItemNotified: configured:node:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:node-59817991-9625-429c-8cd9-78804b76f041 :: true

2023-06-20 22:30:56 | [Mutex] waiting for: [received:nodes:a62b00fe-3691-41d2-8f9d-9fe88fe3ac5c:localhost]

2023-06-20 22:30:56 | [Mutex] received everything.

2023-06-20 22:30:56 | [Mutex] isItemNotified: received:node:a62b00fe-3691-41d2-8f9d-9fe88fe3ac5c:localhost:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:Node 6d3af5b2-e664-417d-afc8-e477a5724e6a :: true

2023-06-20 22:30:56 | [Mutex] waiting for: [received:nodes:b2d5cecb-cf3f-4943-b80a-1f537c28ff43:localhost]

2023-06-20 22:30:56 | [Mutex] waiting for: [received:nodes:b2d5cecb-cf3f-4943-b80a-1f537c28ff43:localhost]

2023-06-20 22:30:56 | [Mutex] waiting for: [received:nodes:b2d5cecb-cf3f-4943-b80a-1f537c28ff43:localhost]

2023-06-20 22:30:56 | [Mutex] received everything.

2023-06-20 22:30:56 | [Mutex] isItemNotified: received:node:b2d5cecb-cf3f-4943-b80a-1f537c28ff43:localhost:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:Node 6d3af5b2-e664-417d-afc8-e477a5724e6a :: false

createNodes 1.603s
2023-06-20 22:30:52 |

2023-06-20 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:52 | ------------------------------------

2023-06-20 22:30:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "pubsub#title": "Node 6d3af5b2-e664-417d-afc8-e477a5724e6a"
}

2023-06-20 22:30:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:30:54 | [Mutex] waiting for: [received:nodes:da79da1c-8a70-4c8c-8002-1bc7562ecf15:localhost]

2023-06-20 22:30:54 | [Mutex] waiting for: [received:nodes:da79da1c-8a70-4c8c-8002-1bc7562ecf15:localhost]

2023-06-20 22:30:54 | [Mutex] waiting for: [received:nodes:da79da1c-8a70-4c8c-8002-1bc7562ecf15:localhost]

2023-06-20 22:30:54 | [Mutex] received everything.

2023-06-20 22:30:54 | [Mutex] isItemNotified: received:node:da79da1c-8a70-4c8c-8002-1bc7562ecf15:localhost:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:Node 6d3af5b2-e664-417d-afc8-e477a5724e6a :: true

createSubnodes 1.029s
2023-06-20 22:30:54 |

2023-06-20 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:54 | ------------------------------------

2023-06-20 22:30:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-59817991-9625-429c-8cd9-78804b76f041",
    "pubsub#title": "Node 59817991-9625-429c-8cd9-78804b76f041"
}

2023-06-20 22:30:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:30:55 | [Mutex] waiting for: [received:nodes:533e2115-751d-44c2-8320-6fc576e109ae:localhost]

2023-06-20 22:30:55 | [Mutex] waiting for: [received:nodes:533e2115-751d-44c2-8320-6fc576e109ae:localhost]

2023-06-20 22:30:55 | [Mutex] waiting for: [received:nodes:533e2115-751d-44c2-8320-6fc576e109ae:localhost]

2023-06-20 22:30:55 | [Mutex] waiting for: [received:nodes:533e2115-751d-44c2-8320-6fc576e109ae:localhost]

2023-06-20 22:30:55 | [Mutex] waiting for: [received:nodes:533e2115-751d-44c2-8320-6fc576e109ae:localhost]

2023-06-20 22:30:55 | [Mutex] received everything.

2023-06-20 22:30:55 | [Mutex] isItemNotified: received:node:533e2115-751d-44c2-8320-6fc576e109ae:localhost:node-59817991-9625-429c-8cd9-78804b76f041:Node 59817991-9625-429c-8cd9-78804b76f041 :: true

deleteNodes 1.023s
2023-06-20 22:31:00 |

2023-06-20 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:31:00 | ------------------------------------

2023-06-20 22:31:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-59817991-9625-429c-8cd9-78804b76f041"
}

2023-06-20 22:31:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:31:01 | [Mutex] waiting for: [received:nodes:5b80cef3-b60b-4dbc-8368-fe526e913445:localhost]

2023-06-20 22:31:01 | [Mutex] waiting for: [received:nodes:5b80cef3-b60b-4dbc-8368-fe526e913445:localhost]

2023-06-20 22:31:01 | [Mutex] waiting for: [received:nodes:5b80cef3-b60b-4dbc-8368-fe526e913445:localhost]

2023-06-20 22:31:01 | [Mutex] received everything.

2023-06-20 22:31:01 | [Mutex] isItemNotified: received:node:5b80cef3-b60b-4dbc-8368-fe526e913445:localhost:node-59817991-9625-429c-8cd9-78804b76f041:Node 59817991-9625-429c-8cd9-78804b76f041 :: false

deleteSubnodes 1.029s
2023-06-20 22:30:59 |

2023-06-20 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:59 | ------------------------------------

2023-06-20 22:30:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a"
}

2023-06-20 22:30:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:31:00 | [Mutex] waiting for: [received:nodes:414b582c-23c4-4aba-9dea-d5b0d9a2d8d3:localhost]

2023-06-20 22:31:00 | [Mutex] waiting for: [received:nodes:414b582c-23c4-4aba-9dea-d5b0d9a2d8d3:localhost]

2023-06-20 22:31:00 | [Mutex] waiting for: [received:nodes:414b582c-23c4-4aba-9dea-d5b0d9a2d8d3:localhost]

2023-06-20 22:31:00 | [Mutex] received everything.

2023-06-20 22:31:00 | [Mutex] isItemNotified: received:node:414b582c-23c4-4aba-9dea-d5b0d9a2d8d3:localhost:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:Node 6d3af5b2-e664-417d-afc8-e477a5724e6a :: false

2023-06-20 22:31:00 | [Mutex] waiting for: [received:nodes:7a0e95c7-a374-40c2-9fe8-d23d440f0aaf:localhost]

2023-06-20 22:31:00 | [Mutex] received everything.

2023-06-20 22:31:00 | [Mutex] isItemNotified: received:node:7a0e95c7-a374-40c2-9fe8-d23d440f0aaf:localhost:node-6d3af5b2-e664-417d-afc8-e477a5724e6a:Node 6d3af5b2-e664-417d-afc8-e477a5724e6a :: false

publishItemsToNodes 0.074s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "entry": "<test>item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81</test>",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81"
}

2023-06-20 22:30:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81"
}

2023-06-20 22:30:57 | [Mutex] received everything.

2023-06-20 22:30:57 | [Mutex] isItemNotified: published:item:notifieditem-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81"
}

2023-06-20 22:30:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81"
}

2023-06-20 22:30:57 | [Mutex] received everything.

2023-06-20 22:30:57 | [Mutex] isItemNotified: retracted:item:notifieditem-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81"
}

2023-06-20 22:30:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "item-id": "item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81",
    "item": [
        "<item id=\"item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81\"><test>item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81</test></item>"
    ]
}

2023-06-20 22:30:57 | [Mutex] notify: [retrieved:item:item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81:payload-matches:true:localhost]

2023-06-20 22:30:57 | [Mutex] received everything.

2023-06-20 22:30:57 | [Mutex] isItemNotified: retrieved:item:item-70d5f9e4-bb1d-4b6f-bd3d-116e80561e81:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-06-20 22:30:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
        "node-59817991-9625-429c-8cd9-78804b76f041"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6d3af5b2-e664-417d-afc8-e477a5724e6a)"
}

2023-06-20 22:30:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-06-20 22:30:56 |

2023-06-20 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:56 | ------------------------------------

2023-06-20 22:30:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 22:30:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.111s
2023-06-20 22:30:57 |

2023-06-20 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:30:57 | ------------------------------------

2023-06-20 22:30:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6d3af5b2-e664-417d-afc8-e477a5724e6a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 22:30:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}