Generated by TestNG with ReportNG at 21:30 PST on Wednesday 09 February 2022
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.077s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-02-09 21:48:32 |

2022-02-09 21:48:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:32 | ------------------------------------

2022-02-09 21:48:32 | [Mutex] waiting for: [configured:node:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:node-56e29b77-f185-413a-853e-2fe0600dfa89]

2022-02-09 21:48:32 | [Mutex] received everything.

2022-02-09 21:48:32 | [Mutex] isItemNotified: configured:node:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:node-56e29b77-f185-413a-853e-2fe0600dfa89 :: true

2022-02-09 21:48:33 | [Mutex] waiting for: [received:nodes:8c8c444c-b015-4bcd-bec6-27cd6a5834d6:localhost]

2022-02-09 21:48:33 | [Mutex] received everything.

2022-02-09 21:48:33 | [Mutex] isItemNotified: received:node:8c8c444c-b015-4bcd-bec6-27cd6a5834d6:localhost:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:Node 31676896-c863-40ae-a6bc-ebf5819e8c3a :: true

2022-02-09 21:48:33 | [Mutex] waiting for: [received:nodes:33467a6e-c12c-48d1-a5d5-908d17b66e25:localhost]

2022-02-09 21:48:33 | [Mutex] received everything.

2022-02-09 21:48:33 | [Mutex] isItemNotified: received:node:33467a6e-c12c-48d1-a5d5-908d17b66e25:localhost:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:Node 31676896-c863-40ae-a6bc-ebf5819e8c3a :: false

createNodes 1.782s
2022-02-09 21:48:29 |

2022-02-09 21:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:29 | ------------------------------------

2022-02-09 21:48: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-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "pubsub#title": "Node 31676896-c863-40ae-a6bc-ebf5819e8c3a"
}

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

2022-02-09 21:48:31 | [Mutex] waiting for: [received:nodes:d61b56c7-26b7-45c3-8cb7-dbce84aaf5ad:localhost]

2022-02-09 21:48:31 | [Mutex] received everything.

2022-02-09 21:48:31 | [Mutex] isItemNotified: received:node:d61b56c7-26b7-45c3-8cb7-dbce84aaf5ad:localhost:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:Node 31676896-c863-40ae-a6bc-ebf5819e8c3a :: true

createSubnodes 1.036s
2022-02-09 21:48:31 |

2022-02-09 21:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:31 | ------------------------------------

2022-02-09 21:48: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-56e29b77-f185-413a-853e-2fe0600dfa89",
    "pubsub#title": "Node 56e29b77-f185-413a-853e-2fe0600dfa89"
}

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

2022-02-09 21:48:32 | [Mutex] waiting for: [received:nodes:53d21851-5207-47ce-997a-48e02dd51940:localhost]

2022-02-09 21:48:32 | [Mutex] received everything.

2022-02-09 21:48:32 | [Mutex] isItemNotified: received:node:53d21851-5207-47ce-997a-48e02dd51940:localhost:node-56e29b77-f185-413a-853e-2fe0600dfa89:Node 56e29b77-f185-413a-853e-2fe0600dfa89 :: true

deleteNodes 1.028s
2022-02-09 21:48:37 |

2022-02-09 21:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:37 | ------------------------------------

2022-02-09 21:48:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-56e29b77-f185-413a-853e-2fe0600dfa89"
}

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

2022-02-09 21:48:38 | [Mutex] waiting for: [received:nodes:20705785-cd6c-4f5c-aeb7-98f3f25b8f76:localhost]

2022-02-09 21:48:38 | [Mutex] received everything.

2022-02-09 21:48:38 | [Mutex] isItemNotified: received:node:20705785-cd6c-4f5c-aeb7-98f3f25b8f76:localhost:node-56e29b77-f185-413a-853e-2fe0600dfa89:Node 56e29b77-f185-413a-853e-2fe0600dfa89 :: false

deleteSubnodes 1.027s
2022-02-09 21:48:36 |

2022-02-09 21:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:36 | ------------------------------------

2022-02-09 21:48:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a"
}

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

