Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 24 May 2023
root@8f5c98824654 / 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.891s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.079s
2023-05-24 22:45:32 |

2023-05-24 22:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:32 | ------------------------------------

2023-05-24 22:45:32 | [Mutex] waiting for: [configured:node:node-891e1722-221b-41f1-870e-14cf13f33c59:node-60e9face-26e8-4879-9f07-f4efa4756ba2]

2023-05-24 22:45:32 | [Mutex] received everything.

2023-05-24 22:45:32 | [Mutex] isItemNotified: configured:node:node-891e1722-221b-41f1-870e-14cf13f33c59:node-60e9face-26e8-4879-9f07-f4efa4756ba2 :: true

2023-05-24 22:45:33 | [Mutex] waiting for: [received:nodes:7d85f460-eed8-4db3-bbf1-3014eba9c2f1:localhost]

2023-05-24 22:45:33 | [Mutex] received everything.

2023-05-24 22:45:33 | [Mutex] isItemNotified: received:node:7d85f460-eed8-4db3-bbf1-3014eba9c2f1:localhost:node-891e1722-221b-41f1-870e-14cf13f33c59:Node 891e1722-221b-41f1-870e-14cf13f33c59 :: true

2023-05-24 22:45:33 | [Mutex] waiting for: [received:nodes:afb492e6-19e1-48e3-b954-077cc0dffa64:localhost]

2023-05-24 22:45:33 | [Mutex] waiting for: [received:nodes:afb492e6-19e1-48e3-b954-077cc0dffa64:localhost]

2023-05-24 22:45:33 | [Mutex] waiting for: [received:nodes:afb492e6-19e1-48e3-b954-077cc0dffa64:localhost]

2023-05-24 22:45:33 | [Mutex] waiting for: [received:nodes:afb492e6-19e1-48e3-b954-077cc0dffa64:localhost]

2023-05-24 22:45:33 | [Mutex] received everything.

2023-05-24 22:45:33 | [Mutex] isItemNotified: received:node:afb492e6-19e1-48e3-b954-077cc0dffa64:localhost:node-891e1722-221b-41f1-870e-14cf13f33c59:Node 891e1722-221b-41f1-870e-14cf13f33c59 :: false

createNodes 1.800s
2023-05-24 22:45:29 |

2023-05-24 22:45:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:29 | ------------------------------------

2023-05-24 22:45: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-891e1722-221b-41f1-870e-14cf13f33c59",
    "pubsub#title": "Node 891e1722-221b-41f1-870e-14cf13f33c59"
}

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

2023-05-24 22:45:31 | [Mutex] waiting for: [received:nodes:3baf2e2c-29c7-4618-b4e0-9d323398425d:localhost]

2023-05-24 22:45:31 | [Mutex] waiting for: [received:nodes:3baf2e2c-29c7-4618-b4e0-9d323398425d:localhost]

2023-05-24 22:45:31 | [Mutex] waiting for: [received:nodes:3baf2e2c-29c7-4618-b4e0-9d323398425d:localhost]

2023-05-24 22:45:31 | [Mutex] waiting for: [received:nodes:3baf2e2c-29c7-4618-b4e0-9d323398425d:localhost]

2023-05-24 22:45:31 | [Mutex] received everything.

2023-05-24 22:45:31 | [Mutex] isItemNotified: received:node:3baf2e2c-29c7-4618-b4e0-9d323398425d:localhost:node-891e1722-221b-41f1-870e-14cf13f33c59:Node 891e1722-221b-41f1-870e-14cf13f33c59 :: true

createSubnodes 1.034s
2023-05-24 22:45:31 |

2023-05-24 22:45:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:31 | ------------------------------------

2023-05-24 22:45: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-60e9face-26e8-4879-9f07-f4efa4756ba2",
    "pubsub#title": "Node 60e9face-26e8-4879-9f07-f4efa4756ba2"
}

2023-05-24 22:45:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:45:32 | [Mutex] waiting for: [received:nodes:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost]

2023-05-24 22:45:32 | [Mutex] waiting for: [received:nodes:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost]

2023-05-24 22:45:32 | [Mutex] waiting for: [received:nodes:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost]

2023-05-24 22:45:32 | [Mutex] waiting for: [received:nodes:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost]

2023-05-24 22:45:32 | [Mutex] waiting for: [received:nodes:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost]

2023-05-24 22:45:32 | [Mutex] received everything.

2023-05-24 22:45:32 | [Mutex] isItemNotified: received:node:4f8a15bd-02cb-4eee-a63d-9e1a9d744edd:localhost:node-60e9face-26e8-4879-9f07-f4efa4756ba2:Node 60e9face-26e8-4879-9f07-f4efa4756ba2 :: true

deleteNodes 1.032s
2023-05-24 22:45:37 |

2023-05-24 22:45:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:37 | ------------------------------------

2023-05-24 22:45:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60e9face-26e8-4879-9f07-f4efa4756ba2"
}

2023-05-24 22:45:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:45:38 | [Mutex] waiting for: [received:nodes:a3402ea8-6943-4a63-8f2f-9b2af356e884:localhost]

2023-05-24 22:45:38 | [Mutex] waiting for: [received:nodes:a3402ea8-6943-4a63-8f2f-9b2af356e884:localhost]

