Generated by TestNG with ReportNG at 21:15 PST on Sunday 18 December 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.588s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.032s
2022-12-18 21:30:49 |

2022-12-18 21:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:49 | ------------------------------------

2022-12-18 21:30:49 | [Mutex] waiting for: [configured:node:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f]

2022-12-18 21:30:49 | [Mutex] received everything.

2022-12-18 21:30:49 | [Mutex] isItemNotified: configured:node:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f :: true

2022-12-18 21:30:50 | [Mutex] waiting for: [received:nodes:26dd6159-7529-4074-8c89-9d84101eeea3:localhost]

2022-12-18 21:30:50 | [Mutex] received everything.

2022-12-18 21:30:50 | [Mutex] isItemNotified: received:node:26dd6159-7529-4074-8c89-9d84101eeea3:localhost:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78 :: true

2022-12-18 21:30:50 | [Mutex] waiting for: [received:nodes:cbbb5020-95db-45ea-9081-11a24ce72d8b:localhost]

2022-12-18 21:30:50 | [Mutex] waiting for: [received:nodes:cbbb5020-95db-45ea-9081-11a24ce72d8b:localhost]

2022-12-18 21:30:50 | [Mutex] waiting for: [received:nodes:cbbb5020-95db-45ea-9081-11a24ce72d8b:localhost]

2022-12-18 21:30:50 | [Mutex] waiting for: [received:nodes:cbbb5020-95db-45ea-9081-11a24ce72d8b:localhost]

2022-12-18 21:30:50 | [Mutex] received everything.

2022-12-18 21:30:50 | [Mutex] isItemNotified: received:node:cbbb5020-95db-45ea-9081-11a24ce72d8b:localhost:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78 :: false

createNodes 1.554s
2022-12-18 21:30:46 |

2022-12-18 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:46 | ------------------------------------

2022-12-18 21:30: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-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "pubsub#title": "Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78"
}

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

2022-12-18 21:30:48 | [Mutex] waiting for: [received:nodes:1b1f9d71-f9af-45ac-b626-d691685f4f1b:localhost]

2022-12-18 21:30:48 | [Mutex] waiting for: [received:nodes:1b1f9d71-f9af-45ac-b626-d691685f4f1b:localhost]

2022-12-18 21:30:48 | [Mutex] waiting for: [received:nodes:1b1f9d71-f9af-45ac-b626-d691685f4f1b:localhost]

2022-12-18 21:30:48 | [Mutex] waiting for: [received:nodes:1b1f9d71-f9af-45ac-b626-d691685f4f1b:localhost]

2022-12-18 21:30:48 | [Mutex] received everything.

2022-12-18 21:30:48 | [Mutex] isItemNotified: received:node:1b1f9d71-f9af-45ac-b626-d691685f4f1b:localhost:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78 :: true

createSubnodes 1.022s
2022-12-18 21:30:48 |

2022-12-18 21:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:48 | ------------------------------------

2022-12-18 21:30: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-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f",
    "pubsub#title": "Node 9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f"
}

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

2022-12-18 21:30:49 | [Mutex] waiting for: [received:nodes:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost]

2022-12-18 21:30:49 | [Mutex] waiting for: [received:nodes:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost]

2022-12-18 21:30:49 | [Mutex] waiting for: [received:nodes:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost]

2022-12-18 21:30:49 | [Mutex] waiting for: [received:nodes:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost]

2022-12-18 21:30:49 | [Mutex] waiting for: [received:nodes:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost]

2022-12-18 21:30:49 | [Mutex] received everything.

2022-12-18 21:30:49 | [Mutex] isItemNotified: received:node:b4a51e17-2784-4e49-9c72-2d1afe7f2812:localhost:node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f:Node 9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f :: true

deleteNodes 1.021s
2022-12-18 21:30:53 |

2022-12-18 21:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:53 | ------------------------------------

2022-12-18 21:30:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f"
}

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

2022-12-18 21:30:54 | [Mutex] waiting for: [received:nodes:635edde4-4011-4970-93ad-006494a1221d:localhost]

2022-12-18 21:30:54 | [Mutex] waiting for: [received:nodes:635edde4-4011-4970-93ad-006494a1221d:localhost]