2022-02-09 21:48:37 | [Mutex] waiting for: [received:nodes:a8c992c6-89bf-4dd5-9e49-5847d2f39254:localhost]

2022-02-09 21:48:37 | [Mutex] waiting for: [received:nodes:a8c992c6-89bf-4dd5-9e49-5847d2f39254:localhost]

2022-02-09 21:48:37 | [Mutex] received everything.

2022-02-09 21:48:37 | [Mutex] isItemNotified: received:node:a8c992c6-89bf-4dd5-9e49-5847d2f39254:localhost:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:Node 31676896-c863-40ae-a6bc-ebf5819e8c3a :: false

2022-02-09 21:48:37 | [Mutex] waiting for: [received:nodes:89f4d4b8-b771-45be-a593-138e7724c79c:localhost]

2022-02-09 21:48:37 | [Mutex] received everything.

2022-02-09 21:48:37 | [Mutex] isItemNotified: received:node:89f4d4b8-b771-45be-a593-138e7724c79c:localhost:node-31676896-c863-40ae-a6bc-ebf5819e8c3a:Node 31676896-c863-40ae-a6bc-ebf5819e8c3a :: false

publishItemsToNodes 0.062s
2022-02-09 21:48:34 |

2022-02-09 21:48:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:34 | ------------------------------------

2022-02-09 21:48:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "entry": "<test>item-ce3f383a-0e01-4e7d-a243-2c69460f74e7</test>",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7"
}

2022-02-09 21:48:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7"
}

2022-02-09 21:48:34 | [Mutex] waiting for: [published:item:notifieditem-ce3f383a-0e01-4e7d-a243-2c69460f74e7:admin@test-domain.com]

2022-02-09 21:48:34 | [Mutex] received everything.

2022-02-09 21:48:34 | [Mutex] isItemNotified: published:item:notifieditem-ce3f383a-0e01-4e7d-a243-2c69460f74e7:admin@test-domain.com :: true

retractItemsFromNodes 0.106s
2022-02-09 21:48:35 |

2022-02-09 21:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:35 | ------------------------------------

2022-02-09 21:48:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7"
}

2022-02-09 21:48:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7"
}

2022-02-09 21:48:35 | [Mutex] received everything.

2022-02-09 21:48:35 | [Mutex] isItemNotified: retracted:item:notifieditem-ce3f383a-0e01-4e7d-a243-2c69460f74e7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2022-02-09 21:48:34 |

2022-02-09 21:48:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:34 | ------------------------------------

2022-02-09 21:48:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7"
}

2022-02-09 21:48:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "item-id": "item-ce3f383a-0e01-4e7d-a243-2c69460f74e7",
    "item": [
        "<item id=\"item-ce3f383a-0e01-4e7d-a243-2c69460f74e7\"><test>item-ce3f383a-0e01-4e7d-a243-2c69460f74e7</test></item>"
    ]
}

2022-02-09 21:48:35 | [Mutex] notify: [retrieved:item:item-ce3f383a-0e01-4e7d-a243-2c69460f74e7:payload-matches:true:localhost]

2022-02-09 21:48:35 | [Mutex] received everything.

2022-02-09 21:48:35 | [Mutex] isItemNotified: retrieved:item:item-ce3f383a-0e01-4e7d-a243-2c69460f74e7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.111s
2022-02-09 21:48:35 |

2022-02-09 21:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:35 | ------------------------------------

2022-02-09 21:48:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-09 21:48:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-56e29b77-f185-413a-853e-2fe0600dfa89",
        "test",
        "node-31676896-c863-40ae-a6bc-ebf5819e8c3a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-09 21:48:35 |

2022-02-09 21:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:35 | ------------------------------------

2022-02-09 21:48:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-31676896-c863-40ae-a6bc-ebf5819e8c3a)"
}

2022-02-09 21:48:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-09 21:48:33 |

2022-02-09 21:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:33 | ------------------------------------

2022-02-09 21:48:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-09 21:48:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2022-02-09 21:48:35 |

2022-02-09 21:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:48:35 | ------------------------------------

2022-02-09 21:48:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-31676896-c863-40ae-a6bc-ebf5819e8c3a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-09 21:48:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}