2023-05-24 22:45:38 | [Mutex] waiting for: [received:nodes:a3402ea8-6943-4a63-8f2f-9b2af356e884:localhost]

2023-05-24 22:45:38 | [Mutex] received everything.

2023-05-24 22:45:38 | [Mutex] isItemNotified: received:node:a3402ea8-6943-4a63-8f2f-9b2af356e884:localhost:node-60e9face-26e8-4879-9f07-f4efa4756ba2:Node 60e9face-26e8-4879-9f07-f4efa4756ba2 :: false

deleteSubnodes 1.026s
2023-05-24 22:45:36 |

2023-05-24 22:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:36 | ------------------------------------

2023-05-24 22:45:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59"
}

2023-05-24 22:45:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-24 22:45:37 | [Mutex] waiting for: [received:nodes:ac877f3b-46b0-4c7d-aedb-2f1faedfcd6d:localhost]

2023-05-24 22:45:37 | [Mutex] waiting for: [received:nodes:ac877f3b-46b0-4c7d-aedb-2f1faedfcd6d:localhost]

2023-05-24 22:45:37 | [Mutex] waiting for: [received:nodes:ac877f3b-46b0-4c7d-aedb-2f1faedfcd6d:localhost]

2023-05-24 22:45:37 | [Mutex] waiting for: [received:nodes:ac877f3b-46b0-4c7d-aedb-2f1faedfcd6d:localhost]

2023-05-24 22:45:37 | [Mutex] received everything.

2023-05-24 22:45:37 | [Mutex] isItemNotified: received:node:ac877f3b-46b0-4c7d-aedb-2f1faedfcd6d:localhost:node-891e1722-221b-41f1-870e-14cf13f33c59:Node 891e1722-221b-41f1-870e-14cf13f33c59 :: false

2023-05-24 22:45:37 | [Mutex] waiting for: [received:nodes:eda6f14a-d834-4520-8507-88dd92a53792:localhost]

2023-05-24 22:45:37 | [Mutex] received everything.

2023-05-24 22:45:37 | [Mutex] isItemNotified: received:node:eda6f14a-d834-4520-8507-88dd92a53792:localhost:node-891e1722-221b-41f1-870e-14cf13f33c59:Node 891e1722-221b-41f1-870e-14cf13f33c59 :: false

publishItemsToNodes 0.047s
2023-05-24 22:45:34 |

2023-05-24 22:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:34 | ------------------------------------

2023-05-24 22:45:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "entry": "<test>item-54b068f9-cb7d-4025-b0cd-143320cc57cb</test>",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb"
}

2023-05-24 22:45:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb"
}

2023-05-24 22:45:34 | [Mutex] waiting for: [published:item:notifieditem-54b068f9-cb7d-4025-b0cd-143320cc57cb:admin@test-domain.com]

2023-05-24 22:45:34 | [Mutex] received everything.

2023-05-24 22:45:34 | [Mutex] isItemNotified: published:item:notifieditem-54b068f9-cb7d-4025-b0cd-143320cc57cb:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2023-05-24 22:45:35 |

2023-05-24 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:35 | ------------------------------------

2023-05-24 22:45:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb"
}

2023-05-24 22:45:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb"
}

2023-05-24 22:45:35 | [Mutex] received everything.

2023-05-24 22:45:35 | [Mutex] isItemNotified: retracted:item:notifieditem-54b068f9-cb7d-4025-b0cd-143320cc57cb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.101s
2023-05-24 22:45:34 |

2023-05-24 22:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:34 | ------------------------------------

2023-05-24 22:45:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb"
}

2023-05-24 22:45:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "item-id": "item-54b068f9-cb7d-4025-b0cd-143320cc57cb",
    "item": [
        "<item id=\"item-54b068f9-cb7d-4025-b0cd-143320cc57cb\"><test>item-54b068f9-cb7d-4025-b0cd-143320cc57cb</test></item>"
    ]
}

2023-05-24 22:45:34 | [Mutex] notify: [retrieved:item:item-54b068f9-cb7d-4025-b0cd-143320cc57cb:payload-matches:true:localhost]

2023-05-24 22:45:34 | [Mutex] received everything.

2023-05-24 22:45:34 | [Mutex] isItemNotified: retrieved:item:item-54b068f9-cb7d-4025-b0cd-143320cc57cb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-05-24 22:45:34 |

2023-05-24 22:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:34 | ------------------------------------

2023-05-24 22:45:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-24 22:45:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-60e9face-26e8-4879-9f07-f4efa4756ba2",
        "test",
        "node-891e1722-221b-41f1-870e-14cf13f33c59"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-05-24 22:45:34 |

2023-05-24 22:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:34 | ------------------------------------

2023-05-24 22:45:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-891e1722-221b-41f1-870e-14cf13f33c59)"
}

2023-05-24 22:45:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2023-05-24 22:45:33 |

2023-05-24 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:33 | ------------------------------------

2023-05-24 22:45:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-24 22:45:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-05-24 22:45:35 |

2023-05-24 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-24 22:45:35 | ------------------------------------

2023-05-24 22:45:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-891e1722-221b-41f1-870e-14cf13f33c59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-24 22:45:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}