Generated by TestNG with ReportNG at 09:55 PST on Friday 30 December 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.659s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.164s
2022-12-30 10:10:32 |

2022-12-30 10:10:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:32 | ------------------------------------

2022-12-30 10:10:32 | [Mutex] waiting for: [configured:node:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc]

2022-12-30 10:10:32 | [Mutex] received everything.

2022-12-30 10:10:32 | [Mutex] isItemNotified: configured:node:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc :: true

2022-12-30 10:10:33 | [Mutex] waiting for: [received:nodes:98c0bc64-cef7-435d-b225-463df4f4d150:localhost]

2022-12-30 10:10:33 | [Mutex] received everything.

2022-12-30 10:10:33 | [Mutex] isItemNotified: received:node:98c0bc64-cef7-435d-b225-463df4f4d150:localhost:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:Node fdcf365d-746c-4e70-9976-e3edf1d5c158 :: true

2022-12-30 10:10:33 | [Mutex] waiting for: [received:nodes:41f832a3-0671-4206-a755-9bea2eb62a53:localhost]

2022-12-30 10:10:33 | [Mutex] waiting for: [received:nodes:41f832a3-0671-4206-a755-9bea2eb62a53:localhost]

2022-12-30 10:10:33 | [Mutex] waiting for: [received:nodes:41f832a3-0671-4206-a755-9bea2eb62a53:localhost]

2022-12-30 10:10:33 | [Mutex] waiting for: [received:nodes:41f832a3-0671-4206-a755-9bea2eb62a53:localhost]

2022-12-30 10:10:33 | [Mutex] received everything.

2022-12-30 10:10:33 | [Mutex] isItemNotified: received:node:41f832a3-0671-4206-a755-9bea2eb62a53:localhost:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:Node fdcf365d-746c-4e70-9976-e3edf1d5c158 :: false

createNodes 1.673s
2022-12-30 10:10:29 |

2022-12-30 10:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:29 | ------------------------------------

2022-12-30 10:10:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "pubsub#title": "Node fdcf365d-746c-4e70-9976-e3edf1d5c158"
}

2022-12-30 10:10:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 10:10:31 | [Mutex] waiting for: [received:nodes:ebcd9892-7fce-47b0-ad08-b3a91da8dc83:localhost]

2022-12-30 10:10:31 | [Mutex] waiting for: [received:nodes:ebcd9892-7fce-47b0-ad08-b3a91da8dc83:localhost]

2022-12-30 10:10:31 | [Mutex] waiting for: [received:nodes:ebcd9892-7fce-47b0-ad08-b3a91da8dc83:localhost]

2022-12-30 10:10:31 | [Mutex] waiting for: [received:nodes:ebcd9892-7fce-47b0-ad08-b3a91da8dc83:localhost]

2022-12-30 10:10:31 | [Mutex] received everything.

2022-12-30 10:10:31 | [Mutex] isItemNotified: received:node:ebcd9892-7fce-47b0-ad08-b3a91da8dc83:localhost:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:Node fdcf365d-746c-4e70-9976-e3edf1d5c158 :: true

createSubnodes 1.020s
2022-12-30 10:10:31 |

2022-12-30 10:10:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:31 | ------------------------------------

2022-12-30 10:10:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc",
    "pubsub#title": "Node 34cbf27f-ce07-4f43-b36c-c48a2e53d3bc"
}

2022-12-30 10:10:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 10:10:32 | [Mutex] waiting for: [received:nodes:3e06f18c-1b61-4f3f-81bc-dfda6965ce4a:localhost]

2022-12-30 10:10:32 | [Mutex] waiting for: [received:nodes:3e06f18c-1b61-4f3f-81bc-dfda6965ce4a:localhost]

2022-12-30 10:10:32 | [Mutex] waiting for: [received:nodes:3e06f18c-1b61-4f3f-81bc-dfda6965ce4a:localhost]

2022-12-30 10:10:32 | [Mutex] received everything.

2022-12-30 10:10:32 | [Mutex] isItemNotified: received:node:3e06f18c-1b61-4f3f-81bc-dfda6965ce4a:localhost:node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc:Node 34cbf27f-ce07-4f43-b36c-c48a2e53d3bc :: true

deleteNodes 1.020s
2022-12-30 10:10:36 |

2022-12-30 10:10:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:36 | ------------------------------------

2022-12-30 10:10:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc"
}

2022-12-30 10:10:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 10:10:37 | [Mutex] waiting for: [received:nodes:eecb3c1a-fae3-4629-ac0c-18b242b3dae3:localhost]