2022-12-18 21:30:54 | [Mutex] received everything.

2022-12-18 21:30:54 | [Mutex] isItemNotified: received:node:635edde4-4011-4970-93ad-006494a1221d:localhost:node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f:Node 9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f :: false

deleteSubnodes 1.023s
2022-12-18 21:30:52 |

2022-12-18 21:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:52 | ------------------------------------

2022-12-18 21:30:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78"
}

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

2022-12-18 21:30:53 | [Mutex] waiting for: [received:nodes:9c697e66-a381-4ced-bc07-eef66eb04645:localhost]

2022-12-18 21:30:53 | [Mutex] waiting for: [received:nodes:9c697e66-a381-4ced-bc07-eef66eb04645:localhost]

2022-12-18 21:30:53 | [Mutex] waiting for: [received:nodes:9c697e66-a381-4ced-bc07-eef66eb04645:localhost]

2022-12-18 21:30:53 | [Mutex] waiting for: [received:nodes:9c697e66-a381-4ced-bc07-eef66eb04645:localhost]

2022-12-18 21:30:53 | [Mutex] received everything.

2022-12-18 21:30:53 | [Mutex] isItemNotified: received:node:9c697e66-a381-4ced-bc07-eef66eb04645:localhost:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78 :: false

2022-12-18 21:30:53 | [Mutex] waiting for: [received:nodes:d8b4a3db-2556-485a-878c-b82b2a748245:localhost]

2022-12-18 21:30:53 | [Mutex] received everything.

2022-12-18 21:30:53 | [Mutex] isItemNotified: received:node:d8b4a3db-2556-485a-878c-b82b2a748245:localhost:node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78:Node 5f7e676d-2b9f-4a00-8fb2-e54331bd6d78 :: false

publishItemsToNodes 0.049s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

2022-12-18 21:30:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "entry": "<test>item-470920a7-98ab-45d4-aa1b-71e7f7c16acd</test>",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd"
}

2022-12-18 21:30:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd"
}

2022-12-18 21:30:51 | [Mutex] waiting for: [published:item:notifieditem-470920a7-98ab-45d4-aa1b-71e7f7c16acd:admin@test-domain.com]

2022-12-18 21:30:51 | [Mutex] received everything.

2022-12-18 21:30:51 | [Mutex] isItemNotified: published:item:notifieditem-470920a7-98ab-45d4-aa1b-71e7f7c16acd:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

2022-12-18 21:30:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd"
}

2022-12-18 21:30:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd"
}

2022-12-18 21:30:51 | [Mutex] received everything.

2022-12-18 21:30:51 | [Mutex] isItemNotified: retracted:item:notifieditem-470920a7-98ab-45d4-aa1b-71e7f7c16acd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.107s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

2022-12-18 21:30:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd"
}

2022-12-18 21:30:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "item-id": "item-470920a7-98ab-45d4-aa1b-71e7f7c16acd",
    "item": [
        "<item id=\"item-470920a7-98ab-45d4-aa1b-71e7f7c16acd\"><test>item-470920a7-98ab-45d4-aa1b-71e7f7c16acd</test></item>"
    ]
}

2022-12-18 21:30:51 | [Mutex] notify: [retrieved:item:item-470920a7-98ab-45d4-aa1b-71e7f7c16acd:payload-matches:true:localhost]

2022-12-18 21:30:51 | [Mutex] received everything.

2022-12-18 21:30:51 | [Mutex] isItemNotified: retrieved:item:item-470920a7-98ab-45d4-aa1b-71e7f7c16acd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

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

2022-12-18 21:30:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9e06c2a4-5c30-4bb9-b0ae-8033739b4a7f",
        "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

2022-12-18 21:30:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78)"
}

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

subscribeNodes 1.011s
2022-12-18 21:30:50 |

2022-12-18 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:50 | ------------------------------------

2022-12-18 21:30:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-12-18 21:30:51 |

2022-12-18 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:30:51 | ------------------------------------

2022-12-18 21:30:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5f7e676d-2b9f-4a00-8fb2-e54331bd6d78",
    "jids": [
        "admin@test-domain.com"
    ]
}

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