Generated by TestNG with ReportNG at 21:29 PST on Monday 27 February 2023
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.586s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-02-27 21:43:43 |

2023-02-27 21:43:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:43 | ------------------------------------

2023-02-27 21:43:43 | [Mutex] waiting for: [configured:node:node-a2e1538d-8860-4c08-9f2f-7122291cde42:node-eedc093e-f56e-4ac8-b664-9bea283fd2bf]

2023-02-27 21:43:43 | [Mutex] received everything.

2023-02-27 21:43:43 | [Mutex] isItemNotified: configured:node:node-a2e1538d-8860-4c08-9f2f-7122291cde42:node-eedc093e-f56e-4ac8-b664-9bea283fd2bf :: true

2023-02-27 21:43:44 | [Mutex] waiting for: [received:nodes:c402586e-2dcc-4c66-9d8f-3c1a803aa35d:localhost]

2023-02-27 21:43:44 | [Mutex] received everything.

2023-02-27 21:43:44 | [Mutex] isItemNotified: received:node:c402586e-2dcc-4c66-9d8f-3c1a803aa35d:localhost:node-a2e1538d-8860-4c08-9f2f-7122291cde42:Node a2e1538d-8860-4c08-9f2f-7122291cde42 :: true

2023-02-27 21:43:44 | [Mutex] waiting for: [received:nodes:327962ad-abf9-4f2e-a136-f4d397beb3dc:localhost]

2023-02-27 21:43:44 | [Mutex] received everything.

2023-02-27 21:43:44 | [Mutex] isItemNotified: received:node:327962ad-abf9-4f2e-a136-f4d397beb3dc:localhost:node-a2e1538d-8860-4c08-9f2f-7122291cde42:Node a2e1538d-8860-4c08-9f2f-7122291cde42 :: false

createNodes 1.577s
2023-02-27 21:43:41 |

2023-02-27 21:43:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:41 | ------------------------------------

2023-02-27 21:43:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "pubsub#title": "Node a2e1538d-8860-4c08-9f2f-7122291cde42"
}

2023-02-27 21:43:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:43:42 | [Mutex] waiting for: [received:nodes:ecdd758c-3625-48cb-bf2d-85f1c051602a:localhost]

2023-02-27 21:43:42 | [Mutex] waiting for: [received:nodes:ecdd758c-3625-48cb-bf2d-85f1c051602a:localhost]

2023-02-27 21:43:42 | [Mutex] waiting for: [received:nodes:ecdd758c-3625-48cb-bf2d-85f1c051602a:localhost]

2023-02-27 21:43:42 | [Mutex] received everything.

2023-02-27 21:43:42 | [Mutex] isItemNotified: received:node:ecdd758c-3625-48cb-bf2d-85f1c051602a:localhost:node-a2e1538d-8860-4c08-9f2f-7122291cde42:Node a2e1538d-8860-4c08-9f2f-7122291cde42 :: true

createSubnodes 1.033s
2023-02-27 21:43:42 |

2023-02-27 21:43:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:42 | ------------------------------------

2023-02-27 21:43:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eedc093e-f56e-4ac8-b664-9bea283fd2bf",
    "pubsub#title": "Node eedc093e-f56e-4ac8-b664-9bea283fd2bf"
}

2023-02-27 21:43:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:43:43 | [Mutex] waiting for: [received:nodes:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost]

2023-02-27 21:43:43 | [Mutex] waiting for: [received:nodes:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost]

2023-02-27 21:43:43 | [Mutex] waiting for: [received:nodes:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost]

2023-02-27 21:43:43 | [Mutex] waiting for: [received:nodes:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost]

2023-02-27 21:43:43 | [Mutex] waiting for: [received:nodes:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost]

2023-02-27 21:43:43 | [Mutex] received everything.

2023-02-27 21:43:43 | [Mutex] isItemNotified: received:node:712ccdbf-c2c3-4ef2-b428-efa244b43e1c:localhost:node-eedc093e-f56e-4ac8-b664-9bea283fd2bf:Node eedc093e-f56e-4ac8-b664-9bea283fd2bf :: true

deleteNodes 1.024s
2023-02-27 21:43:48 |

2023-02-27 21:43:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:48 | ------------------------------------

2023-02-27 21:43:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eedc093e-f56e-4ac8-b664-9bea283fd2bf"
}

2023-02-27 21:43:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:43:49 | [Mutex] waiting for: [received:nodes:2084676e-63ba-4117-851e-71ab31e1f54f:localhost]

2023-02-27 21:43:49 | [Mutex] waiting for: [received:nodes:2084676e-63ba-4117-851e-71ab31e1f54f:localhost]

2023-02-27 21:43:49 | [Mutex] waiting for: [received:nodes:2084676e-63ba-4117-851e-71ab31e1f54f:localhost]