2022-12-30 10:10:37 | [Mutex] waiting for: [received:nodes:eecb3c1a-fae3-4629-ac0c-18b242b3dae3:localhost]

2022-12-30 10:10:37 | [Mutex] waiting for: [received:nodes:eecb3c1a-fae3-4629-ac0c-18b242b3dae3:localhost]

2022-12-30 10:10:37 | [Mutex] received everything.

2022-12-30 10:10:37 | [Mutex] isItemNotified: received:node:eecb3c1a-fae3-4629-ac0c-18b242b3dae3:localhost:node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc:Node 34cbf27f-ce07-4f43-b36c-c48a2e53d3bc :: false

deleteSubnodes 1.022s
2022-12-30 10:10:35 |

2022-12-30 10:10:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:35 | ------------------------------------

2022-12-30 10:10:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158"
}

2022-12-30 10:10:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 10:10:36 | [Mutex] waiting for: [received:nodes:ee02155f-b0c9-4bd2-abaf-89c54204c2cb:localhost]

2022-12-30 10:10:36 | [Mutex] waiting for: [received:nodes:ee02155f-b0c9-4bd2-abaf-89c54204c2cb:localhost]

2022-12-30 10:10:36 | [Mutex] waiting for: [received:nodes:ee02155f-b0c9-4bd2-abaf-89c54204c2cb:localhost]

2022-12-30 10:10:36 | [Mutex] waiting for: [received:nodes:ee02155f-b0c9-4bd2-abaf-89c54204c2cb:localhost]

2022-12-30 10:10:36 | [Mutex] received everything.

2022-12-30 10:10:36 | [Mutex] isItemNotified: received:node:ee02155f-b0c9-4bd2-abaf-89c54204c2cb:localhost:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:Node fdcf365d-746c-4e70-9976-e3edf1d5c158 :: false

2022-12-30 10:10:36 | [Mutex] waiting for: [received:nodes:15ca72f2-4121-4955-bb73-6c626f1ca33d:localhost]

2022-12-30 10:10:36 | [Mutex] received everything.

2022-12-30 10:10:36 | [Mutex] isItemNotified: received:node:15ca72f2-4121-4955-bb73-6c626f1ca33d:localhost:node-fdcf365d-746c-4e70-9976-e3edf1d5c158:Node fdcf365d-746c-4e70-9976-e3edf1d5c158 :: false

publishItemsToNodes 0.048s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

2022-12-30 10:10:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "entry": "<test>item-362b4830-418a-4a6e-a4e9-912479cc585c</test>",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c"
}

2022-12-30 10:10:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c"
}

2022-12-30 10:10:34 | [Mutex] waiting for: [published:item:notifieditem-362b4830-418a-4a6e-a4e9-912479cc585c:admin@test-domain.com]

2022-12-30 10:10:34 | [Mutex] received everything.

2022-12-30 10:10:34 | [Mutex] isItemNotified: published:item:notifieditem-362b4830-418a-4a6e-a4e9-912479cc585c:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

2022-12-30 10:10:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c"
}

2022-12-30 10:10:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c"
}

2022-12-30 10:10:34 | [Mutex] received everything.

2022-12-30 10:10:34 | [Mutex] isItemNotified: retracted:item:notifieditem-362b4830-418a-4a6e-a4e9-912479cc585c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.011s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

2022-12-30 10:10:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c"
}

2022-12-30 10:10:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "item-id": "item-362b4830-418a-4a6e-a4e9-912479cc585c",
    "item": [
        "<item id=\"item-362b4830-418a-4a6e-a4e9-912479cc585c\"><test>item-362b4830-418a-4a6e-a4e9-912479cc585c</test></item>"
    ]
}

2022-12-30 10:10:34 | [Mutex] notify: [retrieved:item:item-362b4830-418a-4a6e-a4e9-912479cc585c:payload-matches:true:localhost]

2022-12-30 10:10:34 | [Mutex] received everything.

2022-12-30 10:10:34 | [Mutex] isItemNotified: retrieved:item:item-362b4830-418a-4a6e-a4e9-912479cc585c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

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

2022-12-30 10:10:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
        "node-34cbf27f-ce07-4f43-b36c-c48a2e53d3bc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

2022-12-30 10:10:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fdcf365d-746c-4e70-9976-e3edf1d5c158)"
}

2022-12-30 10:10:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-12-30 10:10:33 |

2022-12-30 10:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:33 | ------------------------------------

2022-12-30 10:10:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 10:10:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.047s
2022-12-30 10:10:34 |

2022-12-30 10:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 10:10:34 | ------------------------------------

2022-12-30 10:10:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fdcf365d-746c-4e70-9976-e3edf1d5c158",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 10:10:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}