2023-02-27 21:43:49 | [Mutex] received everything.

2023-02-27 21:43:49 | [Mutex] isItemNotified: received:node:2084676e-63ba-4117-851e-71ab31e1f54f:localhost:node-eedc093e-f56e-4ac8-b664-9bea283fd2bf:Node eedc093e-f56e-4ac8-b664-9bea283fd2bf :: false

deleteSubnodes 1.028s
2023-02-27 21:43:47 |

2023-02-27 21:43:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:47 | ------------------------------------

2023-02-27 21:43:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42"
}

2023-02-27 21:43:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-27 21:43:48 | [Mutex] waiting for: [received:nodes:9192fece-6d71-47fa-a5f5-0811177ff93c:localhost]

2023-02-27 21:43:48 | [Mutex] waiting for: [received:nodes:9192fece-6d71-47fa-a5f5-0811177ff93c:localhost]

2023-02-27 21:43:48 | [Mutex] waiting for: [received:nodes:9192fece-6d71-47fa-a5f5-0811177ff93c:localhost]

2023-02-27 21:43:48 | [Mutex] waiting for: [received:nodes:9192fece-6d71-47fa-a5f5-0811177ff93c:localhost]

2023-02-27 21:43:48 | [Mutex] received everything.

2023-02-27 21:43:48 | [Mutex] isItemNotified: received:node:9192fece-6d71-47fa-a5f5-0811177ff93c:localhost:node-a2e1538d-8860-4c08-9f2f-7122291cde42:Node a2e1538d-8860-4c08-9f2f-7122291cde42 :: false

2023-02-27 21:43:48 | [Mutex] waiting for: [received:nodes:735c8335-a1d0-4e07-a92b-51bca950bc16:localhost]

2023-02-27 21:43:48 | [Mutex] received everything.

2023-02-27 21:43:48 | [Mutex] isItemNotified: received:node:735c8335-a1d0-4e07-a92b-51bca950bc16:localhost:node-a2e1538d-8860-4c08-9f2f-7122291cde42:Node a2e1538d-8860-4c08-9f2f-7122291cde42 :: false

publishItemsToNodes 0.042s
2023-02-27 21:43:45 |

2023-02-27 21:43:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:45 | ------------------------------------

2023-02-27 21:43:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "entry": "<test>item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed</test>",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed"
}

2023-02-27 21:43:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed"
}

2023-02-27 21:43:45 | [Mutex] waiting for: [published:item:notifieditem-6d58e098-c4ff-4009-8917-4b9c32f3c6ed:admin@test-domain.com]

2023-02-27 21:43:45 | [Mutex] received everything.

2023-02-27 21:43:45 | [Mutex] isItemNotified: published:item:notifieditem-6d58e098-c4ff-4009-8917-4b9c32f3c6ed:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2023-02-27 21:43:46 |

2023-02-27 21:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:46 | ------------------------------------

2023-02-27 21:43:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed"
}

2023-02-27 21:43:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed"
}

2023-02-27 21:43:46 | [Mutex] received everything.

2023-02-27 21:43:46 | [Mutex] isItemNotified: retracted:item:notifieditem-6d58e098-c4ff-4009-8917-4b9c32f3c6ed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-02-27 21:43:45 |

2023-02-27 21:43:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:45 | ------------------------------------

2023-02-27 21:43:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed"
}

2023-02-27 21:43:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "item-id": "item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed",
    "item": [
        "<item id=\"item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed\"><test>item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed</test></item>"
    ]
}

2023-02-27 21:43:46 | [Mutex] notify: [retrieved:item:item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed:payload-matches:true:localhost]

2023-02-27 21:43:46 | [Mutex] received everything.

2023-02-27 21:43:46 | [Mutex] isItemNotified: retrieved:item:item-6d58e098-c4ff-4009-8917-4b9c32f3c6ed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-27 21:43:46 |

2023-02-27 21:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:46 | ------------------------------------

2023-02-27 21:43:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-27 21:43:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-eedc093e-f56e-4ac8-b664-9bea283fd2bf",
        "node-a2e1538d-8860-4c08-9f2f-7122291cde42"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-02-27 21:43:46 |

2023-02-27 21:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:46 | ------------------------------------

2023-02-27 21:43:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a2e1538d-8860-4c08-9f2f-7122291cde42)"
}

2023-02-27 21:43:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-02-27 21:43:44 |

2023-02-27 21:43:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:44 | ------------------------------------

2023-02-27 21:43:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-27 21:43:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-02-27 21:43:46 |

2023-02-27 21:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-27 21:43:46 | ------------------------------------

2023-02-27 21:43:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a2e1538d-8860-4c08-9f2f-7122291cde42",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-27 21:43:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}